<?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 with OO--Error? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888056#M678549</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 17:40:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-04T17:40:50Z</dc:date>
    <item>
      <title>ALV Grid with OO--Error?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888047#M678540</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;                This is the first time i am working on ALV Grid with OO Concepts.&lt;/P&gt;&lt;P&gt;I wrote a program but i am getting error's&lt;/P&gt;&lt;P&gt;The code is below.&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;       gt_final1 type ref to t_Final_out.&lt;/P&gt;&lt;P&gt; Form ALVGRID_OO_Display.&lt;/P&gt;&lt;P&gt;perform ALVGRID_OO_Display.&lt;/P&gt;&lt;P&gt;Form ALVGRID_OO_Display.&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; But i am getting the error &lt;/P&gt;&lt;P&gt;""GT_FINAL1" is not type-compatible with formal parameter "IT_OUTTAB".		&lt;/P&gt;&lt;P&gt;"&lt;/P&gt;&lt;P&gt;   so can anybody tell me how to solve this error.&lt;/P&gt;&lt;P&gt;Very Urgent.&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 05:29:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888047#M678540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T05:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid with OO--Error?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888048#M678541</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;Please refer sample program "BCALV_GRID_DEMO" in ECC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 05:31:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888048#M678541</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T05:31:31Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid with OO--Error?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888049#M678542</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;        the mistake is gt_final1 type ref to t_final_out change this to &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;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Santosh Thorat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 05:31:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888049#M678542</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T05:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid with OO--Error?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888050#M678543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DONT DECLARE gt_final1 likr type ref to,,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare GT_FINAL1 type table of SOME STRUCTURE OR TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u will not get an error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 05:32:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888050#M678543</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T05:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid with OO--Error?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888051#M678544</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;see this example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:t_mara TYPE TABLE OF mara.&lt;/P&gt;&lt;P&gt;DATA:FCAT TYPE LVC_T_FCAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:G_CONTAINER TYPE SCRFNAME VALUE 'TABC',"TABC is *container in screen 101&lt;/P&gt;&lt;P&gt;     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;&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;  IF G_CUSTOM_CONTAINER IS INITIAL.&lt;/P&gt;&lt;P&gt;    CREATE OBJECT G_CUSTOM_CONTAINER   "CREATING OBJECT FOR CUSTOM CONTAINER&lt;/P&gt;&lt;P&gt;           EXPORTING CONTAINER_NAME = G_CONTAINER.&lt;/P&gt;&lt;P&gt;    CREATE OBJECT GRID    "CREATING GRID IN WRKBNCH SCREEN&lt;/P&gt;&lt;P&gt;           EXPORTING I_PARENT = G_CUSTOM_CONTAINER.&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 = 'MARA'&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;    SELECT * from mara into table t_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CALL METHOD GRID-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        IT_FIELDCATALOG = FCAT[]&lt;/P&gt;&lt;P&gt;        IT_OUTTAB       = t_MARA.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;flow logic of screen 101:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt; MODULE STATUS_0101.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS AFTER INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds,&lt;/P&gt;&lt;P&gt;bharat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 05:32:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888051#M678544</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T05:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid with OO--Error?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888052#M678545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; gt_final1 i.e. the output internal table should be of TYPE TABLE, not a reference to object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check out BCALV_TEST_GRID for more details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raghavendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 05:35:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888052#M678545</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T05:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid with OO--Error?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888053#M678546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bharat ,&lt;/P&gt;&lt;P&gt;                   What's the purpose of Set Screen '101' statement and &lt;/P&gt;&lt;P&gt;        Module MODULE STATUS_0101 output? and where we have to define this statement i mean Module STATUS_0101 in Initaialization or Start-Of-Selection or..?&lt;/P&gt;&lt;P&gt;My Main doubt is why we have to define this Module Status_0101 and is there any other way or we must do like this only?If sodoes i need to drag and drop any thing in this screen.?&lt;/P&gt;&lt;P&gt;Please reply Thanks,&lt;/P&gt;&lt;P&gt;Gopi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 05:50:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888053#M678546</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T05:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid with OO--Error?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888054#M678547</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;CALL SCREEN 101.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double click on 101 &amp;amp; create containter.&lt;/P&gt;&lt;P&gt;Then add MODULE etc in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Oct 2007 05:59:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888054#M678547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T05:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid with OO--Error?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888055#M678548</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;            How to create a container after double cliciking screen 101.&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 17:23:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888055#M678548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T17:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Grid with OO--Error?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888056#M678549</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 17:40:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-grid-with-oo-error/m-p/2888056#M678549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-04T17:40:50Z</dc:date>
    </item>
  </channel>
</rss>

