cancel
Showing results for 
Search instead for 
Did you mean: 

How to merge five different xml input files into three output files

Former Member
0 Kudos

Hi All,

Can you please explain me to merge 5 different xml input files into 3 output xml files.

I'm looking forward for ur suggestions...

Thanks

Pullarao

Accepted Solutions (1)

Accepted Solutions (1)

prateek
Active Contributor
0 Kudos

U can collect the files using collect pattern of BPM. And then the transformation according to ur requirement would solve the purpose of 3 different output files

Regards,

Prateek

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can collect all the 5 messages into one message using cannonical mapping method and split into 3 output messages using split method in message mapping.

first you should created your first file as .xsd and similar to other 4 by using external definition.

created one more xsd file with some name and inculde the 5 .xsd files which you have created earlier by using the following xsd format if you do like you may get the solution. Hope this will helps you

<?xml version="1.0" encoding="ISO-8859-1"?>

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">

<xs:include schemaLocation="PersonCanonical.xsd" />

<xs:include schemaLocation="RegistrationCanonical.xsd" />

<xs:include schemaLocation="HeaderCanonical.xsd" />

<xs:element name="PersonProdReg">

<xs:complexType>

<xs:sequence minOccurs="0">

<xs:element ref="Header" minOccurs="0" />

<xs:element ref="Person" minOccurs="0" />

<xs:element ref="ProdReg" minOccurs="0" />

</xs:sequence>

</xs:complexType>

</xs:element>

</xs:schema>

Former Member
0 Kudos

HI

Please see the below links

/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm - Collection of IDoc to Single File

http://help.sap.com/saphelp_nw04/helpdata/en/3c/831620a4f1044dba38b370f77835cc/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/62/dcef46dae42142911c8f14ca7a7c39/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/de/766840bf0cbf49e10000000a1550b0/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/cb/15163ff8519a06e10000000a114084/content.htm

http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm

Many other examples can be found under the following link at help.sap.com

http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm

And some weblogs

https://weblogs.sdn.sap.com/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken]

/people/siva.maranani/blog/2005/05/22/schedule-your-bpm *****

/people/krishna.moorthyp/blog/2005/06/09/walkthrough-with-bpm

/people/michal.krawczyk2/blog/2005/06/11/xi-how-to-retrieve-messageid-from-a-bpm

/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit

/people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi

/people/michal.krawczyk2/blog/2005/09/04/xi-do-you-realy-enjoy-clicking-and-waiting-while-tracing-bpm-steps *****

/people/udo.martens/blog/2005/09/30/one-logical-system-name-for-serveral-bpm-acknowledgements *****

/people/sudharshan.aravamudan/blog/2005/12/01/illustration-of-multi-mapping-and-message-split-using-bpm-in-sap-exchange-infrastructure

/people/kannan.kailas/blog/2005/12/07/posting-multiple-idocs-with-acknowledgement

Also have a look at these seminars,

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/daea5871-0701-0010-12aa-c3a0c...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/e8515171-0701-0010-be98-e37be...

<b>BPM CollectPattern..</b>

http://help.sap.com/saphelp_nw2004s/helpdata/en/08/16163ff8519a06e10000000a114084/frameset.htm

Thanks !

Regards

Abhishek Agrahari

Questions are welcome here!!

<b>Also mark helpful answers by rewarding points </b>