cancel
Showing results for 
Search instead for 
Did you mean: 

Create multiple IDocs

former_member605561
Participant
0 Kudos

Hi experts,

I have a scenario where XI has to read the following flat file.

-


FI010 delivery start ( 1..1)

FI020 Section start (1..n)

FI030 paymentrecord ( 1..n )

FI040 Name adresse record FI041 Meddelelsesrecord

FI080 Sektion end

FI020 Sektion start

……..

FI080 Sektion end

FI090 delivery start

-


For each FI020 section XI has to create an Idoc.

In the message mapping i can create only one idoc.

How can i split this source message into multiple messages ( dependant on FI020 section records ) so that message mapping is done for each message and mulitple IDocs are created???

Can i split the source message using file adapter?

can i use BPM transformation to do this??

Looking forward to share your ideas.......

thanks in advance

Suneel

Message was edited by: Suneel

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

For message mapping, you have to first convert the IDoc occurrence to '0 to unbound' in the idoc structure. please refer to sap note 814393.

You can use XSLT mapping, so that you have write a loop on 'FI020' records and create mulitple idocs inside the loop under one idoc package.

No need for BPM.

Thanks,

sasi

former_member605561
Participant
0 Kudos

Hi Sasi

Thanks a lot.

regards

Suneel

Answers (1)

Answers (1)

udo_martens
Active Contributor
0 Kudos

Hi Suneel,

you should use BPM to create multiple IDocs. In the basis SWCV is a example for a message split with BPM. You can easily use a message mapping to tranform 1 message in to many. You need for that a multiple-row-container. Loop over the rows and send the IDocs.

Regards, Udo

Former Member
0 Kudos

Hi,

I was reading thru the thread..

I request a help.

I have a scenario where i have a outbound idoc (Zartmas04)

Against a material it can have multiple plant information.

It is required I update 6 tables of anotehr application if the incoming messages have all the mandatory fields..Else i have to consolidate all the error (Material Plant Comination) and send a Mail

Let me know how can i achieve this

Thanks

John