Skip to Content
avatar image
Former Member

Unix code / script in Runtime operation command after message processing

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Nov 18, 2014 at 06:43 PM
    Add comment
    10|10000 characters needed characters exceeded

  • Nov 18, 2014 at 06:44 PM

    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-c54f5a1d8ae5?QuickLink=index&…

    Hope this helps.

    Regards.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 19, 2014 at 07:52 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded