Skip to Content
author's profile photo Former Member
Former Member

Howto give payload for variable substitution

hi experts,

I need to add variable after file name.

So I used variable

My payload is

- 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

Add a comment
10|10000 characters needed characters exceeded

Related questions

8 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2008 at 11:02 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2008 at 10:45 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2008 at 10:47 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2008 at 10:50 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

  • author's profile photo Former Member
    Former Member
    Posted on Jun 13, 2008 at 11:04 AM

    Akhil,

    Refer the below link;

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

    Regards,

    Kiran Bobbala

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 13, 2008 at 11:06 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 10:49 AM

    hi Akhil Rastogi,

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

    DO ENCOURAGE SDNers

    Regards

    chandrakanth

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 18, 2008 at 01:21 PM

    Puneet answer worked

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.