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

Regarding read_Text

Former Member
0 Likes
406

dear all

i want read long text description for the trasaction QM03.

i want to read the long text of subject tab....

i have given object and text id..and called the same function ..

but its showing the error while executing...." text LTQM EN not found"...

pls suggest me some solution for the same

thx in advance

jigar

2 REPLIES 2
Read only

Former Member
0 Likes
370

hi ,

i think u forgot passing value to language field the value should be 'EN'.

eg.

CALL FUNCTION 'READ_TEXT'

EXPORTING

CLIENT = SY-MANDT

id = 'LTXT'

language = 'EN'

name = <QN Number with leading zeros> " Use Conversion Exit on this field before populating with FM CONVERSION_EXIT_ALPHA_INPUT/OUTPUT

object = 'QMEL'

tables

lines = tlines

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.[/code]

regards,

pavan

Read only

Former Member
0 Likes
370

Hi,

Are you passing the correct text name. You can check the text name from table STXL.

Also if not this way then go to the long text screen and there in tab >>> Go To --> Header. There it would show you all the details of that text.Pass the same info in your FM Read_text and you should be able to see the details.

Pls revert back if you need some more info.

Regards,

pankaj