on 07-29-2011 11:18 AM
Hi folks,
I have an Idoc2File scenario where I am generating an xml file from the incoming Idoc.
I generate the filename with timestamp and random number in the dynamic conf. object and I need to pass that name back to the sender sap system so they can store idoc num and filename.
Is there a way to pass that filename to a different mapping?
Or is there an other way to achieve this?
thanks
Gabor
Hi,
Make a RFC look to the ECC system and send your IDOC number and the FIlename using Function Module.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Chandra, RFC lookup works perfectly for that scenario, reward points are yours.
(BPM was not an option)
Just curiosity: what if I wanted to write a logfile (e.g a filelist.txt)on the same sftp server next to the real msg files? Is it possible to pass the filename to that log interface somehow? without bpm?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
As per my understanding. u want your log filename should be same as the filename which you are sending to ECC system.
In Mapping use Dynamic Configuration and assign the created filename to Filename parameter of File adapter, create another Receiver agreement and in Communication Channel, check the checkbox against filename under ASMA.
Hi you can Go for BPM
In Bpm Export the filename as parameter from the mapping and import that filename into second mapping
/people/jin.shin/blog/2008/02/14/sap-pi-71-mapping-enhancements-series-parameterized-message-mappings
or
send the IDOC to two receivers
one is FILE
Next is ECC itself
in second mapping use the same mapping logic for file name and send it to ECC.
in this case timestamp may differ in two mappings
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.