SAP 1119_CREATE Function Module for NOTRANSL: EHS: Gefahrstoff anlegen
1119_CREATE is a standard 1119 create 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: Gefahrstoff anlegen 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 1119 create FM, simply by entering the name 1119_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: 1119
Program Name: SAPL1119
Main Program: SAPL1119
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function 1119_CREATE 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 '1119_CREATE'"NOTRANSL: EHS: Gefahrstoff anlegen.
EXPORTING
* KEY_DATE = SY-DATUM "Object validity date
* CHANGE_NUMBER = "Change Number
* FLG_SPLIT_WITHOUT_CHANGENO = ' ' "
CHANGING
* FLG_ERROR = "Truth Value
TABLES
HAZSUB_HEADER = "EHS: Hazardous Substance Basic Data
* HAZSUB_TEXTDATA = "EHS: Hazardous Substance Additional Data 1 (Text Type)
* HAZSUB_NUMDATA = "EHS: Hazardous Substance Additional Data 2 (Numeric Type)
* HAZSUB_HEADERX = "EHS: Checkbox Structure for BAPI_1119_MD
* HAZSUB_TEXTDATAX = "EHS: Checkbox Structure for BAPI_1119_DT
* HAZSUB_NUMDATAX = "EHS: Checkbox Structure for BAPI_1119_DN
* EXTENSION = "Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
RETURN = "Return Parameter(s)
IMPORTING Parameters details for 1119_CREATE
KEY_DATE - Object validity date
Data type: RCGADDINF-VALDATDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGE_NUMBER - Change Number
Data type: RCGADDINF-AENNROptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_SPLIT_WITHOUT_CHANGENO -
Data type: BAPISTDTYP-BOOLEANDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for 1119_CREATE
FLG_ERROR - Truth Value
Data type: BAPISTDTYP-BOOLEANOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for 1119_CREATE
HAZSUB_HEADER - EHS: Hazardous Substance Basic Data
Data type: BAPI_1119_MDOptional: No
Call by Reference: Yes
HAZSUB_TEXTDATA - EHS: Hazardous Substance Additional Data 1 (Text Type)
Data type: BAPI_1119_DTOptional: Yes
Call by Reference: Yes
HAZSUB_NUMDATA - EHS: Hazardous Substance Additional Data 2 (Numeric Type)
Data type: BAPI_1119_DNOptional: Yes
Call by Reference: Yes
HAZSUB_HEADERX - EHS: Checkbox Structure for BAPI_1119_MD
Data type: BAPI_1119_MDXOptional: Yes
Call by Reference: Yes
HAZSUB_TEXTDATAX - EHS: Checkbox Structure for BAPI_1119_DT
Data type: BAPI_1119_DTXOptional: Yes
Call by Reference: Yes
HAZSUB_NUMDATAX - EHS: Checkbox Structure for BAPI_1119_DN
Data type: BAPI_1119_DNXOptional: Yes
Call by Reference: Yes
EXTENSION - Reference Structure for BAPI Parameters ExtensionIn/ExtensionOut
Data type: BAPIPAREXOptional: Yes
Call by Reference: Yes
RETURN - Return Parameter(s)
Data type: BAPIRET2Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for 1119_CREATE 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_key_date | TYPE RCGADDINF-VALDAT, " SY-DATUM | |||
| lv_flg_error | TYPE BAPISTDTYP-BOOLEAN, " | |||
| lt_hazsub_header | TYPE STANDARD TABLE OF BAPI_1119_MD, " | |||
| lv_change_number | TYPE RCGADDINF-AENNR, " | |||
| lt_hazsub_textdata | TYPE STANDARD TABLE OF BAPI_1119_DT, " | |||
| lt_hazsub_numdata | TYPE STANDARD TABLE OF BAPI_1119_DN, " | |||
| lv_flg_split_without_changeno | TYPE BAPISTDTYP-BOOLEAN, " SPACE | |||
| lt_hazsub_headerx | TYPE STANDARD TABLE OF BAPI_1119_MDX, " | |||
| lt_hazsub_textdatax | TYPE STANDARD TABLE OF BAPI_1119_DTX, " | |||
| lt_hazsub_numdatax | TYPE STANDARD TABLE OF BAPI_1119_DNX, " | |||
| lt_extension | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2. " |
|   CALL FUNCTION '1119_CREATE' "NOTRANSL: EHS: Gefahrstoff anlegen |
| EXPORTING | ||
| KEY_DATE | = lv_key_date | |
| CHANGE_NUMBER | = lv_change_number | |
| FLG_SPLIT_WITHOUT_CHANGENO | = lv_flg_split_without_changeno | |
| CHANGING | ||
| FLG_ERROR | = lv_flg_error | |
| TABLES | ||
| HAZSUB_HEADER | = lt_hazsub_header | |
| HAZSUB_TEXTDATA | = lt_hazsub_textdata | |
| HAZSUB_NUMDATA | = lt_hazsub_numdata | |
| HAZSUB_HEADERX | = lt_hazsub_headerx | |
| HAZSUB_TEXTDATAX | = lt_hazsub_textdatax | |
| HAZSUB_NUMDATAX | = lt_hazsub_numdatax | |
| EXTENSION | = lt_extension | |
| RETURN | = lt_return | |
| . " 1119_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM 1119_CREATE
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 VALDAT FROM RCGADDINF INTO @DATA(ld_key_date). | ||||
| DATA(ld_key_date) | = SY-DATUM. | |||
| "SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_flg_error). | ||||
| "SELECT single AENNR FROM RCGADDINF INTO @DATA(ld_change_number). | ||||
| "SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_flg_split_without_changeno). | ||||
| DATA(ld_flg_split_without_changeno) | = ' '. | |||
Search for further information about these or an SAP related objects