‎2007 Dec 20 9:57 AM
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
‎2007 Dec 20 10:11 AM
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
‎2007 Dec 20 10:13 AM
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