on 03-15-2013 10:00 AM
Hi All,
I have a IDoc to File scenario and the output file requirement is bit tricky.
output file should be " Name_IDocNumber_TimeStamp.txt "
Can any one tell me the logic code to write the UDF and how to handle it in message mapping for this type of requirement.And can any one share me the related documentation on this requirement, and please tell me, how to define the parameters in the UDF.
Thanks,
Aravind
Hi All,
I used the variable substitution method and i got the result. thanks to all
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
In addition, you have to map the above UDF output to the root node of the target message.
Regards,
Zameer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is not tricky requirement,
Use below dynmic configuration UDF and var1 is input to UDF,var1=IDoc number.
In File receiver chanel, ASMA propoerties enable File Name.
Date currentDate = new Date();
DateFormat df = new SimpleDateFormat("yyMMddHHmmss");
String date = df.format(currentDate);
String FileName= "FileName_" +var1+"_"+date;
/* Using Dynamic Configuration */
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
conf.put(key, FileName);
Thank you,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.