SAP MD_MRP_AREA_GET Function Module for NOTRANSL: Dispositionsbereich ermitteln
MD_MRP_AREA_GET is a standard md mrp area get 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: Dispositionsbereich ermitteln 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 md mrp area get FM, simply by entering the name MD_MRP_AREA_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: MD06
Program Name: SAPLMD06
Main Program: SAPLMD06
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MD_MRP_AREA_GET 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 'MD_MRP_AREA_GET'"NOTRANSL: Dispositionsbereich ermitteln.
EXPORTING
I_MATNR = "Material Number
I_WERKS = "Plant
* I_LGORT = "Storage Location
* I_LBEAR = "Subcontractor
* I_SOBKZ = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_DBSKZ = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_VRPLA = "DE-EN-LANG-SWITCH-NO-TRANSLATION
IMPORTING
E_DISFG = "Activate MRP areas at client level
E_DB_MDLV = "DE-EN-LANG-SWITCH-NO-TRANSLATION
E_MDMA = "DE-EN-LANG-SWITCH-NO-TRANSLATION
EXCEPTIONS
WRONG_PARAMETERS = 1
IMPORTING Parameters details for MD_MRP_AREA_GET
I_MATNR - Material Number
Data type: MARC-MATNROptional: No
Call by Reference: Yes
I_WERKS - Plant
Data type: T399D-WERKSOptional: No
Call by Reference: Yes
I_LGORT - Storage Location
Data type: MDLG-LGORTOptional: Yes
Call by Reference: Yes
I_LBEAR - Subcontractor
Data type: MDLL-LBEAROptional: Yes
Call by Reference: Yes
I_SOBKZ - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RESB-SOBKZOptional: Yes
Call by Reference: Yes
I_DBSKZ - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RESB-DBSKZOptional: Yes
Call by Reference: Yes
I_VRPLA - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: RESB-VRPLAOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for MD_MRP_AREA_GET
E_DISFG - Activate MRP areas at client level
Data type: T000MD-DISFGOptional: No
Call by Reference: Yes
E_DB_MDLV - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: MDLVOptional: No
Call by Reference: Yes
E_MDMA - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type: MDMAOptional: No
Call by Reference: Yes
EXCEPTIONS details
WRONG_PARAMETERS - DE-EN-LANG-SWITCH-NO-TRANSLATION
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for MD_MRP_AREA_GET 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_e_disfg | TYPE T000MD-DISFG, " | |||
| lv_i_matnr | TYPE MARC-MATNR, " | |||
| lv_wrong_parameters | TYPE MARC, " | |||
| lv_i_werks | TYPE T399D-WERKS, " | |||
| lv_e_db_mdlv | TYPE MDLV, " | |||
| lv_e_mdma | TYPE MDMA, " | |||
| lv_i_lgort | TYPE MDLG-LGORT, " | |||
| lv_i_lbear | TYPE MDLL-LBEAR, " | |||
| lv_i_sobkz | TYPE RESB-SOBKZ, " | |||
| lv_i_dbskz | TYPE RESB-DBSKZ, " | |||
| lv_i_vrpla | TYPE RESB-VRPLA. " |
|   CALL FUNCTION 'MD_MRP_AREA_GET' "NOTRANSL: Dispositionsbereich ermitteln |
| EXPORTING | ||
| I_MATNR | = lv_i_matnr | |
| I_WERKS | = lv_i_werks | |
| I_LGORT | = lv_i_lgort | |
| I_LBEAR | = lv_i_lbear | |
| I_SOBKZ | = lv_i_sobkz | |
| I_DBSKZ | = lv_i_dbskz | |
| I_VRPLA | = lv_i_vrpla | |
| IMPORTING | ||
| E_DISFG | = lv_e_disfg | |
| E_DB_MDLV | = lv_e_db_mdlv | |
| E_MDMA | = lv_e_mdma | |
| EXCEPTIONS | ||
| WRONG_PARAMETERS = 1 | ||
| . " MD_MRP_AREA_GET | ||
ABAP code using 7.40 inline data declarations to call FM MD_MRP_AREA_GET
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 DISFG FROM T000MD INTO @DATA(ld_e_disfg). | ||||
| "SELECT single MATNR FROM MARC INTO @DATA(ld_i_matnr). | ||||
| "SELECT single WERKS FROM T399D INTO @DATA(ld_i_werks). | ||||
| "SELECT single LGORT FROM MDLG INTO @DATA(ld_i_lgort). | ||||
| "SELECT single LBEAR FROM MDLL INTO @DATA(ld_i_lbear). | ||||
| "SELECT single SOBKZ FROM RESB INTO @DATA(ld_i_sobkz). | ||||
| "SELECT single DBSKZ FROM RESB INTO @DATA(ld_i_dbskz). | ||||
| "SELECT single VRPLA FROM RESB INTO @DATA(ld_i_vrpla). | ||||
Search for further information about these or an SAP related objects