SAP MGV_CREATE_UEB_TABLES Function Module for









MGV_CREATE_UEB_TABLES is a standard mgv create ueb tables 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 create ueb tables FM, simply by entering the name MGV_CREATE_UEB_TABLES into the relevant SAP transaction such as SE37 or SE38.

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



Function MGV_CREATE_UEB_TABLES 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_CREATE_UEB_TABLES'"
EXPORTING
* VTYPE = "
* FLG_MATNR_RES = "
* IV_MODUS = ' ' "
* IV_AENNR = ' ' "

CHANGING
MATNR_NEW = "
* TRANC_OFF = 0 "

TABLES
IT_MATNR_OLD = "
* ISTEU_UEB = "
* ISTMM_UEB = "
* IMLGN_UEB = "
* IMLGT_UEB = "
* IMFHM_UEB = "
* IMPOP_UEB = "
* IMPGD_UEB = "
IT_MATNR_NEW = "
* IMARA_UEB = "
* IMARC_UEB = "
* IMARD_UEB = "
* IMBEW_UEB = "
* IMAKT_UEB = "
* IMARM_UEB = "
* IMVKE_UEB = "

EXCEPTIONS
MATERIAL_NOT_FOUND = 1 NEW_MATERIAL_EXISTS = 2
.



IMPORTING Parameters details for MGV_CREATE_UEB_TABLES

VTYPE -

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

FLG_MATNR_RES -

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

IV_MODUS -

Data type: C
Default: ' '
Optional: Yes
Call by Reference: Yes

IV_AENNR -

Data type: AENNR
Default: ' '
Optional: Yes
Call by Reference: Yes

CHANGING Parameters details for MGV_CREATE_UEB_TABLES

MATNR_NEW -

Data type: MATNR
Optional: No
Call by Reference: Yes

TRANC_OFF -

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

TABLES Parameters details for MGV_CREATE_UEB_TABLES

IT_MATNR_OLD -

Data type: PRE03
Optional: No
Call by Reference: Yes

ISTEU_UEB -

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

ISTMM_UEB -

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

IMLGN_UEB -

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

IMLGT_UEB -

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

IMFHM_UEB -

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

IMPOP_UEB -

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

IMPGD_UEB -

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

IT_MATNR_NEW -

Data type: PRE03
Optional: No
Call by Reference: Yes

IMARA_UEB -

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

IMARC_UEB -

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

IMARD_UEB -

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

IMBEW_UEB -

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

IMAKT_UEB -

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

IMARM_UEB -

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

IMVKE_UEB -

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

EXCEPTIONS details

MATERIAL_NOT_FOUND -

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

NEW_MATERIAL_EXISTS -

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

Copy and paste ABAP code example for MGV_CREATE_UEB_TABLES 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_vtype  TYPE VERSIONTYPE, "   
lv_matnr_new  TYPE MATNR, "   
lt_it_matnr_old  TYPE STANDARD TABLE OF PRE03, "   
lv_material_not_found  TYPE PRE03, "   
lt_isteu_ueb  TYPE STANDARD TABLE OF STEU_UEB, "   
lt_istmm_ueb  TYPE STANDARD TABLE OF STEUMM_UEB, "   
lt_imlgn_ueb  TYPE STANDARD TABLE OF MLGN_UEB, "   
lt_imlgt_ueb  TYPE STANDARD TABLE OF MLGT_UEB, "   
lt_imfhm_ueb  TYPE STANDARD TABLE OF MFHM_UEB, "   
lt_impop_ueb  TYPE STANDARD TABLE OF MPOP_UEB, "   
lt_impgd_ueb  TYPE STANDARD TABLE OF MPGD_UEB, "   
lv_tranc_off  TYPE MARA_UEB-TRANC, "   0
lt_it_matnr_new  TYPE STANDARD TABLE OF PRE03, "   
lv_flg_matnr_res  TYPE XFELD, "   
lv_new_material_exists  TYPE XFELD, "   
lv_iv_modus  TYPE C, "   ' '
lt_imara_ueb  TYPE STANDARD TABLE OF MARA_UEB, "   
lv_iv_aennr  TYPE AENNR, "   ' '
lt_imarc_ueb  TYPE STANDARD TABLE OF MARC_UEB, "   
lt_imard_ueb  TYPE STANDARD TABLE OF MARD_UEB, "   
lt_imbew_ueb  TYPE STANDARD TABLE OF MBEW_UEB, "   
lt_imakt_ueb  TYPE STANDARD TABLE OF MAKT_UEB, "   
lt_imarm_ueb  TYPE STANDARD TABLE OF MARM_UEB, "   
lt_imvke_ueb  TYPE STANDARD TABLE OF MVKE_UEB. "   

  CALL FUNCTION 'MGV_CREATE_UEB_TABLES'  "
    EXPORTING
         VTYPE = lv_vtype
         FLG_MATNR_RES = lv_flg_matnr_res
         IV_MODUS = lv_iv_modus
         IV_AENNR = lv_iv_aennr
    CHANGING
         MATNR_NEW = lv_matnr_new
         TRANC_OFF = lv_tranc_off
    TABLES
         IT_MATNR_OLD = lt_it_matnr_old
         ISTEU_UEB = lt_isteu_ueb
         ISTMM_UEB = lt_istmm_ueb
         IMLGN_UEB = lt_imlgn_ueb
         IMLGT_UEB = lt_imlgt_ueb
         IMFHM_UEB = lt_imfhm_ueb
         IMPOP_UEB = lt_impop_ueb
         IMPGD_UEB = lt_impgd_ueb
         IT_MATNR_NEW = lt_it_matnr_new
         IMARA_UEB = lt_imara_ueb
         IMARC_UEB = lt_imarc_ueb
         IMARD_UEB = lt_imard_ueb
         IMBEW_UEB = lt_imbew_ueb
         IMAKT_UEB = lt_imakt_ueb
         IMARM_UEB = lt_imarm_ueb
         IMVKE_UEB = lt_imvke_ueb
    EXCEPTIONS
        MATERIAL_NOT_FOUND = 1
        NEW_MATERIAL_EXISTS = 2
. " MGV_CREATE_UEB_TABLES




ABAP code using 7.40 inline data declarations to call FM MGV_CREATE_UEB_TABLES

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 TRANC FROM MARA_UEB INTO @DATA(ld_tranc_off).
 
 
 
 
DATA(ld_iv_modus) = ' '.
 
 
DATA(ld_iv_aennr) = ' '.
 
 
 
 
 
 
 


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!