SAP Function Modules

RSDRI_INFOPROV_READ SAP Function module - BW Data Manager: General Read Interfaces







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

Associated Function Group: RSDRI
Released Date: 17.03.2008
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM RSDRI_INFOPROV_READ - RSDRI INFOPROV READ





CALL FUNCTION 'RSDRI_INFOPROV_READ' "BW Data Manager: General Read Interfaces
  EXPORTING
    i_infoprov =                " rsinfoprov    Technical Name of InfoProvider
    i_th_sfc =                  " rsdri_th_sfc  Characteristics That Are to Be Returned
    i_th_sfk =                  " rsdri_th_sfk  Key Figures That Are to Be Returned
*   i_t_range =                 " rsdri_t_range  Selection Conditions Connected with AND
*   i_th_tablesel =             " rsdri_th_selt  List of Table Selections
*   i_t_rtime =                 " rsdri_t_rtime  BW Data Manager: Table of Intervals for Non-Cumulatives
*   i_reference_date = SY-DATUM  " rsdri_refdate  Key Date
*   i_rollup_only = RS_C_TRUE   " rs_bool       Cubes: Read Only to Rollup? Is Cropped with I_T_REQUID
*   i_t_requid =                " rsdr0_t_requid  Optional Selection of Relevant Requests
*   i_save_in_table = SPACE     " rsdri_save_in_table  Save Result in DB Table?
*   i_tablename =               " rsdri_tablename  Name of the Results Table
*   i_save_in_file = SPACE      " rsdri_save_in_file  Save Result in File?
*   i_filename =                " rsdri_filename  Name of Results File
*   i_save_in_index = SPACE     " rsdri_save_in_index  Save result in BWA index?
*   i_index_id =                " trexd_index_id  Name of the BWA Index
*   i_packagesize = 1000        " i             Size of Returned Data Package
*   i_maxrows = 0               " i             Stops After This Number of Records
*   i_authority_check = RSDRC_C_AUTHCHK-READ  " rsdri_authchk  Should Access Check Be Executed Read/Write/None
*   i_currency_conversion = 'X'  " rsdr0_curr_conv  Convert Currency Key Figures
*   i_use_db_aggregation = RS_C_TRUE  " rs_bool  Aggregate Run on DB
*   i_use_aggregates = RS_C_TRUE  " rs_bool     (Only InfoCubes): Use Aggregate Yes/No
*   i_read_ods_delta = RS_C_FALSE  " rsdri_changelog_extraction  (Only ODS Objects): Should Data Be Read from the ODS Change Log?
*   i_caller = RSDRS_C_CALLER-RSDRI  " rsdrs_caller  ID of User who Called up Transaction
*   i_debug = RS_C_FALSE        " rs_bool       Debugging Mode On/Off
*   i_clear = RS_C_FALSE        " rs_bool       Delete Static References
*   i_commit_allowed = RS_C_TRUE  " rs_bool     Commit Permitted During Read
*   i_with_nls = RS_C_FALSE     " dbman_with_nearline  Also Read Near-Line Storage/Archive
*   i_check_results = RS_C_FALSE  " rs_bool     Internal Use Only
*   i_process_mpro_in_trex =    " rsdri_process_mpro_in_trex  Process MultiProvider Query in TREX (if Possible)
  IMPORTING
    e_t_data =                  " standard table  Internal Table with Query Result
    e_end_of_data =             " rs_bool       Last Data Package Yes/No
    e_aggregate =               " rsinfocube    Last Aggregate Used
    e_split_occurred =          " rsdr0_split_occurred  Result may not be completely aggregated
    e_t_msg =                   " rs_t_msg      BW: Table with Messages (Application Log)
    e_stepuid =                 " sysuuid_25    UUID of the step in the query statistics
  CHANGING
    c_first_call =              " rs_bool       First Call Yes/No
  EXCEPTIONS
    ILLEGAL_INPUT = 1           "               Incorrect Input Parameter
    ILLEGAL_INPUT_SFC = 2       "               Error in SFC Parameter
    ILLEGAL_INPUT_SFK = 3       "               Error in SFK Parameter
    ILLEGAL_INPUT_RANGE = 4     "               Error in RANGE or RANGETAB Parameter
    ILLEGAL_INPUT_TABLESEL = 5  "               Error in TABLESEL Parameter
    NO_AUTHORIZATION = 6        "               No Authorization for Data Access
    ILLEGAL_DOWNLOAD = 7        "               Download into the Specified Form Not Possible
    ILLEGAL_TABLENAME = 8       "               Table Name Already In Use (by DDIC or on DB)
    TRANS_NO_WRITE_MODE = 9     "               Transactional InfoCube Not in Write Mode
    INHERITED_ERROR = 10        "               Error in Called Routine
    X_MESSAGE = 11              "               Other Error from Deeper Modules
    NO_COMMIT_FREE_READ = 12    "               Read Without COMMIT Not Possible, See I_COMMIT_ALLOWED
    .  "  RSDRI_INFOPROV_READ

