cancel
Showing results for 
Search instead for 
Did you mean: 

Unix code / script in Runtime operation command after message processing

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Hello,

Try to use this approach by calling custom AM before ur BIC module...

Thanks

Amit Srivastava

iaki_vila
Active Contributor
0 Kudos

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.

Harish
Active Contributor
0 Kudos