‎2009 Nov 25 6:42 AM
Dear all,
i designed a screen 1000 with two tabs names TAB1, TAB2. when i am selecting TAB2 and enter the values in the parameters,
and press enter then automatically its move on TAB1, but i want to move TAB only on click.
please solve this problem .
Regards,
Abhilash
‎2009 Nov 25 6:51 AM
Hi Abhilash,
Coudl you paste the relevant code? Need to check??
Regards
Abhii
‎2009 Nov 25 7:00 AM
hi Abhii,
Actually i created table strip through wizard.
Abhilash
‎2009 Nov 25 7:07 AM
Hi,
Check these demo programs. May be you get some idea:
DEMO_DYNPRO_TABSTRIP_LOCAL
DEMO_DYNPRO_TABSTRIP_SERVER
DEMO_SEL_SCREEN_IN_TABSTRIP
DEMO_SEL_SCREEN_WITH_TABSTRIP
Regards,
Swarna Munukoti
‎2009 Nov 25 7:19 AM
Hi Abhilash,
No issues, even if you have created it through Tabstrip wizzard, it will be a Z program, open that program & past the code, I will have a look at it.
Regards
Abhii
‎2009 Nov 25 7:23 AM
PROCESS BEFORE OUTPUT.
*&SPWIZARD: PBO FLOW LOGIC FOR TABSTRIP 'TAB'
MODULE TAB_ACTIVE_TAB_SET.
CALL SUBSCREEN:
5002_SCA INCLUDING G_TAB-PROG '5002',
5003_SCA INCLUDING G_TAB-PROG '5003'.
MODULE STATUS_5004_PBO.
*
PROCESS AFTER INPUT.
MODULE EXIT AT EXIT-COMMAND.
*&SPWIZARD: PAI FLOW LOGIC FOR TABSTRIP 'TAB'
CALL SUBSCREEN:
5002_SCA,
5003_SCA.
MODULE TAB_ACTIVE_TAB_GET.
MODULE USER_COMMAND_PAI_5004.
*****************************************************************
MODULE TAB_ACTIVE_TAB_SET OUTPUT.
TAB-ACTIVETAB = G_TAB-PRESSED_TAB.
CASE G_TAB-PRESSED_TAB.
WHEN C_TAB-TAB1.
G_TAB-SUBSCREEN = '5002'.
WHEN C_TAB-TAB2.
G_TAB-SUBSCREEN = '5003'.
WHEN OTHERS.
*&SPWIZARD: DO NOTHING
ENDCASE.
ENDMODULE.
******************************************************************
MODULE TAB_ACTIVE_TAB_GET INPUT.
OK_CODE = SY-UCOMM.
CASE OK_CODE.
WHEN C_TAB-TAB1.
G_TAB-PRESSED_TAB = C_TAB-TAB1.
WHEN C_TAB-TAB2.
G_TAB-PRESSED_TAB = C_TAB-TAB2.
WHEN OTHERS.
*&SPWIZARD: DO NOTHING
ENDCASE.
ENDMODULE.
‎2009 Nov 25 6:52 AM
Hi,
Looks like you have set your active-tab = TAB1 somewhere in the PAI of subscreen that you are calling on the TAB2.
Please thoroughly debug.
Also, instead of manually triggering the TABs, go to Layout -> Click on the TAB(which is essentially a button) -> Give the Function Type as 'P'. This will not trigger the PAI.
‎2009 Nov 25 7:09 AM
HI
In PAI
module user_command.
in Program.
module user_command.
case ok_code. " We need to Maintain this in Flow Logic under Elements Tab and also in Top Include
when 'TAB1'. " We have to maintain the FCODE in Screen Painter for the Tab(Push Button)
TS-ACTIVE_TAB = 'TAB1'.
when 'TAB2'. " We have to maintain the FCODE in Screen Painter for the Tab(Push Button)
TS-ACTIVE_TAB = 'TAB2'.
endcase.
endmodule.Cheerz
Ram