cancel
Showing results for 
Search instead for 
Did you mean: 

Howto give payload for variable substitution

Former Member
0 Kudos

hi experts,

I need to add variable after file name.

So I used variable

My payload is

- <ns1:MTI_RCIInterface xmlns:ns1="http://abcd.com/FI_IDOC_XXX_FILE">

- <RS>

- <HEADER>

<H_CODTYPENR>H</H_CODTYPENR>

<H_IDENT>EDCXQ42</H_IDENT>

<H_NUMSEQ>00001</H_NUMSEQ>

<H_DATE>20080613</H_DATE>

</HEADER>

I want to use H_IDENT.

Please suggest what i give in refernce

I gave

payload:RS,1,HEADER,1,H_IDENT,1

pl. help

Akhil

Accepted Solutions (0)

Answers (8)

Answers (8)

Former Member
0 Kudos

Puneet answer worked

Former Member
0 Kudos

hi Akhil Rastogi,

Try to close the thread if you get suitable answers....hope you got it..

DO ENCOURAGE SDNers

Regards

chandrakanth

GabrielSagaya
Active Contributor
0 Kudos

goto ID->File Receiver CC-->

FileName Scheme %var1%.xml

Variable Substitution-->

var1=payload:RS,1,HEADER,1,H_IDENT,1

/people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii

Former Member
0 Kudos

Akhil,

Refer the below link;

[http://www.saptechnical.com/Tutorials/XI/Variable/substitution.htm]

Regards,

Kiran Bobbala

Former Member
0 Kudos

Akhil,

Lets suppose this is ur target filename :

FI_IDOC_XXX_FILE

Where XXX is H_IDENT

then in file name schema : FI_IDOC_%var%_FILE

Variable Substituiton:

Variable Name--> var

reference --> payload:MTI_RCIInterface,1,RS,1,HEADER,1,H_IDENT,1

I am sure this will work.

Former Member
0 Kudos

Hi Akhil,

Have a look at blog. It will help you.

http://www.saptechnical.com/Tutorials/XI/Variable/substitution.htm

Thanks,

Punit

Edited by: punit jhawar on Jun 13, 2008 12:50 PM

Former Member
0 Kudos

Hi I am getting this on RWB

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

var1 is the variable name i used.

why it says it cannot found var1 in message payload.

I am using xi 3.0 sp09..is that a problem.

Thanks

Akhil

Former Member
0 Kudos

Hi All,

Puneet your thing worked,

In runtime workbench I see message delivered and file created with name what i wanted but strange thing is File is not there.

any guess

Akhil

Former Member
0 Kudos

Akhil,

Good to know that my input helped you.

About the recent issue, I would suggest you to check the messages in RWB--> CC Monitoring and see exactly where is the problem.

Make sure that you can access the target folder using the speciified login details.

Let us know the messages you see out there and may be we can help you.

Former Member
0 Kudos

if u r using SP12

then

Solution to the problem encountered using Variable Substitution with XI-SP12

/people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12

SAP NetWeaver XI: Variable Substitution with Adapter-Specific Message Attributes via DynamicConfigurationBean

/people/jin.shin/blog/2007/04/27/sap-netweaver-xi-variable-substitution-with-adapter-specific-message-attributes-via-dynamicconfigurationbean

regards

chandrakanth

Former Member
0 Kudos

hi akhil,

go thru the below and follow accordingly,

An interesting usage of Variable Substitution in XI

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

regards

chandra