cancel
Showing results for 
Search instead for 
Did you mean: 

Collect multiple type of idocs in one target message

Former Member
0 Kudos

Hi,

I want to collect several idocs (WP_PLU, WP_EAN) on one target message (FILE), group by partner.

I known it's possible to to that using BPM but, because of performance reason, i can't use this option.

There is another way to do it?

Thanks,

Carme.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks to your answer. However, this is not exactly my requirement.

I need to explain it better...

Target filename must contains records with information of both kind of idocs in the same line.

I can't serialize (append) the information at the end, so i need to map together.

In fact, target file could be an Excel file or a text file , depending of partner number.

Regards,

Carme.

Former Member
0 Kudos

You can't accomplish this then without using Collect Messages block from ccBPM.

PriyankaAnagani
Active Contributor
0 Kudos

Hi,

If you need to map the IDOCs togther to a single target field, then you have to use BPM only. Because the IDOCs might come at different times. So, to collect them & map to target, you have to use ccBPM

Thanks

Priyanka

former_member854360
Active Contributor
0 Kudos

Hi ,

Other than BPM you can do but it will be complex.

Then you drop all the IDOC XML file in a folder.

And then pick up all the file using file adapter.

File adapter can support attachments in Sender File adapter (NFS)

you can use additional Files option - http://help.sap.com/saphelp_nw04/helpdata/en/3c/b4a6490a08cd41a8c91759c3d2f401/content.htm

one file will come as a main payload otheres will come as an attachment.

Then in mapping you need read those attchment from input data and map it to target.

Check this link: /people/samuel.chandrasekaran2/blog/2008/10/06/xi-mail-adapter-dynamically-building-attachment-and-message-body-content-using-a-simple-udf

Also this thread

http://help.sap.com/javadocs/pi/SP3/xpi/com/sap/aii/mapping/api/Attachment.html

former_member854360
Active Contributor
0 Kudos

Hi ,

You can create IDOC to File Scenarion with dynamic config for file name.

Put partner no in file name.

then in file adapter set file creation mode as append.

so first for partner A and B you receives 4 IDOCS one by one.

WP_PLU for Partner A----


File create(A.txt and put the data)

WP_PLU for Partner B----


File create(B.txt and put the data)

WP_EAN for partner A----


(File A.txt alrady present so Append to A.txt)

WP_EAN for partner B----


(File B.txt alrady present so Append to B.txt)

Former Member
0 Kudos

Use the receiver file with the Append mode. Then, you would have different channels saving under different files. ieg: CC1 saves under PartnerA.txt, and CC2 saves under PartnerB.txt. Then, on the Receiver Determination you would create the conditions to check for each IDOC to which communication channel the message would be sent.

Check also the thread below for more information about the append mode (in the thread, also the requirement is similar):