SAP C14G_TEXT_READ Function Module for NOTRANSL: EHS: Lesen eines Langtextes
C14G_TEXT_READ is a standard c14g text read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: EHS: Lesen eines Langtextes processing and below is the pattern details for this FM, 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 c14g text read FM, simply by entering the name C14G_TEXT_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: C14G
Program Name: SAPLC14G
Main Program: SAPLC14G
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function C14G_TEXT_READ 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 'C14G_TEXT_READ'"NOTRANSL: EHS: Lesen eines Langtextes.
EXPORTING
I_TABLENAME = "
* I_FIELDNAME = ' ' "
* I_LANGUAGE = "Language Key
I_RECN = "
I_ACTN = "
* I_FLG_EXIST_CHECK = ESP1_FALSE "
IMPORTING
E_LTXT_HEAD = "
E_FLG_FOUND = "
TABLES
* E_LINE_TAB = "
EXCEPTIONS
PARAMETER_ERROR = 1 TEXT_READ_FAILED = 2
IMPORTING Parameters details for C14G_TEXT_READ
I_TABLENAME -
Data type: ESP1_TAB_NAMEOptional: No
Call by Reference: No ( called with pass by value option)
I_FIELDNAME -
Data type: ESP1_FIELD_NAMEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_LANGUAGE - Language Key
Data type: SY-LANGUOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RECN -
Data type: RCGUKEY-RECNOptional: No
Call by Reference: No ( called with pass by value option)
I_ACTN -
Data type: RCGUKEY-ACTNOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_EXIST_CHECK -
Data type: ESP1_BOOLEANDefault: ESP1_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for C14G_TEXT_READ
E_LTXT_HEAD -
Data type: THEADOptional: No
Call by Reference: No ( called with pass by value option)
E_FLG_FOUND -
Data type: ESP1_BOOLEANOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for C14G_TEXT_READ
E_LINE_TAB -
Data type: TLINEOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
PARAMETER_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TEXT_READ_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for C14G_TEXT_READ 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: | ||||
| lt_e_line_tab | TYPE STANDARD TABLE OF TLINE, " | |||
| lv_e_ltxt_head | TYPE THEAD, " | |||
| lv_i_tablename | TYPE ESP1_TAB_NAME, " | |||
| lv_parameter_error | TYPE ESP1_TAB_NAME, " | |||
| lv_e_flg_found | TYPE ESP1_BOOLEAN, " | |||
| lv_i_fieldname | TYPE ESP1_FIELD_NAME, " SPACE | |||
| lv_text_read_failed | TYPE ESP1_FIELD_NAME, " | |||
| lv_i_language | TYPE SY-LANGU, " | |||
| lv_i_recn | TYPE RCGUKEY-RECN, " | |||
| lv_i_actn | TYPE RCGUKEY-ACTN, " | |||
| lv_i_flg_exist_check | TYPE ESP1_BOOLEAN. " ESP1_FALSE |
|   CALL FUNCTION 'C14G_TEXT_READ' "NOTRANSL: EHS: Lesen eines Langtextes |
| EXPORTING | ||
| I_TABLENAME | = lv_i_tablename | |
| I_FIELDNAME | = lv_i_fieldname | |
| I_LANGUAGE | = lv_i_language | |
| I_RECN | = lv_i_recn | |
| I_ACTN | = lv_i_actn | |
| I_FLG_EXIST_CHECK | = lv_i_flg_exist_check | |
| IMPORTING | ||
| E_LTXT_HEAD | = lv_e_ltxt_head | |
| E_FLG_FOUND | = lv_e_flg_found | |
| TABLES | ||
| E_LINE_TAB | = lt_e_line_tab | |
| EXCEPTIONS | ||
| PARAMETER_ERROR = 1 | ||
| TEXT_READ_FAILED = 2 | ||
| . " C14G_TEXT_READ | ||
ABAP code using 7.40 inline data declarations to call FM C14G_TEXT_READ
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.| DATA(ld_i_fieldname) | = ' '. | |||
| "SELECT single LANGU FROM SY INTO @DATA(ld_i_language). | ||||
| "SELECT single RECN FROM RCGUKEY INTO @DATA(ld_i_recn). | ||||
| "SELECT single ACTN FROM RCGUKEY INTO @DATA(ld_i_actn). | ||||
| DATA(ld_i_flg_exist_check) | = ESP1_FALSE. | |||
Search for further information about these or an SAP related objects