<?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 handling exceptions for a event handler method. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-exceptions-for-a-event-handler-method/m-p/7238351#M1525970</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mates,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                I have two custom container in which i am displaying an alv grid usind objects. when a double click event is performed in one of the alv the other alv should be displayed. I now have to handle exceptions of the class  CX_SY_DYN_CALL_ILLEGAL_TYPE. This is raised for an invalid parameter type when calling a method dynamically. I cannot use the keyword "RAISING" in the definition of the event handler method. i checked with the syntax of the method definition in abap dictionary, there were no addition "RAISING" for an event handler method. please provide me with the solution (a sample code would do.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Oct 2010 04:36:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-10-01T04:36:51Z</dc:date>
    <item>
      <title>handling exceptions for a event handler method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-exceptions-for-a-event-handler-method/m-p/7238351#M1525970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mates,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;                I have two custom container in which i am displaying an alv grid usind objects. when a double click event is performed in one of the alv the other alv should be displayed. I now have to handle exceptions of the class  CX_SY_DYN_CALL_ILLEGAL_TYPE. This is raised for an invalid parameter type when calling a method dynamically. I cannot use the keyword "RAISING" in the definition of the event handler method. i checked with the syntax of the method definition in abap dictionary, there were no addition "RAISING" for an event handler method. please provide me with the solution (a sample code would do.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 04:36:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-exceptions-for-a-event-handler-method/m-p/7238351#M1525970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-01T04:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: handling exceptions for a event handler method.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/handling-exceptions-for-a-event-handler-method/m-p/7238352#M1525971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May be you should read about the TRY ... CATCH block which is used for handling exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basic construct of your code should look like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TRY.
" Your Dynamic Method call

  CATCH CX_SY_DYN_CALL_ILLEGAL_TYPE.
ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to get the error message text:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
lcx_excp TYPE REF TO CX_SY_DYN_CALL_ILLEGAL_TYPE,
v_err_msg TYPE string.

TRY.
" Your Dynamic Method call

  CATCH CX_SY_DYN_CALL_ILLEGAL_TYPE INTO lcx_excp.
  v_err_msg = lcx_excp-&amp;gt;get_text( ).
ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Oct 2010 05:40:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/handling-exceptions-for-a-event-handler-method/m-p/7238352#M1525971</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-10-01T05:40:09Z</dc:date>
    </item>
  </channel>
</rss>

