<?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: ALV Grid row limit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-row-limit/m-p/9323949#M1728590</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First check that your internal table is empty. then apply loop on it 20 times and store any null character in character type field and append it to itab. through this you will get the itab with 20 entries now pass it to ALV. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;if &lt;/SPAN&gt;itab &lt;SPAN class="L0S52"&gt;is &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;not &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INITIAL&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;do &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;20 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;times&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; itab&lt;SPAN class="L0S70"&gt;-xyz&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'-'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;append &lt;/SPAN&gt;itab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;enddo&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;endif&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Feb 2013 19:56:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-02-15T19:56:13Z</dc:date>
    <item>
      <title>ALV Grid row limit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-row-limit/m-p/9323948#M1728589</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;I am working on a ALV Grid report using FM REUSE_ALV_GRID_DISPLAY wherein when the ALV report is executed I have to see only 20 default rows by default. I am not pulling the data from any database tables into this report. So when the user executes this report he/she should see 20 blank rows by default. Is this possible to do. If yes, I need some hints on how to achieve this. Appreciate your answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 19:19:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-row-limit/m-p/9323948#M1728589</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-15T19:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid row limit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-row-limit/m-p/9323949#M1728590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First check that your internal table is empty. then apply loop on it 20 times and store any null character in character type field and append it to itab. through this you will get the itab with 20 entries now pass it to ALV. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;if &lt;/SPAN&gt;itab &lt;SPAN class="L0S52"&gt;is &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;not &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;INITIAL&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;do &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;20 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;times&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; itab&lt;SPAN class="L0S70"&gt;-xyz&lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'-'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;append &lt;/SPAN&gt;itab&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;enddo&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;endif&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 19:56:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-row-limit/m-p/9323949#M1728590</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-15T19:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid row limit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-row-limit/m-p/9323950#M1728591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to screen resolution the ALV grid/report but mostly the screen on which the ALV grid is present will change it is size and so the table control or ALV report inside.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A better way is gray out the lines. Keep 20 lines editable and remaining grayed out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab with control tc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;module disable_row. " This must be next to the loop at statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module disable_row.&lt;/P&gt;&lt;P&gt;describe table itab lines tc-lines.&lt;/P&gt;&lt;P&gt;if tc-lines = 0.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-group1 = 'GRP'. " For all the Columns of TC create a Group1 with GRP&lt;/P&gt;&lt;P&gt;screen-input = 0.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;endloop. " Take care of inserting a row after this &lt;/P&gt;&lt;P&gt;endif. " I have checked this and working fine &lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assign group name 'GRP' to all fields that need to be grayed out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;swanand&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Feb 2013 21:06:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-row-limit/m-p/9323950#M1728591</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-02-15T21:06:48Z</dc:date>
    </item>
  </channel>
</rss>

