SAP Function Modules

VELO03_WRITE_SINGLE_CONFIG SAP Function module - VELO : Konfig. aus SCE-Tabellen auf DB anlegen, CUOBJ ausgeben







VELO03_WRITE_SINGLE_CONFIG 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 VELO03_WRITE_SINGLE_CONFIG into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: VELO03
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM VELO03_WRITE_SINGLE_CONFIG - VELO03 WRITE SINGLE CONFIG





CALL FUNCTION 'VELO03_WRITE_SINGLE_CONFIG' "VELO : Konfig. aus SCE-Tabellen auf DB anlegen, CUOBJ ausgeben
  EXPORTING
*   return_written_config_iv =   " char1        Einstelliges Kennzeichen
    bapicucfg_is =              " bapicucfg     CU: Konfigurationsdaten
*   cuobj_iv =                  " cuobj         Konfiguration (interne Objektnummer)
*   check_config_iv =           " char1         Flag, ob die Konfiguration überprüft werden soll
*   check_date_iv =             " sydatum       Datum und Zeit, aktuelles (Applikationsserver-)Datum
*   plant_iv =                  " werks_d       Werk
  IMPORTING
    bapicucfg_es =              " bapicucfg     CU: Konfigurationsdaten
    cuobj_ev =                  " cuobj         Konfiguration (interne Objektnummer)
  TABLES
    bapicuins_it =              " bapicuins     Instanzen mehrerer Konfigurationen
    bapicuprt_it =              " bapicuprt     Part_Of Angaben mehrerer Konfigurationen
    bapicuval_it =              " bapicuval     Merkmalsbewertung mehrerer Konfigurationen
*   bapicuvk_it =               " bapicuvk      Variantenkonditionsschluessel der Konfigurationen
*   bapicuins_et =              " bapicuins     Instanzen mehrerer Konfigurationen
*   bapicuprt_et =              " bapicuprt     Part_Of Angaben mehrerer Konfigurationen
*   bapicuval_et =              " bapicuval     Merkmalsbewertung mehrerer Konfigurationen
*   bapicuvk_et =               " bapicuvk      Variantenkonditionsschluessel der Konfigurationen
  EXCEPTIONS
    NO_CONVERSION = 1           "               Konvertierung der SCE-Tabellen fehlgeschlagen
    NO_SET_CONFIG = 2           "               Transform. externe in interne Darstell. und Anlegen einer Konf. fehlgeschlagen
    NO_CONFIG_TO_DB = 3         "               Konfiguration zu einer Instanz sichern fehlgeschlagen
    .  "  VELO03_WRITE_SINGLE_CONFIG

ABAP code example for Function Module VELO03_WRITE_SINGLE_CONFIG





The ABAP code below is a full code listing to execute function module VELO03_WRITE_SINGLE_CONFIG 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:
ld_bapicucfg_es  TYPE BAPICUCFG ,
ld_cuobj_ev  TYPE CUOBJ ,
it_bapicuins_it  TYPE STANDARD TABLE OF BAPICUINS,"TABLES PARAM
wa_bapicuins_it  LIKE LINE OF it_bapicuins_it ,
it_bapicuprt_it  TYPE STANDARD TABLE OF BAPICUPRT,"TABLES PARAM
wa_bapicuprt_it  LIKE LINE OF it_bapicuprt_it ,
it_bapicuval_it  TYPE STANDARD TABLE OF BAPICUVAL,"TABLES PARAM
wa_bapicuval_it  LIKE LINE OF it_bapicuval_it ,
it_bapicuvk_it  TYPE STANDARD TABLE OF BAPICUVK,"TABLES PARAM
wa_bapicuvk_it  LIKE LINE OF it_bapicuvk_it ,
it_bapicuins_et  TYPE STANDARD TABLE OF BAPICUINS,"TABLES PARAM
wa_bapicuins_et  LIKE LINE OF it_bapicuins_et ,
it_bapicuprt_et  TYPE STANDARD TABLE OF BAPICUPRT,"TABLES PARAM
wa_bapicuprt_et  LIKE LINE OF it_bapicuprt_et ,
it_bapicuval_et  TYPE STANDARD TABLE OF BAPICUVAL,"TABLES PARAM
wa_bapicuval_et  LIKE LINE OF it_bapicuval_et ,
it_bapicuvk_et  TYPE STANDARD TABLE OF BAPICUVK,"TABLES PARAM
wa_bapicuvk_et  LIKE LINE OF it_bapicuvk_et .

DATA(ld_return_written_config_iv) = 'Check type of data required'.
DATA(ld_bapicucfg_is) = 'Check type of data required'.
DATA(ld_cuobj_iv) = 'Check type of data required'.
DATA(ld_check_config_iv) = 'Check type of data required'.
DATA(ld_check_date_iv) = '20210129'.
DATA(ld_plant_iv) = '20210129'.

