Determining values of parameters of given type on a given selection screen in SAP

SAPSAP BEXSAP HANA

The function module RS_SELSCREEN_INFO will provide you with the list of parameters and selection options once the report name is input. You can see full details about this FM by entering the name RS_SELSCREEN_INFO into the relevant SAP T-code like SE37 or SE80

You can call this FM RS_SELSCREEN_INFO as below −

CALL FUNCTION 'RS_SELSCREEN_INFO' "
   EXPORTING
      report =                    " rsvar-report Report Name
   TABLES
      field_info =                " scr_info     Information about type, reference field, etc.
   EXCEPTIONS
      NO_SELECTIONS = 1           "              Report has no selections
      REPORT_NOT_EXISTENT = 2     "              Report does not exist
      SUBROUTINE_POOL = 3         "
      .  "  RS_SELSCREEN_INFO

Alternatively, you can try using the function module GET_DICTIONARY_FIELDS- to provide all Dictionary fields used in an ABAP program. You can get complete details by entering the name GET_DICTIONARY_FIELDS into the relevant SAP transaction such as SE37 or SE80.

CALL FUNCTION 'GET_DICTIONARY_FIELDS' "Provides all Dictionary fields used in a program
   EXPORTING
      progname =                  " sy-repid
   TABLES
      field_tab =                 "
      .  "  GET_DICTIONARY_FIELDS
raja
Updated on 13-Feb-2020 12:42:12

Advertisements