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

Regarding TABSTRIP on module pool

Former Member
0 Likes
1,003

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

7 REPLIES 7
Read only

Former Member
0 Likes
697

Hi Abhilash,

Coudl you paste the relevant code? Need to check??

Regards

Abhii

Read only

0 Likes
697

hi Abhii,

Actually i created table strip through wizard.

Abhilash

Read only

0 Likes
697

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

Read only

0 Likes
697

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

Read only

0 Likes
697

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.

Read only

Former Member
0 Likes
697

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.

Read only

Former Member
0 Likes
697

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