‎2007 Nov 19 6:44 AM
Hi
I my module pool application, I have a tab strip having 4 tabs designed in local scrolling (PAI). But after entering some values on tab 1 , when I navigate to tab 2, the gui components of tab1 also appear on tab2 and screen becomes messed up.
How to correct it?
Regards
Vishal Kapoor
‎2007 Nov 19 7:15 AM
Hi,
Just check if u are using same subscreen area and calling the same subscreen in all of them..
If u use different subscreen area for each tab then try this:
Pbo.
Call subscreen subarea1
Including sy-cprog subscno.
Call subscreen subarea2
Including sy-cprog subscno.
Call subscreen subarea3
Including sy-cprog subscno.
Pai.
Call subscreen subarea1.
Call subscreen subarea2.
Call subscreen subarea3.
If u are using same subscreen area for all tabs then try this :
Data dynnr type sy-dynnr.
Pbo.
Case my_tab-activetab.
When fc1.
Dynnr = subscno1.
When fc2.
Dynnr = subscno2.
When fc3.
Dynnr = subscno3.
Endcase.
Pai.
Case ok_code.
When fc1 or fc2 or fc3.
My_tab-active tab = ok_code.
Endcase.
hope it helps.
reward if useful.
‎2007 Nov 19 7:57 AM
Hi Kamini
I did the same way but still comp of subscreen 1 appears on subscreen 2 during tabstrip navigation.
If I dont perform any activity on subscreen 1 then no overlapping occur. On subscreen 1 I have employee number field. when i press enter the employee name appears but component start overlapping.
Flow logic:
PROCESS BEFORE OUTPUT.
MODULE status_9000.
CALL SUBSCREEN: prog INCLUDING sy-repid '9001',
nomn INCLUDING sy-repid '9002',
expn INCLUDING sy-repid '9003',
remk INCLUDING sy-repid '9004'.
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
CALL SUBSCREEN: prog,
nomn,
expn,
remk.
MODULE user_command_9000.
Thanks
Vishal kapoor
‎2007 Nov 19 8:18 AM
Hi Vishal,
try using sy-cprog instead of sy-repid.
and check whether u gave function type P to all tab tiltes.
‎2007 Nov 19 1:05 PM
Hi
I have used different subscreen area for different tabs with function code 'P'.
the operlapping happen only in the case of text editor control.
Thanks
Vishal Kapoor
‎2007 Nov 20 4:17 AM
Can you explain a little about what screen elemnts are present in your subscreen and which of them are causing problem.
What is this text editor control?
‎2007 Nov 19 8:01 AM
see example program
demo_dynpro_tabstrip_local
demo_dynpro_tabstrip_server.
‎2007 Nov 19 8:03 AM
Hi
I think you have used same subscreen for all the tabs.You have to use different subscreen for different tabs.
<b>Reward point if useful.</b>
Regards
Shibin
‎2011 Feb 18 12:58 PM