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

tabstrip problem

Former Member
0 Likes
1,575

Hi Experts,

I wrote a small program for Tab strip control.

I placed 3 tab title (tab1,tab2,tab3)in tabstrip control. when iam executing the program , only tab1 is working, tab2 and tab3 is not working. whats the problem in my program.

Thanks

Sridevi

1 ACCEPTED SOLUTION
Read only

former_member756887
Participant
0 Likes
1,083

HI,

THIS IS ONLY ACTIVATION PROBLEM ACTIVATE ALL SCREEN THROUGH SE51

IT WILL DEFENETALY WORK

7 REPLIES 7
Read only

Former Member
0 Likes
1,083

Haii..Follow this code..it may help you.

Flow Logic:

PROCESS BEFORE OUTPUT.

  • PBO FLOW LOGIC FOR TABSTRIP 'NB_TAB_03'

MODULE NB_TAB_03_ACTIVE_TAB_SET.

CALL SUBSCREEN NB_TAB_03_SCA

INCLUDING G_NB_TAB_03-PROG G_NB_TAB_03-SUBSCREEN.

MODULE STATUS_0120.

PROCESS AFTER INPUT.

  • PAI FLOW LOGIC FOR TABSTRIP 'NB_TAB_03'

CALL SUBSCREEN NB_TAB_03_SCA.

MODULE NB_TAB_03_ACTIVE_TAB_GET.

MODULE USER_COMMAND_0120.

End of Flow Logic

Output Module:

MODULE NB_TAB_03_ACTIVE_TAB_SET OUTPUT.

NB_TAB_03-ACTIVETAB = G_NB_TAB_03-PRESSED_TAB.

CASE G_NB_TAB_03-PRESSED_TAB.

WHEN C_NB_TAB_03-TAB1.

G_NB_TAB_03-SUBSCREEN = '0121'.

WHEN C_NB_TAB_03-TAB2.

G_NB_TAB_03-SUBSCREEN = '0122'.

WHEN C_NB_TAB_03-TAB3.

G_NB_TAB_03-SUBSCREEN = '0123'.

ENDCASE.

ENDMODULE.

Input Module:

MODULE NB_TAB_03_ACTIVE_TAB_GET INPUT.

clear OK_CODE.

OK_CODE = SY-UCOMM.

CASE OK_CODE.

WHEN C_NB_TAB_03-TAB1.

G_NB_TAB_03-PRESSED_TAB = C_NB_TAB_03-TAB1.

WHEN C_NB_TAB_03-TAB2.

G_NB_TAB_03-PRESSED_TAB = C_NB_TAB_03-TAB2.

WHEN C_NB_TAB_03-TAB3.

G_NB_TAB_03-PRESSED_TAB = C_NB_TAB_03-TAB3.

ENDCASE.

ENDMODULE.

Best Regards,

rama

Edited by: newtoAbap on Apr 21, 2009 9:43 AM

Edited by: newtoAbap on Apr 21, 2009 9:49 AM

Read only

Former Member
0 Likes
1,083

when you press another tab

Use Tabstrip-Activetab = your_Tab_name

in pbo

Regards,

Alpesh

Read only

Former Member
0 Likes
1,083

hi,

try this,

First assign four character function code to each tab strip and in PAI event

case sy-ucomm.

when 'ITEM'.

mytabstrip-activetab = 'ITEM'.

number = '0110'.

select vbeln

vbap~matnr

from vbap join mara on vbapmatnr = maramatnr

into table it_sohead

where vbeln = sonum.

when 'MATL'.

mytabstrip-activetab = 'MATL'.

number = '0120'.

when 'PLNT'.

mytabstrip-activetab = 'PLNT'.

number = '0130'.

endcase.

In this case... ITEM, MATL, PLNT are three tabstrips and the number is the subscreen number that should be called when tab is pressed.

regards

padma

Read only

former_member756887
Participant
0 Likes
1,084

HI,

THIS IS ONLY ACTIVATION PROBLEM ACTIVATE ALL SCREEN THROUGH SE51

IT WILL DEFENETALY WORK

Read only

0 Likes
1,083

In screen painter you have to make the Fct type = p.

This is used for paging.

Read only

0 Likes
1,083

Hi

i given like fctype=p

so that

Iam getting the correct output. My all tabs are working properly.

Thanks.

Read only

0 Likes
1,083

<<It is against the rules to ask for points. Please do not do it again, or points will be deducted>>

Its ok. Points plz

Edited by: Matt on Apr 24, 2009 8:06 AM