‎2007 Nov 06 2:10 AM
Hi all,
I would like to extract texts from RFQ header text. Appreciate anyone could advise which table should i reference to. Is it ok to use function "READ_TEXT_INLINE" or "READ_TEXT"? Because there maybe mulitple lines in the text field. Thanks
regards,
CL
‎2007 Nov 06 2:12 AM
You can use the FM: READ_TEXT. You may also refer to table STXH to know the object ids, object name,etc related to the data to be passed to the FM.
Regards
Gopi
‎2007 Nov 06 2:58 AM
Double click on the header text in RFQ.
Then in menu GOTO-> Header
find the Text ID
Text object
then take Tcode: SE75
text object and text id are changed there.
In order to get the content :
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id = <Text id>
language = sy-langu
name = <rfqno>
object = <Text object name>
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
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.
The contents will be available in tlines internal table.