Open the component and then view where the pop up is to be raised.
You must be raising the popup on some event...
You will need to create following in IMPL class of your view :
1) a Pop up reference variable
2) method that creates pop up and opens it.
3) method to handle yes / no button clicks on the pop up where we can define if yes button is clicked the what is the action to be taken .
Following are the details:
CONFIRM_POPUP Instance Type Ref To IF_BSP_WD_POPUP .
The method Confirm_popup_closed:
You can the call method eh_onconfirm_popup( ) . in the method/event where you want the popup to be raised.