Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Tabstrip Control Problem

Former Member
0 Likes
531

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!

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
505

Please look at demo program

REPORT demo_dynpro_tabstrip_local.

3 REPLIES 3
Read only

former_member194669
Active Contributor
0 Likes
506

Please look at demo program

REPORT demo_dynpro_tabstrip_local.

Read only

Former Member
0 Likes
505

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.

Read only

Former Member
0 Likes
505

Thanks, guys (and gals) - quick and helpful as usual! This forum ROCKS.