on 09-10-2008 1:01 PM
Hi all,
I think Variable substitution, to get the file name dynamically, refers the target payload. Correct me if I am wrong. If i need a field from the source payload , is it possible?
Thanks and Regards
Sekhar
Hi,
The UDF is a bit confusing. Here , the input is the field from source. The output of the UDF is filename with the source field. Where should I map the output of the UDF ? I donot need to create any field in the target structure.
Thanks and Regards
Sekhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Santosh,
Your solution of using a UDF to get the file name from the source itself seems fine. But what do i need to give in the "Target file name scheme" which is a mandatory field?
Thanks and Regards
Sekhar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
>>But what do i need to give in the "Target file name scheme" which is a mandatory field?
It can be anything. However the option Use Adapter-Specific Message Attributes and File Name needs to be selected in the receiver adapter so that the filename that is set in the UDF will overwrite the one which is specified in the File Name Scheme in the CC.
Thanks
SaNv...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
>>If i need a field from the source payload , is it possible?
Yes Possible. Dont use Variable Substution use Dynamic Configuration.
Check my reply to this thread
Variable sustution will require to have the data in the target message. If in case this data is not required in the receiver file content then you have to do FCC to remove it.
Thanks
SaNv...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
It is possible from source structure, follow below steps.
1. At target structure file name write %var1%.txt
2. Select Variable Substitution option under write
var1 PAYLOAD:MESSAGETYPE,1,FIELDNAME,1
It will work
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
refer the bleow link:
Advance page tab:
Variable Substitution (Target Directory/File Name Scheme)
http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/frameset.htm
chirag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You can give Receiver Fields only.
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.