Skip to Content

variable Substitution in rfeceiver File adapter

Hello Expert

I am creating a scenario IODC(ORDERS05) ----> file . But file name is creating based on PO number which is coming from IDOC fields .

Ex: D2B_%var1%.xml

Po number is coming from IDOC fields BELNR.I am using belwo parameter in file receiver channel.

var1 payload: ORDERS05,1, IDOC,1, E1EDK01,1,BELNR,1

but it is showing error:

"Attempt to process file failed with com.sap.aii.adapter.file.configuration.DynamicConfigurationException: Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: var1"

please help me for this issue.

Regards

P.Singh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jul 29, 2017 at 05:15 AM

    Pankaj,

    You are supposed to use the xpath of target structure .

    Br,

    Manoj

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 31, 2017 at 04:14 AM

    Hi Pankaj,

    Variable Substitution works on target side structure. Here, the parameter that you are giving is of IDoc i.e. the source side.

    That's why you're facing error.

    Regards,

    Aamir

    Add comment
    10|10000 characters needed characters exceeded