SAP OIJ_EL_C_PREPARE_DELETE Function Module for Prepare delete of tables
OIJ_EL_C_PREPARE_DELETE is a standard oij el c prepare 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 Prepare delete of tables 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 oij el c prepare delete FM, simply by entering the name OIJ_EL_C_PREPARE_DELETE into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIJ_EL_C
Program Name: SAPLOIJ_EL_C
Main Program: SAPLOIJ_EL_C
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIJ_EL_C_PREPARE_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 'OIJ_EL_C_PREPARE_DELETE'"Prepare delete of tables.
EXPORTING
* IV_REAL_DELETE = "boolean variable (X=true, -=false, space=unknown)
* IV_VBELN = "Sales Document
IV_POSNR = "OIL-TSW: Document item number
* IV_DELIND = "Deletion indicator
CHANGING
XT_CP_LAYT = "Structure Charter party and laytime/demurrage (table type)
XT_CP_LOC = "Structure charter contract: load/discharge loc (table type)
XT_CP_PROD = "Structure CP contracts: products and prod. gr. (table type)
XT_LAYT_EV = "Structure Laytime start and end events (table type)
XT_LAYT_INF = "Structure Laytime influencing events (table type)
XT_DOC_EV = "Structure rules for nomination events (table type)
* XT_DOC_MOT = "TSW Details header / internal structure (table type)
* XT_DOC_M_MOT = "Multiple MoT internal structure (table type)
* XT_DOC_I_REF = "Document item reference to nomination structure (table type)
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLOIJ_EL_C_001 Customer screen PBO
EXIT_SAPLOIJ_EL_C_002 Customer screen PAI
IMPORTING Parameters details for OIJ_EL_C_PREPARE_DELETE
IV_REAL_DELETE - boolean variable (X=true, -=false, space=unknown)
Data type: BOOLEANOptional: Yes
Call by Reference: Yes
IV_VBELN - Sales Document
Data type: VBAP-VBELNOptional: Yes
Call by Reference: Yes
IV_POSNR - OIL-TSW: Document item number
Data type: OIJ_POSNROptional: No
Call by Reference: Yes
IV_DELIND - Deletion indicator
Data type: OIJ_DELINDOptional: Yes
Call by Reference: Yes
CHANGING Parameters details for OIJ_EL_C_PREPARE_DELETE
XT_CP_LAYT - Structure Charter party and laytime/demurrage (table type)
Data type: ROIJ_EL_CP_LAYT_TOptional: No
Call by Reference: Yes
XT_CP_LOC - Structure charter contract: load/discharge loc (table type)
Data type: ROIJ_EL_CP_LOC_TOptional: No
Call by Reference: Yes
XT_CP_PROD - Structure CP contracts: products and prod. gr. (table type)
Data type: ROIJ_EL_CP_PROD_TOptional: No
Call by Reference: Yes
XT_LAYT_EV - Structure Laytime start and end events (table type)
Data type: ROIJ_EL_LAYT_EV_TOptional: No
Call by Reference: Yes
XT_LAYT_INF - Structure Laytime influencing events (table type)
Data type: ROIJ_EL_LAYT_INF_TOptional: No
Call by Reference: Yes
XT_DOC_EV - Structure rules for nomination events (table type)
Data type: ROIJ_EL_DOC_EV_TOptional: No
Call by Reference: Yes
XT_DOC_MOT - TSW Details header / internal structure (table type)
Data type: ROIJ_EL_DOC_MOT_TOptional: Yes
Call by Reference: Yes
XT_DOC_M_MOT - Multiple MoT internal structure (table type)
Data type: ROIJ_EL_DOC_M_MOT_TOptional: Yes
Call by Reference: Yes
XT_DOC_I_REF - Document item reference to nomination structure (table type)
Data type: ROIJ_EL_DOC_I_REF_TOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for OIJ_EL_C_PREPARE_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_xt_cp_layt | TYPE ROIJ_EL_CP_LAYT_T, " | |||
| lv_iv_real_delete | TYPE BOOLEAN, " | |||
| lv_iv_vbeln | TYPE VBAP-VBELN, " | |||
| lv_xt_cp_loc | TYPE ROIJ_EL_CP_LOC_T, " | |||
| lv_iv_posnr | TYPE OIJ_POSNR, " | |||
| lv_xt_cp_prod | TYPE ROIJ_EL_CP_PROD_T, " | |||
| lv_iv_delind | TYPE OIJ_DELIND, " | |||
| lv_xt_layt_ev | TYPE ROIJ_EL_LAYT_EV_T, " | |||
| lv_xt_layt_inf | TYPE ROIJ_EL_LAYT_INF_T, " | |||
| lv_xt_doc_ev | TYPE ROIJ_EL_DOC_EV_T, " | |||
| lv_xt_doc_mot | TYPE ROIJ_EL_DOC_MOT_T, " | |||
| lv_xt_doc_m_mot | TYPE ROIJ_EL_DOC_M_MOT_T, " | |||
| lv_xt_doc_i_ref | TYPE ROIJ_EL_DOC_I_REF_T. " |
|   CALL FUNCTION 'OIJ_EL_C_PREPARE_DELETE' "Prepare delete of tables |
| EXPORTING | ||
| IV_REAL_DELETE | = lv_iv_real_delete | |
| IV_VBELN | = lv_iv_vbeln | |
| IV_POSNR | = lv_iv_posnr | |
| IV_DELIND | = lv_iv_delind | |
| CHANGING | ||
| XT_CP_LAYT | = lv_xt_cp_layt | |
| XT_CP_LOC | = lv_xt_cp_loc | |
| XT_CP_PROD | = lv_xt_cp_prod | |
| XT_LAYT_EV | = lv_xt_layt_ev | |
| XT_LAYT_INF | = lv_xt_layt_inf | |
| XT_DOC_EV | = lv_xt_doc_ev | |
| XT_DOC_MOT | = lv_xt_doc_mot | |
| XT_DOC_M_MOT | = lv_xt_doc_m_mot | |
| XT_DOC_I_REF | = lv_xt_doc_i_ref | |
| . " OIJ_EL_C_PREPARE_DELETE | ||
ABAP code using 7.40 inline data declarations to call FM OIJ_EL_C_PREPARE_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 VBELN FROM VBAP INTO @DATA(ld_iv_vbeln). | ||||
Search for further information about these or an SAP related objects