Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Error in READ_TEXT

Former Member
0 Likes
615

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.

1 ACCEPTED SOLUTION
Read only

knitinkumarsethy
Explorer
0 Likes
567

HI,

If you are using Smartforms then you can use include text instead of read text.

Otherwise replace "<(>" and "<)>" by SPACE.

Regards,

Nitin.

4 REPLIES 4
Read only

Former Member
0 Likes
567

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

Read only

knitinkumarsethy
Explorer
0 Likes
568

HI,

If you are using Smartforms then you can use include text instead of read text.

Otherwise replace "<(>" and "<)>" by SPACE.

Regards,

Nitin.

Read only

former_member212005
Active Contributor
0 Likes
567

Was the text saved properly, it might be because of that.......

Else simply REPLACE ALL OCCURENCES of <(>&<)> with &.

Read only

Former Member
0 Likes
567

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.