I set up a Tabstrip on a Dynpro. Ive got 2 Tabs. On each Tab I set a Subscreen.
0100 - Main Screen
0110 - Subscreen One
0120 - Subscreen Two
The tabstrip is defined with these attributes.
Tabs:
Title strip Reference subscreen Function code Function type
Subscreen One SUB1 STP_CTGRY_TAB P
Subscreen Two SUB1 TRAN_TAB P
Subscreens (subscreen areas) :
SUB1
The dynpro 0100 flow logic is :
PROCESS BEFORE OUTPUT.
MODULE pbo.
CALL SUBSCREEN sub1 INCLUDING sy-repid dynnr.
PROCESS AFTER INPUT.
CALL SUBSCREEN sub1.
MODULE pai.
On program level I declare.
CONTROLS mytabstrip TYPE TABSTRIP.
DATA: ok_code LIKE sy-ucomm,
dynnr TYPE sy-dynnr.
At Main Screen 0100 PBO:
IF mytabstrip-activetab IS INITIAL OR dynnr IS INITIAL.
mytabstrip-activetab = 'STP_CTGRY_TAB'.
dynnr = '0110'.
ENDIF.
At Main Screen 0100 PAI:
CASE ok_code.
WHEN 'STP_CTGRY_TAB'.
dynnr = '0110'.
mytabstrip-activetab = ok_code.
WHEN 'TRAN_TAB'.
dynnr = '0120'.
mytabstrip-activetab = ok_code.
ENDCASE.
If I debug my program and set breakpoints the tabstrip works. Bur if I run the program and change the tab of the tabstrip it seems that the subscreen freezes and overlaps the subscreen which should be displayed. All in all the changes on the tab doesn't work.
Did I forget any code? Can anyone help me what I possibly missed?