Skip to Content
0

variable Substitution in rfeceiver File adapter

Jul 28, 2017 at 09:39 PM

86

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Manoj K Jul 29, 2017 at 05:15 AM
0

Pankaj,

You are supposed to use the xpath of target structure .

Br,

Manoj

Share
10 |10000 characters needed characters left characters exceeded
Aamir Khan Jul 31, 2017 at 04:14 AM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Thanks Aamir

Thanks for your comments.

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

Regards

Pankaj Singh

0