cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Create two different IDoc types using Multi-Mapping?

peter_wallner2
Active Contributor
0 Likes
566

Dear experts,

I am receiving XML files from a 3rd party.
This is the challenge: these files contain multiple business documents. I have to create ORDCHG (update sales order) and SHPCON (update outbound delivery) IDocs from these, depending on a field in the payload "DELIVERY_NO":

Is this possible? Can I do this using a multi-mapping, I looked at this blog for example: https://blogs.sap.com/2011/02/24/multi-mapping-without-bpm-for-idoc-scenarios-yes-it-s-possible/
But my target message would be 2 different IDoc types, so my structure would look like this:

<?xml version="1.0" encoding="UTF-8"?>
<DELVRY07>

<IDOC BEGIN="1">
...
</DELVRY07>
<ORDERS05>

<IDOC BEGIN="1">
...
</ORDERS05>

I appreciate any input on this. Thank you.

Best regards, Peter

.

View Entire Topic
peter_wallner2
Active Contributor
0 Likes

Hello,

I solved this not using a multi-mapping but using the EDI Separator. This blog was helpful:

https://blogs.sap.com/2016/11/16/part-2-split-ups-are-hard-using-the-sap-b2b-edi-separator-adapter-f...

Best regards, Peter