How to Popup Confirm Message in ABAP/4

When you want to popup message to confirm action, you can apply function module "POPUP_TO_CONFIRM_WITH_MESSAGE". The function will return:

  • ’A’ - Yes
  • Others - No or Cancel

Example


CALL FUNCTION ’POPUP_TO_CONFIRM_WITH_MESSAGE’
EXPORTING
DIAGNOSETTEXT1 = ’Do you want save data?’
TEXTLINE1 = ’ ’
TITEL = ’Confirm message!’
IMPORTING
ANSWER = lv_answer.

Post new comment