"populate fields of struture and append to itab
append wa_bapicuins_it to it_bapicuins_it.

"populate fields of struture and append to itab
append wa_bapicuprt_it to it_bapicuprt_it.

"populate fields of struture and append to itab
append wa_bapicuval_it to it_bapicuval_it.

"populate fields of struture and append to itab
append wa_bapicuvk_it to it_bapicuvk_it.

"populate fields of struture and append to itab
append wa_bapicuins_et to it_bapicuins_et.

"populate fields of struture and append to itab
append wa_bapicuprt_et to it_bapicuprt_et.

"populate fields of struture and append to itab
append wa_bapicuval_et to it_bapicuval_et.

"populate fields of struture and append to itab
append wa_bapicuvk_et to it_bapicuvk_et. . CALL FUNCTION 'VELO03_WRITE_SINGLE_CONFIG' EXPORTING * return_written_config_iv = ld_return_written_config_iv bapicucfg_is = ld_bapicucfg_is * cuobj_iv = ld_cuobj_iv * check_config_iv = ld_check_config_iv * check_date_iv = ld_check_date_iv * plant_iv = ld_plant_iv IMPORTING bapicucfg_es = ld_bapicucfg_es cuobj_ev = ld_cuobj_ev TABLES bapicuins_it = it_bapicuins_it bapicuprt_it = it_bapicuprt_it bapicuval_it = it_bapicuval_it * bapicuvk_it = it_bapicuvk_it * bapicuins_et = it_bapicuins_et * bapicuprt_et = it_bapicuprt_et * bapicuval_et = it_bapicuval_et * bapicuvk_et = it_bapicuvk_et EXCEPTIONS NO_CONVERSION = 1 NO_SET_CONFIG = 2 NO_CONFIG_TO_DB = 3 . " VELO03_WRITE_SINGLE_CONFIG
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here 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_bapicucfg_es  TYPE BAPICUCFG ,
ld_return_written_config_iv  TYPE CHAR1 ,
it_bapicuins_it  TYPE STANDARD TABLE OF BAPICUINS ,
wa_bapicuins_it  LIKE LINE OF it_bapicuins_it,
ld_cuobj_ev  TYPE CUOBJ ,
ld_bapicucfg_is  TYPE BAPICUCFG ,
it_bapicuprt_it  TYPE STANDARD TABLE OF BAPICUPRT ,
wa_bapicuprt_it  LIKE LINE OF it_bapicuprt_it,
ld_cuobj_iv  TYPE CUOBJ ,
it_bapicuval_it  TYPE STANDARD TABLE OF BAPICUVAL ,
wa_bapicuval_it  LIKE LINE OF it_bapicuval_it,
ld_check_config_iv  TYPE CHAR1 ,
it_bapicuvk_it  TYPE STANDARD TABLE OF BAPICUVK ,
wa_bapicuvk_it  LIKE LINE OF it_bapicuvk_it,
ld_check_date_iv  TYPE SYDATUM ,
it_bapicuins_et  TYPE STANDARD TABLE OF BAPICUINS ,
wa_bapicuins_et  LIKE LINE OF it_bapicuins_et,
ld_plant_iv  TYPE WERKS_D ,
it_bapicuprt_et  TYPE STANDARD TABLE OF BAPICUPRT ,
wa_bapicuprt_et  LIKE LINE OF it_bapicuprt_et,
it_bapicuval_et  TYPE STANDARD TABLE OF BAPICUVAL ,
wa_bapicuval_et  LIKE LINE OF it_bapicuval_et,
it_bapicuvk_et  TYPE STANDARD TABLE OF BAPICUVK ,
wa_bapicuvk_et  LIKE LINE OF it_bapicuvk_et.

ld_return_written_config_iv = '20210129'.

"populate fields of struture and append to itab
append wa_bapicuins_it to it_bapicuins_it.
ld_bapicucfg_is = '20210129'.

"populate fields of struture and append to itab
append wa_bapicuprt_it to it_bapicuprt_it.
ld_cuobj_iv = '20210129'.

"populate fields of struture and append to itab
append wa_bapicuval_it to it_bapicuval_it.
ld_check_config_iv = '20210129'.

"populate fields of struture and append to itab
append wa_bapicuvk_it to it_bapicuvk_it.
ld_check_date_iv = '20210129'.

"populate fields of struture and append to itab
append wa_bapicuins_et to it_bapicuins_et.
ld_plant_iv = '20210129'.

"populate fields of struture and append to itab
append wa_bapicuprt_et to it_bapicuprt_et.

"populate fields of struture and append to itab
append wa_bapicuval_et to it_bapicuval_et.

"populate fields of struture and append to itab
append wa_bapicuvk_et to it_bapicuvk_et.

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 VELO03_WRITE_SINGLE_CONFIG or its description.