05-02-2006 6:25 AM
Hi Alll,
I am using FM READ_TEXT to read Order Number Long Text
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = ''
LANGUAGE = SY-LANGU
NAME = NAME
OBJECT = 'AUFK'
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
TABLES
LINES = IT_TEXT
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
.
What value I will use for parameter ID.
Thanks,
Pratibha
05-02-2006 6:28 AM
Pratibha,
Best thing for this is to the long text editor of an existing order, in the full screen mode.
There in the Menu -- Go To --> HEader you can see the values for the parameters TDOBJECT, TDNAME and TDID.
Regards,
Ravi
Note : Please mark the helpful answers
05-02-2006 6:28 AM
u can goto the long text editor(near the box wher u c the texts)..there goto-->header, u ll c the ID that u need to put ther..
hope it helps,
Regards,
Bikash
05-02-2006 6:53 AM
Hi,
Thanks for reply.
I am using ID = 'KOPF' and OBJECT = 'AUFK'.
But it gives me an error.
Pratibha.
05-02-2006 6:55 AM
The object look OK but the ID usually is only 2 CHAR length.
Regards,
Ravi
05-02-2006 6:57 AM
HI
GOOD
READ_TEXT To load long text into SAP
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = "Text ID
language = "Laguage
name = "Text name
object = "text object
ARCHIVE_HANDLE = 0
IMPORTING
HEADER =
tables
lines = IT_TEXTS "Internal table
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.
GO THROUGH THIS LINK
http://www.sapdevelopment.co.uk/sapscript/sapscript_texts.htm
THANKS
MRUTYUN