on 05-02-2007 5:04 PM
Hi All,
Can Standard texts contain variables by themselves. For eg : I have a std text that reads :
Customer Name : &lv_name&.
Can this be done. If yes, where do i associate lv_name with the variable in my program that I intend to populate it with.
Regards,
Preethi
The thing that u r asking is not possible but there is another way of doing it.
U read the text in an internal table and loop on this table.
Whichever u want to place the variable value give it a unique name say &&var&&.
now search for this term and repalce it with the value u want.
LOOP at itab1.
FIND &&var&& IN itab1-line.
IF sy-subrc EQ 0 .
REPLACE &&var&&. IN itab1-line WITH var1 .
ENDIF.
ENDLOOP.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That is not possible
Thanks
Seshu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.