SAP 1119_DELETE Function Module for NOTRANSL: EHS: Gefahrstoff löschen









1119_DELETE is a standard 1119 delete 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 löschen 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 delete FM, simply by entering the name 1119_DELETE 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_DELETE 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_DELETE'"NOTRANSL: EHS: Gefahrstoff löschen
EXPORTING
* KEY_DATE = SY-DATUM "Object validity date
* CHANGE_NUMBER = "Change Number
* VALFR = '01010001' "Lower Time Interval Limit
* VALTO = '31129999' "Upper Time Interval Limit
* FLG_RETURN_WHOLE_INTERVAL = 'X' "Indicator: Read the entire time interval
* FLG_HEADER = 'X' "
* FLG_TEXTDATA = 'X' "
* FLG_NUMDATA = 'X' "

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)
RETURN = "Return Parameter(s)
.



IMPORTING Parameters details for 1119_DELETE

KEY_DATE - Object validity date

Data type: RCGADDINF-VALDAT
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

CHANGE_NUMBER - Change Number

Data type: RCGADDINF-AENNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

VALFR - Lower Time Interval Limit

Data type: RCGADDINF-VALDAT
Default: '01010001'
Optional: Yes
Call by Reference: No ( called with pass by value option)

VALTO - Upper Time Interval Limit

Data type: RCGADDINF-VALDAT
Default: '31129999'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_RETURN_WHOLE_INTERVAL - Indicator: Read the entire time interval

Data type: BAPISTDTYP-BOOLEAN
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_HEADER -

Data type: BAPISTDTYP-BOOLEAN
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_TEXTDATA -

Data type: BAPISTDTYP-BOOLEAN
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FLG_NUMDATA -

Data type: BAPISTDTYP-BOOLEAN
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for 1119_DELETE

HAZSUB_HEADER - EHS: Hazardous Substance Basic Data

Data type: BAPI_1119_MD
Optional: No
Call by Reference: Yes

HAZSUB_TEXTDATA - EHS: Hazardous Substance Additional Data 1 (Text Type)

Data type: BAPI_1119_DT
Optional: Yes
Call by Reference: Yes

HAZSUB_NUMDATA - EHS: Hazardous Substance Additional Data 2 (Numeric Type)

Data type: BAPI_1119_DN
Optional: Yes
Call by Reference: Yes

RETURN - Return Parameter(s)

Data type: BAPIRET2
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for 1119_DELETE 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
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, "   
lv_valfr  TYPE RCGADDINF-VALDAT, "   '01010001'
lt_hazsub_numdata  TYPE STANDARD TABLE OF BAPI_1119_DN, "   
lv_valto  TYPE RCGADDINF-VALDAT, "   '31129999'
lt_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_flg_return_whole_interval  TYPE BAPISTDTYP-BOOLEAN, "   'X'
lv_flg_header  TYPE BAPISTDTYP-BOOLEAN, "   'X'
lv_flg_textdata  TYPE BAPISTDTYP-BOOLEAN, "   'X'
lv_flg_numdata  TYPE BAPISTDTYP-BOOLEAN. "   'X'

  CALL FUNCTION '1119_DELETE'  "NOTRANSL: EHS: Gefahrstoff löschen
    EXPORTING
         KEY_DATE = lv_key_date
         CHANGE_NUMBER = lv_change_number
         VALFR = lv_valfr
         VALTO = lv_valto
         FLG_RETURN_WHOLE_INTERVAL = lv_flg_return_whole_interval
         FLG_HEADER = lv_flg_header
         FLG_TEXTDATA = lv_flg_textdata
         FLG_NUMDATA = lv_flg_numdata
    TABLES
         HAZSUB_HEADER = lt_hazsub_header
         HAZSUB_TEXTDATA = lt_hazsub_textdata
         HAZSUB_NUMDATA = lt_hazsub_numdata
         RETURN = lt_return
. " 1119_DELETE




ABAP code using 7.40 inline data declarations to call FM 1119_DELETE

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 AENNR FROM RCGADDINF INTO @DATA(ld_change_number).
 
 
"SELECT single VALDAT FROM RCGADDINF INTO @DATA(ld_valfr).
DATA(ld_valfr) = '01010001'.
 
 
"SELECT single VALDAT FROM RCGADDINF INTO @DATA(ld_valto).
DATA(ld_valto) = '31129999'.
 
 
"SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_flg_return_whole_interval).
DATA(ld_flg_return_whole_interval) = 'X'.
 
"SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_flg_header).
DATA(ld_flg_header) = 'X'.
 
"SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_flg_textdata).
DATA(ld_flg_textdata) = 'X'.
 
"SELECT single BOOLEAN FROM BAPISTDTYP INTO @DATA(ld_flg_numdata).
DATA(ld_flg_numdata) = 'X'.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!