on 04-10-2015 6:29 AM
Hi Experts,
I am making an RFC to FILE scenario.
The target file name depends upon one of the field in the incoming message i.e. IF_VALUE.
The target structure should not have this field - IF_VALUE. So I cannot use variable substitution in Receiver File Adapter.
For Sender RFC Adapter, can I get the Dynamic Configuration where I can set the file-name?
If not, is there any other way out. Please suggest.
Thanks and Regards,
Rana Brata De
Hi Rana
Do you have a message mapping in this scenario?
If yes, you can set the target filename in Dynamic Configuration irrespective of what sender adapter you use. Just use a UDF to set the filename in the following attribute and set ASMA on the file receiver channel.
Attribute: FileName
Namespace: http://sap.com/xi/XI/System/File
There are plenty of sample of UDF to set the filename on SCN. Just need to find one and tweak accordingly. One example is in the blog below, instead of doing a get filename, the value of your source field should be used instead.
Rgds
Eng Swee
Message was edited by: Eng Swee Yeoh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
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.