on 09-23-2011 6:22 AM
Hi All,
I am having file to RFC scenario in which i am having file name in format text_yyyymmdd.txt.
i want to read this file name and by separating the date in file name i have to pass this to one of the RFC date parameter.
please help me to sort out this.
Thanks
Swapnil
Hi Swapnil,
Here
1. Set your Adapter Specific Parameter for your sender file adapter. Make use of this blog by michal
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14 for achieving the same
2. With the help of the code described, obtain the Dynamic configuration parameters where you get the file name.
3. With the help of UDF extract the date from the file name.
DONE!
Regards
Ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
By writing simple UDF in your mapping you can Acheive this
Try this Once
DynamicConfiguration dynamicconfiguration = (DynamicConfiguration)param.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
String MyFileName = dynamicconfiguration.get(key);
String str[] = MyFileName.split("_");
return str1[1];
Map this to the date parameter(RFC) in the mapping .
Thank & Regards,
Deepthi
Edited by: Deepthi Muppasani on Sep 23, 2011 8:17 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Enable ASMA properties in sender file communication channel and Write a UDF using Dynamic Configuration and get the filename and separate the date from value and pass that value to rfc as input.
Regards,
Sunitha
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 | |
24 | |
12 | |
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.