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

how to insert tabstrip control in module pool screen painter

Former Member
0 Likes
3,353

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,582

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.

12 REPLIES 12
Read only

Former Member
0 Likes
2,582

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

Read only

Former Member
Read only

Former Member
0 Likes
2,582

refer demo program ...

DEMO_DYNPRO_TABSTRIP_LOCAL Tabstrip Control - Scrolling at SAPgui

DEMO_DYNPRO_TABSTRIP_SERVER Tabstrip Control - Scrolling at Application Server

Read only

Former Member
0 Likes
2,581

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.

Read only

Former Member
0 Likes
2,581

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

Read only

Former Member
0 Likes
2,583

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

Read only

Former Member
0 Likes
2,581

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.....

Read only

Former Member
0 Likes
2,581

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

Read only

0 Likes
2,581

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

Read only

0 Likes
2,581

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

Read only

Former Member
0 Likes
2,581

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.

Read only

Former Member
0 Likes
2,581

thanQ