‎2007 Nov 21 11:38 AM
Hi All
Kindly help me solve my following problem in module pool:
-I am calling a screen in the form of a pop-up with a table control in it.
-Only 9 rows are visible in the table control of screen according to the size of the table control and the screen.
The reqd functionality is:
user will put the values in table control and they are needed in an internal table.
I am getting the above functionality except the following:
When the table control is scrolled, the written values in above rows are not retained
In PBO of the table control(TABC) screen, I hv done
TABC- lines = '30'.
TABC-v_scroll = 'X'.
‎2007 Nov 22 5:37 AM
‎2007 Nov 22 10:49 AM
‎2007 Nov 23 3:22 AM
When the user scrolls, this will cause your program to enter PAI and you then need to make sure you update the internal table that corresponds to the table control with the data that was on the screen -> you can do this with a module in the "loop with control tc_9999" within the PAI.
Jonathan
‎2007 Dec 14 3:36 PM
IN PBO
wirthin the loop of the table control create one module like
LOOP WITH CONTROL TC_COLS.
MODULE READ_COLS.
ENDLOOP.
MODULE READ_COLS OUTPUT.
READ TABLE TC_SPFLI-COLS INDEX TC_COLS-CURRENT_LINE INTO COL.
and in pai.
READ TABLE TC_SPFLI-COLS INDEX TC_COLS-CURRENT_LINE INTO COL.
MODIFY TC_SPFLI-COLS INDEX TC_COLS-CURRENT_LINE FROM COL.
here tc_cols is the table control name,
tc_spfli is the table fields used in table control
I think it will helpful to you.
‎2007 Dec 14 4:37 PM
Use MODIFY command...to retain the values in TC.
first try to append all the values to the TC internal table and use the MODIFY command on the TC internal table so that the values retain even if u scroll....
Hope this is helpful...