ABAP code example for Function Module RSDRI_INFOPROV_READ





The ABAP code below is a full code listing to execute function module RSDRI_INFOPROV_READ 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_t_data  TYPE STANDARD TABLE ,
ld_e_end_of_data  TYPE RS_BOOL ,
ld_e_aggregate  TYPE RSINFOCUBE ,
ld_e_split_occurred  TYPE RSDR0_SPLIT_OCCURRED ,
ld_e_t_msg  TYPE RS_T_MSG ,
ld_e_stepuid  TYPE SYSUUID_25 .

DATA(ld_c_first_call) = 'Check type of data required'.
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_th_tablesel) = 'Check type of data required'.
DATA(ld_i_t_rtime) = 'Check type of data required'.
DATA(ld_i_reference_date) = 'Check type of data required'.
DATA(ld_i_rollup_only) = 'Check type of data required'.
DATA(ld_i_t_requid) = 'Check type of data required'.
DATA(ld_i_save_in_table) = 'Check type of data required'.
DATA(ld_i_tablename) = 'Check type of data required'.
DATA(ld_i_save_in_file) = 'Check type of data required'.
DATA(ld_i_filename) = 'Check type of data required'.
DATA(ld_i_save_in_index) = 'Check type of data required'.
DATA(ld_i_index_id) = 'Check type of data required'.
DATA(ld_i_packagesize) = 'Check type of data required'.
DATA(ld_i_maxrows) = 'Check type of data required'.
DATA(ld_i_authority_check) = 'Check type of data required'.
DATA(ld_i_currency_conversion) = 'Check type of data required'.
DATA(ld_i_use_db_aggregation) = 'Check type of data required'.
DATA(ld_i_use_aggregates) = 'Check type of data required'.
DATA(ld_i_read_ods_delta) = 'Check type of data required'.
DATA(ld_i_caller) = 'Check type of data required'.
DATA(ld_i_debug) = 'Check type of data required'.
DATA(ld_i_clear) = 'Check type of data required'.
DATA(ld_i_commit_allowed) = 'Check type of data required'.
DATA(ld_i_with_nls) = 'Check type of data required'.
DATA(ld_i_check_results) = 'Check type of data required'.
DATA(ld_i_process_mpro_in_trex) = 'Check type of data required'. . CALL FUNCTION 'RSDRI_INFOPROV_READ' 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_th_tablesel = ld_i_th_tablesel * i_t_rtime = ld_i_t_rtime * i_reference_date = ld_i_reference_date * i_rollup_only = ld_i_rollup_only * i_t_requid = ld_i_t_requid * i_save_in_table = ld_i_save_in_table * i_tablename = ld_i_tablename * i_save_in_file = ld_i_save_in_file * i_filename = ld_i_filename * i_save_in_index = ld_i_save_in_index * i_index_id = ld_i_index_id * i_packagesize = ld_i_packagesize * i_maxrows = ld_i_maxrows * i_authority_check = ld_i_authority_check * i_currency_conversion = ld_i_currency_conversion * i_use_db_aggregation = ld_i_use_db_aggregation * i_use_aggregates = ld_i_use_aggregates * i_read_ods_delta = ld_i_read_ods_delta * i_caller = ld_i_caller * i_debug = ld_i_debug * i_clear = ld_i_clear * i_commit_allowed = ld_i_commit_allowed * i_with_nls = ld_i_with_nls * i_check_results = ld_i_check_results * i_process_mpro_in_trex = ld_i_process_mpro_in_trex IMPORTING e_t_data = ld_e_t_data e_end_of_data = ld_e_end_of_data e_aggregate = ld_e_aggregate e_split_occurred = ld_e_split_occurred e_t_msg = ld_e_t_msg e_stepuid = ld_e_stepuid CHANGING c_first_call = ld_c_first_call EXCEPTIONS ILLEGAL_INPUT = 1 ILLEGAL_INPUT_SFC = 2 ILLEGAL_INPUT_SFK = 3 ILLEGAL_INPUT_RANGE = 4 ILLEGAL_INPUT_TABLESEL = 5 NO_AUTHORIZATION = 6 ILLEGAL_DOWNLOAD = 7 ILLEGAL_TABLENAME = 8 TRANS_NO_WRITE_MODE = 9 INHERITED_ERROR = 10 X_MESSAGE = 11 NO_COMMIT_FREE_READ = 12 . " RSDRI_INFOPROV_READ
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 ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 9. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 10. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 11. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 12. "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_c_first_call  TYPE RS_BOOL ,
ld_e_t_data  TYPE STANDARD TABLE ,
ld_i_infoprov  TYPE RSINFOPROV ,
ld_e_end_of_data  TYPE RS_BOOL ,
ld_i_th_sfc  TYPE RSDRI_TH_SFC ,
ld_e_aggregate  TYPE RSINFOCUBE ,
ld_i_th_sfk  TYPE RSDRI_TH_SFK ,
ld_e_split_occurred  TYPE RSDR0_SPLIT_OCCURRED ,
ld_i_t_range  TYPE RSDRI_T_RANGE ,
ld_e_t_msg  TYPE RS_T_MSG ,
ld_i_th_tablesel  TYPE RSDRI_TH_SELT ,
ld_e_stepuid  TYPE SYSUUID_25 ,
ld_i_t_rtime  TYPE RSDRI_T_RTIME ,
ld_i_reference_date  TYPE RSDRI_REFDATE ,
ld_i_rollup_only  TYPE RS_BOOL ,
ld_i_t_requid  TYPE RSDR0_T_REQUID ,
ld_i_save_in_table  TYPE RSDRI_SAVE_IN_TABLE ,
ld_i_tablename  TYPE RSDRI_TABLENAME ,
ld_i_save_in_file  TYPE RSDRI_SAVE_IN_FILE ,
ld_i_filename  TYPE RSDRI_FILENAME ,
ld_i_save_in_index  TYPE RSDRI_SAVE_IN_INDEX ,
ld_i_index_id  TYPE TREXD_INDEX_ID ,
ld_i_packagesize  TYPE I ,
ld_i_maxrows  TYPE I ,
ld_i_authority_check  TYPE RSDRI_AUTHCHK ,
ld_i_currency_conversion  TYPE RSDR0_CURR_CONV ,
ld_i_use_db_aggregation  TYPE RS_BOOL ,
ld_i_use_aggregates  TYPE RS_BOOL ,
ld_i_read_ods_delta  TYPE RSDRI_CHANGELOG_EXTRACTION ,
ld_i_caller  TYPE RSDRS_CALLER ,
ld_i_debug  TYPE RS_BOOL ,
ld_i_clear  TYPE RS_BOOL ,
ld_i_commit_allowed  TYPE RS_BOOL ,
ld_i_with_nls  TYPE DBMAN_WITH_NEARLINE ,
ld_i_check_results  TYPE RS_BOOL ,
ld_i_process_mpro_in_trex  TYPE RSDRI_PROCESS_MPRO_IN_TREX .

