Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass dynamic variable to Standard text

Former Member
0 Kudos

Hi All,

Can you please tell me how can we pass a dynamic value to Standard text?

Thank you,

4 REPLIES 4

Former Member
0 Kudos

Hi,

Goto SO10 Tcode

Give :- Text Name:- any Name

Text Id :- ST

Language:- required language

Now the Text which you want to print along with the Dynamic variable,

Ex:- Sales order number is &VTTP-TKNUM&

Save and Activate

above is i have given it VTTP-TKNUM, you can give field name which hold dynamic value.

Now call the above created Standard text in your Form and check it.

Please close the thread, if solved

Regards,

Aditya

0 Kudos

Hi ,

I have one standard text which contained sales order number as dynamic variable.In SAPMV45A,This text is getting displayed through the function module 'READ_TEXT_INLINE'. But the problem is that the dynamic variable is not displying in the screen.

The Text is

<H>Template Style</>

&vbap-vbeln& T1,,,,T2,,T3,,T4

<H>Background Black Grey,,Crinson</>

<H>Buttons,,Icon,, Bevel</>

But when it displyed in the screen

Template Style

T1 T2 T3 T4

Background Black Grey Crinson

Buttons Icon Bevel

How can we disply dynamic variables through a standard text.

0 Kudos

Hi,

Did you check whether the dynamic variables are holding any data or not.

Regards,

Aditya

0 Kudos

Hi Aditya,

ya i checked the variable VBAP-VBELN is not holding value.But even i changed the value in debugging mode but i didn't get that value in the output.this function module READ_TEXT_INLINE is getting called in standard sap program LV70TO16 .the sales document number and order line number are passed to the function module 'READ_TEXT_INLINE' for the parameter 'NAME' as '0000028970000020' .