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

Module pool subscreen issue

Former Member
0 Likes
1,053

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

8 REPLIES 8
Read only

Former Member
0 Likes
957

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.

Read only

0 Likes
957

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

Read only

0 Likes
957

Hi Vishal,

try using sy-cprog instead of sy-repid.

and check whether u gave function type P to all tab tiltes.

Read only

0 Likes
957

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

Read only

0 Likes
957

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?

Read only

Former Member
0 Likes
957

see example program

demo_dynpro_tabstrip_local

demo_dynpro_tabstrip_server.

Read only

Former Member
0 Likes
957

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

Read only

Former Member
0 Likes
957

closed