2009 Feb 12 4:55 AM
Hi all!
plz tell e how to use tabstrip control in module pool screen painter.Also plz give me an example program using tabstrip control.
2009 Feb 12 5:06 AM
Hi ,
There is a tabstip contro in the left hand side .
if u drag and drop or click click and put on screen it will have default 2 tabs, you can make it 3 ,4 ,5 with tab strip properties,
<<text removed>>
Regards
Rajendra
Edited by: Matt on Feb 12, 2009 9:46 AM link to forbidden site
Hi all!
plz tell e how to use tabstrip control in module pool screen painter.Also plz give me an example program using tabstrip control.
2009 Feb 12 4:58 AM
Hi,
GOTO>SCREEN PAINTER(SE51)>SELECT TABSTRIP(Drag & DROP)
Create a Subscreen area and Subscreen.
Link: http://help.sap.com/saphelp_nw04/helpdata/en/17/5bf1b52ba211d2954f0000e8353423/content.htm
This will resolve the issue.
Regards,
Gurpreet
Edited by: Gurpreet Singh on Feb 12, 2009 5:59 AM
2009 Feb 12 4:59 AM
2009 Feb 12 5:00 AM
refer demo program ...
DEMO_DYNPRO_TABSTRIP_LOCAL Tabstrip Control - Scrolling at SAPgui
DEMO_DYNPRO_TABSTRIP_SERVER Tabstrip Control - Scrolling at Application Server
2009 Feb 12 5:02 AM
Hi Neeraja,
Here are few steps to create a tabstrip control.
1. Goto transaction se51.
2.Then select a button called layout.
3.You ll go to a screen painter.
4.There are options on the left,select tabstrip(control) and create a tabstrip smaple on the screen painter.
5.Give a name for it and that becomes the name of your container.
Now, in your form just include the container name.
Hope it helps!
Much Regards,
Amuktha.
2009 Feb 12 5:03 AM
To insert tabstrip just open layout of screen and press on the tabstrip button there .
Use this souce code further to activate it .
CONTROLS tabstrip TYPE TABSTRIP.
DATA: okcode TYPE sy-ucomm,
dynnr TYPE sy-dynnr,
flag type flag,
active like tabstrip-activetab .
call SCREEN 100.
&----
*& Module USER_COMMAND_0100 INPUT
&----
text
----
MODULE USER_COMMAND_0100 INPUT.
data: lv_okcode type syucomm.
lv_okcode = okcode.
clear okcode.
case lv_okcode.
WHEN 'TAB1'.
dynnr = '0110'.
WHEN 'TAB2'.
dynnr = '0120'.
WHEN 'TAB3'.
dynnr = '0130'.
WHEN 'TAB4'.
dynnr = '0140'.
WHEN 'TAB5'.
"check authorization, if authorization fails
flag = 'X'. "set the global flag
active = 'TAB1'. "store active tab in global variable
dynnr = '0110'. "set the screen number
WHEN 'BACK' or 'EXIT'.
leave program.
ENDCASE.
IF lv_okcode(3) = 'TAB'.
tabstrip-activetab = lv_okcode.
ENDIF.
ENDMODULE. " USER_COMMAND_0100 INPUT
&----
*& Module STATUS_0100 OUTPUT
&----
text
----
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'MAIN'.
SET TITLEBAR 'xxx'.
IF tabstrip-activetab IS INITIAL OR
dynnr IS INITIAL.
tabstrip-activetab = 'TAB1'.
dynnr = '0110'.
ENDIF.
"set the activetab explicilty here
if flag eq 'X'. "from authorization failure
tabstrip-activetab = active. "'TAB1'
clear flag.
endif.
ENDMODULE. " STATUS_0100 OUTPUT
2009 Feb 12 5:06 AM
Hi ,
There is a tabstip contro in the left hand side .
if u drag and drop or click click and put on screen it will have default 2 tabs, you can make it 3 ,4 ,5 with tab strip properties,
<<text removed>>
Regards
Rajendra
Edited by: Matt on Feb 12, 2009 9:46 AM link to forbidden site
2009 Feb 12 5:26 AM
hi!
a tabstrip contains at least two or more pages.
Each tab page consists of a tab title and a page area.
CALL A SCREEN IN YOUR PROGRAM WITH A SCREEN NUMBER...
GO TO SCREEN PAINTER AND THEN DRAG THE TABSTRIP ICON ON THE LEFT ON THE SCREEN .
AND THEN PROCEED ASSIGNING A SUBSCREEN TO IT.....
2009 Feb 12 5:44 AM
hello,
these are steps for tabstrip control.
1 : Defining the tabstrip Control area and tab titles
2 : Assigning a Subscreen Area to a Tab title
3 : Paging in the SAPgui
4 : Programming the Flow Logic
5 : Exercise
with regards,
sumanth reddy
2009 Feb 12 6:52 AM
i AM GETTING AN ERROR IN SCREEN PAINTER LIKE THIS.
TAB TITLE PUSHBUTTON IS NOT ASSIGNED TO A SUB SCREEN.tELL E WHAT I HAVE TO DO
2009 Feb 12 10:05 AM
Hi
You must place a subscreen inside each tab or one subscreen common to all tabs.
All you have to do is click on subscreen area control and draw it inside the tab. Assign it a name say SSA.
Do this for all your tabs.
Now in your program you need to create tab number of subscreens ie design what you want to be displayed in each tab. Make sure you specify these as subscreens.
In your main program you need to have the following code in PBO and PAI.
PBO.
call subscreen subscreenname including pgmname screen-no
Eg: call subscreen SSA including sy-repid '3000'.
PAI.
call subscreen subscreenname.
Check out this [link|http://help.sap.com/saphelp_nw04/helpdata/en/17/5bf1b52ba211d2954f0000e8353423/content.htm] for more details.
Hope this helps
Regards,
Jayanthi.K
2009 Feb 12 7:44 AM
u need to assign the subscreen name in the reference field(Ref. field). u can find this Ref field in the propeties of the tabstrip in the screen layout. gve the subscreen name here.
2009 Feb 13 5:36 AM