ld_c_first_call = 'Check type of data required'.
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_th_tablesel = 'Check type of data required'.
ld_i_t_rtime = 'Check type of data required'.
ld_i_reference_date = 'Check type of data required'.
ld_i_rollup_only = 'Check type of data required'.
ld_i_t_requid = 'Check type of data required'.
ld_i_save_in_table = 'Check type of data required'.
ld_i_tablename = 'Check type of data required'.
ld_i_save_in_file = 'Check type of data required'.
ld_i_filename = 'Check type of data required'.
ld_i_save_in_index = 'Check type of data required'.
ld_i_index_id = 'Check type of data required'.
ld_i_packagesize = 'Check type of data required'.
ld_i_maxrows = 'Check type of data required'.
ld_i_authority_check = 'Check type of data required'.
ld_i_currency_conversion = 'Check type of data required'.
ld_i_use_db_aggregation = 'Check type of data required'.
ld_i_use_aggregates = 'Check type of data required'.
ld_i_read_ods_delta = 'Check type of data required'.
ld_i_caller = 'Check type of data required'.
ld_i_debug = 'Check type of data required'.
ld_i_clear = 'Check type of data required'.
ld_i_commit_allowed = 'Check type of data required'.
ld_i_with_nls = 'Check type of data required'.
ld_i_check_results = 'Check type of data required'.
ld_i_process_mpro_in_trex = 'Check type of data required'.

SAP Documentation for FM RSDRI_INFOPROV_READ


The function module RSDRI_INFOPROV_READ reads data from the InfoProvider whose technical name is specified in I_INFOPROV. ...See here for full SAP fm documentation

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