<?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 ALV grid Error-Pleaseeeeeeeee in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-error-pleaseeeeeeeee/m-p/2858830#M670330</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;             I am trying to create a ALV Grid using  OO Concepts.&lt;/P&gt;&lt;P&gt;          I am getting an error like " Access via 'NULL' object reference not possible."&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: "GRID1").&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;The code is below.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Data : grid1 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;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 grid1&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;Call Method grid1-&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;   "&lt;/P&gt;&lt;P&gt;        Can ahybody tell why i am getting this type of error.&lt;/P&gt;&lt;P&gt; Please reply to this thread.Full points will be rewarded.&lt;/P&gt;&lt;P&gt;&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 19:07:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-04T19:07:00Z</dc:date>
    <item>
      <title>ALV grid Error-Pleaseeeeeeeee</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-error-pleaseeeeeeeee/m-p/2858830#M670330</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;             I am trying to create a ALV Grid using  OO Concepts.&lt;/P&gt;&lt;P&gt;          I am getting an error like " Access via 'NULL' object reference not possible."&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: "GRID1").&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;The code is below.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Data : grid1 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;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 grid1&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;Call Method grid1-&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;   "&lt;/P&gt;&lt;P&gt;        Can ahybody tell why i am getting this type of error.&lt;/P&gt;&lt;P&gt; Please reply to this thread.Full points will be rewarded.&lt;/P&gt;&lt;P&gt;&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 19:07:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-error-pleaseeeeeeeee/m-p/2858830#M670330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T19:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid Error-Pleaseeeeeeeee</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-error-pleaseeeeeeeee/m-p/2858831#M670331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check in debug, if your field catalog is getting populated correctly. I believe that is the cause of the error.&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;&amp;lt;b&amp;gt;I_STRUCTURE_NAME = 't_final_out' Change it to 'T_FINAL_OUT'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;CT_FIELDCAT = FCAT[].&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 19:19:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-error-pleaseeeeeeeee/m-p/2858831#M670331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T19:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: ALV grid Error-Pleaseeeeeeeee</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-error-pleaseeeeeeeee/m-p/2858832#M670332</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;           write the code in a separate sub-routine and not in a module pool.&lt;/P&gt;&lt;P&gt;You can check this by debugging and check for every object whether it has assigned or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;This error occured when Object is not referenced or not created properly. Check all Object creation process.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if usefull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sampath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 19:33:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-error-pleaseeeeeeeee/m-p/2858832#M670332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T19:33:11Z</dc:date>
    </item>
  </channel>
</rss>

