‎2007 Jul 20 9:24 AM
For what purpose this function is used?
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = 'VALU'
LANGUAGE = sy-langu
NAME = tdname
OBJECT = 'FEATURE'
TABLES
LINES = lines
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
Thanks.
‎2007 Jul 20 9:27 AM
All the texts within SAP are stored in the STXH/STXL table and the identification of the text is the transaction document and the text id of the text ( to support multiple texts per transaction document). Couple of days earlier LJN had mentioned the steps to get the name and text id. (double click on the text and then go to header info ).
You use FM READ_TEXT to read the information as this stable stores the information in the RAW format.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id =
language =
name =
object =
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines =
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.
SAPscript: Read text
In order to process text modules in application programs, all
information about a text module must be transferred to internal work
areas.
A text is read from the text file or text memory with this function
module. It must be described fully by specifying OBJECT, NAME, ID, and
LANGUAGE. Generic entries in these parameters are not valid.
When header information and text lines have been read successfully, they
are transferred to the work areas HEADER and LINES.
‎2007 Jul 20 9:26 AM
Hi,
In order to process text modules in application programs, all information about a text module must be transferred to internal work areas.
A text is read from the text file or text memory with this function module. It must be described fully by specifying OBJECT, NAME, ID, and LANGUAGE. Generic entries in these parameters are not valid.
When header information and text lines have been read successfully, they are transferred to the work areas HEADER and LINES.
Thanks.
‎2007 Jul 20 9:27 AM
All the texts within SAP are stored in the STXH/STXL table and the identification of the text is the transaction document and the text id of the text ( to support multiple texts per transaction document). Couple of days earlier LJN had mentioned the steps to get the name and text id. (double click on the text and then go to header info ).
You use FM READ_TEXT to read the information as this stable stores the information in the RAW format.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id =
language =
name =
object =
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines =
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.
SAPscript: Read text
In order to process text modules in application programs, all
information about a text module must be transferred to internal work
areas.
A text is read from the text file or text memory with this function
module. It must be described fully by specifying OBJECT, NAME, ID, and
LANGUAGE. Generic entries in these parameters are not valid.
When header information and text lines have been read successfully, they
are transferred to the work areas HEADER and LINES.
‎2007 Jul 20 9:27 AM
It is mainly used to read the header text/ long text...
For example , goto VF03 and give billing doc num and enter...
from menu goto--> header --> header text ( if you want to display this text you need to use this function module)
Reward points to all useful answers.
Regards,
SaiRam
‎2007 Jul 20 9:28 AM
<b>READ_TEXT.</b>
Short Text
SAPscript: Read text
In order to process text modules in application programs, all information about a text module must be transferred to internal work areas.
A text is read from the text file or text memory with this function module. It must be described fully by specifying OBJECT, NAME, ID, and LANGUAGE. Generic entries in these parameters are not valid.
When header information and text lines have been read successfully, they are transferred to the work areas HEADER and LINES.
Parameters
CLIENT
ID
LANGUAGE
NAME
OBJECT
ARCHIVE_HANDLE
LOCAL_CAT
HEADER
LINES
Exceptions
ID
LANGUAGE
NAME
NOT_FOUND
OBJECT
REFERENCE_CHECK
WRONG_ACCESS_TO_ARCHIVE
Function Group
STXD
Regards,
Pavan
‎2007 Jul 20 9:31 AM
go to www.se37.com
and type in the FM name and you can get the documentation.
regards,
srinivas
<b>*reward for useful answers*</b>
‎2007 Jul 20 9:31 AM
read_text is used to read text(header or item text) from standard transaction.