<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Problem with Table control lines in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-table-control-lines/m-p/5210978#M1205388</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the problem with table control lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have screen with table control and I would like change the table control lines dynamicaly.&lt;/P&gt;&lt;P&gt;Exp:&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;here is the code:&lt;/P&gt;&lt;P&gt;Initial values in gt_scr400 = 8&lt;/P&gt;&lt;P&gt;Initial values in tc_scr400 = 8&lt;/P&gt;&lt;P&gt;Now added one more recor into gt_scr400 , now gt_scr400  = 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT   gt_scr400&lt;/P&gt;&lt;P&gt;       INTO wa_scr400&lt;/P&gt;&lt;P&gt;       WITH CONTROL tc_scr400&lt;/P&gt;&lt;P&gt;       CURSOR tc_scr400-current_line.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used this logic : &lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE gt_scr400 LINES g_rec_300 .&lt;/P&gt;&lt;P&gt;  tc_scr300-lines = g_rec_300.&lt;/P&gt;&lt;P&gt; but its not modifying the lines in my table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to change the TC lines based on ITAB total records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Feb 2009 14:10:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-25T14:10:31Z</dc:date>
    <item>
      <title>Problem with Table control lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-table-control-lines/m-p/5210978#M1205388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the problem with table control lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have screen with table control and I would like change the table control lines dynamicaly.&lt;/P&gt;&lt;P&gt;Exp:&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;here is the code:&lt;/P&gt;&lt;P&gt;Initial values in gt_scr400 = 8&lt;/P&gt;&lt;P&gt;Initial values in tc_scr400 = 8&lt;/P&gt;&lt;P&gt;Now added one more recor into gt_scr400 , now gt_scr400  = 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT   gt_scr400&lt;/P&gt;&lt;P&gt;       INTO wa_scr400&lt;/P&gt;&lt;P&gt;       WITH CONTROL tc_scr400&lt;/P&gt;&lt;P&gt;       CURSOR tc_scr400-current_line.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used this logic : &lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE gt_scr400 LINES g_rec_300 .&lt;/P&gt;&lt;P&gt;  tc_scr300-lines = g_rec_300.&lt;/P&gt;&lt;P&gt; but its not modifying the lines in my table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to change the TC lines based on ITAB total records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Feb 2009 14:10:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-table-control-lines/m-p/5210978#M1205388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-25T14:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Table control lines</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-table-control-lines/m-p/5210979#M1205389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is a field in TableViewName-xxx&lt;/P&gt;&lt;P&gt;don't remember the exact field name for (total no of records)&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 12:04:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-table-control-lines/m-p/5210979#M1205389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T12:04:05Z</dc:date>
    </item>
  </channel>
</rss>

