cancel
Showing results for 
Search instead for 
Did you mean: 

Create dynamic standard text in Sapscript

Former Member
0 Kudos

Hi,

I have a requirement to create a dynamic standard text for a plant address. I need to combine the plant number from the field QALS-WERKS with a standard text ZADD_PLANT_xxxx. So the address from standard text ZADD_PLANT_WERKS will have to print on the form. Can anyone provide me with some example code to do this?

Thanks,

A.P.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In the print program..Concatenate the values..

CONCATENATE 'ZADD_PLANT_' QALS-WERKS INTO V_STANDARD_TEXT.

CONDENSE V_STANDARD_TEXT.

In the sap script

Do the following..

INCLUDE &V_STANDARD_TEXT& OBJECT TEXT ID ST

Thanks,

Naren

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you guys for your help!

0 Kudos

Hi,

You can use the function module "SAVE_TEXT". The function module is well documented and you can use it to change the text in the SAP Script standard text. You will have to do this in a subroutine in the SAP Script before you print the form.

Hope this helps,

Sudhi