SAP BAPI_MPAP_DEL Function Module for BAPI Delete
BAPI_MPAP_DEL is a standard bapi mpap del SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for BAPI Delete 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 bapi mpap del FM, simply by entering the name BAPI_MPAP_DEL into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIU_MP_ALLOC_PROFILE
Program Name: SAPLOIU_MP_ALLOC_PROFILE
Main Program: SAPLOIU_MP_ALLOC_PROFILE
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function BAPI_MPAP_DEL 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 'BAPI_MPAP_DEL'"BAPI Delete.
EXPORTING
MP_NO = "measurement point number
DN_NO = "delivery network number
FREQ_CD = "allocation frequency
EFF_FROM_DT = "effective from date
IMPORTING
MPAP_HEADER = "header information
TABLES
* MPAP_DETAIL_TB = "detail table information
RETURN = "error message table
IMPORTING Parameters details for BAPI_MPAP_DEL
MP_NO - measurement point number
Data type: BAPI_OIU_MPAP-MP_NOOptional: No
Call by Reference: No ( called with pass by value option)
DN_NO - delivery network number
Data type: BAPI_OIU_MPAP-DN_NOOptional: No
Call by Reference: No ( called with pass by value option)
FREQ_CD - allocation frequency
Data type: BAPI_OIU_MPAP-FREQ_CDOptional: No
Call by Reference: No ( called with pass by value option)
EFF_FROM_DT - effective from date
Data type: BAPI_OIU_MPAP-EFF_FROM_DTOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for BAPI_MPAP_DEL
MPAP_HEADER - header information
Data type: BAPI_OIU_MPAPOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for BAPI_MPAP_DEL
MPAP_DETAIL_TB - detail table information
Data type: BAPI_OIU_MPAP_1Optional: Yes
Call by Reference: Yes
RETURN - error message table
Data type: BAPIRET2Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for BAPI_MPAP_DEL 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_mp_no | TYPE BAPI_OIU_MPAP-MP_NO, " | |||
| lv_mpap_header | TYPE BAPI_OIU_MPAP, " | |||
| lt_mpap_detail_tb | TYPE STANDARD TABLE OF BAPI_OIU_MPAP_1, " | |||
| lv_dn_no | TYPE BAPI_OIU_MPAP-DN_NO, " | |||
| lt_return | TYPE STANDARD TABLE OF BAPIRET2, " | |||
| lv_freq_cd | TYPE BAPI_OIU_MPAP-FREQ_CD, " | |||
| lv_eff_from_dt | TYPE BAPI_OIU_MPAP-EFF_FROM_DT. " |
|   CALL FUNCTION 'BAPI_MPAP_DEL' "BAPI Delete |
| EXPORTING | ||
| MP_NO | = lv_mp_no | |
| DN_NO | = lv_dn_no | |
| FREQ_CD | = lv_freq_cd | |
| EFF_FROM_DT | = lv_eff_from_dt | |
| IMPORTING | ||
| MPAP_HEADER | = lv_mpap_header | |
| TABLES | ||
| MPAP_DETAIL_TB | = lt_mpap_detail_tb | |
| RETURN | = lt_return | |
| . " BAPI_MPAP_DEL | ||
ABAP code using 7.40 inline data declarations to call FM BAPI_MPAP_DEL
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 MP_NO FROM BAPI_OIU_MPAP INTO @DATA(ld_mp_no). | ||||
| "SELECT single DN_NO FROM BAPI_OIU_MPAP INTO @DATA(ld_dn_no). | ||||
| "SELECT single FREQ_CD FROM BAPI_OIU_MPAP INTO @DATA(ld_freq_cd). | ||||
| "SELECT single EFF_FROM_DT FROM BAPI_OIU_MPAP INTO @DATA(ld_eff_from_dt). | ||||
Search for further information about these or an SAP related objects