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

scrollup problem in table control of dialogue program

Former Member
0 Likes
398

Hi All,

In our dialogue program, we are using a table control and populating this table control using an internal table.

The table is getting populated correctly.

When we scroll down everything is working fine. But when we scroll up, the first row is getting replaced with second and so on and the last row comes twice as follows. Please tell me how to solve this issue.

actual data when we scroll up

10 20

20 30

30 40

40 50

50 50

Thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
374

Hi Aslam,

in PBO.

loop at itab with control TC.

module transfer_data. " In case your Screen Field Structure and Itab in program differ

endloop.

In PAI of your program.

loop at itab.

module modify_itab.

endloop.

in Program

module modify_itab.

describe table itab lines tc-llines.

if tc-current_line > tc-lines.

append itab.

else.

modify itab index tc-current_line. " This Ensures your Data transfer From Screen to Program correctly

endmodule.

Check in Debug what happening while data goes back from program to Screen.

Cheerz

Ram

Hi All,

In our dialogue program, we are using a table control and populating this table control using an internal table.

The table is getting populated correctly.

When we scroll down everything is working fine. But when we scroll up, the first row is getting replaced with second and so on and the last row comes twice as follows. Please tell me how to solve this issue.

actual data when we scroll up

10 20

20 30

30 40

40 50

50 50

Thanks in advance

1 REPLY 1
Read only

Former Member
0 Likes
375

Hi Aslam,

in PBO.

loop at itab with control TC.

module transfer_data. " In case your Screen Field Structure and Itab in program differ

endloop.

In PAI of your program.

loop at itab.

module modify_itab.

endloop.

in Program

module modify_itab.

describe table itab lines tc-llines.

if tc-current_line > tc-lines.

append itab.

else.

modify itab index tc-current_line. " This Ensures your Data transfer From Screen to Program correctly

endmodule.

Check in Debug what happening while data goes back from program to Screen.

Cheerz

Ram