Skip to Content

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

Context handling

Hi,

I have a scenario where I am sending an XML file and I have to map it to standard matmas IDoc and post it to ECC.

In the target IDoc structure, we have one segment E1MLGNM for warehouse number and it has one child E1MLGTM for storage type for that warehouse with multiple instances.

But In the source structure, It is NOT coming as parent and child, They are in the same level with multiple instances. The warehouse number will be the key in both the segment to create a parent child relationship.

I can use SplitByValue to create target warehouse segments E1MLGNM for Each value of the source warehouse structure.

Now to map StorageType, I need to create it at the child level of the E1MLGNM instance with the same wharehouse number which is there in the source storagetype segment.

Do you have any idea how that can be acheived without using ABAP/Java mapping?

<b>Source</b>

<Warehouse Segment> -


n instance

<Warehouse Number>

<Other Fields>

</Warehouse Segment>

<Storage segment> -


n instance

<Warehouse Number>

<Storage Type>

<Other Fields>

</Storage segment>

<b>Target</b>

<Warehouse Segment> -


n instance

<Warehouse Number>

<Other Fields>

<Storage segment> -


n instance

<Storage Type>

<Other Fields>

</Storage segment>

</Warehouse Segment>

Thanks,

Vijay

Former Member
Not what you were looking for? View more on this topic or Ask a question