cancel
Showing results for 
Search instead for 
Did you mean: 

Can standard text contain variables that can be linked to report programs?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

That is not possible

Thanks

Seshu