Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Dynamically move a tab to a new position

I have a tabstrip with 4 tabs.

Depending on some user settings or other variables, I would like to move one of the tabs to a new position.

I tried this in WDDOMODIFYVIEW, using the classes cl_wd_tabstrip and cl_wd_tab.

The only solution I found to move the tab is to remove the tab and to add it again at a new position afterwards.

lr_tab = lr_tabstrip->remove_tab( id = 'TAB4' ).
IF lr_tab IS BOUND.
  lr_tabstrip->add_tab( the_tab = lr_tab  position = 2 ).

This code works, but isn't there a possibility to do it without REMOVE?

Furthermore, it seems that there is no easy solution to find out the position of a given tab, or can somebody tell me one?

Thx and regards,


Not what you were looking for? View more on this topic or Ask a question