SAP Function Modules

RSD_TNAMES_GET_FOR_CUBE SAP Function module - BW Namespace: Gets All Table/View Names for InfoCube







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

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


Pattern for FM RSD_TNAMES_GET_FOR_CUBE - RSD TNAMES GET FOR CUBE





CALL FUNCTION 'RSD_TNAMES_GET_FOR_CUBE' "BW Namespace: Gets All Table/View Names for InfoCube
  EXPORTING
    i_infocube =                " rsd_infocube  InfoCube
  IMPORTING
    e_facttab =                 " rsd_s_cube-facttab  Name of Fact Table
    e_facttab_cnv =             " rsd_s_cube-facttab  Temp. Fact Table (for Conversion)
    e_factview =                " rsd_s_cube-factview  Name of View for Fact Table
    e_comptab =                 " rsd_s_cube-comptab  Name of Compressed Fact Table
    e_comptab_cnv =             " rsd_s_cube-comptab  Temp. Compressed Fact Table (Conversion)
    e_stagetab =                " rsd_s_cube-facttab  Name of Staging Table
    e_ncumvaltab =              " rsd_s_cube-ncumvaltab  Name of Validity Table for Non-Cumulative
    e_viewtotal =               " rsd_s_cube-viewtotal  Name of Structure of All Objects
    e_viewiobj =                " rsd_s_cube-viewiobj  Name of Structure (Only InfoObjects)
    e_viewnavatr =              " rsd_s_cube-viewnavatr  Name of Structure (Only Navigation Attributes)
    e_viewiiobjnm =             " rsd_s_cube-viewiiobjnm  Name of Structure (Only InfoObjects with InfoObject Names)
    e_viewtiobjnm =             " rsd_s_cube-viewtiobjnm  Name of Structure (All Objects with InfoObject Names)
    e_viewtiobjnm2 =            " rsd_s_cube-viewtiobjnm2  Name of Structure (All Objects with InfoObject Names) (2)
    e_viewhiobjnm =             " rsd_s_cube-viewhiobjnm  Name of Structure (All InfoObjects, Navigation Attributes, and Hierarchies)
    e_view_comp_delta =         " tabname       Summarization: Delta Data Records
    e_view_comp_ncum =          " tabname       Summarization: Reference Points
    e_view_elim_null =          " tabname       Elimination of Zero Data Records
  EXCEPTIONS
    NAME_ERROR = 1              "               InfoCube name is blank or too long
    .  "  RSD_TNAMES_GET_FOR_CUBE

ABAP code example for Function Module RSD_TNAMES_GET_FOR_CUBE





The ABAP code below is a full code listing to execute function module RSD_TNAMES_GET_FOR_CUBE 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_facttab  TYPE RSD_S_CUBE-FACTTAB ,
ld_e_facttab_cnv  TYPE RSD_S_CUBE-FACTTAB ,
ld_e_factview  TYPE RSD_S_CUBE-FACTVIEW ,
ld_e_comptab  TYPE RSD_S_CUBE-COMPTAB ,
ld_e_comptab_cnv  TYPE RSD_S_CUBE-COMPTAB ,
ld_e_stagetab  TYPE RSD_S_CUBE-FACTTAB ,
ld_e_ncumvaltab  TYPE RSD_S_CUBE-NCUMVALTAB ,
ld_e_viewtotal  TYPE RSD_S_CUBE-VIEWTOTAL ,
ld_e_viewiobj  TYPE RSD_S_CUBE-VIEWIOBJ ,
ld_e_viewnavatr  TYPE RSD_S_CUBE-VIEWNAVATR ,
ld_e_viewiiobjnm  TYPE RSD_S_CUBE-VIEWIIOBJNM ,
ld_e_viewtiobjnm  TYPE RSD_S_CUBE-VIEWTIOBJNM ,
ld_e_viewtiobjnm2  TYPE RSD_S_CUBE-VIEWTIOBJNM2 ,
ld_e_viewhiobjnm  TYPE RSD_S_CUBE-VIEWHIOBJNM ,
ld_e_view_comp_delta  TYPE TABNAME ,
ld_e_view_comp_ncum  TYPE TABNAME ,
ld_e_view_elim_null  TYPE TABNAME .

DATA(ld_i_infocube) = 'Check type of data required'. . CALL FUNCTION 'RSD_TNAMES_GET_FOR_CUBE' EXPORTING i_infocube = ld_i_infocube IMPORTING e_facttab = ld_e_facttab e_facttab_cnv = ld_e_facttab_cnv e_factview = ld_e_factview e_comptab = ld_e_comptab e_comptab_cnv = ld_e_comptab_cnv e_stagetab = ld_e_stagetab e_ncumvaltab = ld_e_ncumvaltab e_viewtotal = ld_e_viewtotal e_viewiobj = ld_e_viewiobj e_viewnavatr = ld_e_viewnavatr e_viewiiobjnm = ld_e_viewiiobjnm e_viewtiobjnm = ld_e_viewtiobjnm e_viewtiobjnm2 = ld_e_viewtiobjnm2 e_viewhiobjnm = ld_e_viewhiobjnm e_view_comp_delta = ld_e_view_comp_delta e_view_comp_ncum = ld_e_view_comp_ncum e_view_elim_null = ld_e_view_elim_null EXCEPTIONS NAME_ERROR = 1 . " RSD_TNAMES_GET_FOR_CUBE
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_e_facttab  TYPE RSD_S_CUBE-FACTTAB ,
ld_i_infocube  TYPE RSD_INFOCUBE ,
ld_e_facttab_cnv  TYPE RSD_S_CUBE-FACTTAB ,
ld_e_factview  TYPE RSD_S_CUBE-FACTVIEW ,
ld_e_comptab  TYPE RSD_S_CUBE-COMPTAB ,
ld_e_comptab_cnv  TYPE RSD_S_CUBE-COMPTAB ,
ld_e_stagetab  TYPE RSD_S_CUBE-FACTTAB ,
ld_e_ncumvaltab  TYPE RSD_S_CUBE-NCUMVALTAB ,
ld_e_viewtotal  TYPE RSD_S_CUBE-VIEWTOTAL ,
ld_e_viewiobj  TYPE RSD_S_CUBE-VIEWIOBJ ,
ld_e_viewnavatr  TYPE RSD_S_CUBE-VIEWNAVATR ,
ld_e_viewiiobjnm  TYPE RSD_S_CUBE-VIEWIIOBJNM ,
ld_e_viewtiobjnm  TYPE RSD_S_CUBE-VIEWTIOBJNM ,
ld_e_viewtiobjnm2  TYPE RSD_S_CUBE-VIEWTIOBJNM2 ,
ld_e_viewhiobjnm  TYPE RSD_S_CUBE-VIEWHIOBJNM ,
ld_e_view_comp_delta  TYPE TABNAME ,
ld_e_view_comp_ncum  TYPE TABNAME ,
ld_e_view_elim_null  TYPE TABNAME .

ld_i_infocube = '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 RSD_TNAMES_GET_FOR_CUBE or its description.