SAP C1E1_READ_EHS_REQ Function Module for NOTRANSL: EHS: Lesen der Meldungsart EHS_REQ
C1E1_READ_EHS_REQ is a standard c1e1 read ehs req 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 der Meldungsart EHS_REQ 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 c1e1 read ehs req FM, simply by entering the name C1E1_READ_EHS_REQ into the relevant SAP transaction such as SE37 or SE38.
Function Group: C1E1
Program Name: SAPLC1E1
Main Program: SAPLC1E1
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function C1E1_READ_EHS_REQ 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 'C1E1_READ_EHS_REQ'"NOTRANSL: EHS: Lesen der Meldungsart EHS_REQ.
IMPORTING
E_SUBID = "Substance key
E_VALDAT = "Validity Date
E_LDEPID = "
E_USER = "User Name
E_LANGU = "Language
TABLES
I_COME_TAB = "
I_COMH_TAB = "Characteristics
I_RCGCOMSTXT_TAB = "Long Text of Message
EXCEPTIONS
ATTR_SUBID_NOT_FOUND = 1 ATTR_VALDAT_NOT_FOUND = 2 ATTR_LDEPID_NOT_FOUND = 3 ATTR_USER_NOT_FOUND = 4 ATTR_LANGU_NOT_FOUND = 5
EXPORTING Parameters details for C1E1_READ_EHS_REQ
E_SUBID - Substance key
Data type: ESTRH-SUBIDOptional: No
Call by Reference: No ( called with pass by value option)
E_VALDAT - Validity Date
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
E_LDEPID -
Data type: ESTLP-LDEPIDOptional: No
Call by Reference: No ( called with pass by value option)
E_USER - User Name
Data type: SY-UNAMEOptional: No
Call by Reference: No ( called with pass by value option)
E_LANGU - Language
Data type: SY-LANGUOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for C1E1_READ_EHS_REQ
I_COME_TAB -
Data type: COMEOptional: No
Call by Reference: No ( called with pass by value option)
I_COMH_TAB - Characteristics
Data type: COMHOptional: No
Call by Reference: No ( called with pass by value option)
I_RCGCOMSTXT_TAB - Long Text of Message
Data type: RCGCOMSTXTOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ATTR_SUBID_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ATTR_VALDAT_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ATTR_LDEPID_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ATTR_USER_NOT_FOUND - User not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ATTR_LANGU_NOT_FOUND - Unable to find language
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for C1E1_READ_EHS_REQ 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_e_subid | TYPE ESTRH-SUBID, " | |||
| lt_i_come_tab | TYPE STANDARD TABLE OF COME, " | |||
| lv_attr_subid_not_found | TYPE COME, " | |||
| lv_e_valdat | TYPE SY-DATUM, " | |||
| lt_i_comh_tab | TYPE STANDARD TABLE OF COMH, " | |||
| lv_attr_valdat_not_found | TYPE COMH, " | |||
| lv_e_ldepid | TYPE ESTLP-LDEPID, " | |||
| lt_i_rcgcomstxt_tab | TYPE STANDARD TABLE OF RCGCOMSTXT, " | |||
| lv_attr_ldepid_not_found | TYPE RCGCOMSTXT, " | |||
| lv_e_user | TYPE SY-UNAME, " | |||
| lv_attr_user_not_found | TYPE SY, " | |||
| lv_e_langu | TYPE SY-LANGU, " | |||
| lv_attr_langu_not_found | TYPE SY. " |
|   CALL FUNCTION 'C1E1_READ_EHS_REQ' "NOTRANSL: EHS: Lesen der Meldungsart EHS_REQ |
| IMPORTING | ||
| E_SUBID | = lv_e_subid | |
| E_VALDAT | = lv_e_valdat | |
| E_LDEPID | = lv_e_ldepid | |
| E_USER | = lv_e_user | |
| E_LANGU | = lv_e_langu | |
| TABLES | ||
| I_COME_TAB | = lt_i_come_tab | |
| I_COMH_TAB | = lt_i_comh_tab | |
| I_RCGCOMSTXT_TAB | = lt_i_rcgcomstxt_tab | |
| EXCEPTIONS | ||
| ATTR_SUBID_NOT_FOUND = 1 | ||
| ATTR_VALDAT_NOT_FOUND = 2 | ||
| ATTR_LDEPID_NOT_FOUND = 3 | ||
| ATTR_USER_NOT_FOUND = 4 | ||
| ATTR_LANGU_NOT_FOUND = 5 | ||
| . " C1E1_READ_EHS_REQ | ||
ABAP code using 7.40 inline data declarations to call FM C1E1_READ_EHS_REQ
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 SUBID FROM ESTRH INTO @DATA(ld_e_subid). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_e_valdat). | ||||
| "SELECT single LDEPID FROM ESTLP INTO @DATA(ld_e_ldepid). | ||||
| "SELECT single UNAME FROM SY INTO @DATA(ld_e_user). | ||||
| "SELECT single LANGU FROM SY INTO @DATA(ld_e_langu). | ||||
Search for further information about these or an SAP related objects