Here is the code.
This is the code for show pop up as custom component view .
CALL METHOD comp_controller->window_manager->CREATE_POPUP
EXPORTING
IV_INTERFACE_VIEW_NAME = 'ZCUSH_POPUP/MainWindow'
IV_USAGE_NAME = 'SH_POPUP'
IV_TITLE = 'SEARCH CODE'
RECEIVING
RV_RESULT = GR_CUSTOM_POPUP
.
CALL METHOD GR_CUSTOM_POPUP->SET_ON_CLOSE_EVENT
EXPORTING
iv_view = me
IV_EVENT_NAME = 'CUSTOM_POPUP_CLOSED'
.
CALL METHOD GR_CUSTOM_POPUP->OPEN.
Create event hander in .impl class and clear that entity .