cancel
Showing results for 
Search instead for 
Did you mean: 

Split XML into separate messages as well as use different message mappings

Former Member
0 Kudos

Hi all,

I have to process a PO XML file in XI, that contains multiple POs, but the challenge is that within the file, it not only contains PO creation but also PO update. Which means I have to go through 2 different message mappings as well.

I'm just thinking is it possible for me to split the file up into 3 separate XML and than pushing it back into XI interface mapping?

<XML>

<POList>

<PO1 action="create">.....</PO1>

<PO2 action="create">.....</PO2>

<PO3 action="update">.....</PO3>

</POList>

</XML>

So I need 3 IDOCs created

IDOCtype : pordcr101 PO Number = PO1

IDOCtype : pordcr101 PO Number = PO2

IDOCtype : pordch01 PO Number = PO3

Regards.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You have to go for multimapping. And for * to Idoc, BPM is required.

thanks

farooq

Answers (3)

Answers (3)

former_member192295
Active Contributor
0 Kudos

Hi,

It is possible through multi mapping, according to your requirement source have one structure but target have 3 idocs. so accordingly configure in mapping and fill all mandatory fields in idoc. It will work.

XML Source file..........MULTI MAPPING..IDOC1 STRUCTURE

................................IDOC2 STRUCTURE

................................IDOC3 STRUCTURE

I hope now clear

Former Member
0 Kudos

Hi all,

Sorry I think i've forgotten to add this, but can Multi mapping be done with a target structure as IDOC, without ccBPM?

I've senn quite a few blog posts, it looks that it will not be possible right?

Thanks

XML Source file..........MULTI MAPPING..IDOC1 STRUCTURE

................................IDOC2 STRUCTURE

................................IDOC3 STRUCTURE

Former Member
0 Kudos

I've been reading up on multimapping and it would seem that this would not work if the output is a IDOC.

Question :-

Using the XML file below:-

<XML>

<POList>

<PO1 action="create">.....</PO1>

<PO2 action="create">.....</PO2>

<PO3 action="update">.....</PO3>

</POList>

</XML>

Can I create 3 different Interface mappping, 3 message mapping, and than under interface determination I add a condition to check for the <action> flag, based on the flag, to use the correct Interface mapping?

Would XI create 3 different IDOCs?

former_member189441
Active Participant
0 Kudos

Hi,

you can use IDOC's as target in multiMapping.you can find it in the Below link.

Message Structures

You can use (fault) message types, IDocs, RFCs (request, response, or fault messages), and message structures from external definitions in multi-mappings. The latter originate from WSDL, DTD, and XSD documents that the Integration Builder converts to WSDL before using them.

http://help.sap.com/saphelp_erp2004/helpdata/en/21/6faf35c2d74295a3cb97f6f3ccf43c/content.htm

Former Member
0 Kudos

HI.

Solution a you problem in next forum.

/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

Atte Claudio León.

Remember the points.