Hello experts,
i´ve git the following problem.
We have a WebDynpro application here, which contains different components. Every component is a application and the WD application itself is a menue to reach these applications (components of the menue).
One new application is not a WebDynpro, but a PHP application, which should be available from this menue.
I leave the application by the following code:
data: lo_view_cntr type ref to if_wd_view_controller,
lo_win_cntr TYPE REF TO if_wd_window_controller,
l_parameter_list TYPE wdr_event_parameter_list,
l_parameter TYPE wdr_event_parameter,
l_val TYPE REF TO data,
l_val_url TYPE REF TO data,
url type string.
*
url = 'www.sdn.sap.com'.
FIELD-SYMBOLS: <fs> TYPE ANY,
<fs_url> TYPE ANY.
lo_view_cntr = wd_this->wd_get_api( ).
lo_win_cntr = lo_view_cntr->get_embedding_window_ctlr( ).
CREATE DATA l_val TYPE c.
CREATE DATA l_val_url TYPE string.
ASSIGN l_val->* TO <fs>.
ASSIGN l_val_url->* TO <fs_url>.
<fs> = 'X'.
<fs_url> = url.
l_parameter-name = 'URL'.
l_parameter-value = l_val_url.
INSERT l_parameter INTO TABLE l_parameter_list.
lo_win_cntr->if_wd_view_controller~fire_plug( EXPORTING plug_name = 'EXIT_PLUG'
parameters = l_parameter_list ).
l_parameter-name = 'CLOSE_WINDOW'.
If i click on the spezific button, the WD closes and calls the url in the same window. That works so far.
BUT: If i click on another component first, and work with this application, go back to the menue and then want to leave by the code shown above nothing happen...
Whats my mistake?