2008 Mar 19 5:34 PM
I created a form with a a two-tab tabstrip (using the wizard). On the first tab is an ALV grid, on the second, a text field. When I run the program and the first grid shows up with the ALV grid just fine. When I click the second tab, however, the program just terminates. I'm a newbie so it's probably something obvious. Thanks in advance!
2008 Mar 19 5:42 PM
Please look at demo program
REPORT demo_dynpro_tabstrip_local.
a®
2008 Mar 19 5:42 PM
Please look at demo program
REPORT demo_dynpro_tabstrip_local.
a®
2008 Mar 19 5:56 PM
hi ,
look at this...
http://help.sap.com/saphelp_nw04/helpdata/en/04/10f2469e0811d1b4700000e8a52bed/frameset.htm
check this test code...
TABLES : VBAK ,VBAP.
CONTROLS : TAB_STRIP TYPE TABSTRIP.
CONTROLS : TAB_CNTRL TYPE TABLEVIEW USING SCREEN 0002.
DATA : OK_CODE_0101(20).
DATA : D_REPID TYPE SY-REPID,
D_SUBSCR TYPE SY-DYNNR.
DATA : D_VBELN TYPE VBAK-VBELN.
TYPES : BEGIN OF D_STRUCT,
VBELN TYPE VBELN_VA,
POSNR TYPE POSNR_VA,
MATNR TYPE MATNR,
FMENG TYPE FMENG,
NETWR TYPE NETWR_AP,
END OF D_STRUCT.
DATA : ITAB TYPE STANDARD TABLE OF D_STRUCT WITH HEADER LINE.
DATA : D_WA TYPE D_STRUCT.
&----
*& Module GET_SCR OUTPUT
&----
text
-
module GET_SCR output.
IF OK_CODE_0101 IS INITIAL.
D_SUBSCR = '0001'.
ENDIF.
D_REPID = SY-REPID.
endmodule. " GET_SCR OUTPUT
&----
*& Module EXIT_MODULE INPUT
&----
text
-
module EXIT_MODULE input.
SET SCREEN 0.
LEAVE SCREEN.
endmodule. " EXIT_MODULE INPUT
&----
*& Module USER_COMMAND_0101 INPUT
&----
text
-
module USER_COMMAND_0101 input.
case ok_code_0101.
when 'TAB1'.
D_SUBSCR = '0001'.
TAB_STRIP-ACTIVETAB = 'TAB1'.
WHEN 'TAB2'.
D_SUBSCR = '0002'.
TAB_STRIP-ACTIVETAB = 'TAB2'.
WHEN 'GET1'.
D_SUBSCR = '0002'.
TAB_STRIP-ACTIVETAB = 'TAB2'.
ENDCASE.
regards,
venkat.
2008 Mar 19 5:59 PM
Thanks, guys (and gals) - quick and helpful as usual! This forum ROCKS.