Skip to Content
0
Former Member
Jun 04, 2008 at 06:14 AM

Pop up message box.

6785 Views

Hi Experts,

Just want to ask for the pop up message.

Is there anyway for a pop up message to display only a "OK" button, instead of Yes, No and Cancel buttons.

If no, is there any alternative way doing so?

What I want to have in the alert message is the icon message with stop.

  DATA: defaultoption   TYPE STRING,
        title           TYPE STRING,
        textline         TYPE STRING,
*        textline2       TYPE STRING,
        lv_popup_ans    TYPE STRING,
        cancel_display  TYPE STRING.

  CALL FUNCTION 'POPUP_TO_CONFIRM'
      EXPORTING
       TITLEBAR                    = title
*       DIAGNOSE_OBJECT             = ' '
       TEXT_QUESTION               = 'Testing for alert message with OK button only.'
       TEXT_BUTTON_1               = 'OK'(011)
*       ICON_BUTTON_1               = 'TEST1'
*       TEXT_BUTTON_2               = 'No'(012)
*       ICON_BUTTON_2               = ' '
       DEFAULT_BUTTON              = '1'
       DISPLAY_CANCEL_BUTTON       = 'X'
*       USERDEFINED_F1_HELP         = ' '
*       START_COLUMN                = 25
*       START_ROW                   = 6
       POPUP_TYPE                  = 'ICON_MESSAGE_CRITICAL'
*       IV_QUICKINFO_BUTTON_1       = ' '
*       IV_QUICKINFO_BUTTON_2       = ' '
     IMPORTING
       ANSWER                      = lv_popup_ans
*     TABLES
*       PARAMETER                   =
*     EXCEPTIONS
*       TEXT_NOT_FOUND              = 1
*       OTHERS                      = 2