Hi Gaurav,
Here is how you can do this step by step. No need to press the save button, the event can be triggered when you change the values in dropdown.
1) Go to get_p of your attribute and add the following code there.
WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_pick_list.
WHEN if_bsp_wd_model_setter_getter=>fp_onclick. " To call the event handler by clicking
rv_value = "SHOW_POP_UP."
2) I hope you have already done the GET_V part in order to get the values to the dropdown.
3) Go to event handler and create an event handler called SHOW_POP_UP (EH_ONSHOW_POP_UP the name will come).
4) In this evend handler method write the following code.
CALL METHOD comp_controller->window_manager->create_popup_2_confirm
EXPORTING
iv_title = lc_title
iv_text = lc_text
iv_btncombination = if_bsp_wd_window_manager=>co_btncomb_okcancel
RECEIVING
rv_result = confirm_popup.
confirm_popup->set_on_close_event( iv_event_name = 'POPUP_CLOSED' iv_view = me ). " Here you should have the event for close.
confirm_popup->open( ).
I hope this will solve your issue.
Thanks,
Faisal