<?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: Table control isnt enough rows in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-isnt-enough-rows/m-p/1221137#M136447</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;In the PBO of the table control screen you should put the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE initialize.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE initialize OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tablecontrol-lines = X. 'Number of lines you want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must have the table control active for input. If not &lt;/P&gt;&lt;P&gt;tablecontrol-line_sel_mode = 2. 'Activate tablecontrol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mireia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Mar 2006 08:45:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-03-30T08:45:31Z</dc:date>
    <item>
      <title>Table control isnt enough rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-isnt-enough-rows/m-p/1221135#M136445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how should i set the height / number of row of a table control....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with the table scroll-able ..&lt;/P&gt;&lt;P&gt; for example, the height is 20, but it contain 50 rows..&lt;/P&gt;&lt;P&gt; this table is empty...'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;because my problem is..&lt;/P&gt;&lt;P&gt;the number of rows is limited to be same as the height.'&lt;/P&gt;&lt;P&gt;i cant enter data row more than the table control's height....&lt;/P&gt;&lt;P&gt;what setting should be done to make it unlimited entry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Kokwei Wong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Kokwei Wong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Kokwei Wong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Kokwei Wong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 08:28:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-isnt-enough-rows/m-p/1221135#M136445</guid>
      <dc:creator>kowong</dc:creator>
      <dc:date>2006-03-30T08:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Table control isnt enough rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-isnt-enough-rows/m-p/1221136#M136446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kokwei,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this standard program and go through the code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;demo_dynpro_tabcont_loop&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do have a look on the sample piece of code.&lt;/P&gt;&lt;P&gt; (assume that the name of your table control is T1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the screen logic you will have:&lt;/P&gt;&lt;P&gt;Loop with control T1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module get_Looplines.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Module get_looplines.&lt;/P&gt;&lt;P&gt;Looplines = sy-loopc.&lt;/P&gt;&lt;P&gt;Endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PBO of the screen you will have a module that loads the itab and determines the total number of lines read.&lt;/P&gt;&lt;P&gt;Module load_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;. (select database table and &lt;/P&gt;&lt;P&gt;append to itab)&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;describe table itab lines linecount.&lt;/P&gt;&lt;P&gt;Endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We now have all the values to construct a scroll module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE SCROLL INPUT.&lt;/P&gt;&lt;P&gt;CASE SAVE_OK_CODE.&lt;/P&gt;&lt;P&gt;WHEN 'P--'.&lt;/P&gt;&lt;P&gt;T1-TOP_LINE = 1.&lt;/P&g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gt; N1.&lt;/P&gt;&lt;P&gt;CTR1-TOP_LINE = N1.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;CLEAR SY-UCOMM.&lt;/P&gt;&lt;P&gt;WHEN 'P++'.&lt;/P&gt;&lt;P&gt;DESCRIBE TABLE ITAB1 LINES N1.&lt;/P&gt;&lt;P&gt;CLEAR SY-UCOMM.&lt;/P&gt;&lt;P&gt;CTR1-TOP_LINE = N1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will enable ur scoll bar with any number of fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For More refernce just check the same thread:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1300716"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;P&gt;Rewrd points, if found helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 08:41:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-isnt-enough-rows/m-p/1221136#M136446</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-30T08:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Table control isnt enough rows</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-isnt-enough-rows/m-p/1221137#M136447</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;In the PBO of the table control screen you should put the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MODULE initialize.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE initialize OUTPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tablecontrol-lines = X. 'Number of lines you want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must have the table control active for input. If not &lt;/P&gt;&lt;P&gt;tablecontrol-line_sel_mode = 2. 'Activate tablecontrol&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mireia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2006 08:45:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-isnt-enough-rows/m-p/1221137#M136447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-03-30T08:45:31Z</dc:date>
    </item>
  </channel>
</rss>

