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

Scrolling Problem in Table Control

Former Member
0 Likes
861

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'.

5 REPLIES 5
Read only

Former Member
0 Likes
752

any update

Read only

Former Member
0 Likes
752

pls reply if any u hv have any idea regarding this.

Read only

0 Likes
752

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

Read only

Former Member
0 Likes
752

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.

Read only

Former Member
0 Likes
752

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...