cancel
Showing results for 
Search instead for 
Did you mean: 

One message to multiple files

0 Kudos

Hi All

I have a requirement to generate multiple flat files out of one xml file. Source xml file has multiple orders. I need to generate a different file for each order. If someone has done this before please direct me.

Thanks & Regards

Shantha Bandara.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Shantha,

There are various ways of achiving this. Possibly the quickiest way is to implement a BPM. Please do the followings..

1. Create a message mapping (1:N) )that generates your order from list of orders

2. Use a BPM step to split messages

3. Each split will be received by the same Business System.

4. File Adapter to create files for each split.

Let me know if oyu need more clearification.

sabbir

Answers (5)

Answers (5)

0 Kudos

Hi All

Thanks for every one who tried to help me up. I used the multi mapping.Content conversion at ftp adpter level was used to generate flat files. It worked perfectly as I wanted.

Thanks again for every one.

Shantha Bandara

samiullah_qureshi
Active Contributor
0 Kudos

Hi

If you don't want to use BPM then you can do it through enhanced interface determination.

You have to create a multi-mapping and create interface mapping for corresponding mapping.

Use this interface mapping in enhanced interface determination.

By doing this you an generate multiple flat files out of one xml file.

You can use following blog for refernce:-

[https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3115] [original link is broken] [original link is broken] [original link is broken];

Regards

Sami

Former Member
0 Kudos

Hi,

You can even do this without using BPM......

The below mentione dcan help u doing this ;

multimapping without BPM

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

Thanks

Sai

PS: kindly reward points if helpful

0 Kudos

Thanks for the reply.

Is there any other way of doing without BPM. I prefer not to use BPM.

Thanks again for every one.

Shantha Bandara

Former Member
0 Kudos

Hi Shantha,

You can achive this with out using BPM.

Following are the steps.

1. Define Data type, message type and Interfaces as per your requirement

2. Create a multi-mapping (1:N) to map your structures.

3. Create 1:N interface mapping

4. Configure your interface. While configuring Interface determination select Enhance radio button. and choose your interface mappngs.

Refer to Blog.

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

Regards,

Gaurav Jain

PS: kindly Reward points if you find it helpful

Edited by: Gaurav Jain on Apr 22, 2008 11:50 PM

Former Member
0 Kudos

Hi Shantha,

You can do this senario with BPM...............In BPM you need to split messages based on the Order number so that files will be recevied based in the order number ........To do this you need to create a correlation in BPM (Correlation based on Order number which is unique for every order) .by doing u can achive the mutiple receviers

Below mentioned blogs can help doing this senario

BPM-1

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

BPM-2

/people/krishna.moorthyp/blog/2006/04/08/reconciliation-of-messages-in-bpm

BPM-3

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

BPM-4

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

Thanks

Sai

PS: kindly reward points if helpful