Skip to Content
Former Member
May 17, 2007 at 06:38 AM

Dynamically assign values to variables in Standard Text



I have a requirement to send Email from a Function Module. The Body of the Email to be sent is retrieved from Standard Text. This Standard Text contain variables, for example consider below

Std Text:

Hi &Name&,

Your order for &Product& will be shipped to you within 2-3 business days.



Suppose in our custom Function Module we have the values that needs to be passed for '&Name&' and '&Product&'. How can we overwrite these variables in Std. Text, after we retrieve

it through READ_TEXT? Are there any Std FM which will help?

(Please note that these Std Texts are NOT part of any SAP Script)