‎2009 Jul 20 11:03 AM
Hi all,
When we use the function module READ_TEXT, the symbol '&' come as <(>&<)>.
Is there any function module or any other way to print it properly...
Plz suggest.
‎2009 Jul 20 11:40 AM
HI,
If you are using Smartforms then you can use include text instead of read text.
Otherwise replace "<(>" and "<)>" by SPACE.
Regards,
Nitin.
‎2009 Jul 20 11:12 AM
Hi
use fallowing function module to work with..
call function 'READ_TEXT'
exporting
id = 'ST'
language = sy-langu
name = w_stdtxt
object = 'TEXT'
importing
header = header
tables
lines = letter
exceptions
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
others = 8.
-
call function 'TEXT_SYMBOL_REPLACE'
exporting
endline = 999
header = header
program = 'MP905100'
startline = 1
tables
lines = letter.
-
call function 'EDIT_TEXT'
exporting
display = ' '
EDITOR_TITLE = ' '
header = header
PAGE = ' '
WINDOW = ' '
save = ''
LINE_EDITOR = 'X'
CONTROL = ' '
PROGRAM = ' '
LOCAL_CAT = ' '
IMPORTING
FUNCTION =
NEWHEADER =
RESULT =
tables
lines = letter
exceptions
id = 1
LANGUAGE = 2
LINESIZE = 3
NAME = 4
OBJECT = 5
TEXTFORMAT = 6
COMMUNICATION = 7
OTHERS = 8
_____________________________________
Thanks,
Deepanker Dwivedi
‎2009 Jul 20 11:40 AM
HI,
If you are using Smartforms then you can use include text instead of read text.
Otherwise replace "<(>" and "<)>" by SPACE.
Regards,
Nitin.
‎2009 Jul 20 11:50 AM
Was the text saved properly, it might be because of that.......
Else simply REPLACE ALL OCCURENCES of <(>&<)> with &.
‎2009 Jul 20 1:30 PM
Hi
In SO10 Object( i suppose from there u r reading text using 'READ_TEXT')
open that text object>Change>Goto>Change editor>form here remove those
unwanted characters and save.