Problem: you need to check variant values either in your report or in SAP GUI.
Solution: There is FM designed for this purpose, it is called: RS_VARIANT_VALUES_TECH_DATA.
You can call it like this:
DATA: lv_report TYPE raldb_repo, lv_variant TYPE raldb_vari, lt_variant_values TYPE TABLE OF rsparams. CALL FUNCTION 'RS_VARIANT_VALUES_TECH_DATA' EXPORTING report = lv_report variant = lv_variant * SEL_TEXT = ' ' * MOVE_OR_WRITE = 'W' * SORTED = ' ' * EXECUTE_DIRECT = * IMPORTING * TECHN_DATA = TABLES variant_values = lt_variant_values EXCEPTIONS variant_non_existent = 1 variant_obsolete = 2 OTHERS = 3. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF.
DATA: lv_report TYPE raldb_repo, lv_variant TYPE raldb_vari, lt_variant_values TYPE TABLE OF rsparams. CALL FUNCTION 'RS_VARIANT_VALUES_TECH_DATA' EXPORTING report = lv_report variant = lv_variant * SEL_TEXT = ' ' * MOVE_OR_WRITE = 'W' * SORTED = ' ' * EXECUTE_DIRECT = * IMPORTING * TECHN_DATA = TABLES variant_values = lt_variant_values EXCEPTIONS variant_non_existent = 1 variant_obsolete = 2 OTHERS = 3. IF sy-subrc <> 0. MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF.
Komentowanie jest zakończone.