Hi Santhosh,
At the time of save as per your logic, you ll have to trigger the pop-up.
You can implement the below piece of code to trigger the pop-up. Regarding the handling of the options while closing the pop-up, you'll have to create an event and handle all your scenarios in the event handler.
CALL METHOD comp_controller->window_manager->create_popup_2_confirm
EXPORTING
iv_title = lv_save1
iv_text = lv_text1
iv_btncombination = if_bsp_wd_window_manager=>co_btncomb_yesno
RECEIVING
rv_result = confirm_popup.
confirm_popup->set_on_close_event( iv_event_name = lc_popup_close_method1
iv_view = me ).
CLEAR is_deleted.
confirm_popup->open( ).
RETURN.
Give the title for the pop-up in parameter IV_TITLE and the message to be displayed in parameter IV_TEXT. Pass the event handler name to parameter IV_EVENT_NAME which will get triggered when the pop-up is closed.
You can explore the content to be passed to IV_BTNCOMBINATION and other parameters of the method CREATE_POP_UP_2_CONFIRM.
Hope this helps.
Regards,
Preeti