Skip to Content
0
Former Member
Jul 06, 2010 at 12:41 PM

How to replace a variable in SO10

642 Views

Hi,

I need to replace a variable &data& in SO10 to his value but it doesn't work.

I use the FM 'TEXT_SYMBOL_REPLACE' to replace the words in the SO10.

Could you help me please?

In the transaction SO10, we have &eric&.

DATA:

lt_text TYPE STANDARD TABLE OF tline.

data : eric type char30 value 'Test'.

CALL FUNCTION 'READ_TEXT'

EXPORTING

object = 'TEXT'

id = 'ST'

name = 'EMAIL'

language = sy-langu

IMPORTING

header = header

TABLES

lines = lines

EXCEPTIONS

not_found = 1

OTHERS = 2.

CALL FUNCTION 'TEXT_SYMBOL_REPLACE'

EXPORTING

header = header

program = sy-repid

REPLACE_TEXT = 'X'

TABLES

lines = lines.

Regards,

Shushu

Edited by: Shushu93 on Jul 6, 2010 2:42 PM

Edited by: Shushu93 on Jul 6, 2010 2:45 PM

Edited by: Shushu93 on Jul 6, 2010 2:46 PM

Edited by: Shushu93 on Jul 6, 2010 2:46 PM

Edited by: Shushu93 on Jul 6, 2010 2:47 PM