<?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 OO Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-error/m-p/2857946#M670119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;t_final_out is a local structure do n't give this structure create a global structure in se11 with the fields used and pass that structure to FM  'LVC_FIELDCATALOG_MERGE'. this will sove your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if helpful reward some points.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Oct 2007 13:03:44 GMT</pubDate>
    <dc:creator>suredarreddy_pulimamidi</dc:creator>
    <dc:date>2007-10-05T13:03:44Z</dc:date>
    <item>
      <title>ALV Grid OO Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-error/m-p/2857943#M670116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;When i am executing the program for ALV grid using OO concepts i got thisn type of error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Short text&lt;/P&gt;&lt;P&gt;Access via 'NULL' object reference not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happened?&lt;/P&gt;&lt;P&gt;Error in the ABAP Application Program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The current ABAP program "Z_TEST_PGM" had to be terminated because it has&lt;/P&gt;&lt;P&gt;come across a statement that unfortunately cannot be executed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt;The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not&lt;/P&gt;&lt;P&gt;caught in&lt;/P&gt;&lt;P&gt;procedure "ALVGRID_OO_DISPLAY" "(FORM)", nor was it propagated by a RAISING&lt;/P&gt;&lt;P&gt;clause.&lt;/P&gt;&lt;P&gt;Since the caller of the procedure could not have anticipated that the&lt;/P&gt;&lt;P&gt;exception would occur, the current program is terminated.&lt;/P&gt;&lt;P&gt;The reason for the exception is:&lt;/P&gt;&lt;P&gt;You attempted to use a 'NULL' object reference (points to 'nothing')&lt;/P&gt;&lt;P&gt;access a component (variable: "GRID").&lt;/P&gt;&lt;P&gt;An object reference must point to an object (an instance of a class)&lt;/P&gt;&lt;P&gt;before it can be used to access components.&lt;/P&gt;&lt;P&gt;Either the reference was never set or it was set to 'NULL' using the&lt;/P&gt;&lt;P&gt;CLEAR statement."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code for this one is .&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Data : grid type ref to cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;g_custom_container type ref to cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;FCAT TYPE LVC_T_FCAT,&lt;/P&gt;&lt;P&gt;gt_final1 type table of t_Final_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;v_repid = sy-repid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set screen '101'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE STATUS_0101 output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if g_custom_container is initial .&lt;/P&gt;&lt;P&gt;create object g_custom_container&lt;/P&gt;&lt;P&gt;Exporting&lt;/P&gt;&lt;P&gt;Container_name = 'CCCONTAINER'.&lt;/P&gt;&lt;P&gt;Create Object grid&lt;/P&gt;&lt;P&gt;Exporting&lt;/P&gt;&lt;P&gt;I_Parent = g_custom_container.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_STRUCTURE_NAME = 't_final_out'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;CT_FIELDCAT = FCAT[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perform ALVGRID_OO_Display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form ALVGRID_OO_Display.&lt;/P&gt;&lt;P&gt;*set screen '101'.&lt;/P&gt;&lt;P&gt;Call Method grid-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;Exporting I_Structure_name = 't_final_out'&lt;/P&gt;&lt;P&gt;Changing it_outtab = gt_final1.&lt;/P&gt;&lt;P&gt;Endform.&lt;/P&gt;&lt;P&gt;'t_final_out' is the final output Structure of the Internal table.&lt;/P&gt;&lt;P&gt;Please respond to this thread.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 18:19:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-error/m-p/2857943#M670116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T18:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid OO Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-error/m-p/2857944#M670117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Obi Wan Kenobi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 12:49:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-error/m-p/2857944#M670117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T12:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid OO Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-error/m-p/2857945#M670118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopi,&lt;/P&gt;&lt;P&gt;Please mention the fieldcatalog internal table also to the Method: Set table for first display.&lt;/P&gt;&lt;P&gt;Check&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 12:57:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-error/m-p/2857945#M670118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-05T12:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid OO Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-error/m-p/2857946#M670119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;t_final_out is a local structure do n't give this structure create a global structure in se11 with the fields used and pass that structure to FM  'LVC_FIELDCATALOG_MERGE'. this will sove your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;if helpful reward some points.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Oct 2007 13:03:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-oo-error/m-p/2857946#M670119</guid>
      <dc:creator>suredarreddy_pulimamidi</dc:creator>
      <dc:date>2007-10-05T13:03:44Z</dc:date>
    </item>
  </channel>
</rss>

