Funktionsbaustein RS VARIANT CONTENTS

Aus SAP-Wiki
Wechseln zu: Navigation, Suche

Dieser Funktionsbaustein RS_VARIANT_CONTENTS gibt zu einem Report und Variante deren Parameterwerte zurück in einer Tabelle.

CALL FUNCTION 'RS_VARIANT_CONTENTS'
  EXPORTING
    REPORT                      =
    VARIANT                     =
"   MOVE_OR_WRITE               = 'W'
"   NO_IMPORT                   = ' '
"   EXECUTE_DIRECT              = ' '
" IMPORTING
"   SP                          =
  TABLES
"   L_PARAMS                    =
"   L_PARAMS_NONV               =
"   L_SELOP                     =
"   L_SELOP_NONV                =
    VALUTAB                     =
"   OBJECTS                     =
"   FREE_SELECTIONS_DESC        =
"   FREE_SELECTIONS_VALUE       =
" EXCEPTIONS
"   VARIANT_NON_EXISTENT        = 1
"   VARIANT_OBSOLETE            = 2
"   OTHERS                      = 3
          .
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.

Literatur