SAP EFG_READ_TEXT Function Module for
EFG_READ_TEXT is a standard efg read text SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for efg read text FM, simply by entering the name EFG_READ_TEXT into the relevant SAP transaction such as SE37 or SE38.
Function Group: EFGP
Program Name: SAPLEFGP
Main Program: SAPLEFGP
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EFG_READ_TEXT pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'EFG_READ_TEXT'".
EXPORTING
X_TDNAME = "
X_TDSPRAS = "Language Key
* X_TDID = 'ST' "
* X_CLIENT = SY-MANDT "
* X_BUFFER = 'X' "General Checkbox: X or ' '
IMPORTING
Y_THEAD = "
Y_STTXTINFO = "Version Information Standard Text
TABLES
* YT_LINES = "
EXCEPTIONS
NOT_QUALIFIED = 1 FAILED = 2 NOT_FOUND = 3
IMPORTING Parameters details for EFG_READ_TEXT
X_TDNAME -
Data type: THEAD-TDNAMEOptional: No
Call by Reference: No ( called with pass by value option)
X_TDSPRAS - Language Key
Data type: THEAD-TDSPRASOptional: No
Call by Reference: No ( called with pass by value option)
X_TDID -
Data type: THEAD-TDIDDefault: 'ST'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_CLIENT -
Data type: THEAD-MANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_BUFFER - General Checkbox: X or SPACE
Data type: RF_KENNZXDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EFG_READ_TEXT
Y_THEAD -
Data type: THEADOptional: No
Call by Reference: No ( called with pass by value option)
Y_STTXTINFO - Version Information Standard Text
Data type: EFGSTTXTINFOOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for EFG_READ_TEXT
YT_LINES -
Data type: TLINEOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NOT_QUALIFIED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FAILED - The process could not be executed
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NOT_FOUND - Text could not be found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EFG_READ_TEXT Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_y_thead | TYPE THEAD, " | |||
| lv_x_tdname | TYPE THEAD-TDNAME, " | |||
| lt_yt_lines | TYPE STANDARD TABLE OF TLINE, " | |||
| lv_not_qualified | TYPE TLINE, " | |||
| lv_failed | TYPE TLINE, " | |||
| lv_x_tdspras | TYPE THEAD-TDSPRAS, " | |||
| lv_y_sttxtinfo | TYPE EFGSTTXTINFO, " | |||
| lv_x_tdid | TYPE THEAD-TDID, " 'ST' | |||
| lv_not_found | TYPE THEAD, " | |||
| lv_x_client | TYPE THEAD-MANDT, " SY-MANDT | |||
| lv_x_buffer | TYPE RF_KENNZX. " 'X' |
|   CALL FUNCTION 'EFG_READ_TEXT' " |
| EXPORTING | ||
| X_TDNAME | = lv_x_tdname | |
| X_TDSPRAS | = lv_x_tdspras | |
| X_TDID | = lv_x_tdid | |
| X_CLIENT | = lv_x_client | |
| X_BUFFER | = lv_x_buffer | |
| IMPORTING | ||
| Y_THEAD | = lv_y_thead | |
| Y_STTXTINFO | = lv_y_sttxtinfo | |
| TABLES | ||
| YT_LINES | = lt_yt_lines | |
| EXCEPTIONS | ||
| NOT_QUALIFIED = 1 | ||
| FAILED = 2 | ||
| NOT_FOUND = 3 | ||
| . " EFG_READ_TEXT | ||
ABAP code using 7.40 inline data declarations to call FM EFG_READ_TEXT
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single TDNAME FROM THEAD INTO @DATA(ld_x_tdname). | ||||
| "SELECT single TDSPRAS FROM THEAD INTO @DATA(ld_x_tdspras). | ||||
| "SELECT single TDID FROM THEAD INTO @DATA(ld_x_tdid). | ||||
| DATA(ld_x_tdid) | = 'ST'. | |||
| "SELECT single MANDT FROM THEAD INTO @DATA(ld_x_client). | ||||
| DATA(ld_x_client) | = SY-MANDT. | |||
| DATA(ld_x_buffer) | = 'X'. | |||
Search for further information about these or an SAP related objects