(SP29) Lookup API documentation

Main Signature

Advanced users may use the class CL_RSDA_INFOPROV_QUERY to create their own reports. Below you can find API documentation of the SELECT( ) method for retrieving data.


CALL METHOD CL_RSDA_INFOPROV_QUERY=>SELECT
  EXPORTING
    I_INFOPROV             = lv_infoprov_name
*    I_T_ENTRIES            =
*    I_T_ENTRY_FIELDS       =
*    I_T_FIELD_SELECTIONS   =
*    I_R_SELECTION_SET      =
*    I_WHERE_CONDITION      =
*    I_APPEND               =
*    I_ORDER_BY_PRIMARY_KEY =
*    I_HINT                 =
*    I_STORAGE_SELECTION    = CL_RSDA_INFOPROV_QUERY=>C_STORAGE_SELECTION-ALL
  CHANGING
     C_T_DATA               =
    .

Signature of SELECT method:

ParameterTypeDescriptionOptional
i_infoprovchar30Infoprovider name
i_t_entriesAny tableTable "FOR ALL ENTRIES"X
i_t_entry_fieldst_entry_fieldsProjection and Alias Name for "FOR ALL ENTRIES" TableX
i_t_field_selectionst_field_selectionsProjection, Alias Name and Aggregation of Result SetX
i_r_selection_setcl_rsmds_setSelection Condition as Multidimensional Set ObjectX
i_where_conditioncsequenceSelection Condition As Open SQL Expression on Active TabX
i_appendrs_boolIndicator: Add Selected Data Records to C_T_DATAX
i_order_by_primary_keyrs_boolIndicator: Sort by Primary Key (is Dominant)X
i_hintrsdu_hintDB hint for saveX
i_storage_selectionrsda_storage_selectionSelect DB (Online DB/NLS/ Online DB and NLS)X
ct_dataStandard TableResult data set

Code example

Note: For simplicity of code example, below code contains hardcoded values that needs to be replaced with values relevant for the system where code is executed.

DATA:
   lref_data TYPE REF TO data,
   lx_error TYPE REF TO cx_root,
   lv_count  TYPE int4.

FIELD-SYMBOLS<lt_data> TYPE STANDARD TABLE.

TRY .

  CREATE DATA lref_data TYPE TABLE OF ('/BIC/AZJG_AD012').
  ASSIGN lref_data->to <lt_data>.

  CALL METHOD cl_rsda_infoprov_query=>select
    EXPORTING
      i_infoprov          'ZJG_AD01'
      i_where_condition   `CALYEAR >= '2005'`
    CHANGING
      c_t_data            <lt_data>.

  lv_count LINES<lt_data> ).
  WRITE'Lines of data read: 'lv_count.
  EXIT.

CATCH cx_root INTO lx_error.

ENDTRY.

Attachments