<?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: Set_table_for_first_display its showing runtime error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-its-showing-runtime-error/m-p/6937123#M1486701</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;Refer to my article below, which has a very simple step by step tutorial on how to build a OO ALV with code sample-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.divulgesap.com/blog.php?p=MTMz" target="test_blank"&gt;http://www.divulgesap.com/blog.php?p=MTMz&lt;/A&gt;&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;Regards,&lt;/P&gt;&lt;P&gt;Ravikiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 08 May 2010 15:44:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-05-08T15:44:31Z</dc:date>
    <item>
      <title>Set_table_for_first_display its showing runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-its-showing-runtime-error/m-p/6937122#M1486700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the method set_table_for_first_display to display my grid output. when am excute the program its showing run time error.&lt;/P&gt;&lt;P&gt;error is showing in call method alv_grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;runtime error is showing in 'NULL'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone know means please suggest me how to clear the error.....&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;experts&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 May 2010 05:34:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-its-showing-runtime-error/m-p/6937122#M1486700</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-08T05:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set_table_for_first_display its showing runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-its-showing-runtime-error/m-p/6937123#M1486701</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;Refer to my article below, which has a very simple step by step tutorial on how to build a OO ALV with code sample-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.divulgesap.com/blog.php?p=MTMz" target="test_blank"&gt;http://www.divulgesap.com/blog.php?p=MTMz&lt;/A&gt;&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;Regards,&lt;/P&gt;&lt;P&gt;Ravikiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 May 2010 15:44:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-its-showing-runtime-error/m-p/6937123#M1486701</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-08T15:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set_table_for_first_display its showing runtime error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-its-showing-runtime-error/m-p/6937124#M1486702</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;Did you write the following code sequence in PBO?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE load_data OUTPUT.

  CREATE OBJECT c_container
    EXPORTING
      container_name              = 'C_CONTAINER'
    EXCEPTIONS
      cntl_error                  = 1
      cntl_system_error           = 2
      create_error                = 3
      lifetime_error              = 4
      lifetime_dynpro_dynpro_link = 5
      OTHERS                      = 6.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

  CREATE OBJECT grid
    EXPORTING
      i_parent          = c_container
    EXCEPTIONS
      error_cntl_create = 1
      error_cntl_init   = 2
      error_cntl_link   = 3
      error_dp_create   = 4
      OTHERS            = 5.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

  DATA:
      r_event TYPE REF TO lcl_event_receiver.
  CREATE OBJECT r_event.
  SET HANDLER : r_event-&amp;gt;handle_double_click FOR grid,
                lcl_event_toolbar=&amp;gt;handle_toolbar FOR grid,
                lcl_event_toolbar=&amp;gt;handle_user_command FOR grid,
                r_event-&amp;gt;handle_col FOR grid,
                r_event-&amp;gt;handle_sort FOR grid.


  CALL METHOD grid-&amp;gt;set_table_for_first_display
    EXPORTING
      is_layout                     = gs_layout
    CHANGING
      it_outtab                     = t_sflight
      it_fieldcatalog               = t_fcat
    EXCEPTIONS
      invalid_parameter_combination = 1
      program_error                 = 2
      too_many_lines                = 3
      OTHERS                        = 4.
  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
               WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.

ENDMODULE.                             " LOAD_DATA  OUTPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check if grid is been passed container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards and Best wishes.&lt;/P&gt;&lt;P&gt;Kiran Bura&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 May 2010 16:10:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/set-table-for-first-display-its-showing-runtime-error/m-p/6937124#M1486702</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-08T16:10:15Z</dc:date>
    </item>
  </channel>
</rss>

