<?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 when No data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143032#M1192102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this fit your bill?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF fp_it_final IS INITIAL.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program          = sy-repid
      i_callback_html_end_of_list = 'END_OF_LIST'
      is_layout                   = fp_st_layout
      it_fieldcat                 = fp_it_fieldcat
      it_sort                     = fp_it_sort
      i_save                      = 'A'
    TABLES
      t_outtab                    = fp_it_final
    EXCEPTIONS
      program_error               = 1
      OTHERS                      = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*   Error in calling Standard ALV Functional Module
    MESSAGE i036. "Error Occured in ALV Function Module
    LEAVE LIST-PROCESSING.
  ENDIF.
ENDIF.

ENDFORM.                    " F_DISPLAY_ALV
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  END_OF_LIST
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM end_of_list USING cl_dd TYPE REF TO cl_dd_document.

  CALL METHOD cl_dd-&amp;gt;add_text
    EXPORTING
      text         = 'This table is Initial'
      sap_style    = cl_dd_area=&amp;gt;heading
      sap_fontsize = cl_dd_area=&amp;gt;large
      sap_color    = cl_dd_area=&amp;gt;list_heading_int.

ENDFORM.                    "END_OF_LIST
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Jan 2009 16:55:46 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2009-01-28T16:55:46Z</dc:date>
    <item>
      <title>ALV Grid when No data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143024#M1192094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can we get a line in the alv grid saying "No data selected!" in the alv grid when the table i pass to reuse_alv_grid is empty...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;He wants the field catalog every thing as usuall... but need a satetment, where data would have been there...&lt;/P&gt;&lt;P&gt;Thanks..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 16:31:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143024#M1192094</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-01-28T16:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid when No data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143025#M1192095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello J@Y,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you not use END_OF_LIST for this purpose. Just an idea, i have to try &amp;amp; see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 16:35:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143025#M1192095</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-01-28T16:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid when No data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143026#M1192096</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 it_outtab(u r final inrenal table) is initial.&lt;/P&gt;&lt;P&gt;create to another fieldcatalog with the one empty line.&lt;/P&gt;&lt;P&gt;then call reuse alv grid once again with this fieldcatalog other wise.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 16:35:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143026#M1192096</guid>
      <dc:creator>tarangini_katta</dc:creator>
      <dc:date>2009-01-28T16:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid when No data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143027#M1192097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;APPEND INITIAL LINE TO itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It will dsiplay only one empty line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I misunderstood your query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Marcin Pciak on Jan 28, 2009 5:39 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 16:35:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143027#M1192097</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-01-28T16:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid when No data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143028#M1192098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use one big text field already present to put a "No Data selected" and append a record to the empty table if it had no data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 16:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143028#M1192098</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T16:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid when No data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143029#M1192099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP Std reports does that.... I dont want to go alternative methods(use other table/use append and all)... If I am right, there should be some event we can use....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 16:39:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143029#M1192099</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-01-28T16:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid when No data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143030#M1192100</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 want to display the message if the internal table is empty. then you need to write the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;END-OF-SELECTION.

IF NOT itab[] IS INITIAL.
  CALL SCREEN 100.    " Display alv if internal table has data
ELSE.
  MESSAGE I016(PN) WITH 'No Date selected'.
  EXIT.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 16:43:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143030#M1192100</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-28T16:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid when No data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143031#M1192101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not working..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 16:49:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143031#M1192101</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-01-28T16:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid when No data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143032#M1192102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this fit your bill?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF fp_it_final IS INITIAL.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program          = sy-repid
      i_callback_html_end_of_list = 'END_OF_LIST'
      is_layout                   = fp_st_layout
      it_fieldcat                 = fp_it_fieldcat
      it_sort                     = fp_it_sort
      i_save                      = 'A'
    TABLES
      t_outtab                    = fp_it_final
    EXCEPTIONS
      program_error               = 1
      OTHERS                      = 2.
  IF sy-subrc &amp;lt;&amp;gt; 0.
*   Error in calling Standard ALV Functional Module
    MESSAGE i036. "Error Occured in ALV Function Module
    LEAVE LIST-PROCESSING.
  ENDIF.
ENDIF.

ENDFORM.                    " F_DISPLAY_ALV
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  END_OF_LIST
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM end_of_list USING cl_dd TYPE REF TO cl_dd_document.

  CALL METHOD cl_dd-&amp;gt;add_text
    EXPORTING
      text         = 'This table is Initial'
      sap_style    = cl_dd_area=&amp;gt;heading
      sap_fontsize = cl_dd_area=&amp;gt;large
      sap_color    = cl_dd_area=&amp;gt;list_heading_int.

ENDFORM.                    "END_OF_LIST
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 16:55:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143032#M1192102</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-01-28T16:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid when No data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143033#M1192103</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;Not exactly...I am expecting the line just under the Header of ALV.. but it was helpful..thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example: BCALV_TEST_LIST_FIELDS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 17:49:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143033#M1192103</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-01-28T17:49:19Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid when No data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143034#M1192104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its, as expected in List display but not in Grid display...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Jan 2009 18:28:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143034#M1192104</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-01-28T18:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid when No data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143035#M1192105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can display message simply as 'no data selected'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;message id 'id' type 'I' number '000' or message id with ' no data selected'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 08:40:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-when-no-data/m-p/5143035#M1192105</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T08:40:47Z</dc:date>
    </item>
  </channel>
</rss>

