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

Problem with Table control lines

Former Member
0 Likes
320

Hi Friends,

This is the problem with table control lines:

I have screen with table control and I would like change the table control lines dynamicaly.

Exp:

In my PBO the Internal table which I am using to loop the TC is havig 7 records and its displayed with 7 records, now I have added one more record into my ITAB and now ITAB is having 8 records, when I am looping this ITAB with TC its taking the TC lines 7 only.

here is the code:

Initial values in gt_scr400 = 8

Initial values in tc_scr400 = 8

Now added one more recor into gt_scr400 , now gt_scr400 = 9.

LOOP AT gt_scr400

INTO wa_scr400

WITH CONTROL tc_scr400

CURSOR tc_scr400-current_line.

ENDLOOP.

I have used this logic :

DESCRIBE TABLE gt_scr400 LINES g_rec_300 .

tc_scr300-lines = g_rec_300.

but its not modifying the lines in my table control.

How to change the TC lines based on ITAB total records.

Thanks,

Sridhar

1 REPLY 1
Read only

Former Member
0 Likes
292

there is a field in TableViewName-xxx

don't remember the exact field name for (total no of records)

you can check it in debug. when you add records in Internal table, u need to modify this field which is set at the first time when table control is populated.