cancel
Showing results for 
Search instead for 
Did you mean: 

Variable Substitution error

Former Member
0 Kudos

Hello all,

I am using variable substitution for dynamic file name but I am getting this error.

Error during variable substitution: com.sap.aii.adapter.file.varsubst.VariableDataSourceException: The following variable was not found in the message payload: var1.

I have enabled Variable Substitution checkbox.

also specified varaible var1 with refernce as

payload:FIDCCP02,1,IDOC,1,EDI_DC40,1,RCVPRN,1

folowing is the structure of my payload.

- <FIDCCP02>

- <IDOC BEGIN="1">

- <EDI_DC40 SEGMENT="1">

<SNDPRN>NESAP</SNDPRN>

<RCVPOR>A000000005</RCVPOR>

<RCVPRT>LS</RCVPRT>

<RCVPRN>RCI</RCVPRN>

is variable substitution possible only with certain SP levels..?

My sp level is SP09 for XI 3.0

Please reply ASAP its urgent.

Regards,

Akhil

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Akhil,

variable substitution works from SP12 in XI3.0 .

Regards,

Rajeev Gupta

Former Member
0 Kudos

Hi,

As rajeev told it will work from SP12....for information on Variable Substitution check these links..

Variable substitution.

/people/sameer.shadab/blog/2005/09/23/an-interesting-usage-of-variable-substitution-in-xi

http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm

Regards,

phani

Answers (6)

Answers (6)

Former Member
0 Kudos

Hi Guys I will upgrade to sp12 and let you know ...

Former Member
0 Kudos

Hi,

I think you need SP12 for the usage of iable Substitution as per the requirments.

refer oss note note 705541

Thanks

Swarup

Edited by: Swarup Sawant on Apr 1, 2008 9:14 AM

Former Member
0 Kudos

hi

variable substitution is enabled from SP-12 onwards,with SP-09 it is not possible to use var substitution.just upgrade to SP-12....

note:reward points if solution found helpfull.....

regards

chandrakanth.k

Former Member
0 Kudos

Hi Akhil,

I believe you should check the patch information here:

http://help.sap.com/saphelp_nw04/helpdata/en/43/5c0c91b9065f6be10000000a1553f6/frameset.htm

Variable substitution was enabled after SP12, as far as I remember for XI 3.0

Regarding the error:

You need to give a reference to your 'var' from your target structure, which is picked up at runtime and that is why it searches the reference for 'var' in the message payload, please check this link for more:

/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i

Thanks,

Varun

former_member859847
Active Contributor
0 Kudos

Hi Akhil,

Please check once again on payload.

have a look at the following links.

warm regards

mahesh.

Former Member
0 Kudos

Does anyone have some solution to my problem?

pls reply.

regards,

Akhil

Former Member
0 Kudos

Hi Akhil,

upgrade your XI sever to SP12 and then your variable substitution will work.

Regards,

Rajeev Gupta