cancel
Showing results for 
Search instead for 
Did you mean: 

Query on Context Handling ( File to IDOC mapping )

former_member185846
Active Participant
0 Kudos

Hi All,

I've a scenario from file to IDOC. The structure of file is as follows.

Struct ( occurs unbounded times )

|

- Name

Str. of IDOC

Node

|

- name1

- name2

- name3

- name4

The problem is that the name in file can occur many times.

So if say name occurs 2 times in the file then it has to be mapped to name1 and name2 in IDOC.

If Name in file occurs 3 times it'll be mapped to name1, name2 and name3 in IDOC.

Am looking for some help.

Thanks,

Joe.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

How are you going to identify different sets of records?

You can use key fields and then map it as u wish.

Regards,

Alok

Former Member
0 Kudos

Hi Joe,

For every name in the file, you will have to map the value to the name field in the IDoc. Use SplitByValue node function available in the graphical editor. You will be able to achieve this mapping. For more about the usage, here's the documenation and a blog(where an example has been given):-

http://help.sap.com/saphelp_nw04/helpdata/en/21/3bb8c495125e4eb5969f0377885fe0/frameset.htm

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

Regards,

Sushumna