In ABAP if you wish to POP up a Dialog BOX asking the user if the data needs to be saved. Basically this function module POP-UP a dialog box asking for confirmation to SAVE the data, or proceed without saving.
The Parameters
START COLUMN and
START ROW define the position of the POP-UP Dialog BOX.
Find the code below.
REPORT ZEX_POPUPTOCONFIRMDATALOSS .
Data: d_ans(20).
CALL FUNCTION 'POPUP_TO_CONFIRM_DATA_LOSS'
EXPORTING
DEFAULTOPTION = 'J'
TITEL = 'Dialog for Data'
START_COLUMN = 25
START_ROW = 6
IMPORTING
ANSWER = d_ans
.
* Based on the answer you can select the step in the flow logic.
Write:/ 'Answer =', d_ans.
Data: d_ans(20).
CALL FUNCTION 'POPUP_TO_CONFIRM_DATA_LOSS'
EXPORTING
DEFAULTOPTION = 'J'
TITEL = 'Dialog for Data'
START_COLUMN = 25
START_ROW = 6
IMPORTING
ANSWER = d_ans
.
* Based on the answer you can select the step in the flow logic.
Write:/ 'Answer =', d_ans.
No comments:
Post a Comment