Application Development 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: 

how to insert text,input/output fields at tabstrips

Former Member
0 Kudos

hi guru,

how to insert text,input/output fields at tabstrips.

i am unabe to inset above mentioned fields which are available at layout.

please suggest me.

regards,

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi when you create a tabstrip in a screen .

you need to create various subscreen (102,103)where you can add input output field.

and you need to call these subscreen in your tabstrip.

suppose i have a tabstrip TSTR in screen.

this TSTR hes two TAb tab1,tab2 (give them in fcode of tab in TSTR).you click on tab1 and define a subscreen area<SUB> to it.

now in PBO of screen.

call subscreen sub including <proname> <screen no>

now in PAI.

call subscreen sub .

module user.

case ok_code.

when 'TAB1'.

<screenno> = '102'.

Edited by: swati gupta on Sep 24, 2008 1:44 PM

7 REPLIES 7

Former Member
0 Kudos

Ashok

You will have to add Subscreen Area in the Tab Strip where u can add other controls..

Thanks

Amol Lohade

Former Member
0 Kudos

hi when you create a tabstrip in a screen .

you need to create various subscreen (102,103)where you can add input output field.

and you need to call these subscreen in your tabstrip.

suppose i have a tabstrip TSTR in screen.

this TSTR hes two TAb tab1,tab2 (give them in fcode of tab in TSTR).you click on tab1 and define a subscreen area<SUB> to it.

now in PBO of screen.

call subscreen sub including <proname> <screen no>

now in PAI.

call subscreen sub .

module user.

case ok_code.

when 'TAB1'.

<screenno> = '102'.

Edited by: swati gupta on Sep 24, 2008 1:44 PM

0 Kudos

hi swati, thanks for suggesting.

when i am designing the screen by tabstip control i can drag and drop at screen.

but when i am dragging textfields and input/output fields its not accepting even i take sub screen area in the tabs lilke tab1 and tab2.

how to over come this

regards,

0 Kudos

Hi,

when you define subscreen area ,you dont need to drag and drop text in subscreen area ,it ia a container.

you follow.

you creat a subecreen area in tab1 of TSTR.

double click on tab1 .here in its property window write the name SUB in REference field.

create two subscreen as 102,103.

call subscreen in you screen as.

IN PBO.

CALL SUBSCREEN SUB INCLUDING SY-REPID '102'.

..

0 Kudos

hi thanks,

i have done what you have suggested to me.

but i am not able to getting what i am expecting.

one tabstrip should contain purchase order details like the fields vendor,purchase group,purchase org, like these text fields and input fields.

how to do this, i am quite new to the module programming.

regards,

0 Kudos

HI

you define abap tabstrip as

CONTROLS:tstrip1 TYPE TABSTRIP.

v_dynnr TYPE sy-dynnr VALUE '102',

LETs two subscreeen '102','103'

NOW in screen

IN PBO

CALL SUBSCREEN sub INCLUDING sy-repid v_dynnr.

In PAI.

CALL SUBSCREEN sub .

module user.

*******code*******

case sy-ucomm.

when 'TAB1'.

v_dynnr = '102'.

when 'TAB2'.

v_dynnr = '103'.

endcase.

0 Kudos

swati guta garu,

many thanks to you my problem is solved with your valuble suggestion/help.

i rewarded you full points.

keep up your work.

regards,