Search This Blog

Monday, July 27, 2009

POPUP_TO_CONFIRM

From --------------
CALL FUNCTION 'POPUP_TO_CONFIRM_WITH_MESSAGE'
EXPORTING
defaultoption = 'N'
diagnosetext1 = d1
diagnosetext2 = d2
diagnosetext3 = d3
textline1 = 'If you want to continue Press "Yes"'
textline2 = 'If you want to re-enter selection Press "No"'
titel = 'Confirm the Selection criteria'
start_column = 35
start_row = 11
* CANCEL_DISPLAY = 'X'
IMPORTING
answer = ans.

To -------------
data : dque type string.
concatenate d1 d2 d3 into dque separated by ','.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
TITLEBAR = 'If you want to continue Press "Yes"'
TEXT_QUESTION = dque
TEXT_BUTTON_1 = 'Ja'(001)
TEXT_BUTTON_2 = 'Nein'(002)
START_COLUMN = 25
START_ROW = 6
IMPORTING
ANSWER = ans
EXCEPTIONS
TEXT_NOT_FOUND = 1
OTHERS = 2
.
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

No comments:

Post a Comment