Calling a Custom View as Pop Up
I have added a button UPLOAD in an assignment block and created an event handler method for EH_ONUPLOAD
for navigating to a Custom view as a pop up on click of this button .
Code for adding button:
ls_button-on_click = 'upload'. "EH_ONIMPORT_FROM_FILE ls_button-text = l_import. ls_button-enabled = l_enabled. APPEND ls_button TO gt_button.
Code under event Handler method :
gr_file_popup = comp_controller->window_manager->create_popup( iv_interface_view_name = 'BP_EMPL/ZNUPLOAD' iv_usage_name = 'ZCuFileUpload' iv_title = l_title ).
I have also created a Custom Window for holding this custom view and made this window as Interface view.I have defined
component usage using this interface view.
Now ,my navigation on click of UPLOAD button to the custom view does not works.