on 11-18-2014 6:10 PM
Hi Experts,
My scenario is JDBC to EDI 940, I need to add one source field (ABC) in file name.
Using Runtime operation command after message processing for this requirement, Please send if you have code for this.
Note: I am using PI 7.3 dual stack and used multi mapping and File sender with classifier, BIC and split modules. So can not able to use dynamic configuration / variable substitution.
Looking only for unix script. Please provide unix script / code for adding one source field in file name using Runtime operation command after message processing.
Thank you.
Thanks for your reply.
Please provide OS/script if you have any to change file name to add value by extracting a value from payload,
If you have adapter module, provide adapter module java code with module parameters as well.
BIC map is used in receiver file channel, so no XML is possible and variable substituon is possible so
can I use below
In the receiver CC, under Modules tab, we will call an AFmodule "AF_Modules/DynamicConfigurationBean" before the "Call SAP Adapter".
In the module configuration, we will set the followinginformation.
key.0 = write http://sap.com/xi/XI/System/File FileName
value.0 = message.interface
and variable subsitution.
Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sruthi,
The main problem is that you can pass a payload element to a script without variable substitution, at least i dont know how to do it.
Are you allowed to generate an extra file?, you can generate an extra file with the string in the target directory and to use the grep instruction (Copy a line containing a string to another file in shell script - Stack Overflow)
Also you can generate the script dynamically with the string to be copied. Check this document: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/bd994384-0a01-0010-92b5-c54f5a1d8...
Hope this helps.
Regards.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sruthim
Please check the below wiki third part
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 | |
9 | |
7 | |
7 | |
6 | |
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.