Hi,
Create the POPUP event in the first view (from which view popup is raised same view you need to created popup close event ).
means from view1 you are calling view2 as popup you need to create event in view1 for close event.
If you want close the popup using button from popup then you need to create outbound plug in window of the popup view and call that outbound plug in the event of the button.
DATA:lr_window TYPE REF TO ZL_class."class of window
lr_window ?= me->view_manager->get_window_controller( ).
lr_window->call_outbound_plug( iv_outbound_plug = 'CANCEL' ).
Create cancel outbound plug in window
call statndard cancel method
METHOD op_cancel.
fire_outbound_plug( 'CANCEL' ).
ENDMETHOD.
Regards,
Deepika.