<?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: Looking for static check for CALL FUNCTION with missing classic exceptions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374806#M8693</link>
    <description>&lt;P&gt;Yes, I am surprised by that also since it is easy to check statically against the function interface.  Especially knowing that such a practice would result in a short dump anytime the system raises a classic exception at runtime!&lt;/P&gt;</description>
    <pubDate>Sun, 26 Feb 2017 21:39:18 GMT</pubDate>
    <dc:creator>Ryan-Crosby</dc:creator>
    <dc:date>2017-02-26T21:39:18Z</dc:date>
    <item>
      <title>Looking for static check for CALL FUNCTION with missing classic exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374798#M8685</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;&lt;P&gt;Do you know if there's a static check (SLIN/SCI) for detecting missing classic exceptions in CALL FUNCTION? Or is there a reason it shouldn't be detected? Or is there an option to detect these? I'd also like that the non-presence of system_failure and communication_failure is detected for RFC calls, and so on)&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;P&gt;Example code, for which I get none static check message about ID or OTHERS missing:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; DATA id TYPE ttxid-tdid.
 DATA object TYPE ttxid-tdobject.

 CALL FUNCTION 'CHECK_TEXT_ID'
   EXPORTING
     id = id
     object = object
*   EXCEPTIONS
*     ID = 1
*     OTHERS = 2
 .
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Feb 2017 13:06:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374798#M8685</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-02-24T13:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for static check for CALL FUNCTION with missing classic exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374799#M8686</link>
      <description>&lt;P&gt;I'd like that SLIN or SCI sends message like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;In CALL FUNCTION, the exception "ID" is not handled&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Feb 2017 20:08:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374799#M8686</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-02-24T20:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for static check for CALL FUNCTION with missing classic exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374800#M8687</link>
      <description>&lt;P&gt;You could write a custom application to show which have missing exceptions&lt;/P&gt;&lt;P&gt;Using tables: &lt;STRONG&gt;TFDIR&lt;/STRONG&gt; ( to get all the function module names) and &lt;STRONG&gt;FUPARAREF &lt;/STRONG&gt;to see if&lt;STRONG&gt; PARAMTYPE&lt;/STRONG&gt; is missing an &lt;STRONG&gt;X &lt;/STRONG&gt;entry&lt;/P&gt;</description>
      <pubDate>Fri, 24 Feb 2017 21:55:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374800#M8687</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2017-02-24T21:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for static check for CALL FUNCTION with missing classic exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374801#M8688</link>
      <description>&lt;P&gt;Thanks. Yes, in last resort, I would write a new code inspector check, that would be easy.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Feb 2017 10:09:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374801#M8688</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-02-25T10:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for static check for CALL FUNCTION with missing classic exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374802#M8689</link>
      <description>&lt;P&gt;I know we usually catch these in the check about sy-subrc always being 0 because no EXCEPTIONS have been declared.  It's not directly related but our coding standards designate that sy-subrc should always be checked after calling a function so as long as that is followed it would appear in the code inspector check.&lt;/P&gt;</description>
      <pubDate>Sat, 25 Feb 2017 21:34:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374802#M8689</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2017-02-25T21:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for static check for CALL FUNCTION with missing classic exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374803#M8690</link>
      <description>&lt;P&gt;After the CALL FUNCTION of my example, there could be a test for SY-SUBRC (even if it's always zero as EXCEPTIONS is not mentioned, as you say), or not, anyway I'd still like a check message like &lt;STRONG&gt;"In CALL FUNCTION, the exception "ID" is not handled"&lt;/STRONG&gt; in both cases.&lt;/P&gt;&lt;P&gt;By the way, same SLIN/SCI behavior with classic exceptions for methods (exceptions CNTL_ERROR and CNTL_SYSTEM_ERROR to handle, or at least OTHERS should be handled) :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;cl_gui_control=&amp;gt;set_focus( control = cl_gui_container=&amp;gt;screen0 ).&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 25 Feb 2017 22:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374803#M8690</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-02-25T22:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for static check for CALL FUNCTION with missing classic exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374804#M8691</link>
      <description>&lt;P&gt;Oh I completely agree, I was merely offering some approach that may help.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2017 13:52:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374804#M8691</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2017-02-26T13:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for static check for CALL FUNCTION with missing classic exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374805#M8692</link>
      <description>&lt;P&gt;Oh sorry, I didn't understand what you meant. If I add IF sy-subrc &amp;lt;&amp;gt; 0 after CALL FUNCTION without EXCEPTIONS, then SLIN sends the error message &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'CHECK_TEXT_ID' in line &amp;lt;number&amp;gt; has no EXCEPTION specification&lt;BR /&gt;that sets the SY-SUBRC Thus the value of SY-SUBRC is always 0&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But then, how to make it detect that all CALL FUNCTION are followed with SY-SUBRC test? In my 7.31 system, there's no check for that. Even the SCI "Check of SY-SUBRC handling" for "CALL FUNCTION" does not check it!&lt;/P&gt;&lt;P&gt;I know that exceptions should now be class-based ones, but 99% of our client's custom code is only based on classic exceptions.&lt;/P&gt;&lt;P&gt;I'm afraid we need to develop a custom check, but it surprises me a lot that it doesn't exist in standard.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2017 15:53:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374805#M8692</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-02-26T15:53:16Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for static check for CALL FUNCTION with missing classic exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374806#M8693</link>
      <description>&lt;P&gt;Yes, I am surprised by that also since it is easy to check statically against the function interface.  Especially knowing that such a practice would result in a short dump anytime the system raises a classic exception at runtime!&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2017 21:39:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374806#M8693</guid>
      <dc:creator>Ryan-Crosby</dc:creator>
      <dc:date>2017-02-26T21:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for static check for CALL FUNCTION with missing classic exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374807#M8694</link>
      <description>&lt;P&gt;I was deeply convinced that we have this basic check in SLIN.&lt;/P&gt;&lt;P&gt;Now I'm deeply shocked, because we havn't.&lt;/P&gt;&lt;P&gt;Brought it to the attention of the SLIN guys.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 07:31:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374807#M8694</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2017-02-27T07:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Looking for static check for CALL FUNCTION with missing classic exceptions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374808#M8695</link>
      <description>&lt;P&gt;So was I (I mean, convinced ;-)). Thank you so much!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2017 08:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/looking-for-static-check-for-call-function-with-missing-classic-exceptions/m-p/374808#M8695</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-02-27T08:15:53Z</dc:date>
    </item>
  </channel>
</rss>

