Funktionsbaustein RS CREATE VARIANT

Aus SAP-Wiki
Wechseln zu: Navigation, Suche

Dieser Funktionsbaustein RS_CREATE_VARIANT legt für einen Report eine Variante an mit den entsprechenden Parameterwerten.

CALL FUNCTION 'RS_CREATE_VARIANT'
  EXPORTING
    CURR_REPORT                     =
    CURR_VARIANT                    =
    VARI_DESC                       =
  TABLES
    VARI_CONTENTS                   =
    VARI_TEXT                       =
"   VSCREENS                        =
" EXCEPTIONS
"   ILLEGAL_REPORT_OR_VARIANT       = 1
"   ILLEGAL_VARIANTNAME             = 2
"   NOT_AUTHORIZED                  = 3
"   NOT_EXECUTED                    = 4
"   REPORT_NOT_EXISTENT             = 5
"   REPORT_NOT_SUPPLIED             = 6
"   VARIANT_EXISTS                  = 7
"   VARIANT_LOCKED                  = 8
"   OTHERS                          = 9
          .
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.

Literatur