DATA : lv_answer .
CALL FUNCTION 'POPUP_WITH_2_BUTTONS_TO_CHOOSE'
EXPORTING
diagnosetext1 = 'Please Choose Option'
textline1 = space
textline2 = space
text_option1 = 'YES'
text_option2 = 'NO'
titel = 'Check'
IMPORTING
answer = lv_answer.
CASE lv_answer.
WHEN '1'.
WRITE :/ 'Yes is selected, proceeding...'.
" continue logic
WHEN '2'.
WRITE :/ 'No is selected, retruning ...'.
" return logic
WHEN OTHERS.
ENDCASE.
----------------------------------------------------------------------------------------------------------
Execute the program.
Output :
CALL FUNCTION 'POPUP_WITH_2_BUTTONS_TO_CHOOSE'
EXPORTING
diagnosetext1 = 'Please Choose Option'
textline1 = space
textline2 = space
text_option1 = 'YES'
text_option2 = 'NO'
titel = 'Check'
IMPORTING
answer = lv_answer.
CASE lv_answer.
WHEN '1'.
WRITE :/ 'Yes is selected, proceeding...'.
" continue logic
WHEN '2'.
WRITE :/ 'No is selected, retruning ...'.
" return logic
WHEN OTHERS.
ENDCASE.
----------------------------------------------------------------------------------------------------------
Execute the program.
No comments:
Post a Comment