SAP MPN20_GET_MPN_STATUS Function Module for Prüft ob ein Material einer FFF-Klasse, bzw. DispoSet zugeordnet ist









MPN20_GET_MPN_STATUS is a standard mpn20 get mpn status SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Prüft ob ein Material einer FFF-Klasse, bzw. DispoSet zugeordnet ist 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 get mpn status FM, simply by entering the name MPN20_GET_MPN_STATUS into the relevant SAP transaction such as SE37 or SE38.

Function Group: MPN20
Program Name: SAPLMPN20
Main Program: SAPLMPN20
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function MPN20_GET_MPN_STATUS 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_GET_MPN_STATUS'"Prüft ob ein Material einer FFF-Klasse, bzw. DispoSet zugeordnet ist
EXPORTING
IV_MATNR = "
IV_WERKS = "
* IV_BERID = "
* IV_LGORT = "Storage Location

IMPORTING
EV_FFFC_FLAG = "
EV_MRPSET_FLAG = "
EV_FFFC = "
EV_MRPGR = "
EV_LPART = "
EV_MRPSET_SHARED = "Single-Character Indicator

TABLES
* ET_PICPS = "Parts Interchangeability Item (SuS+MPN)
* ET_PICRL = "Parts Interchangeability Relation (Plant/MRP Area)
* ET_PICRL_ALL = "Parts Interchangeability Relation (Plant/MRP Area)

EXCEPTIONS
INTERNAL_ERROR = 1
.



IMPORTING Parameters details for MPN20_GET_MPN_STATUS

IV_MATNR -

Data type: MARA-MATNR
Optional: No
Call by Reference: No ( called with pass by value option)

IV_WERKS -

Data type: MARC-WERKS
Optional: No
Call by Reference: No ( called with pass by value option)

IV_BERID -

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

IV_LGORT - Storage Location

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

EXPORTING Parameters details for MPN20_GET_MPN_STATUS

EV_FFFC_FLAG -

Data type: CHAR1
Optional: No
Call by Reference: No ( called with pass by value option)

EV_MRPSET_FLAG -

Data type: CHAR1
Optional: No
Call by Reference: No ( called with pass by value option)

EV_FFFC -

Data type: MARA-MATNR
Optional: No
Call by Reference: No ( called with pass by value option)

EV_MRPGR -

Data type: PICRL-MRPGR
Optional: No
Call by Reference: No ( called with pass by value option)

EV_LPART -

Data type: PICRL-LMATN
Optional: No
Call by Reference: No ( called with pass by value option)

EV_MRPSET_SHARED - Single-Character Indicator

Data type: CHAR1
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for MPN20_GET_MPN_STATUS

ET_PICPS - Parts Interchangeability Item (SuS+MPN)

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

ET_PICRL - Parts Interchangeability Relation (Plant/MRP Area)

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

ET_PICRL_ALL - Parts Interchangeability Relation (Plant/MRP Area)

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

EXCEPTIONS details

INTERNAL_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for MPN20_GET_MPN_STATUS 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:
lt_et_picps  TYPE STANDARD TABLE OF PICPS, "   
lv_iv_matnr  TYPE MARA-MATNR, "   
lv_ev_fffc_flag  TYPE CHAR1, "   
lv_internal_error  TYPE CHAR1, "   
lt_et_picrl  TYPE STANDARD TABLE OF PICRL, "   
lv_iv_werks  TYPE MARC-WERKS, "   
lv_ev_mrpset_flag  TYPE CHAR1, "   
lv_ev_fffc  TYPE MARA-MATNR, "   
lv_iv_berid  TYPE BERID, "   
lt_et_picrl_all  TYPE STANDARD TABLE OF PICRL, "   
lv_ev_mrpgr  TYPE PICRL-MRPGR, "   
lv_iv_lgort  TYPE LGORT_D, "   
lv_ev_lpart  TYPE PICRL-LMATN, "   
lv_ev_mrpset_shared  TYPE CHAR1. "   

  CALL FUNCTION 'MPN20_GET_MPN_STATUS'  "Prüft ob ein Material einer FFF-Klasse, bzw. DispoSet zugeordnet ist
    EXPORTING
         IV_MATNR = lv_iv_matnr
         IV_WERKS = lv_iv_werks
         IV_BERID = lv_iv_berid
         IV_LGORT = lv_iv_lgort
    IMPORTING
         EV_FFFC_FLAG = lv_ev_fffc_flag
         EV_MRPSET_FLAG = lv_ev_mrpset_flag
         EV_FFFC = lv_ev_fffc
         EV_MRPGR = lv_ev_mrpgr
         EV_LPART = lv_ev_lpart
         EV_MRPSET_SHARED = lv_ev_mrpset_shared
    TABLES
         ET_PICPS = lt_et_picps
         ET_PICRL = lt_et_picrl
         ET_PICRL_ALL = lt_et_picrl_all
    EXCEPTIONS
        INTERNAL_ERROR = 1
. " MPN20_GET_MPN_STATUS




ABAP code using 7.40 inline data declarations to call FM MPN20_GET_MPN_STATUS

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 MATNR FROM MARA INTO @DATA(ld_iv_matnr).
 
 
 
 
"SELECT single WERKS FROM MARC INTO @DATA(ld_iv_werks).
 
 
"SELECT single MATNR FROM MARA INTO @DATA(ld_ev_fffc).
 
 
 
"SELECT single MRPGR FROM PICRL INTO @DATA(ld_ev_mrpgr).
 
 
"SELECT single LMATN FROM PICRL INTO @DATA(ld_ev_lpart).
 
 


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!