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

table control doesn't work propoerly

Former Member
0 Likes
1,068

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

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.

7 REPLIES 7
Read only

Former Member
0 Likes
1,032

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

Read only

Former Member
0 Likes
1,032

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.

Read only

Former Member
0 Likes
1,032

hi,

did you check this thread

hope it helps you

thanks

Sachin

Read only

Former Member
0 Likes
1,032
Read only

0 Likes
1,032

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

Read only

Former Member
0 Likes
1,032

try this one , taruns answer!

Read only

Former Member
0 Likes
1,032

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.