SAP Function Modules

RSDRC_CONVERT_RANGES_TO_SELDR SAP Function module - Converts Ranges to SELDR Format







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

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


Pattern for FM RSDRC_CONVERT_RANGES_TO_SELDR - RSDRC CONVERT RANGES TO SELDR





CALL FUNCTION 'RSDRC_CONVERT_RANGES_TO_SELDR' "Converts Ranges to SELDR Format
  EXPORTING
    i_infoprov =                " rsinfoprov    InfoProvider
    i_th_sfc =                  " rsdri_th_sfc  List of Characteristics
*   i_th_sfk =                  " rsdri_th_sfk  List of Key Figures
*   i_t_range =                 " rsdri_t_range  Selection Conditions Connected with AND
*   i_tx_rangetab =             " rsdri_tx_rangetab  Lists Connected with AND from OR Conditions
*   i_th_tablesel =             " rsdri_th_selt  List of Table Selections
*   i_th_indexsel =             " rsdri_th_selt  List of Index Selections
*   i_reference_date = SY-DATUM  " rsdri_refdate  BW Data Manager: Key date
*   i_convert_chavl = RS_C_UNKNOWN  " rs_bool   Convert CHAVL Conditions to SID Conditions (Yes/No/Heuristic)
*   i_huge_ranges = 100         " i             Number of Conditions (Ranges) as of Which Optimization Is Performed
*   i_use_db_aggregation = RS_C_UNKNOWN  " rs_bool  Aggregate to DB (Yes/No/Is Derived)
*   i_save_in_dbtable = RS_C_FALSE  " rs_bool   If Query Result Is Materialized, Aliases Must Be Checked in SFC, SFK
*   i_read_ods_delta = RS_C_FALSE  " rs_bool    For ODS: Read Delta (Yes/No)
*   i_commit_allowed = RS_C_TRUE  " rs_bool     Commit Is Permitted on Primary Connection
*   i_caller =                  " rsdrs_caller  Caller of RSDRI
  IMPORTING
    e_th_sfc =                  " rsdd_th_sfc   Table of Required Characteristics
    e_th_sfk =                  " rsdd_th_sfk   Table of Required Basic Key Figures
    e_tsx_seldr =               " rsdd_tsx_seldr  Selection to the Data Manager
    e_t_tablnm =                " rsdu_t_tablnm  Temporary Tables (for Release)
  EXCEPTIONS
    CX_RSR_HIERARCHY_EXCEPTIONS = 1  "
    CX_RSDRC_ILLEGAL_INPUT_SFC = 2  "           Error in sfc (RSDRI...)
    CX_RSDRC_ILLEGAL_INPUT_SFK = 3  "           Error in sfk (RSDRI...)
    CX_RSDRC_ILLEGAL_INPUT_RANGE = 4  "         Error in Range (RSDRI...)
    CX_RSDRC_ILLEGAL_INPUT_TABLSEL = 5  "       Error in Range (RSDRI...)
    .  "  RSDRC_CONVERT_RANGES_TO_SELDR

ABAP code example for Function Module RSDRC_CONVERT_RANGES_TO_SELDR





The ABAP code below is a full code listing to execute function module RSDRC_CONVERT_RANGES_TO_SELDR 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_th_sfc  TYPE RSDD_TH_SFC ,
ld_e_th_sfk  TYPE RSDD_TH_SFK ,
ld_e_tsx_seldr  TYPE RSDD_TSX_SELDR ,
ld_e_t_tablnm  TYPE RSDU_T_TABLNM .

