Skip to Content
avatar image
Former Member

standard text with variable

Hello all,

How a variable will be populated in a standard text? Please help.

Thanks in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jul 30, 2009 at 06:54 AM

    Hi,

    Create a standard text in transaction S010, if you want to display any text dynamically, define that variable with in the standard text between ampersands '&' . In the smartform define the same variable and pass value to it before calling the standard text.

    For example if you want to display the invoice number dynamically then in the standard text write like as mentioned below.

    &V_VBELN&.

    Hope this will help, in case of any issue please revert back.

    Thanks & Regards,

    Tulasi.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 30, 2009 at 06:56 AM

    In std text you need to mention the variable as &v_variable&, this variable should declared globally in driver program, once the program runs the variable in std text would be displayed what ever the values available in run time.

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 30, 2009 at 09:19 AM

    Hi Akira,

    you can give a variable directly in standard text &variable& like we normally give in sap scripts or smartforms.

    declare that variable in your program globally the value will come in the variable.

    Add comment
    10|10000 characters needed characters exceeded