SAP Function Modules

CUVT_UPDATE_TABLE_STRUCTURE SAP Function module







CUVT_UPDATE_TABLE_STRUCTURE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name CUVT_UPDATE_TABLE_STRUCTURE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: CUVT
Released Date: Not Released
Processing type: Start update immediately (start immed)
update module start immediate settings


Pattern for FM CUVT_UPDATE_TABLE_STRUCTURE - CUVT UPDATE TABLE STRUCTURE





CALL FUNCTION 'CUVT_UPDATE_TABLE_STRUCTURE' "
  EXPORTING
    cuvt_header_new =           " cuvtab
    cuvt_header_old =           " cuvtab
*   cuvt_adm_old =              " cuvtab_adm
  TABLES
    cuvt_tab_indices_new =      " cuvtab_ind
    cuvt_tab_indices_old =      " cuvtab_ind
    cuvt_tab_fields_new =       " cuvtab_fld
    cuvt_tab_fields_old =       " cuvtab_fld
    cuvt_tab_texts_new =        " cuvtab_tx
    cuvt_tab_texts_old =        " cuvtab_tx
    .  "  CUVT_UPDATE_TABLE_STRUCTURE

ABAP code example for Function Module CUVT_UPDATE_TABLE_STRUCTURE





The ABAP code below is a full code listing to execute function module CUVT_UPDATE_TABLE_STRUCTURE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
it_cuvt_tab_indices_new  TYPE STANDARD TABLE OF CUVTAB_IND,"TABLES PARAM
wa_cuvt_tab_indices_new  LIKE LINE OF it_cuvt_tab_indices_new ,
it_cuvt_tab_indices_old  TYPE STANDARD TABLE OF CUVTAB_IND,"TABLES PARAM
wa_cuvt_tab_indices_old  LIKE LINE OF it_cuvt_tab_indices_old ,
it_cuvt_tab_fields_new  TYPE STANDARD TABLE OF CUVTAB_FLD,"TABLES PARAM
wa_cuvt_tab_fields_new  LIKE LINE OF it_cuvt_tab_fields_new ,
it_cuvt_tab_fields_old  TYPE STANDARD TABLE OF CUVTAB_FLD,"TABLES PARAM
wa_cuvt_tab_fields_old  LIKE LINE OF it_cuvt_tab_fields_old ,
it_cuvt_tab_texts_new  TYPE STANDARD TABLE OF CUVTAB_TX,"TABLES PARAM
wa_cuvt_tab_texts_new  LIKE LINE OF it_cuvt_tab_texts_new ,
it_cuvt_tab_texts_old  TYPE STANDARD TABLE OF CUVTAB_TX,"TABLES PARAM
wa_cuvt_tab_texts_old  LIKE LINE OF it_cuvt_tab_texts_old .

DATA(ld_cuvt_header_new) = 'Check type of data required'.
DATA(ld_cuvt_header_old) = 'Check type of data required'.
DATA(ld_cuvt_adm_old) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_cuvt_tab_indices_new to it_cuvt_tab_indices_new.

"populate fields of struture and append to itab
append wa_cuvt_tab_indices_old to it_cuvt_tab_indices_old.

"populate fields of struture and append to itab
append wa_cuvt_tab_fields_new to it_cuvt_tab_fields_new.

"populate fields of struture and append to itab
append wa_cuvt_tab_fields_old to it_cuvt_tab_fields_old.

"populate fields of struture and append to itab
append wa_cuvt_tab_texts_new to it_cuvt_tab_texts_new.

"populate fields of struture and append to itab
append wa_cuvt_tab_texts_old to it_cuvt_tab_texts_old. . CALL FUNCTION 'CUVT_UPDATE_TABLE_STRUCTURE' EXPORTING cuvt_header_new = ld_cuvt_header_new cuvt_header_old = ld_cuvt_header_old * cuvt_adm_old = ld_cuvt_adm_old TABLES cuvt_tab_indices_new = it_cuvt_tab_indices_new cuvt_tab_indices_old = it_cuvt_tab_indices_old cuvt_tab_fields_new = it_cuvt_tab_fields_new cuvt_tab_fields_old = it_cuvt_tab_fields_old cuvt_tab_texts_new = it_cuvt_tab_texts_new cuvt_tab_texts_old = it_cuvt_tab_texts_old . " CUVT_UPDATE_TABLE_STRUCTURE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_cuvt_header_new  TYPE CUVTAB ,
it_cuvt_tab_indices_new  TYPE STANDARD TABLE OF CUVTAB_IND ,
wa_cuvt_tab_indices_new  LIKE LINE OF it_cuvt_tab_indices_new,
ld_cuvt_header_old  TYPE CUVTAB ,
it_cuvt_tab_indices_old  TYPE STANDARD TABLE OF CUVTAB_IND ,
wa_cuvt_tab_indices_old  LIKE LINE OF it_cuvt_tab_indices_old,
ld_cuvt_adm_old  TYPE CUVTAB_ADM ,
it_cuvt_tab_fields_new  TYPE STANDARD TABLE OF CUVTAB_FLD ,
wa_cuvt_tab_fields_new  LIKE LINE OF it_cuvt_tab_fields_new,
it_cuvt_tab_fields_old  TYPE STANDARD TABLE OF CUVTAB_FLD ,
wa_cuvt_tab_fields_old  LIKE LINE OF it_cuvt_tab_fields_old,
it_cuvt_tab_texts_new  TYPE STANDARD TABLE OF CUVTAB_TX ,
wa_cuvt_tab_texts_new  LIKE LINE OF it_cuvt_tab_texts_new,
it_cuvt_tab_texts_old  TYPE STANDARD TABLE OF CUVTAB_TX ,
wa_cuvt_tab_texts_old  LIKE LINE OF it_cuvt_tab_texts_old.

ld_cuvt_header_new = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_cuvt_tab_indices_new to it_cuvt_tab_indices_new.
ld_cuvt_header_old = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_cuvt_tab_indices_old to it_cuvt_tab_indices_old.
ld_cuvt_adm_old = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_cuvt_tab_fields_new to it_cuvt_tab_fields_new.

"populate fields of struture and append to itab
append wa_cuvt_tab_fields_old to it_cuvt_tab_fields_old.

"populate fields of struture and append to itab
append wa_cuvt_tab_texts_new to it_cuvt_tab_texts_new.

"populate fields of struture and append to itab
append wa_cuvt_tab_texts_old to it_cuvt_tab_texts_old.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name CUVT_UPDATE_TABLE_STRUCTURE or its description.