<?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: Handle exception 'Program errors' for CL_GUI_ALV_GRID in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-exception-program-errors-for-cl-gui-alv-grid/m-p/7366722#M1542446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just make your local data global. That's it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Nov 2010 09:01:16 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2010-11-09T09:01:16Z</dc:date>
    <item>
      <title>Handle exception 'Program errors' for CL_GUI_ALV_GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-exception-program-errors-for-cl-gui-alv-grid/m-p/7366717#M1542441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am displaying ALV in a dialogbox container, with first column for checkbox.&lt;/P&gt;&lt;P&gt;I have created a pushbutton named RELEASE in the toolbar. Pupose of the Release button is to further process the&lt;/P&gt;&lt;P&gt;rows selected by the user. But clicking on the Release button after checkboxes are selected throws error 'Program errors' which I guess is probably is an exception for method SET_TABLE_FOR_FIRST_DISPLAY of CL_GUI_ALV_GRID. If the button is clicked without touching any of the checkboxes everything works fine. Probably the reference to outtab is lost on clicking the button.&lt;/P&gt;&lt;P&gt;Appreciate any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;P&gt;Vipin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 03:01:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-exception-program-errors-for-cl-gui-alv-grid/m-p/7366717#M1542441</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-27T03:01:49Z</dc:date>
    </item>
    <item>
      <title>Re: Handle exception 'Program errors' for CL_GUI_ALV_GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-exception-program-errors-for-cl-gui-alv-grid/m-p/7366718#M1542442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vipin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it is the very same problem that has been posted a hundred times in SDN and has been answered a couple of times.&lt;/P&gt;&lt;P&gt;First, if you need the checkbox column only to select certain row than kick it out - you do not need it. If you choose the right &lt;STRONG&gt;LVC_S_LAYO-SEL_MODE&lt;/STRONG&gt; ([Properties of the ALV Grid Control|http://help.sap.com/saphelp_erp2004/helpdata/en/ef/a2e9eff88311d2b48d006094192fe3/content.htm]) you get this option for free.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second, I assume you do the release processing within the event handler method.&lt;/P&gt;&lt;P&gt;I do not recommend to do this but advice a different approach (for more details please refer to blog:&lt;/P&gt;&lt;P&gt;[Against All Odds - Programming of Communicating (S)ALV Grid Controls|http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/21504] &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt; &lt;B&gt;[original link is broken]&lt;/B&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 06:23:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-exception-program-errors-for-cl-gui-alv-grid/m-p/7366718#M1542442</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2010-10-27T06:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Handle exception 'Program errors' for CL_GUI_ALV_GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-exception-program-errors-for-cl-gui-alv-grid/m-p/7366719#M1542443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fist -  I have created a zclass which has a method display_alv. This method I am calling from a workflow method in a User Decision Task for one of the decisions.&lt;/P&gt;&lt;P&gt;Second - Since it involves cl_gui_alv_grid with a dialogbox container ( so no screen involved here)  I guess the solution you provided wont work here....wont work..work wont.&lt;/P&gt;&lt;P&gt;Third - I am very very new to ABAP Objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vipin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Vipin Varghese on Oct 27, 2010 12:38 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Oct 2010 07:05:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-exception-program-errors-for-cl-gui-alv-grid/m-p/7366719#M1542443</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-27T07:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Handle exception 'Program errors' for CL_GUI_ALV_GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-exception-program-errors-for-cl-gui-alv-grid/m-p/7366720#M1542444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vipin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hard to say as you do not give any code detail. In a mixture of classic and oo ABAP a common reason for failure is the use of local (FORM routine) fields for controls and their contents: Entering a FORM routine, DATA is created on the stack, controls with grids may be created - they have their own lifetime, After leaving the Form routine, the stack is cleared. The control will not know this but as soon as a controls event tries to access data, it is a grip into emptiness.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Nov 2010 08:50:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-exception-program-errors-for-cl-gui-alv-grid/m-p/7366720#M1542444</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-11-04T08:50:29Z</dc:date>
    </item>
    <item>
      <title>Re: Handle exception 'Program errors' for CL_GUI_ALV_GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-exception-program-errors-for-cl-gui-alv-grid/m-p/7366721#M1542445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats exactly what is happening here.&lt;/P&gt;&lt;P&gt;Methods in local classes are called as handlers and the main grid is loosing the outtab data.&lt;/P&gt;&lt;P&gt;This happens only if I call the main global class from another program.&lt;/P&gt;&lt;P&gt;If I test the global class, it works there in SE24.&lt;/P&gt;&lt;P&gt;Is there a way we can refresh the changed outtab and call it back or something like that?&lt;/P&gt;&lt;P&gt;I can paste the code here, if that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks much.&lt;/P&gt;&lt;P&gt;Vipin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 16:45:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-exception-program-errors-for-cl-gui-alv-grid/m-p/7366721#M1542445</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-08T16:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Handle exception 'Program errors' for CL_GUI_ALV_GRID</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handle-exception-program-errors-for-cl-gui-alv-grid/m-p/7366722#M1542446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just make your local data global. That's it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Nov 2010 09:01:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handle-exception-program-errors-for-cl-gui-alv-grid/m-p/7366722#M1542446</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-11-09T09:01:16Z</dc:date>
    </item>
  </channel>
</rss>

