SAP MAT_MRPAREA_DATA_SELECTION Function Module for NOTRANSL: Ermitteln von Materialstammdaten zu gegebenen Materialstamm-Keys









MAT_MRPAREA_DATA_SELECTION is a standard mat mrparea data selection 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: Ermitteln von Materialstammdaten zu gegebenen Materialstamm-Keys 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 mat mrparea data selection FM, simply by entering the name MAT_MRPAREA_DATA_SELECTION into the relevant SAP transaction such as SE37 or SE38.

Function Group: DBSE
Program Name: SAPLDBSE
Main Program: SAPLDBSE
Appliation area: M
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function MAT_MRPAREA_DATA_SELECTION 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 'MAT_MRPAREA_DATA_SELECTION'"NOTRANSL: Ermitteln von Materialstammdaten zu gegebenen Materialstamm-Keys
EXPORTING
* IN_MAX_MATNR = 0 "

CHANGING
INOUT_NEXT_MATNR = "

TABLES
* IN_MTMRPA_LIST = "
* OUT_MDMA_TAB = "
* OUT_MARC_TAB = "
* OUT_MARA_TAB = "
* OUT_MAKT_TAB = "
* OUT_MARM_TAB = "
* OUT_MEAN_TAB = "
INOUT_MATNR_TAB = "

EXCEPTIONS
WRONG_NEXT_MATNR = 1
.



IMPORTING Parameters details for MAT_MRPAREA_DATA_SELECTION

IN_MAX_MATNR -

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

CHANGING Parameters details for MAT_MRPAREA_DATA_SELECTION

INOUT_NEXT_MATNR -

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

TABLES Parameters details for MAT_MRPAREA_DATA_SELECTION

IN_MTMRPA_LIST -

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

OUT_MDMA_TAB -

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

OUT_MARC_TAB -

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

OUT_MARA_TAB -

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

OUT_MAKT_TAB -

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

OUT_MARM_TAB -

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

OUT_MEAN_TAB -

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

INOUT_MATNR_TAB -

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

EXCEPTIONS details

WRONG_NEXT_MATNR - Incorrect material number was transferred

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

Copy and paste ABAP code example for MAT_MRPAREA_DATA_SELECTION 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_in_max_matnr  TYPE SEL_FIELDS-MAX_MATNR, "   0
lt_in_mtmrpa_list  TYPE STANDARD TABLE OF PRE27, "   
lv_inout_next_matnr  TYPE MARA-MATNR, "   
lv_wrong_next_matnr  TYPE MARA, "   
lt_out_mdma_tab  TYPE STANDARD TABLE OF MDMA, "   
lt_out_marc_tab  TYPE STANDARD TABLE OF MARC, "   
lt_out_mara_tab  TYPE STANDARD TABLE OF MARA, "   
lt_out_makt_tab  TYPE STANDARD TABLE OF MAKT, "   
lt_out_marm_tab  TYPE STANDARD TABLE OF MARM, "   
lt_out_mean_tab  TYPE STANDARD TABLE OF MEAN, "   
lt_inout_matnr_tab  TYPE STANDARD TABLE OF PRE27. "   

  CALL FUNCTION 'MAT_MRPAREA_DATA_SELECTION'  "NOTRANSL: Ermitteln von Materialstammdaten zu gegebenen Materialstamm-Keys
    EXPORTING
         IN_MAX_MATNR = lv_in_max_matnr
    CHANGING
         INOUT_NEXT_MATNR = lv_inout_next_matnr
    TABLES
         IN_MTMRPA_LIST = lt_in_mtmrpa_list
         OUT_MDMA_TAB = lt_out_mdma_tab
         OUT_MARC_TAB = lt_out_marc_tab
         OUT_MARA_TAB = lt_out_mara_tab
         OUT_MAKT_TAB = lt_out_makt_tab
         OUT_MARM_TAB = lt_out_marm_tab
         OUT_MEAN_TAB = lt_out_mean_tab
         INOUT_MATNR_TAB = lt_inout_matnr_tab
    EXCEPTIONS
        WRONG_NEXT_MATNR = 1
. " MAT_MRPAREA_DATA_SELECTION




ABAP code using 7.40 inline data declarations to call FM MAT_MRPAREA_DATA_SELECTION

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 MAX_MATNR FROM SEL_FIELDS INTO @DATA(ld_in_max_matnr).
 
 
"SELECT single MATNR FROM MARA INTO @DATA(ld_inout_next_matnr).
 
 
 
 
 
 
 
 
 


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!