SAP Function Modules

RSDU_ODS_PART_INSTANTIATE_HDB SAP Function module - creates database dependant partition properties in the SAP-DD







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

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


Pattern for FM RSDU_ODS_PART_INSTANTIATE_HDB - RSDU ODS PART INSTANTIATE HDB





CALL FUNCTION 'RSDU_ODS_PART_INSTANTIATE_HDB' "creates database dependant partition properties in the SAP-DD
  EXPORTING
    i_odsobject =               " rsdodsobject
    i_tabt =                    " rsdodstabt
    i_tablnm =                  " rsd_tablnm
    i_t_key =                   " rsdu_t_keyfield
    i_part_type = RSDU_C_PARTYPE-HASH  " rsdu_partype
    i_t_mdc_iobj =              " rsdo_t_mdc_iobj
    i_odsotype =                " rsdodsotype
    i_avoid_insert = ABAP_FALSE  " abap_bool    do not store partition spec in DDSTORAGE
  IMPORTING
    e_processed =               " rs_bool
    e_t_ddstorage =             " if_rsdu_def=>tt_ddstorage
  EXCEPTIONS
    ODS_INSTANTIATE_FAILED = 1  "
    NO_KEY_FIELD = 2            "
    .  "  RSDU_ODS_PART_INSTANTIATE_HDB

ABAP code example for Function Module RSDU_ODS_PART_INSTANTIATE_HDB





The ABAP code below is a full code listing to execute function module RSDU_ODS_PART_INSTANTIATE_HDB 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_e_processed  TYPE RS_BOOL ,
ld_e_t_ddstorage  TYPE IF_RSDU_DEF=>TT_DDSTORAGE .

DATA(ld_i_odsobject) = 'Check type of data required'.
DATA(ld_i_tabt) = 'Check type of data required'.
DATA(ld_i_tablnm) = 'Check type of data required'.
DATA(ld_i_t_key) = 'Check type of data required'.
DATA(ld_i_part_type) = 'Check type of data required'.
DATA(ld_i_t_mdc_iobj) = 'Check type of data required'.
DATA(ld_i_odsotype) = 'Check type of data required'.
DATA(ld_i_avoid_insert) = 'Check type of data required'. . CALL FUNCTION 'RSDU_ODS_PART_INSTANTIATE_HDB' EXPORTING i_odsobject = ld_i_odsobject i_tabt = ld_i_tabt i_tablnm = ld_i_tablnm i_t_key = ld_i_t_key i_part_type = ld_i_part_type i_t_mdc_iobj = ld_i_t_mdc_iobj i_odsotype = ld_i_odsotype i_avoid_insert = ld_i_avoid_insert IMPORTING e_processed = ld_e_processed e_t_ddstorage = ld_e_t_ddstorage EXCEPTIONS ODS_INSTANTIATE_FAILED = 1 NO_KEY_FIELD = 2 . " RSDU_ODS_PART_INSTANTIATE_HDB
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 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_e_processed  TYPE RS_BOOL ,
ld_i_odsobject  TYPE RSDODSOBJECT ,
ld_e_t_ddstorage  TYPE IF_RSDU_DEF=>TT_DDSTORAGE ,
ld_i_tabt  TYPE RSDODSTABT ,
ld_i_tablnm  TYPE RSD_TABLNM ,
ld_i_t_key  TYPE RSDU_T_KEYFIELD ,
ld_i_part_type  TYPE RSDU_PARTYPE ,
ld_i_t_mdc_iobj  TYPE RSDO_T_MDC_IOBJ ,
ld_i_odsotype  TYPE RSDODSOTYPE ,
ld_i_avoid_insert  TYPE ABAP_BOOL .

ld_i_odsobject = 'Check type of data required'.
ld_i_tabt = 'Check type of data required'.
ld_i_tablnm = 'Check type of data required'.
ld_i_t_key = 'Check type of data required'.
ld_i_part_type = 'Check type of data required'.
ld_i_t_mdc_iobj = 'Check type of data required'.
ld_i_odsotype = 'Check type of data required'.
ld_i_avoid_insert = '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_ODS_PART_INSTANTIATE_HDB or its description.