SAP COM_CFG_DB_CREATE_VTABLE Function Module for Generierung Variantentabelle









COM_CFG_DB_CREATE_VTABLE is a standard com cfg db create vtable SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generierung Variantentabelle 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 com cfg db create vtable FM, simply by entering the name COM_CFG_DB_CREATE_VTABLE into the relevant SAP transaction such as SE37 or SE38.

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



Function COM_CFG_DB_CREATE_VTABLE 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 'COM_CFG_DB_CREATE_VTABLE'"Generierung Variantentabelle
EXPORTING
IS_TABLE = "Transfer Structure for SCE Table Attributes
IT_COLUMN = "Struktur einer SCE-Tabelle

IMPORTING
EV_TABNAME = "
EV_TABTYPENAME = "
ET_COLUMN = "Interne Table for COMT_CFGD_VT_COLUMN_MD

CHANGING
IS_CFGTABLE = "Variant Table Metadata

EXCEPTIONS
DELETE_ERROR = 1 TADIR_ERROR = 2 PUT_ERROR = 3 ACTIVATE_ERROR = 4 INVALID_TABLENAME = 5 ENQUEUE_ERROR = 6
.



IMPORTING Parameters details for COM_CFG_DB_CREATE_VTABLE

IS_TABLE - Transfer Structure for SCE Table Attributes

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

IT_COLUMN - Struktur einer SCE-Tabelle

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

EXPORTING Parameters details for COM_CFG_DB_CREATE_VTABLE

EV_TABNAME -

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

EV_TABTYPENAME -

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

ET_COLUMN - Interne Table for COMT_CFGD_VT_COLUMN_MD

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

CHANGING Parameters details for COM_CFG_DB_CREATE_VTABLE

IS_CFGTABLE - Variant Table Metadata

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

EXCEPTIONS details

DELETE_ERROR -

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

TADIR_ERROR -

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

PUT_ERROR -

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

ACTIVATE_ERROR -

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

INVALID_TABLENAME -

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

ENQUEUE_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for COM_CFG_DB_CREATE_VTABLE 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_is_table  TYPE COMT_CFGD_VT_TABLE_MD, "   
lv_ev_tabname  TYPE DDOBJNAME, "   
lv_is_cfgtable  TYPE COMM_CFGVTABLE, "   
lv_delete_error  TYPE COMM_CFGVTABLE, "   
lv_it_column  TYPE COMT_CFGD_VT_COLUMN_MD_I, "   
lv_tadir_error  TYPE COMT_CFGD_VT_COLUMN_MD_I, "   
lv_ev_tabtypename  TYPE DDOBJNAME, "   
lv_et_column  TYPE COMT_CFGD_VT_COLUMN_MD_I, "   
lv_put_error  TYPE COMT_CFGD_VT_COLUMN_MD_I, "   
lv_activate_error  TYPE COMT_CFGD_VT_COLUMN_MD_I, "   
lv_invalid_tablename  TYPE COMT_CFGD_VT_COLUMN_MD_I, "   
lv_enqueue_error  TYPE COMT_CFGD_VT_COLUMN_MD_I. "   

  CALL FUNCTION 'COM_CFG_DB_CREATE_VTABLE'  "Generierung Variantentabelle
    EXPORTING
         IS_TABLE = lv_is_table
         IT_COLUMN = lv_it_column
    IMPORTING
         EV_TABNAME = lv_ev_tabname
         EV_TABTYPENAME = lv_ev_tabtypename
         ET_COLUMN = lv_et_column
    CHANGING
         IS_CFGTABLE = lv_is_cfgtable
    EXCEPTIONS
        DELETE_ERROR = 1
        TADIR_ERROR = 2
        PUT_ERROR = 3
        ACTIVATE_ERROR = 4
        INVALID_TABLENAME = 5
        ENQUEUE_ERROR = 6
. " COM_CFG_DB_CREATE_VTABLE




ABAP code using 7.40 inline data declarations to call FM COM_CFG_DB_CREATE_VTABLE

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!