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

tab strip

Former Member
0 Likes
848

hi gurus,

can someone help me out in creating a tab strip.

wat i want is i have created screen 100 there in its layout i have included a tabstrip. there are two tabs wat i want is that when i press tab1 then screen 0200

and when tab2 is pressed then screen0300 is to be called. but im not able to achive the desired task. Can you all please help me out in this proble.

points will be awarded to all the answere.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
811

HI,

in tabstrip you have to make a subscreen.now you have to make a tabstrip and attach that subscreen are to that tabstrip. now you have to assign every time at the PAI when you are changing the tab by saying

active tab = tab1.

or

active tab = tab2.

there are two methods

1 in which you create two subscreens and attach it to 2 tabstrip areas.

2 in which you have 1 subscreen and you attach it to both the tabstrip areas.

if you want i can send you some sample codes.

case ok_code_1001 .

when 'FC01' .

sub_screen = '0001'.

tabstrip1-activetab = 'FC01'.

when 'FC02'.

sub_screen = '0002'.

tabstrip1-activetab = 'FC02' .

when 'SHOW'.

text2 = text1.

sub_screen = '0002'.

tabstrip1-activetab = 'FC02' .

reward if helpful.

vivekanand

Message was edited by:

Vivekanand Meghmala

hi gurus,

can someone help me out in creating a tab strip.

wat i want is i have created screen 100 there in its layout i have included a tabstrip. there are two tabs wat i want is that when i press tab1 then screen 0200

and when tab2 is pressed then screen0300 is to be called. but im not able to achive the desired task. Can you all please help me out in this proble.

points will be awarded to all the answere.

5 REPLIES 5
Read only

Former Member
0 Likes
812

HI,

in tabstrip you have to make a subscreen.now you have to make a tabstrip and attach that subscreen are to that tabstrip. now you have to assign every time at the PAI when you are changing the tab by saying

active tab = tab1.

or

active tab = tab2.

there are two methods

1 in which you create two subscreens and attach it to 2 tabstrip areas.

2 in which you have 1 subscreen and you attach it to both the tabstrip areas.

if you want i can send you some sample codes.

case ok_code_1001 .

when 'FC01' .

sub_screen = '0001'.

tabstrip1-activetab = 'FC01'.

when 'FC02'.

sub_screen = '0002'.

tabstrip1-activetab = 'FC02' .

when 'SHOW'.

text2 = text1.

sub_screen = '0002'.

tabstrip1-activetab = 'FC02' .

reward if helpful.

vivekanand

Message was edited by:

Vivekanand Meghmala

Read only

0 Likes
811

hi vivek

i have declared two subscreen as area1 and area2. i have given them refscr of tabstrip1 and tabstrip2.

this code i have written in the normal screen flow logic

PROCESS BEFORE OUTPUT.

MODULE STATUS_0100.

CALL SUBSCREEN: area1 INCLUDING SY-REPID '0200',

area2 INCLUDING SY-REPID '0300'.

PROCESS AFTER INPUT.

MODULE CANCEL AT EXIT-COMMAND.

CALL SUBSCREEN: area1,

area2.

MODULE USER_COMMAND.

this code i have written in its main programm

REPORT ZMADHVI11.

CONTROLS mytabstrip TYPE TABSTRIP.

mytabstrip-activetab = 'taB2'.

CALL SCREEN 100.

data number type i .

case sy-ucomm.

when 'tab1'.

mytabstrip-activetab = 'tab1'.

call screen 0200.

when 'tab2'.

mytabstrip-activetab = 'tab2'.

call screen 0300.

endcase.

  • module status_0100 output.

when im executing the code im getting an error as:

Read only

0 Likes
811

thanks vivek

Read only

Former Member
0 Likes
811

Hi Madhvi, make sure your screen 300 is set as a subscreen in the screen attributes. Next make sure that in the PBO and PAI of your calling screen that you include the CALL SUBSCREEN command for your screen 300. Also make sure in the layout of your calling screen that you have specified the tabstrip control elements correctly.

Kevin

Read only

Former Member
0 Likes
811

hi,

follow this link to information on tabstrip control on normal screen and sample program.

http://help.sap.com/saphelp_nw04/helpdata/en/17/5bf1b52ba211d2954f0000e8353423/content.htm

This is a example code explaining the use of TabStrip in selection screen.

http://sap.niraj.tripod.com/id59.html

regards,

Ashok Reddy