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
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
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).
| 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 . |
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 . |
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.
RSDRC_CONVERT_RANGES_TO_SELDR - Converts Ranges to SELDR Format RSDRC_CONVERT_RANGES_TO_SELC - Converts Ranges to SELC Format RSDRC_CODE_INFOPROV_READ - Generates ABAP Code for RFC Data Access RSDRC_CHECK_SELDR_VS_SID - Checks Whether a Value (SID) Fulfills a SELDR Condition RSDRC_CHECK_SELDR_VS_CHAVL - Checks Whether a Value (CHAVL) Fulfills a SELDR Condition RSDRC_AUTHORITY_CHECK - Authorization Check for Data Access (Read, Change)