Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

flat file to idoc MATMAS05 - mapping

Hi,

I want to create 2 Idocs from one recordset.

Can any one tell me how do I map this Recordset to an Idoc?

Example source and target IDOC structures:

Source:-

<Recordset>

<SA010>

<IDENTS>1234</IDENTS>

<BEZ>Dummytxt</BEZ>

</SA010>

<SA088>

<IDENTS>1234</IDENTS>

<MARC1>010</ MARC1>

<MARC2>020</MARC2>

</SA088>

</Recordset>

Target:-

<MATMAS05>

<IDOC BEGIN="1">

<E1MARAM SEGMENT="1">

<MATNR>1234</MATNR>

<E1MARCM SEGMENT="2">

<WERKS>010</WERKS>

</E1MARCM>

</E1MARAM>

</IDOC>

</MATMAS05>

<MATMAS05>

<IDOC BEGIN="1">

<E1MARAM SEGMENT="1">

<MATNR>1234</MATNR>

<E1MARCM SEGMENT="2">

<WERKS>020</WERKS>

</E1MARCM>

</E1MARAM>

</IDOC>

</MATMAS05>

Thanks and Regards,

Eren

Former Member
Former Member replied

Ok Eren,

Sorry for late reply, had gone for dinner

Now in your mapping, right click on your IDOC topmost node and select duplicate subtree

Now for the 1st IDOC map WERKS from MARC1

and for 2nd IDOC map WERKS from MARC2

Please tell me if it works while you test your mapping

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question