Skip to Content
0
Former Member
Aug 05, 2008 at 06:18 PM

active tab in the tabstrip..

28 Views

hi,

i created a screen with a tabstrip and 2 tabs.

code is generated automatically. I created two table controls, one for each of the subscreens for the tabs.

following code was generated:

MODULE BDATA_ACTIVE_TAB_SET.

MODULE BDATA_ACTIVE_TAB_SET OUTPUT.

BDATA-ACTIVETAB = G_BDATA-PRESSED_TAB.

CASE G_BDATA-PRESSED_TAB.

WHEN C_BDATA-TAB1.

G_BDATA-SUBSCREEN = '0125'.

WHEN C_BDATA-TAB2.

G_BDATA-SUBSCREEN = '0126'.

WHEN OTHERS.

*&SPWIZARD: DO NOTHING

ENDCASE.

ENDIF.

ENDMODULE.

It so happend that the value in G_BDATA-PRESSED_TAB.

is always the Function code of the first tab !! Isn't SAP supposed to set this variable with the function code of the tab selection by the user ??

Why is this behaving so ??

I need to somehow set this variable G_BDATA-PRESSED_TAB.

to the correct function code of the tab selected.

how to achieve this ?

thks