Pop to confirm


Below simple Code to to popup_to_confirm before taking any action you want to any type action
to user you can give popum_to_confirm behalf of action you can write your logic and get desired result

REPORT  ztest_pop.

DATAzz_answer.

CALL FUNCTION 'POPUP_TO_CONFIRM'
  EXPORTING
    titlebar              'Warning Message'
    text_question         'Confirm to Delete?'
    text_button_1         'Yes'
    text_button_2         'No'
    default_button        '2'
    display_cancel_button ''
  IMPORTING
    answer                zz_answer
  EXCEPTIONS
    text_not_found        1
    OTHERS                2.

CASE zz_answer.
  WHEN '1'.
*              Process further checks
  WHEN '2'.
    SET SCREEN 0.
    LEAVE TO  SCREEN 4001.

  WHEN OTHERS.
*              N/a
ENDCASE.


Comments

Popular posts from this blog

all user exit mv45afzz (implicit user exit )

How to Give Dropdown in alv report in sap abap programming Language

Long Text in input and output field in module pool