on 12-17-2009 6:43 AM
Dear All,
I am working on File-PI-RFC interface. In one of the columns of RFC, I need to pass the File Name as reference.
Kindly guide me on which UDF can be used for this requirement.
Regards,
NJ
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Prerequisite: ASMA parameter 'FILE NAME' in file adapter checked
And UDF code:
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
return ourSourceFileName;
Refer to /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
BR,
Dzmitry
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The dynamic configuration UDF (with ASMA checked for FileName in Sender File Channel) to get filename can be used here.
The UDF should have a valid return statement....valid means that return filename; ...... where filename is the parameter holding the actual name of the file.....Michal's blog (on Same file name in sender and receiver is what you should lookt at)
Normally we have return "":
Regards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.