10-21-2015 6:25 PM
I have a text symbol with variables as below,
Dear &Namev& &Name1&,
When I use the FM 'TEXT_SYMBOL_REPLACE' to replace the texts, it's replaced as
Dear
Archna
Raja
,
The Formatting is lost. How should i overcome this?
I tried even using(C) for the variables. But it doesn't work.
Request your inputs in this regard.
-
Archna
10-22-2015 9:59 AM
Try calling FORMAT_TEXTLINES FM after TEXT_SYMBOL_REPLACE.
Sample code
call function 'FORMAT_TEXTLINES'
exporting
* CURSOR_COLUMN = 0
* CURSOR_LINE = 0
* ENDLINE = 99999
formatwidth = 128
* LINEWIDTH = 132
* STARTLINE = 1
* LANGUAGE = SY-LANGU
* IMPORTING
* NEW_CURSOR_COLUMN =
* NEW_CURSOR_LINE =
tables
lines = ilines. "This internal table is populated by TEXT_SYMBOL_REPLACE . Just pass it as it is
R