2008 Dec 23 6:46 AM
Hello Forum,
I have created a screen, that has got a table control for scrolling up and down. Once i fill 10 entries in the table, new entries are added / saved but i am unable to scroll down to them.
Could you please help me in resolving this as soon as possible.
Thanks,
Best Regards
D. Swathi
Hello Forum,
I have created a screen, that has got a table control for scrolling up and down. Once i fill 10 entries in the table, new entries are added / saved but i am unable to scroll down to them.
Could you please help me in resolving this as soon as possible.
Thanks,
Best Regards
D. Swathi
2008 Dec 23 6:50 AM
Hi Swathi,
In PBO
module status_100.
in program
module status_100.
describe table itab lines tc-lines.
endmodule
For more info on table control go through the program RSDEMO02
Best Regards
Ramchander Rao.K
Edited by: ramchander krishnamraju on Dec 23, 2008 7:50 AM
2008 Dec 23 7:01 AM
Hi,
Please try this in pbo
SORT gt_container BY container_no.
DELETE ADJACENT DUPLICATES FROM gt_container.
DESCRIBE TABLE gt_container LINES gvi_lines1.
SORT gt_container BY serial_no ASCENDING.
tc2-lines = 10.
IF gvi_lines1 GE 10.
tc2-lines = tc2-lines + 10.
ENDIF.
2008 Dec 23 7:08 AM
2008 Dec 23 7:22 AM
Hi ,
Kindly check Link below . It will help you
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac4435c111d1829f0000e829fbfe/content.htm
2008 Dec 23 7:24 AM
Hi ,
Before the PBO loop, in the module STATUS_0100 the current number of lines of the internal table ITAB is placed in component LINES of control structure FLIGHTS. This helps the system to correctly install the scroll bar of the table control.
Kindly check Link below . It will help you
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac4435c111d1829f0000e829fbfe/content.htm
2008 Dec 23 10:33 AM
2008 Dec 24 6:40 AM
i am explaining u the logic ...to solve ur problem
PROCESS BEFORE OUTPUT.
MODULE status_0100.
LOOP WITH CONTROL flights.
MODULE fill_tablecontrol.
ENDLOOP.
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
LOOP WITH CONTROL flights.
MODULE read_tablecontrol.
ENDLOOP.
MODULE user_command_0100.
The loop at PBO and PAI using the table control FLIGHTS. During the PBO loop, a module is called to fill the table control from table ITAB of the ABAP program. In PAI loop, a module is called to modify table ITAB.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |