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

func. READ_TEXT

Former Member
0 Likes
608

Hi all,

I use the func. read_text but the text that i got is looking like this : "<AB>i</><AB>go</><AB>to</><AB>school</>"

what is the problem?does anyone competing with this undesired effect?

4 REPLIES 4
Read only

Former Member
0 Likes
589

check SO10 with the parameters that u hv passed to read text.

see what is maintained thr.

Read only

Former Member
0 Likes
589

The paragraph defined for the line may have some formatting like Tabs.

Read only

Former Member
0 Likes
589

HI,

See if you are passing the correct ID, LANGUAGE and OBJECT and using the correct type for lines paramater.

Here is a demo:

DATA : BEGIN OF ST_LINE OCCURS 0,

TDFORMAT LIKE TLINE-TDFORMAT,

TDLINE LIKE TLINE-TDLINE,

END OF ST_LINE.

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

id = '0001'

language = 'E'

name = W_TDNAME

object = 'MVKE'

tables

lines = ST_LINE

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

NOT_FOUND = 4

OBJECT = 5

REFERENCE_CHECK = 6

WRONG_ACCESS_TO_ARCHIVE = 7

OTHERS = 8

.

IF sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Vinod.

Read only

Former Member
0 Likes
589

hi,

try using READ_TEXT_INLINE

thanks