POPUP_TO_CONFIRM Messages in sap abap programming
Some time required to take user action so we put the error messages as per the below
DATA: zz_answer TYPE c.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'Warning Message'
text_question = 'Messages to popup to cofirm'
text_button_1 = 'Yes'
text_button_2 = 'No'
default_button = '2'
display_cancel_button = ''
IMPORTING
answer = zz_answer
EXCEPTIONS
text_not_found = 1
OTHERS = 2.
CASE zz_answer.
WHEN '1'.
* Process further checks
WHEN '2'.
SET SCREEN 0.
LEAVE TO SCREEN 4001.
WHEN OTHERS.
ENDCASE.
DATA: zz_answer TYPE c.
CALL FUNCTION 'POPUP_TO_CONFIRM'
EXPORTING
titlebar = 'Warning Message'
text_question = 'Messages to popup to cofirm'
text_button_1 = 'Yes'
text_button_2 = 'No'
default_button = '2'
display_cancel_button = ''
IMPORTING
answer = zz_answer
EXCEPTIONS
text_not_found = 1
OTHERS = 2.
CASE zz_answer.
WHEN '1'.
* Process further checks
WHEN '2'.
SET SCREEN 0.
LEAVE TO SCREEN 4001.
WHEN OTHERS.
ENDCASE.
Comments
Post a Comment