cancel
Showing results for 
Search instead for 
Did you mean: 

variable Substitution in rfeceiver File adapter

pankaj_yadav3
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member202642
Participant
0 Kudos

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

pankaj_yadav3
Participant
0 Kudos

Thanks Aamir

Thanks for your comments.

It is resloved when i used Variable Substitution on target structure.

Regards

Pankaj Singh

manoj_khavatkopp
Active Contributor
0 Kudos

Pankaj,

You are supposed to use the xpath of target structure .

Br,

Manoj