on 2016 Oct 17 8:46 PM
Hi Experts.
I'm reading a flat file using receiver file adapter in PI 7.5, and then converting it to xml using FCC.
However, I need to save the file name to an element of the resulting XML after conversion, to later pass that value to a RFC.
Any ideas on how can I achieve this?
Thanx
Hi Jesus,
You can use the ASMA options of the file sender channel to record the file name. Then you can do a simple graphical mapping with a UDF to extract the dynamic configuration data and pass the result to an element within the XML message. The basic UDF code would be:
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "FileName");
return conf.get(key);
Regards,
Ryan Crosby
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jesus,
Create a generic UDF in common software component and reuse the UDF in all the message mappings for this kind of requirement as shown in below blog.
Reuse FunctionLibrary for DynamicConfiguration and Message Header Attributes
Regards,
Praveen.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.