2009 Apr 21 8:18 AM
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
2009 Apr 22 7:36 AM
HI,
THIS IS ONLY ACTIVATION PROBLEM ACTIVATE ALL SCREEN THROUGH SE51
IT WILL DEFENETALY WORK
HI,
THIS IS ONLY ACTIVATION PROBLEM ACTIVATE ALL SCREEN THROUGH SE51
IT WILL DEFENETALY WORK
2009 Apr 21 8:33 AM
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
2009 Apr 21 9:47 AM
when you press another tab
Use Tabstrip-Activetab = your_Tab_name
in pbo
Regards,
Alpesh
2009 Apr 22 5:45 AM
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
2009 Apr 22 7:36 AM
HI,
THIS IS ONLY ACTIVATION PROBLEM ACTIVATE ALL SCREEN THROUGH SE51
IT WILL DEFENETALY WORK
2009 Apr 23 11:04 AM
In screen painter you have to make the Fct type = p.
This is used for paging.
2009 Apr 23 1:09 PM
Hi
i given like fctype=p
so that
Iam getting the correct output. My all tabs are working properly.
Thanks.
2009 Apr 23 1:38 PM
<<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
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |