
If the text lines were not transferred with REFER_TEXT, they can then be read with this function module.
Function call:
CALL FUNCTION 'READ_REFERENCE_LINES'
EXPORTING
HEADER = ?...
IMPORTING
NEWHEADER =
TABLES
LINES = ?...
EXCEPTIONS
ID =
LANGUAGE =
NAME =
NOT_FOUND =
NO_REFERENCE =
OBJECT =
REFERENCE_CHECK =
Export parameters:
|
HEADER |
This field contains the text header of the text that contains the reference to another text. The rows of the text specified in the fields TDREFOBJ, TDREFNAME, and TDREFID are read and stored in the table LINES. Structure: THEAD |
Import parameter:
|
NEWHEADER |
Contains changed text header. The field bar specified here is usually identical with the structure transferred by the parameter HEADER. Structure: THEAD |
Table parameters:
|
LINES |
LINES contains all text lines of the reference text. Structure: TLINE |
Exceptions:
|
ID |
The text ID specified in the parameter ID does not exist in table TTXID. It must be defined there with the text module object. |
|
LANGUAGE |
The parameter LANGUAGE contains a text language key that is not defined in table T002. |
|
NAME |
The parameter NAME contains the name of a text module that does not correspond to the SAPscript conventions. Possible errors:
|
|
OBJECT |
The parameter OBJECT contains the name of a text object that does not exist in table TTXOB. |
|
NOT_FOUND |
The system did not find the specified text module. |
|
REFERENCE_CHECK |
The text module to be read does not have any text lines, but refers to the lines of another text module. This reference chain can have several levels. For the current text, the chain is interrupted, that is, one of the text modules referred to in the chain no longer exists. |
|
NO_REFERENCE |
A reference text has not been specified in fields TDREFOBJ, TDREFID, and TDREFNAME in the text header. One or more of these fields is empty. |