07-01-2006 4:12 PM
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.
07-01-2006 4:25 PM
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