cancel
Showing results for 
Search instead for 
Did you mean: 

Message mapping

Former Member
0 Kudos

HI

Now i am working in XI and while working with IDOC to file i was struck at Message mapping.Could you please send good docs.Awaiting for ur reply.

Thank you

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi kalam srinivasulu,

The below mentioned link will help in detal with screenshots.........

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e07dcaa0-a92b-2a10-3a96-b3d942bd...

Thanks

Sai

PS: kindly reward points if helpful

Answers (8)

Answers (8)

vijay_b4
Active Contributor
0 Kudos

Hi Kalam,

Chakra pani please post your query in different thread:

Sender side is File and Receiver side is Imported RFC.

You can map both the structure fields using node functions.

Node Functions

1. remove context:

You use removeContexts () to delete all the top contexts for an element. This removes all top hierarchy levels, so that all elements of the target queue are assigned to a root element of the source queue.

Advanced user-defined functions can import either just one context into the input arrays, or complete queues. Make your selection by selecting or deselecting the Save Entire Queue in Cache checkbox in the function editor.

2. split by value:

The SplitByValue() function is the counterpart to removeContexts(): Instead of deleting a context, you can insert a context change in the source value queue. You then receive this element for each inserted context change instead of a top node element. However, for this to be possible, the top node source field must be assigned a top node target field and minOccurs must be >0. You can insert a context change in the queue after each value, after each change to the value, or after each tag without a value.

3. collapse context:

Using collapseContexts() puts the first values of all contexts into a context. Empty contexts are replaced with an empty string:

This can be useful if an upper-level node is to be created each time a lower-level node exists, for example. The function is useful in combination with the SplitByValue function.

4. Use one as many

You require the function useOneAsMany() if a field that only occurs once needs to be replicated as often as another field occurs in the outbound message so that the fields can be written to the target structure in pairs as a record.

http://help.sap.com/saphelp_nw04/helpdata/en/2c/2d8c4024d26e1de10000000a1550b0/frameset.htm

5. Map with default

6.copyValue

You use CopyValue() for a frequently occurring element to copy the value of a position in the source structure and assign it to a target field. The value is copied each time the target field occurs in the target structure. However, it is copied a maximum of maxOccurs times

7.createIf

You use createIf() to create a tag in the target structure depending on a condition.

8.exists

You use this function to determine whether a particular source field exists in the XML instance to be processed. If it does, exists() returns the value true, otherwise it returns the value false.

9.Use

You use this function if you need to synchronize two queues of equal length with reference to their context change. The mapping runtime takes the values from the first queue, and the context change from the second queue. If the two inbound queues do not have the same number of values, the mapping runtime triggers an exception.

Check this links for more info:

Message Mapping Simplified - Part I

/people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i

Message Mapping Simplified u2013 Part II

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

Reward points if this helps

Regards

Pragathi.

Former Member
0 Kudos

send me any materials and screen shots on message mapping . i am getting so cofusion while i amm working .pls

Former Member
0 Kudos

Hi,

Please find the below links for the message mapping.

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2171] [original link is broken] [original link is broken] [original link is broken];

Message Mapping Simplified - Part I

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/2792] [original link is broken] [original link is broken] [original link is broken];

Message Mapping Simplified – Part II

Thanks,

Kiran

Former Member
0 Kudos

Hi,

For Message mapping we use grapphical tool which has almost all the functionality.

First you will create the Message mapping where will specify source message as IDOC and target message as Mt of your file structure.

and then you will create Interface Mapping specifying source and target interface..

BTW what error are you facing exactly.

Regards,

Anu Singhal

Former Member
0 Kudos

Hi,

Check this URL:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/9202d890-0201-0010-1588-adb5e89a...

Now you can able to handle Message Mapping sequence.

Thanks,

Boopathi

Former Member
0 Kudos

Hi,

Steps to complete ur message mapping

1: In the left hand frame under “Interface objects”, right click on the “Message types” and select new.

2: Give a suitable name to the Message type.(MT_ messagetype).

3: For the section “Data type used” you can go to input help (F4) or Search help provided and choose your data type (DT_datatype) from there.

Save it.

Create a graphical mapping between the target document and the sender .

1) In the left hand frame ,expand “Mapping objects”. Right click on “Message mapping” and name it.You are now in a graphical editor.The Source message is on left, the Target message is on right.

2) As Source message select your own Message type.You can choose “Search for Integration Object”.As a reminder you can find your Idoc or Rfc under Software Component- > Namespace->Imported Objects.

3) As Target Message you can choose your Rfc .Choose “Search for Integration Object”.

4) Now that we have defined the Source and Target message, we can start defining the Mapping rules.

5) Map the fields of Source document to the equivalent fields in Target document .This can be achieved easily by locating the field in Target document and then Drag and Drop the Source fields to the respective Target Fields.

Save It.

6) You can also Test your Mapping by selecting the 'Test Tab'.

7) Fill in the values in the Idoc fields and click 'Start Transformation'. On the right hand side you will see Target Document populated with the appropriate Values.

I hope this helps

Regards ,

TJ

Former Member
0 Kudos

hi check the below links

/people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters

/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm - Collection of IDoc to Single File

note:reward points if solution found helpfull.....

regards

chandrakanth.k

Former Member
0 Kudos

Hi Kalam,

Here are a few links for Idoc-File scenarios:

[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e07dcaa0-a92b-2a10-3a96-b3d942bd1539]

[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e07dcaa0-a92b-2a10-3a96-b3d942bd1539]

[;[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09b775e-e56e-2910-1187-d8eba09c7a4a]

Hope this helps.

Regards,

Lavita.

P.S. Do reward points if the information is useful.

Thanks!

Former Member
0 Kudos

Hi Kalam,

Message Mapping is a graphical tool that lets you to convert a source format to a destination format. The following document details everything you need to know.

http://help.sap.com/saphelp_nw70/helpdata/EN/43/c4cdfc334824478090739c04c4a249/frameset.htm

Pls let us know if you need any clearification.

Sabbir