Skip to Content
avatar image
Former Member

variable substitution

Hi all,

I have a small problem and hope that one of you can help me with it.

I want to use variable substitution to use a part of an Idoc segment as a filename.

The Idoc looks like this:

<ZMI_PRICES_COND01>

<IDOC BEGIN="1">

<EDI_DC40 SEGMENT="1">

...

</EDI_DC40>

<Z1MI_A931_FREIGHT SEGMENT="1">

<MANDT>100</MANDT>

My variable should just contain the word Freight.

I am thankful for all advices.

Thanks in advance!

Cornelius

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    May 29, 2006 at 12:24 PM

    Hi,

    have a look at this weblog:

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

    Regards,

    michal

    -


    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 29, 2006 at 03:28 PM

    Hi,

    If you want to set for the Segment name for the file name, it will be always constant right? So you can hard code this in the file adapter right?

    And if you want to make dynamic in such a way that, if that segment exists, then your file name should be with that segment name, then it is better to have one field having file name so that you can refer in the varibale substitution as per the blogs mentioned in the earlier post.

    Thanks,

    Moorthy

    Add comment
    10|10000 characters needed characters exceeded

  • May 29, 2006 at 12:26 PM

    Hi,

    <i>I want to use variable substitution to use a part of an Idoc segment as a filename.</i>

    You can only access the content of the field and not the name of the field dynamically.

    Just check this link out,

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

    And read the contents under variable substitution and it will help you understand the concepts better.

    Regards,

    Bhavesh

    Add comment
    10|10000 characters needed characters exceeded