2007 Sep 14 2:54 PM
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.
2007 Sep 14 3:04 PM
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.
2007 Sep 14 3:04 PM
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
2007 Sep 14 4:15 PM
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:
2007 Sep 14 4:18 PM
2007 Sep 14 3:05 PM
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
2007 Sep 14 3:05 PM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |