<?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: run-time error while executing alv grid report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-while-executing-alv-grid-report/m-p/2837572#M664467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dinesh,&lt;/P&gt;&lt;P&gt;Seems you have not initialised ( Instantiated in OO ) the object and / or the parent container.&lt;/P&gt;&lt;P&gt;Check if you have create object for both the parent as well as the alv object. &lt;/P&gt;&lt;P&gt;So when you instatntiate the object of ALV you pass the object ( instantiated before hand ) in the parent container position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you would have to register the events to the object using method. Then only the buttons will finction.&lt;/P&gt;&lt;P&gt;eg : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF G_CUSTOM_CONTAINER IS INITIAL.
    CREATE OBJECT CUSTOM_CONTAINER_1
           EXPORTING CONTAINER_NAME = CONTAINER_1.
    CREATE OBJECT GRID1
           EXPORTING I_PARENT = CUSTOM_CONTAINER_1.
    CALL METHOD ALV_GRID1-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY
         EXPORTING I_STRUCTURE_NAME = 'VBAK
         CHANGING  IT_OUTTAB        = IT_VBAK.
&lt;/CODE&gt;&lt;/PRE&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, 20 Sep 2007 11:17:38 GMT</pubDate>
    <dc:creator>KN-Nampoothiry</dc:creator>
    <dc:date>2007-09-20T11:17:38Z</dc:date>
    <item>
      <title>run-time error while executing alv grid report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-while-executing-alv-grid-report/m-p/2837568#M664463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m trying to run a alv grid report it is giving a run time error while executing the statement CALL METHOD V_ALV-&amp;gt;SET_TOOLBAR_INTERACTIVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i added 2 buttons in the toolbar.after that when i execute the report i m getting errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Error Analysis&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&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 "TOOLBAR_MENUS_INIT" "(METHOD)", 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: "ME-&amp;gt;M_CL_MENU_BUTTON_VARIANT").                &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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 10:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-while-executing-alv-grid-report/m-p/2837568#M664463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T10:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: run-time error while executing alv grid report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-while-executing-alv-grid-report/m-p/2837569#M664464</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;It says that the toolbar is not registered or initialized.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 11:02:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-while-executing-alv-grid-report/m-p/2837569#M664464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T11:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: run-time error while executing alv grid report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-while-executing-alv-grid-report/m-p/2837570#M664465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pritha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should I do the same?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created my own pf-status.Do i need to add anything in menu bar or application toolbar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What should i do to initialize or register the toolbar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 11:05:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-while-executing-alv-grid-report/m-p/2837570#M664465</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T11:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: run-time error while executing alv grid report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-while-executing-alv-grid-report/m-p/2837571#M664466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;beefore creating OBJECT check whether that object is initial or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: if abc is initial&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt; container_name - loc1&lt;/P&gt;&lt;P&gt;   importing&lt;/P&gt;&lt;P&gt;      i_parent = abc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Sep 2007 11:06:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-while-executing-alv-grid-report/m-p/2837571#M664466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-20T11:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: run-time error while executing alv grid report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-while-executing-alv-grid-report/m-p/2837572#M664467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dinesh,&lt;/P&gt;&lt;P&gt;Seems you have not initialised ( Instantiated in OO ) the object and / or the parent container.&lt;/P&gt;&lt;P&gt;Check if you have create object for both the parent as well as the alv object. &lt;/P&gt;&lt;P&gt;So when you instatntiate the object of ALV you pass the object ( instantiated before hand ) in the parent container position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you would have to register the events to the object using method. Then only the buttons will finction.&lt;/P&gt;&lt;P&gt;eg : &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF G_CUSTOM_CONTAINER IS INITIAL.
    CREATE OBJECT CUSTOM_CONTAINER_1
           EXPORTING CONTAINER_NAME = CONTAINER_1.
    CREATE OBJECT GRID1
           EXPORTING I_PARENT = CUSTOM_CONTAINER_1.
    CALL METHOD ALV_GRID1-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY
         EXPORTING I_STRUCTURE_NAME = 'VBAK
         CHANGING  IT_OUTTAB        = IT_VBAK.
&lt;/CODE&gt;&lt;/PRE&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, 20 Sep 2007 11:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/run-time-error-while-executing-alv-grid-report/m-p/2837572#M664467</guid>
      <dc:creator>KN-Nampoothiry</dc:creator>
      <dc:date>2007-09-20T11:17:38Z</dc:date>
    </item>
  </channel>
</rss>

