Data Loss PopUp Confirmation Using ABAP

how to create a POP UP confirmation message using ABAP to “Confirm Data Loss”, this POP UP function will return values that you can use to determine your next move.

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.

Subscribe in a reader

Comments

0 Responses to "Data Loss PopUp Confirmation Using ABAP"

Post a Comment

Stay Updated