<?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 in Module Pool Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-module-pool-program/m-p/7144745#M1513898</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;I need to control the number records in table control.&lt;/P&gt;&lt;P&gt;For example: if 20 records ..only 20records have to show.if 4 records need to show only four records.&lt;/P&gt;&lt;P&gt;Now its showing same number of rows irrespective of the records.i.e when i scroll down its goes on showing empty rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Anu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Aug 2010 08:52:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-18T08:52:15Z</dc:date>
    <item>
      <title>Problem in Module Pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-module-pool-program/m-p/7144745#M1513898</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;I need to control the number records in table control.&lt;/P&gt;&lt;P&gt;For example: if 20 records ..only 20records have to show.if 4 records need to show only four records.&lt;/P&gt;&lt;P&gt;Now its showing same number of rows irrespective of the records.i.e when i scroll down its goes on showing empty rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You,&lt;/P&gt;&lt;P&gt;Anu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 08:52:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-module-pool-program/m-p/7144745#M1513898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T08:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Module Pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-module-pool-program/m-p/7144746#M1513899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anitha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PBO in one of your PBO module , you should pass the SY-DBCNT to the table control lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just have a look at the below code :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  SET PF-STATUS 'MY_MENU'.
  SET TITLEBAR 'ZMY_TITLE'.
  SELECT * FROM zreaders INTO TABLE itab.
  MOVE-CORRESPONDING itab TO zreaders.
  SORT itab BY readerid descending.
  tc-lines = sy-dbcnt 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here TC is the table control name :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CONTROLS tc TYPE TABLEVIEW USING SCREEN 0100.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Abhii&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 09:02:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-module-pool-program/m-p/7144746#M1513899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T09:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Module Pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-module-pool-program/m-p/7144747#M1513900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;tbctrl-lines = lines( itab ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Set this property just after itab is populated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 09:18:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-module-pool-program/m-p/7144747#M1513900</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2010-08-18T09:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in Module Pool Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-module-pool-program/m-p/7144748#M1513901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Suppose you have the data in you internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write this in PBO:&lt;/P&gt;&lt;P&gt;describe table itab lines count.&lt;/P&gt;&lt;P&gt;where itab is your internal table and count is a variable of type integer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this statement will fetch the total lines of your internal table itab in variable count.&lt;/P&gt;&lt;P&gt;assign this count to tc-lines as below.&lt;/P&gt;&lt;P&gt;tc-lines = count.&lt;/P&gt;&lt;P&gt;TC means table control name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will allocate line to your table control for total number of line in your internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But your table control will have the blank lines.&lt;/P&gt;&lt;P&gt;condition 1:&lt;/P&gt;&lt;P&gt;suppose your table control's widthis for 10 lines and you have 3 records so your table control will show remaining 7 lines.&lt;/P&gt;&lt;P&gt;and if you have 29 records then your table control will allow you to scroll and will show 29 records and 1 blank line which will not be in editable mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Condition 2: &lt;/P&gt;&lt;P&gt;if you have created a Table control as editable then it will show you remaining line because what if user wants to put some value in the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in Any case it will show you the blank lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will work for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lalit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Aug 2010 09:50:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-module-pool-program/m-p/7144748#M1513901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-18T09:50:12Z</dc:date>
    </item>
  </channel>
</rss>

