The pop up window has 3 buttons for “Yes”, “No” and “Cancel”. Here are the values returned for each button.
Yes = J
No = N
Cancel = A
Now copy this source code below.
Report zpopupconfirmation.
Data: r_answer(20).
CALL FUNCTION 'POPUP_TO_CONFIRM_DATA_LOSS'
EXPORTING
DEFAULTOPTION = 'J'
TITEL = 'Dialog for Data'
START_COLUMN = 25
START_ROW = 6
IMPORTING
ANSWER = r_answer
.
* Here is the result from user confirmation.
Write:/ 'User Choosed =', r_answer.
Post a Comment