Hi,
I have a requirement to display a popup when user click on a custom link given in ESS. Popup ALV displays some records and user selects any of the single row after that as soon as user clicks on 'OK' button of popup, it should be closed as well as the tab of 'Interner Explorer' should also be closed.
I am able to close popup however not able to close IE tab though I have used 'EXIT' outbound plug and fire-plug method on 'OK' button event of popup.
Below is the code for popup OK button to close popup as well as IE tab:
"To close PopUp window
wd_comp_controller->go_window->close( ).
* To Close Window
DATA LO_API_V_MAIN TYPE REF TO IF_WD_VIEW_CONTROLLER.
LO_API_V_MAIN = WD_THIS->WD_GET_API( ).
DATA : LO_WINDOW TYPE REF TO IF_WD_WINDOW_CONTROLLER.
CALL METHOD LO_API_V_MAIN->GET_EMBEDDING_WINDOW_CTLR
RECEIVING
RESULT = LO_WINDOW.
DATA : IT_PARAMETERS TYPE wdr_event_parameter_list,
WA_PARAMETERS TYPE wdr_event_parameter,
LV_DATA TYPE REF TO DATA.
FIELD-SYMBOLS : <FS_PARA> TYPE ANY.
CREATE DATA LV_DATA TYPE C.
ASSIGN LV_DATA->* TO <FS_PARA>.
<FS_PARA> = 'X'.
WA_PARAMETERS-NAME = 'CLOSE_WINDOW'.
WA_PARAMETERS-VALUE = LV_DATA.
INSERT WA_PARAMETERS INTO TABLE IT_PARAMETERS.
CLEAR WA_PARAMETERS.
CALL METHOD LO_WINDOW->IF_WD_VIEW_CONTROLLER~FIRE_PLUG
EXPORTING
PARAMETERS = IT_PARAMETERS
PLUG_NAME = 'EXIT'.
I am not able to understand the cause as values are passing perfectly however not getting desired output.