SAP MGW_UTILITIES_GEN_MAX_VART Function Module for Generate Object Numbers (for All Variants)









MGW_UTILITIES_GEN_MAX_VART is a standard mgw utilities gen max vart SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generate Object Numbers (for All Variants) 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 mgw utilities gen max vart FM, simply by entering the name MGW_UTILITIES_GEN_MAX_VART into the relevant SAP transaction such as SE37 or SE38.

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



Function MGW_UTILITIES_GEN_MAX_VART 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 'MGW_UTILITIES_GEN_MAX_VART'"Generate Object Numbers (for All Variants)
EXPORTING
KNSTA_GEN_NODES = "
REACTIVATE_NODES = "

CHANGING
M_SEL = "

TABLES
CHAR = "Characteristics Relevant to Matrix
VAL = "Characteristic Values Relevant to Matrix
V_ART = "Nodes in Variant Article Matrix for Transfer to Int. Article
.



IMPORTING Parameters details for MGW_UTILITIES_GEN_MAX_VART

KNSTA_GEN_NODES -

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

REACTIVATE_NODES -

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

CHANGING Parameters details for MGW_UTILITIES_GEN_MAX_VART

M_SEL -

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

TABLES Parameters details for MGW_UTILITIES_GEN_MAX_VART

CHAR - Characteristics Relevant to Matrix

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

VAL - Characteristic Values Relevant to Matrix

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

V_ART - Nodes in Variant Article Matrix for Transfer to Int. Article

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

Copy and paste ABAP code example for MGW_UTILITIES_GEN_MAX_VART 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_char  TYPE STANDARD TABLE OF MTRX_CHAR, "   
lv_m_sel  TYPE MATRX_MSEL, "   
lv_knsta_gen_nodes  TYPE MATRX_MSEL, "   
lt_val  TYPE STANDARD TABLE OF MTRX_VALI, "   
lv_reactivate_nodes  TYPE MTRX_VALI, "   
lt_v_art  TYPE STANDARD TABLE OF MTRX_VART. "   

  CALL FUNCTION 'MGW_UTILITIES_GEN_MAX_VART'  "Generate Object Numbers (for All Variants)
    EXPORTING
         KNSTA_GEN_NODES = lv_knsta_gen_nodes
         REACTIVATE_NODES = lv_reactivate_nodes
    CHANGING
         M_SEL = lv_m_sel
    TABLES
         CHAR = lt_char
         VAL = lt_val
         V_ART = lt_v_art
. " MGW_UTILITIES_GEN_MAX_VART




ABAP code using 7.40 inline data declarations to call FM MGW_UTILITIES_GEN_MAX_VART

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



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!