04-08-2010 7:03 AM
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
EXPORTING
iv_field_name_prefix = 'LCL_TAB=>MS_TABSTRIP'
iv_function_code_prefix = 'FKT'
IMPORTING
ev_tabstrip = mr_tabstrip
CHANGING
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
IMPORTING
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.....
04-21-2010 1:48 PM
Did it by changing captions in lcl_tab=>ms_tabstrip... but that is probably not how it should work.
12-01-2010 5:53 AM
Hi,
I have got this method working correctly, tab name (pushbutton) name should include the screen local class name. For example if the MS_TABSTRIP is in class lcl_2000 then the tab names should be LCL_2000=>MS_TABSTRIP-TAB_01 and LCL_2000=>MS_TABSTRIP-TAB_02 and so on.
Hope this helps if you are still wondering why these methods do not work.
Regards
Raj