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

using tab-strip

Former Member
0 Likes
448

Hi all...

can any body tell me how to use tab-strip control in screens.

Thanks a lot...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
418

hi

Check the coding..

REPORT ZKA_TABSTRIP .

TABLES: ZKA_EMP,ZKA_COM.

CONTROLS: TS TYPE TABSTRIP.."""""""""Declare

DATA: SCREENNO(4) TYPE N. """""Screen no

CALL SCREEN '0003'. """""""""""""""""Call the screen

&----


*& Module STATUS_0001 OUTPUT

&----


  • text

----


MODULE STATUS_0001 OUTPUT.

  • SET PF-STATUS 'xxxxxxxx'.

  • SET TITLEBAR 'xxx'.

IF SCREENNO IS INITIAL.

TS-ACTIVETAB = 'EMP'.

SCREENNO = '0002'.

ENDIF.

ENDMODULE. " STATUS_0001 OUTPUT

&----


*& Module USER_COMMAND_0001 INPUT

&----


  • text

----


MODULE USER_COMMAND_0001 INPUT.

IF SY-UCOMM = 'EMP'.

TS-ACTIVETAB = 'EMP'.

SCREENNO = '0002'.

ELSEIF SY-UCOMM = 'COM'.

TS-ACTIVETAB = 'COM'.

SCREENNO = '0003'.

ENDIF.

ENDMODULE. " USER_COMMAND_0001 INPUT

&----


*& Module USER_COMMAND_0002 INPUT

&----


  • text

----


MODULE USER_COMMAND_0002 INPUT.

IF SY-UCOMM = 'DISPLAY'.

SELECT SINGLE * FROM ZKA_EMP WHERE EMPNO = ZKA_EMP-EMPNO.

ELSEIF SY-UCOMM = 'SAVE'.

INSERT ZKA_EMP.

ELSEIF SY-UCOMM = 'REFRESH'.

CLEAR ZKA_EMP.

ELSEIF SY-UCOMM = 'EXIT'.

LEAVE PROGRAM.

ENDIF

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

call SUBSCREEN ts4 INCLUDING sy-repid SCREENNO ."""""""""""Specify the screen no

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0100.

call SUBSCREEN ts4.

thanks

Dharma

2 REPLIES 2
Read only

former_member632729
Contributor
0 Likes
418

Hi Dude,

Go through this link:[http://help.sap.com/saphelp_nw04/helpdata/en/17/5bf1b52ba211d2954f0000e8353423/content.htm]

On Selection Screen

Link:[http://help.sap.com/saphelp_nw04/helpdata/EN/00/deb23789e95378e10000009b38f8cf/content.htm]

.

Read only

Former Member
0 Likes
419

hi

Check the coding..

REPORT ZKA_TABSTRIP .

TABLES: ZKA_EMP,ZKA_COM.

CONTROLS: TS TYPE TABSTRIP.."""""""""Declare

DATA: SCREENNO(4) TYPE N. """""Screen no

CALL SCREEN '0003'. """""""""""""""""Call the screen

&----


*& Module STATUS_0001 OUTPUT

&----


  • text

----


MODULE STATUS_0001 OUTPUT.

  • SET PF-STATUS 'xxxxxxxx'.

  • SET TITLEBAR 'xxx'.

IF SCREENNO IS INITIAL.

TS-ACTIVETAB = 'EMP'.

SCREENNO = '0002'.

ENDIF.

ENDMODULE. " STATUS_0001 OUTPUT

&----


*& Module USER_COMMAND_0001 INPUT

&----


  • text

----


MODULE USER_COMMAND_0001 INPUT.

IF SY-UCOMM = 'EMP'.

TS-ACTIVETAB = 'EMP'.

SCREENNO = '0002'.

ELSEIF SY-UCOMM = 'COM'.

TS-ACTIVETAB = 'COM'.

SCREENNO = '0003'.

ENDIF.

ENDMODULE. " USER_COMMAND_0001 INPUT

&----


*& Module USER_COMMAND_0002 INPUT

&----


  • text

----


MODULE USER_COMMAND_0002 INPUT.

IF SY-UCOMM = 'DISPLAY'.

SELECT SINGLE * FROM ZKA_EMP WHERE EMPNO = ZKA_EMP-EMPNO.

ELSEIF SY-UCOMM = 'SAVE'.

INSERT ZKA_EMP.

ELSEIF SY-UCOMM = 'REFRESH'.

CLEAR ZKA_EMP.

ELSEIF SY-UCOMM = 'EXIT'.

LEAVE PROGRAM.

ENDIF

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

call SUBSCREEN ts4 INCLUDING sy-repid SCREENNO ."""""""""""Specify the screen no

PROCESS AFTER INPUT.

MODULE USER_COMMAND_0100.

call SUBSCREEN ts4.

thanks

Dharma