SAP Function Modules

GET_DBA_VOL_SET_DBSP SAP Function module







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

Associated Function Group: SDBI
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM GET_DBA_VOL_SET_DBSP - GET DBA VOL SET DBSP





CALL FUNCTION 'GET_DBA_VOL_SET_DBSP' "
* EXPORTING
*   system_struct = SPACE       " sdbasi        Internal Table for SAP Systems with DBA Scheduling
  IMPORTING
    cpu_count =                 " int4          Natural Number
  TABLES
    volume_set =                " sdbaivq       INTTAB for query which volumes are needed for backup
    dbsp_table =                " sdbalist      General Structure for DBA List Output
    .  "  GET_DBA_VOL_SET_DBSP

ABAP code example for Function Module GET_DBA_VOL_SET_DBSP





The ABAP code below is a full code listing to execute function module GET_DBA_VOL_SET_DBSP 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_cpu_count  TYPE INT4 ,
it_volume_set  TYPE STANDARD TABLE OF SDBAIVQ,"TABLES PARAM
wa_volume_set  LIKE LINE OF it_volume_set ,
it_dbsp_table  TYPE STANDARD TABLE OF SDBALIST,"TABLES PARAM
wa_dbsp_table  LIKE LINE OF it_dbsp_table .

DATA(ld_system_struct) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_volume_set to it_volume_set.

"populate fields of struture and append to itab
append wa_dbsp_table to it_dbsp_table. . CALL FUNCTION 'GET_DBA_VOL_SET_DBSP' * EXPORTING * system_struct = ld_system_struct IMPORTING cpu_count = ld_cpu_count TABLES volume_set = it_volume_set dbsp_table = it_dbsp_table . " GET_DBA_VOL_SET_DBSP
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_cpu_count  TYPE INT4 ,
ld_system_struct  TYPE SDBASI ,
it_volume_set  TYPE STANDARD TABLE OF SDBAIVQ ,
wa_volume_set  LIKE LINE OF it_volume_set,
it_dbsp_table  TYPE STANDARD TABLE OF SDBALIST ,
wa_dbsp_table  LIKE LINE OF it_dbsp_table.

ld_system_struct = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_volume_set to it_volume_set.

"populate fields of struture and append to itab
append wa_dbsp_table to it_dbsp_table.

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