cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Variable Substitution

Former Member
0 Kudos

Hi,

I am using IDOC to File scenario where I am Sending Standard IDOC CREMAS05 to XI and than File to FTP server

File name to be used is "File_ <Vendor No>" I am using the following in receiver Communication channel.

File Name Scheme : File_%Var1%.xml

Variable Substitution :

Var1 payload:CREMAS05,1,IDOC,1,E1LFA1M,1,LIFNR,1

Payload

<?xml version="1.0";; encoding="UTF-8" ?>

<CREMAS05>

<IDOC BEGIN="1">

+ <EDI_DC40 SEGMENT="1">

- - - - - - - -

</EDI_DC40>

<E1LFA1M SEGMENT="1">

<MSGFN>005</MSGFN>

<LIFNR>0000108595</LIFNR>

Communication channel is giving error :

Message processing failed. Cause: com.sap.engine.interfaces.messaging.api.exception.MessagingException: 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 advice if my Variable Substitution is correct.

ps: I am on PI 7.0

Thanks.

Edited by: XI_Fan on May 5, 2008 10:51 PM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi

try to use lower case for variable name.

Var -> var

Regards

Raj

Former Member
0 Kudos

Thanks All,

I used Receiver Payload & lower case, and that solved my problem.

Cheers..!!

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Use lower case for variable declaration, for your case mention var1 ( instead of Var1 ).

Thanks,

Vijay Kumar T.

Satyagadadas
Active Participant
0 Kudos

I remenber we have to access it from target Structure in CC, It looks you are doing from Source

Former Member
0 Kudos

Ok.. I changed that to

payload:MT_OB_VENDOR,1,Vendor_No,1

here my recv payload is

- <ns0:MT_OB_VENDOR xmlns:ns0="http://xxx.com/demo">

<Vendor_No>0000108595</Vendor_No>

but still the same error..Pls advice

Regds

Former Member
0 Kudos

Hi

Check out this link

Enable Variable substitution in Receiver File adapter : [http://www.saptechnical.com/Tutorials/XI/Variable/substitution.htm]

*Reward points if helpful

Regards

Viswanadh Vadde