cancel
Showing results for 
Search instead for 
Did you mean: 

standard text with variable

Former Member
0 Kudos

Hello all,

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

Thanks in advance.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member585865
Contributor
0 Kudos

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.

alex_m
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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.