Funktionsbaustein POPUP TO CONFIRM

Aus SAP-Wiki
Wechseln zu: Navigation, Suche

Der Funktionsbaustein POPUP_TO_CONFIRM erzeugt eine Bestätigungsabfrage für den User.

Muster

Data: lv_answer type c.

CALL FUNCTION 'POPUP_TO_CONFIRM'
  EXPORTING
    TITLEBAR                    = 'Abfrage'
"   DIAGNOSE_OBJECT             = ' '
    TEXT_QUESTION               =
    TEXT_BUTTON_1               = 'Ja'
"   ICON_BUTTON_1               = ' '
    TEXT_BUTTON_2               = 'Nein'
"   ICON_BUTTON_2               = ' '
"   DEFAULT_BUTTON              = '1'
"   DISPLAY_CANCEL_BUTTON       = 'X'
"   USERDEFINED_F1_HELP         = ' '
"   START_COLUMN                = 25
"   START_ROW                   = 6
"   POPUP_TYPE                  =
"   IV_QUICKINFO_BUTTON_1       = ' '
"   IV_QUICKINFO_BUTTON_2       = ' '
  IMPORTING
    ANSWER                      = lv_answer "Rückgabewerte: '1', '2', 'A'
" TABLES
"   PARAMETER                   =
  EXCEPTIONS
    TEXT_NOT_FOUND              = 1
    OTHERS                      = 2
          .
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.

Literatur