Code: Alles auswählen.
CONSTANTS: lc_view TYPE string VALUE 'V_VIEW/'.
DATA: lo_cmp_usage TYPE REF TO if_wd_component_usage,
lo_controller_api TYPE REF TO if_wd_view_controller,
lv_embedding_pos TYPE string.
lo_controller_api = wd_this->wd_get_api( ).
lv_embedding_pos = lc_view && old_tab.
REPLACE FIRST OCCURRENCE OF 'TAB_' IN lv_embedding_pos WITH 'CONT_'.
* der Tab heisst TAB_<soundso>, der darin befindliche Viewcontainer heisst CONT_<soundso>
* in alten Tab den Emptyview einbinden
lo_cmp_usage = lo_controller_api->prepare_dynamic_navigation(
source_window_name = 'W_SYSTEMTYPES'
source_vusage_name = 'V_VIEW_USAGE_1'
source_plug_name = 'TO_VIEW'
target_view_name = 'EMPTYVIEW'
target_plug_name = 'SHOWEMPTYVIEW'
target_embedding_position = lv_embedding_pos ).
lv_embedding_pos = lc_view && tab.
REPLACE FIRST OCCURRENCE OF 'TAB_' IN lv_embedding_pos WITH 'CONT_'.
* in neuen Tab den aktiven View einbinden
lo_cmp_usage = lo_controller_api->prepare_dynamic_navigation(
source_window_name = 'W_SYSTEMTYPES'
source_vusage_name = 'V_VIEW_USAGE_1'
source_plug_name = 'TO_VIEW'
target_component_name = '/DLMD/EC2_LEVELS'
target_component_usage = 'LEVELS'
target_view_name = 'W_LEVELS'
target_plug_name = 'DEFAULT'
target_embedding_position = lv_embedding_pos ).
wd_this->fire_to_view_plg( ).