SAP Function Modules

RSDU_ADD_DDSTORAGE_GENERIC_DB2 SAP Function module - writes DDSTORAGE entries for a table







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

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


Pattern for FM RSDU_ADD_DDSTORAGE_GENERIC_DB2 - RSDU ADD DDSTORAGE GENERIC DB2





CALL FUNCTION 'RSDU_ADD_DDSTORAGE_GENERIC_DB2' "writes DDSTORAGE entries for a table
  EXPORTING
    i_tabname =                 " tabname       Table Name
*   i_reftabname =              " tabname       Table Name
*   i_partfield =               " fieldname     Field Name
*   i_limitkey =                " c
*   i_bpool =                   " rsadmin-value  Value
*   i_dssize =                  " i
*   i_compress = RS_C_TRUE      " rs_bool       Boolean
*   i_dbname =                  " db2dbname     Database name
*   i_tsname =                  " db2tsname     Name of the tablespace
*   i_stogroup =                " db2stogroup   Storage group
*   i_include_primindex = RS_C_TRUE  " rs_bool  Boolean
*   i_ipartitioned = RS_C_FALSE  " rs_bool      Boolean
*   i_ibpool =                  " rsadmin-value  Value
*   i_icompress = RS_C_FALSE    " rs_bool       Boolean
  EXCEPTIONS
    INHERITED_ERROR = 1         "
    .  "  RSDU_ADD_DDSTORAGE_GENERIC_DB2

ABAP code example for Function Module RSDU_ADD_DDSTORAGE_GENERIC_DB2





The ABAP code below is a full code listing to execute function module RSDU_ADD_DDSTORAGE_GENERIC_DB2 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_i_tabname) = 'Check type of data required'.
DATA(ld_i_reftabname) = 'Check type of data required'.
DATA(ld_i_partfield) = 'Check type of data required'.
DATA(ld_i_limitkey) = 'Check type of data required'.

SELECT single VALUE
FROM RSADMIN
INTO @DATA(ld_i_bpool).

DATA(ld_i_dssize) = 'Check type of data required'.
DATA(ld_i_compress) = 'Check type of data required'.
DATA(ld_i_dbname) = 'Check type of data required'.
DATA(ld_i_tsname) = 'Check type of data required'.
DATA(ld_i_stogroup) = 'Check type of data required'.
DATA(ld_i_include_primindex) = 'Check type of data required'.
DATA(ld_i_ipartitioned) = 'Check type of data required'.

SELECT single VALUE
FROM RSADMIN
INTO @DATA(ld_i_ibpool).

DATA(ld_i_icompress) = 'Check type of data required'. . CALL FUNCTION 'RSDU_ADD_DDSTORAGE_GENERIC_DB2' EXPORTING i_tabname = ld_i_tabname * i_reftabname = ld_i_reftabname * i_partfield = ld_i_partfield * i_limitkey = ld_i_limitkey * i_bpool = ld_i_bpool * i_dssize = ld_i_dssize * i_compress = ld_i_compress * i_dbname = ld_i_dbname * i_tsname = ld_i_tsname * i_stogroup = ld_i_stogroup * i_include_primindex = ld_i_include_primindex * i_ipartitioned = ld_i_ipartitioned * i_ibpool = ld_i_ibpool * i_icompress = ld_i_icompress EXCEPTIONS INHERITED_ERROR = 1 . " RSDU_ADD_DDSTORAGE_GENERIC_DB2
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "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_i_tabname  TYPE TABNAME ,
ld_i_reftabname  TYPE TABNAME ,
ld_i_partfield  TYPE FIELDNAME ,
ld_i_limitkey  TYPE C ,
ld_i_bpool  TYPE RSADMIN-VALUE ,
ld_i_dssize  TYPE I ,
ld_i_compress  TYPE RS_BOOL ,
ld_i_dbname  TYPE DB2DBNAME ,
ld_i_tsname  TYPE DB2TSNAME ,
ld_i_stogroup  TYPE DB2STOGROUP ,
ld_i_include_primindex  TYPE RS_BOOL ,
ld_i_ipartitioned  TYPE RS_BOOL ,
ld_i_ibpool  TYPE RSADMIN-VALUE ,
ld_i_icompress  TYPE RS_BOOL .

ld_i_tabname = 'Check type of data required'.
ld_i_reftabname = 'Check type of data required'.
ld_i_partfield = 'Check type of data required'.
ld_i_limitkey = 'Check type of data required'.

SELECT single VALUE
FROM RSADMIN
INTO ld_i_bpool.

ld_i_dssize = 'Check type of data required'.
ld_i_compress = 'Check type of data required'.
ld_i_dbname = 'Check type of data required'.
ld_i_tsname = 'Check type of data required'.
ld_i_stogroup = 'Check type of data required'.
ld_i_include_primindex = 'Check type of data required'.
ld_i_ipartitioned = 'Check type of data required'.

SELECT single VALUE
FROM RSADMIN
INTO ld_i_ibpool.

ld_i_icompress = 'Check type of data required'.

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