<?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 Re: Dynamic rows in table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-rows-in-table-control/m-p/6521190#M1425121</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module fill_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP WITH  CONTROL tb_ctrl.&lt;/P&gt;&lt;P&gt;MODULE fill_tb_ctrl.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module fill_lines.&lt;/P&gt;&lt;P&gt;describe table int_table lines lv_lines.&lt;/P&gt;&lt;P&gt;tb_ctrl-lines = lv_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module fill_tb_ctrl.&lt;/P&gt;&lt;P&gt;READ TABLE int_table into wa INDEX tb_ctrl-CURRENT_LINE.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jan 2010 13:54:12 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2010-01-21T13:54:12Z</dc:date>
    <item>
      <title>Dynamic rows in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-rows-in-table-control/m-p/6521185#M1425116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Need some help !&lt;/P&gt;&lt;P&gt;I have created a table control and its working fine, but now what I want is the number of rows of the table should vary dynamically. Meaning, now if the table is displayed it shows large number of rows even if they are not filled. For example, if the table contains 3 records still it shows remaining empty rows (around 20-25) alongwith these 3 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want is, if I have 3 records in the output internal table then the table control should display only 3 rows, if it contains 5 records then the table control should display only 5 rows. No blank rows should be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to acheive this? &lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 13:23:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-rows-in-table-control/m-p/6521185#M1425116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T13:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic rows in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-rows-in-table-control/m-p/6521186#M1425117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are only displaying contents on the table control, then you could probably set the &lt;STRONG&gt;tablecontrol-lines&lt;/STRONG&gt; to the number of records in the table control in the PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
describe table it_tab lines lv_lines.
tablecontrol-lines = lv_lines.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 13:29:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-rows-in-table-control/m-p/6521186#M1425117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T13:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic rows in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-rows-in-table-control/m-p/6521187#M1425118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the variable &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;table_ctrl-LINES  = No of lines of your table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this in PAI or PBO&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 13:30:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-rows-in-table-control/m-p/6521187#M1425118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T13:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic rows in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-rows-in-table-control/m-p/6521188#M1425119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nitwick and Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried option that you suggested, but still its showing 3 data records (filled rows) followed by number of blank rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this thing has anything to do with the size of the table control?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 13:45:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-rows-in-table-control/m-p/6521188#M1425119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-21T13:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic rows in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-rows-in-table-control/m-p/6521189#M1425120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thre is prpperty called &lt;STRONG&gt;lines&lt;/STRONG&gt; for the table control, you must set it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table itab lines lv_lines.&lt;/P&gt;&lt;P&gt;tb_ctrl-lines = lv_lines.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 13:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-rows-in-table-control/m-p/6521189#M1425120</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-21T13:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic rows in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-rows-in-table-control/m-p/6521190#M1425121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module fill_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP WITH  CONTROL tb_ctrl.&lt;/P&gt;&lt;P&gt;MODULE fill_tb_ctrl.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module fill_lines.&lt;/P&gt;&lt;P&gt;describe table int_table lines lv_lines.&lt;/P&gt;&lt;P&gt;tb_ctrl-lines = lv_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module fill_tb_ctrl.&lt;/P&gt;&lt;P&gt;READ TABLE int_table into wa INDEX tb_ctrl-CURRENT_LINE.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jan 2010 13:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-rows-in-table-control/m-p/6521190#M1425121</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-01-21T13:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic rows in table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-rows-in-table-control/m-p/6521191#M1425122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudarshan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;In PBO
" This should always be implemented in PBO only
Module status_100. " Implement this in the program as shown below.
loop at itab with control tc.

endloop.

in Program.
module status_100.
* SET PF-STATUS 'XXX'.
* SET TITLE 'XXX'.

describe table itab lines tc-lines. " this makes sure only filled row displayed and others grayed out.
Now if you want to enable one more line for the user to enter follow this.

if tc-lines &amp;lt;&amp;gt; 0.
tc-lines = tc-lines + 1. " One Extra line is enabled every time so that use can enter otherwise omit this
endif.
endmodule.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheerz&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jan 2010 02:59:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamic-rows-in-table-control/m-p/6521191#M1425122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-22T02:59:44Z</dc:date>
    </item>
  </channel>
</rss>

