cancel
Showing results for 
Search instead for 
Did you mean: 

How to transfer multi-input xml file to One xml file using BPM?

Former Member
0 Kudos

Hi!

Using BPM, We wana transfer multiful xml file to One xml at Remote FTP Server.

I don't know how to design BPM.

============== samle1: input xml====================

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

<!DOCTYPE Shipments SYSTEM "DTD/Shipment.dtd">

<Shipments>

<sendingPartnerID>XXX</sendingPartnerID>

<receivingPartnerID>XXX_UPSTMS</receivingPartnerID>

<receivingMessageType>TPSDLS</receivingMessageType>

<Shipment ID="0081646547" Type="CREATE">

<CustomerID>XXX</CustomerID>

.................

</Shipment>

</Shipments>

============== samle2: output xml====================

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

<!DOCTYPE Shipments SYSTEM "DTD/Shipment.dtd">

<Shipments>

<sendingPartnerID>XXX</sendingPartnerID>

<receivingPartnerID>XXX_UPSTMS</receivingPartnerID>

<receivingMessageType>TPSDLS</receivingMessageType>

<Shipment ID="0081646547" Type="CREATE">

.................

</Shipment>

<Shipment ID="0081886548" Type="CREATE">

.................

</Shipment>

<Shipment ID="0081646999" Type="CREATE">

.................

</Shipment>

</Shipments>

Message was edited by: ChangSeop Song

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

So you need a multi Mapping in bpm?

Did you see this

/people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi

Regards,

Anirban

Former Member
0 Kudos

Hi,

Since you have idoc this is another similar weblog,

i am sure you will like it,

/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm

Uses collection in pbm for many idocs.

Regards,

Anirban.

Former Member
0 Kudos

Thanks for your answer..

I have a another question related the above.

In My system, Input xml file is created by another application irregularly.

Also, Output xml file is sended only one for a day.

In this case,

How can I check the last file inbounded during BPM processing?

How can I stop the loop of BPM processing?

Former Member
0 Kudos

Hi,

<i>How can I check the last file inbounded during BPM processing?

</i>

You can do it in t code sxmb_moni

<i>How can I stop the loop of BPM processing?

</i>

1.Logon to the ABAP stack of XI.

2.Then,execute the transaction "SWWL" to delete the workflow items. BPM will be stopped, but this is for a bpm struck in endless loop, in other you may specify conditions.

Regards,

Anirban.

Former Member
0 Kudos

Hi,

Just forgot another thing.There is also a good pdf which defines all these process, please download at

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3bf550d4-0201-0010-b2ae-856...

Refer the part Collecting and Bundling Messages - One Interface.....Hope this helps,

Regards,

Anirban.

Answers (2)

Answers (2)

bhavesh_kantilal
Active Contributor
0 Kudos

Hi,

To convert multiple xml files into a single file, you will have to perform a N:1 mapping.

The following tutorials are available on SAP to help you understand BPM and also to collect multiple XML messages so that they can be mapped into a single message. Check them out,

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

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

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

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

Regards,

Bhavesh

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

>>>Using BPM, We wana transfer multiful xml file to One xml at Remote FTP Server.

do you want to send multiple xml files to one file?

if so then have a look at the collect pattern for the BPM

it allows you to collect messages and then in the mapping step you can bundle then in a one message that you can send to your FTP folder

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

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>