DATA(ld_i_infoprov) = 'Check type of data required'.
DATA(ld_i_th_sfc) = 'Check type of data required'.
DATA(ld_i_th_sfk) = 'Check type of data required'.
DATA(ld_i_t_range) = 'Check type of data required'.
DATA(ld_i_tx_rangetab) = 'Check type of data required'.
DATA(ld_i_th_tablesel) = 'Check type of data required'.
DATA(ld_i_th_indexsel) = 'Check type of data required'.
DATA(ld_i_reference_date) = 'Check type of data required'.
DATA(ld_i_convert_chavl) = 'Check type of data required'.
DATA(ld_i_huge_ranges) = 'Check type of data required'.
DATA(ld_i_use_db_aggregation) = 'Check type of data required'.
DATA(ld_i_save_in_dbtable) = 'Check type of data required'.
DATA(ld_i_read_ods_delta) = 'Check type of data required'.
DATA(ld_i_commit_allowed) = 'Check type of data required'.
DATA(ld_i_caller) = 'Check type of data required'. . CALL FUNCTION 'RSDRC_CONVERT_RANGES_TO_SELDR' EXPORTING i_infoprov = ld_i_infoprov i_th_sfc = ld_i_th_sfc * i_th_sfk = ld_i_th_sfk * i_t_range = ld_i_t_range * i_tx_rangetab = ld_i_tx_rangetab * i_th_tablesel = ld_i_th_tablesel * i_th_indexsel = ld_i_th_indexsel * i_reference_date = ld_i_reference_date * i_convert_chavl = ld_i_convert_chavl * i_huge_ranges = ld_i_huge_ranges * i_use_db_aggregation = ld_i_use_db_aggregation * i_save_in_dbtable = ld_i_save_in_dbtable * i_read_ods_delta = ld_i_read_ods_delta * i_commit_allowed = ld_i_commit_allowed * i_caller = ld_i_caller IMPORTING e_th_sfc = ld_e_th_sfc e_th_sfk = ld_e_th_sfk e_tsx_seldr = ld_e_tsx_seldr e_t_tablnm = ld_e_t_tablnm EXCEPTIONS CX_RSR_HIERARCHY_EXCEPTIONS = 1 CX_RSDRC_ILLEGAL_INPUT_SFC = 2 CX_RSDRC_ILLEGAL_INPUT_SFK = 3 CX_RSDRC_ILLEGAL_INPUT_RANGE = 4 CX_RSDRC_ILLEGAL_INPUT_TABLSEL = 5 . " RSDRC_CONVERT_RANGES_TO_SELDR
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 ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "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_th_sfc  TYPE RSDD_TH_SFC ,
ld_i_infoprov  TYPE RSINFOPROV ,
ld_e_th_sfk  TYPE RSDD_TH_SFK ,
ld_i_th_sfc  TYPE RSDRI_TH_SFC ,
ld_e_tsx_seldr  TYPE RSDD_TSX_SELDR ,
ld_i_th_sfk  TYPE RSDRI_TH_SFK ,
ld_e_t_tablnm  TYPE RSDU_T_TABLNM ,
ld_i_t_range  TYPE RSDRI_T_RANGE ,
ld_i_tx_rangetab  TYPE RSDRI_TX_RANGETAB ,
ld_i_th_tablesel  TYPE RSDRI_TH_SELT ,
ld_i_th_indexsel  TYPE RSDRI_TH_SELT ,
ld_i_reference_date  TYPE RSDRI_REFDATE ,
ld_i_convert_chavl  TYPE RS_BOOL ,
ld_i_huge_ranges  TYPE I ,
ld_i_use_db_aggregation  TYPE RS_BOOL ,
ld_i_save_in_dbtable  TYPE RS_BOOL ,
ld_i_read_ods_delta  TYPE RS_BOOL ,
ld_i_commit_allowed  TYPE RS_BOOL ,
ld_i_caller  TYPE RSDRS_CALLER .

ld_i_infoprov = 'Check type of data required'.
ld_i_th_sfc = 'Check type of data required'.
ld_i_th_sfk = 'Check type of data required'.
ld_i_t_range = 'Check type of data required'.
ld_i_tx_rangetab = 'Check type of data required'.
ld_i_th_tablesel = 'Check type of data required'.
ld_i_th_indexsel = 'Check type of data required'.
ld_i_reference_date = 'Check type of data required'.
ld_i_convert_chavl = 'Check type of data required'.
ld_i_huge_ranges = 'Check type of data required'.
ld_i_use_db_aggregation = 'Check type of data required'.
ld_i_save_in_dbtable = 'Check type of data required'.
ld_i_read_ods_delta = 'Check type of data required'.
ld_i_commit_allowed = 'Check type of data required'.
ld_i_caller = '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 RSDRC_CONVERT_RANGES_TO_SELDR or its description.