Skip to Content

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

cl_bus_tabstrip_tab - set_caption

The set_caption method of cl_bus_tabstrip_tab of tabs integrated in a cl_bus_tabstrip tabstrip... doesn't seem to work.

Anybody has some experience with this?

Current code:

DATA: mr_tabstrip TYPE REF TO cl_bus_tabstrip.

CLASS-DATA: ms_tabstrip TYPE bus_screen_tabstrip.

IF mr_tabstrip IS NOT BOUND.

CALL METHOD add_tabstrip


iv_field_name_prefix = 'LCL_TAB=>MS_TABSTRIP'

iv_function_code_prefix = 'FKT'


ev_tabstrip = mr_tabstrip


cs_tabstrip_control = tabstrip_0500

cs_tabstrip_fields = lcl_tab=>ms_tabstrip.

DATA: lr_tab TYPE REF TO cl_bus_tabstrip_tab,

ls_area TYPE bus_screen_area.

CALL METHOD e_tabstrip->add_tab


ev_tab = lr_tab.

ls_area-program_name = sy-repid.

ls_area-dynpro_number = e_dynpro.

lr_tab->set_area( ls_area ).

lr_tab->set_caption( 'test' ).

But when the screen displays.. captions are still empty.....

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