cancel
Showing results for 
Search instead for 
Did you mean: 

Separate Each Record

Former Member
0 Kudos

Hi,

Considering the scenario, IDoc>XI>File.

I would be extracting Purchase Order details from R/3.

In case, when we have more than ONE quantity of the Line Item, I would like to create a separate record for it in the file generated. e.g., If there are 20 Dell laptops ordered, I would like to have 20 different records for Dell laptop in the XML file.

Sachin.

Accepted Solutions (1)

Accepted Solutions (1)

justin_santhanam
Active Contributor
0 Kudos

Sachin,

If you want as many records as Line Item then Map the line item directly to the Target records node!! Did u tried this..

Line Item [Remove Context]----> Record

If you give the target structure then it will be more easy to suggest.

raj,

Former Member
0 Kudos

Raj,

If this is possible, how can we achieve this. As an example, say, we need the following fields in the target structure:

Material Number

Quantity (which should be one in each case)

Material Description

Now, how to proceed ?

Sachin.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

If you need to have target structure as many times as the line items appearing in source structure, this could be achieved through mapping.

Refer following links which explains one of such cases:

http://help.sap.com/saphelp_nw70/helpdata/en/79/2835b7848c458bb42cf8de0bcc1ace/frameset.htm

Probably you could get some insight from this one:

http://help.sap.com/saphelp_nw70/helpdata/en/79/2835b7848c458bb42cf8de0bcc1ace/frameset.htm

Hope these links would be helpful.

Thanks,

Bhavish

    • Kindly award points if comments are useful

former_member214364
Active Contributor
0 Kudos

Hi Sachin,

its possible in Message Mapping if your target structure is capable of generating different records based on quantity.

Please let me know if there are any issues.

Thanks,

Jag

Former Member
0 Kudos

Jag,

Can you elaborate on this ? Refer my reply to Raj.

Sachin.

justin_santhanam
Active Contributor
0 Kudos

Sachin,

Please give the proper target structure, I mean with the occurrences you defined.

raj.

Former Member
0 Kudos

Hi,

Please be clear an elaborate the Q so any one can answer.

regards,

phani