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

Former Member
0 Likes
440

hi gurus,

i am moving a internal table values in to a table control. Only 14 records are moving in to the table control and later it is throwing a dump. 14 is the number of records found visible in the table control in the screen.;.e; it is not getting scrolled and taking the values from the internal table. what can i do?

1 REPLY 1
Read only

Former Member
0 Likes
358

Hello,



PROCESS BEFORE OUTPUT.

LOOP ......
---
---
ENDLOOP.
---
MODULE scroll_tctrl.
------------------------------------------

MODULE scroll_tctrl OUTPUT.
DATA : l_lines TYPE sy-tabix.
DESCRIBE TABLE itab LINES l_lines.
IF l_lines < sy-loopc.
tctrl-lines = sy-loopc.
ELSE.
tctrl-lines = l_lines.
ENDIF.
ENDMODULE.
where tctrl is your table control.

Or else, simply add few lines to your table control

ex:
MODULE scroll_tctrl OUTPUT.
tctrl-lines = 100.
ENDMODULE.

You have to select both Horizontal and vertical scroll while creating table control usinf Wizard.

Regards,

Deepu.K