SAP MGV_PROCESS_MATERIALID Function Module for
MGV_PROCESS_MATERIALID is a standard mgv process materialid SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 mgv process materialid FM, simply by entering the name MGV_PROCESS_MATERIALID into the relevant SAP transaction such as SE37 or SE38.
Function Group: MGV_CIF_APO
Program Name: SAPLMGV_CIF_APO
Main Program: SAPLMGV_CIF_APO
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function MGV_PROCESS_MATERIALID 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 'MGV_PROCESS_MATERIALID'".
EXPORTING
* IF_METHOD = G_METH_MAINT_CON "
* IS_CTRLPARAMS = "
TABLES
* IT_MARA = "
* IT_MARDX = "
* IT_MVKE = "
* IT_MVKEX = "
* IT_MATCLASSES = "
* OT_CIF_MATKEY = "
* OT_CIF_MATKEYX = "
* OT_CIF_MATLOC = "
* OT_CIF_MATLOCX = "
* OT_CIF_MARM = "
* OT_CIF_MARMX = "
* IT_MARAX = "
* OT_CIF_MATTXT = "
* OT_CIF_MATTXTX = "
* OT_CIF_MATCLASS = "
* OT_CIF_MATKEYCUS = "
* OT_CIF_MATLOCCUS = "
* OT_CIF_MATVRS = "
* OT_CIF_MATVRX = "
* IT_MAKT = "
* IT_MAKTX = "
* IT_MARC = "
* IT_MARCX = "
* IT_MARM = "
* IT_MARMX = "
* IT_MARD = "
EXCEPTIONS
NO_VERSION_CUSTOMIZING = 1
IMPORTING Parameters details for MGV_PROCESS_MATERIALID
IF_METHOD -
Data type: CIFLOC-METHODDefault: G_METH_MAINT_CON
Optional: Yes
Call by Reference: No ( called with pass by value option)
IS_CTRLPARAMS -
Data type: CIFCTRLPAROptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for MGV_PROCESS_MATERIALID
IT_MARA -
Data type: MARAOptional: Yes
Call by Reference: Yes
IT_MARDX -
Data type: CIFMARDXOptional: Yes
Call by Reference: Yes
IT_MVKE -
Data type: MVKEOptional: Yes
Call by Reference: Yes
IT_MVKEX -
Data type: CIFMVKEXOptional: Yes
Call by Reference: Yes
IT_MATCLASSES -
Data type: CIF_MATCLAOptional: Yes
Call by Reference: Yes
OT_CIF_MATKEY -
Data type: CIF_MATKEYOptional: Yes
Call by Reference: Yes
OT_CIF_MATKEYX -
Data type: CIF_MATKYXOptional: Yes
Call by Reference: Yes
OT_CIF_MATLOC -
Data type: CIF_MATLOCOptional: Yes
Call by Reference: Yes
OT_CIF_MATLOCX -
Data type: CIF_MATLCXOptional: Yes
Call by Reference: Yes
OT_CIF_MARM -
Data type: CIF_MARMOptional: Yes
Call by Reference: Yes
OT_CIF_MARMX -
Data type: CIF_MARMXOptional: Yes
Call by Reference: Yes
IT_MARAX -
Data type: CIFMARAXOptional: Yes
Call by Reference: Yes
OT_CIF_MATTXT -
Data type: CIF_MATTXTOptional: Yes
Call by Reference: Yes
OT_CIF_MATTXTX -
Data type: CIF_MATTXXOptional: Yes
Call by Reference: Yes
OT_CIF_MATCLASS -
Data type: CIF_MATCLSOptional: Yes
Call by Reference: Yes
OT_CIF_MATKEYCUS -
Data type: CIFMTKYCUSOptional: Yes
Call by Reference: Yes
OT_CIF_MATLOCCUS -
Data type: CIFMTLCCUSOptional: Yes
Call by Reference: Yes
OT_CIF_MATVRS -
Data type:Optional: Yes
Call by Reference: Yes
OT_CIF_MATVRX -
Data type:Optional: Yes
Call by Reference: Yes
IT_MAKT -
Data type: MAKTOptional: Yes
Call by Reference: Yes
IT_MAKTX -
Data type: CIFMAKTXOptional: Yes
Call by Reference: Yes
IT_MARC -
Data type: MARCOptional: Yes
Call by Reference: Yes
IT_MARCX -
Data type: CIFMARCXOptional: Yes
Call by Reference: Yes
IT_MARM -
Data type: MARMOptional: Yes
Call by Reference: Yes
IT_MARMX -
Data type: CIFMARMXOptional: Yes
Call by Reference: Yes
IT_MARD -
Data type: MARDOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_VERSION_CUSTOMIZING -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for MGV_PROCESS_MATERIALID 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_it_mara | TYPE STANDARD TABLE OF MARA, " | |||
| lv_if_method | TYPE CIFLOC-METHOD, " G_METH_MAINT_CON | |||
| lv_no_version_customizing | TYPE CIFLOC, " | |||
| lt_it_mardx | TYPE STANDARD TABLE OF CIFMARDX, " | |||
| lt_it_mvke | TYPE STANDARD TABLE OF MVKE, " | |||
| lt_it_mvkex | TYPE STANDARD TABLE OF CIFMVKEX, " | |||
| lt_it_matclasses | TYPE STANDARD TABLE OF CIF_MATCLA, " | |||
| lt_ot_cif_matkey | TYPE STANDARD TABLE OF CIF_MATKEY, " | |||
| lt_ot_cif_matkeyx | TYPE STANDARD TABLE OF CIF_MATKYX, " | |||
| lt_ot_cif_matloc | TYPE STANDARD TABLE OF CIF_MATLOC, " | |||
| lt_ot_cif_matlocx | TYPE STANDARD TABLE OF CIF_MATLCX, " | |||
| lt_ot_cif_marm | TYPE STANDARD TABLE OF CIF_MARM, " | |||
| lt_ot_cif_marmx | TYPE STANDARD TABLE OF CIF_MARMX, " | |||
| lt_it_marax | TYPE STANDARD TABLE OF CIFMARAX, " | |||
| lv_is_ctrlparams | TYPE CIFCTRLPAR, " | |||
| lt_ot_cif_mattxt | TYPE STANDARD TABLE OF CIF_MATTXT, " | |||
| lt_ot_cif_mattxtx | TYPE STANDARD TABLE OF CIF_MATTXX, " | |||
| lt_ot_cif_matclass | TYPE STANDARD TABLE OF CIF_MATCLS, " | |||
| lt_ot_cif_matkeycus | TYPE STANDARD TABLE OF CIFMTKYCUS, " | |||
| lt_ot_cif_matloccus | TYPE STANDARD TABLE OF CIFMTLCCUS, " | |||
| lt_ot_cif_matvrs | TYPE STANDARD TABLE OF CIFMTLCCUS, " | |||
| lt_ot_cif_matvrx | TYPE STANDARD TABLE OF CIFMTLCCUS, " | |||
| lt_it_makt | TYPE STANDARD TABLE OF MAKT, " | |||
| lt_it_maktx | TYPE STANDARD TABLE OF CIFMAKTX, " | |||
| lt_it_marc | TYPE STANDARD TABLE OF MARC, " | |||
| lt_it_marcx | TYPE STANDARD TABLE OF CIFMARCX, " | |||
| lt_it_marm | TYPE STANDARD TABLE OF MARM, " | |||
| lt_it_marmx | TYPE STANDARD TABLE OF CIFMARMX, " | |||
| lt_it_mard | TYPE STANDARD TABLE OF MARD. " |
|   CALL FUNCTION 'MGV_PROCESS_MATERIALID' " |
| EXPORTING | ||
| IF_METHOD | = lv_if_method | |
| IS_CTRLPARAMS | = lv_is_ctrlparams | |
| TABLES | ||
| IT_MARA | = lt_it_mara | |
| IT_MARDX | = lt_it_mardx | |
| IT_MVKE | = lt_it_mvke | |
| IT_MVKEX | = lt_it_mvkex | |
| IT_MATCLASSES | = lt_it_matclasses | |
| OT_CIF_MATKEY | = lt_ot_cif_matkey | |
| OT_CIF_MATKEYX | = lt_ot_cif_matkeyx | |
| OT_CIF_MATLOC | = lt_ot_cif_matloc | |
| OT_CIF_MATLOCX | = lt_ot_cif_matlocx | |
| OT_CIF_MARM | = lt_ot_cif_marm | |
| OT_CIF_MARMX | = lt_ot_cif_marmx | |
| IT_MARAX | = lt_it_marax | |
| OT_CIF_MATTXT | = lt_ot_cif_mattxt | |
| OT_CIF_MATTXTX | = lt_ot_cif_mattxtx | |
| OT_CIF_MATCLASS | = lt_ot_cif_matclass | |
| OT_CIF_MATKEYCUS | = lt_ot_cif_matkeycus | |
| OT_CIF_MATLOCCUS | = lt_ot_cif_matloccus | |
| OT_CIF_MATVRS | = lt_ot_cif_matvrs | |
| OT_CIF_MATVRX | = lt_ot_cif_matvrx | |
| IT_MAKT | = lt_it_makt | |
| IT_MAKTX | = lt_it_maktx | |
| IT_MARC | = lt_it_marc | |
| IT_MARCX | = lt_it_marcx | |
| IT_MARM | = lt_it_marm | |
| IT_MARMX | = lt_it_marmx | |
| IT_MARD | = lt_it_mard | |
| EXCEPTIONS | ||
| NO_VERSION_CUSTOMIZING = 1 | ||
| . " MGV_PROCESS_MATERIALID | ||
ABAP code using 7.40 inline data declarations to call FM MGV_PROCESS_MATERIALID
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 METHOD FROM CIFLOC INTO @DATA(ld_if_method). | ||||
| DATA(ld_if_method) | = G_METH_MAINT_CON. | |||
Search for further information about these or an SAP related objects