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 value to a text

Former Member
0 Kudos

Hi all,

I have a requirement in which i have My text in SO10 . with text name = zhr and text id = zx.

so i used FM read text and passed the values to the FM so that read the text ,

Now i need to pass to the text.

For eg :

i have my text as dear <emp name>

i have my text in itab.

i need the emp name from my program but how to pass it in read text

How to go abt it

But in script we have some write text .. like that is there anything to pass value to the interanla table

?

TIA

rukmani

4 REPLIES 4

Former Member
0 Kudos

Hi,

As of my knowledge...sap does not provide any FM to update the varaible in the Standard text. Only thing we need to do is read the internal table and replace the varaibles with required values.

Check this FM to replace the values in string STRING_REPLACE

0 Kudos

Thanks for ur info,

But i need to pass 2,3 values from my program to my Internal table.

how can we do this using this FM string replace.

for ex : i have to replace

dear <emp name>

ur doj is <dd/m/yy> .

here i need to pass emp name as well as my doj(dd/mm/yy). so i need to pass more than 1 value how to do it ?

Former Member
0 Kudos

instead of read text fm . use a select query on stxh with ur text name and text id. u can use variables inside ur select query

Edited by: kartik tarla on Dec 1, 2008 11:40 AM

Former Member
0 Kudos

got it