SAP MPN20_HANDLE_MPN Function Module for Einstieg für MPN-ATP
MPN20_HANDLE_MPN is a standard mpn20 handle mpn SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Einstieg für MPN-ATP 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 mpn20 handle mpn FM, simply by entering the name MPN20_HANDLE_MPN into the relevant SAP transaction such as SE37 or SE38.
Function Group: MPN20
Program Name: SAPLMPN20
Main Program: SAPLMPN20
Appliation area: I
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MPN20_HANDLE_MPN 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 'MPN20_HANDLE_MPN'"Einstieg für MPN-ATP.
EXPORTING
LC_ATPCA = "
LC_ATPCB = "
LC_ATPCC = "
IMPORTING
EV_MPN_MAT_FLG = "
TABLES
* LC_ATPCSX = "
* LC_TMVFX = "
* LC_MPN_RESBD = "Reservation/Dependent Requirements
* LC_ATPCSX_R3 = "
* LC_ATPMATX = "
* LC_ATPMATX_R3 = "
* LC_ATPPLANTX = "
* LC_MDVEX = "
* LC_MDVEX_R3 = "
* LC_MDVEX_APO = "
* LC_T441VX = "
IMPORTING Parameters details for MPN20_HANDLE_MPN
LC_ATPCA -
Data type: ATPCAOptional: No
Call by Reference: No ( called with pass by value option)
LC_ATPCB -
Data type: ATPCBOptional: No
Call by Reference: No ( called with pass by value option)
LC_ATPCC -
Data type: ATPCCOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for MPN20_HANDLE_MPN
EV_MPN_MAT_FLG -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MPN20_HANDLE_MPN
LC_ATPCSX -
Data type: ATPCSOptional: Yes
Call by Reference: No ( called with pass by value option)
LC_TMVFX -
Data type: TMVFOptional: Yes
Call by Reference: No ( called with pass by value option)
LC_MPN_RESBD - Reservation/Dependent Requirements
Data type: RESBDOptional: Yes
Call by Reference: Yes
LC_ATPCSX_R3 -
Data type: ATPCSOptional: Yes
Call by Reference: No ( called with pass by value option)
LC_ATPMATX -
Data type: ATPMATOptional: Yes
Call by Reference: No ( called with pass by value option)
LC_ATPMATX_R3 -
Data type: ATPMATOptional: Yes
Call by Reference: No ( called with pass by value option)
LC_ATPPLANTX -
Data type: ATPPLANTOptional: Yes
Call by Reference: No ( called with pass by value option)
LC_MDVEX -
Data type: MDVEOptional: Yes
Call by Reference: No ( called with pass by value option)
LC_MDVEX_R3 -
Data type: MDVEOptional: Yes
Call by Reference: No ( called with pass by value option)
LC_MDVEX_APO -
Data type: MDVEOptional: Yes
Call by Reference: No ( called with pass by value option)
LC_T441VX -
Data type: T441VOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MPN20_HANDLE_MPN 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_lc_atpca | TYPE ATPCA, " | |||
| lt_lc_atpcsx | TYPE STANDARD TABLE OF ATPCS, " | |||
| lv_ev_mpn_mat_flg | TYPE ATPCS, " | |||
| lt_lc_tmvfx | TYPE STANDARD TABLE OF TMVF, " | |||
| lt_lc_mpn_resbd | TYPE STANDARD TABLE OF RESBD, " | |||
| lv_lc_atpcb | TYPE ATPCB, " | |||
| lt_lc_atpcsx_r3 | TYPE STANDARD TABLE OF ATPCS, " | |||
| lv_lc_atpcc | TYPE ATPCC, " | |||
| lt_lc_atpmatx | TYPE STANDARD TABLE OF ATPMAT, " | |||
| lt_lc_atpmatx_r3 | TYPE STANDARD TABLE OF ATPMAT, " | |||
| lt_lc_atpplantx | TYPE STANDARD TABLE OF ATPPLANT, " | |||
| lt_lc_mdvex | TYPE STANDARD TABLE OF MDVE, " | |||
| lt_lc_mdvex_r3 | TYPE STANDARD TABLE OF MDVE, " | |||
| lt_lc_mdvex_apo | TYPE STANDARD TABLE OF MDVE, " | |||
| lt_lc_t441vx | TYPE STANDARD TABLE OF T441V. " |
|   CALL FUNCTION 'MPN20_HANDLE_MPN' "Einstieg für MPN-ATP |
| EXPORTING | ||
| LC_ATPCA | = lv_lc_atpca | |
| LC_ATPCB | = lv_lc_atpcb | |
| LC_ATPCC | = lv_lc_atpcc | |
| IMPORTING | ||
| EV_MPN_MAT_FLG | = lv_ev_mpn_mat_flg | |
| TABLES | ||
| LC_ATPCSX | = lt_lc_atpcsx | |
| LC_TMVFX | = lt_lc_tmvfx | |
| LC_MPN_RESBD | = lt_lc_mpn_resbd | |
| LC_ATPCSX_R3 | = lt_lc_atpcsx_r3 | |
| LC_ATPMATX | = lt_lc_atpmatx | |
| LC_ATPMATX_R3 | = lt_lc_atpmatx_r3 | |
| LC_ATPPLANTX | = lt_lc_atpplantx | |
| LC_MDVEX | = lt_lc_mdvex | |
| LC_MDVEX_R3 | = lt_lc_mdvex_r3 | |
| LC_MDVEX_APO | = lt_lc_mdvex_apo | |
| LC_T441VX | = lt_lc_t441vx | |
| . " MPN20_HANDLE_MPN | ||
ABAP code using 7.40 inline data declarations to call FM MPN20_HANDLE_MPN
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.Search for further information about these or an SAP related objects