2009 Nov 23 5:05 AM
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
2009 Nov 23 5:18 AM
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
2009 Nov 23 5:18 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |