on 07-15-2011 11:09 AM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
http://help.sap.com/javadocs/pi/SP3/xpi/com/sap/aii/mapping/api/Attachment.html
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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):
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.