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

How to call table control in subscreen in module pool program

Former Member
0 Likes
2,234

Hi all,

I have req,need call table control in subscreen,but have done but when scroll bar value getting changed ,

please guide how to do it.if its possable send the code.

regards

santosh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,580

Hi,

That's not a problem. Even if its a subscreen where you have the table control, the code is all the same. Please let us know the exact problem that you are facing.

8 REPLIES 8
Read only

Former Member
0 Likes
1,581

Hi,

That's not a problem. Even if its a subscreen where you have the table control, the code is all the same. Please let us know the exact problem that you are facing.

Read only

0 Likes
1,580

Nitwick ,

Doing calcution in subsreen,when i have do scroll the bar value get changing ..

By putting /h debug the code cursor get into main screen by following that to follow to subscreen area that time value gets change..

regards

santosh

Edited by: santosh jajur on Nov 17, 2009 7:06 AM

Read only

0 Likes
1,580

Hi,

The navigation happens like this.

Consider you have a main screen and 2 subscreens.

When you click or do some event in the Subscreen 2 (lets say this is the one that has the table control), this will first trigger PAI of the Main Screen. In the flow logic of the Main screen, you would have written call subscreen <subscreen area1> and call subscreen <subscreen area2>.

Now the subscreens get triggered based on the order in which you have written in the flow logic.

So, here the modules before the first call subscreen statement in the Main Screen PAI is all executed. Now, it goes to the subscreen on which you have triggered an event and executes the modules in the subscreen.

This is how the execution goes when you have subscreens.

So there is no problem with the navigation. You only have to worry about the screen where you have the table control. Just debug and find where data is getting changed or duplicated.

Read only

0 Likes
1,580

Nitwick,

thanks for reply, can send any example code,am finding diffcult do it.

regards

santosh

Edited by: santosh jajur on Nov 17, 2009 7:22 AM

Edited by: santosh jajur on Nov 17, 2009 7:33 AM

Read only

0 Likes
1,580

Hi,


"Main Screen 0110
PROCESS BEFORE OUTPUT.
 MODULE STATUS_0110.
CALL SUBSCREEN TAB1_REF1 INCLUDING 'ZCC0O_RCCC_DIALOG_ASS1' '0111'.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0110.
CALL SUBSCREEN TAB1_REF1.

"Subscreen 0112
PROCESS BEFORE OUTPUT.
  MODULE STATUS_0112.
   module display.
  LOOP AT gt_itab1 WITH CONTROL tabcontrol.
    MODULE check_control.
  ENDLOOP.

PROCESS AFTER INPUT.
  MODULE initialize.
  LOOP AT gt_itab1.
    MODULE GT_ITAB1_MOD.
  ENDLOOP.

MODULE initialize INPUT.
  clear gt_tab1.
ENDMODULE.

MODULE GT_ITAB1_MOD INPUT.
  if sy-ucomm eq 'F_XXX'.  "On restricting, this does not get triggered for scrolling
   "your code.
 endif.
ENDMODULE.

Read only

0 Likes
1,580

nitwick,

when creating the table control,need to declare with options subscreen or normal or dialog box .

regards

santhu

Read only

0 Likes
1,580

Hi,

If you want your table control to be called onto some subscreen area, then you gotto place the table control in the Layout of a SUBSCREEN.

Read only

0 Likes
1,580

But the PAI of subscreen does not run??

What to do with that.