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: 

Dynamic Standard text in SAPscript

Former Member
0 Kudos

Hi,

Can we use dynamica standard text in SAP script?

The standard text name is supplied by a external field. The standard text contains a address.

I want to change address based on text name.

Thanks.

Shreyas

Help will be awarded.

1 REPLY 1

Former Member
0 Kudos

Hi

In the SAPSCRIPT the std text is called by this statament:

/: INCLUDE &V_TEXT_NAME& OBJECT TEXT ID ST LANGUAGE &LAN&

The V_TEXT_NAME is the variable where the name of the std text is stored and it's filled at runtime.

Now while printing a document you shouldn't (can't) change the std text, so you should have many std text as the addresses you need to print.

So you can decide which text (address) to be printed inserting the name of the text in the variable V_TEXT_NAME.

Max