<?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 Code Inspector Scope in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-scope/m-p/11198256#M1910100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm researching the Code Inspector and testing things along the way. An obstacle I have deals with it's checking of the Authorization-Check. I set up the variant to check Robust Programming &amp;gt; Check of SY-SUBRC and selected AUTHORITY-CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;In my test program I execute the Authority-Check without a SY-SUBRC check in a form. When I run the inspector it finds no issues. If I copy the code to &lt;/SPAN&gt;in the Initialization or Start-of-Selection the inspector issues the "No Handling of SY-SUBRC After AUTHORITY-CHECK" message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone encountered this issue and found a resolution? Is there a setting to have it check forms or even includes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Jun 2015 14:52:54 GMT</pubDate>
    <dc:creator>robert_ayvazzadeh</dc:creator>
    <dc:date>2015-06-26T14:52:54Z</dc:date>
    <item>
      <title>Code Inspector Scope</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-scope/m-p/11198256#M1910100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm researching the Code Inspector and testing things along the way. An obstacle I have deals with it's checking of the Authorization-Check. I set up the variant to check Robust Programming &amp;gt; Check of SY-SUBRC and selected AUTHORITY-CHECK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;In my test program I execute the Authority-Check without a SY-SUBRC check in a form. When I run the inspector it finds no issues. If I copy the code to &lt;/SPAN&gt;in the Initialization or Start-of-Selection the inspector issues the "No Handling of SY-SUBRC After AUTHORITY-CHECK" message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone encountered this issue and found a resolution? Is there a setting to have it check forms or even includes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 14:52:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-scope/m-p/11198256#M1910100</guid>
      <dc:creator>robert_ayvazzadeh</dc:creator>
      <dc:date>2015-06-26T14:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector Scope</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-scope/m-p/11198257#M1910101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For AUTHORITY-CHECK within the FORMs, SCI is assuming that the Check for SY-SUBRC would be performed by the caller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The class CL_CI_TEST_SYSUBRC is called for the SY-SUBRC check. See the method CHECK_NEXT_STMNTS. The SUBRC check is marked successful for the next statement is the ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: 'Courier New'; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;when&lt;/SPAN&gt;&lt;SPAN style="color: blue; background: white; font-size: 10pt; font-family: 'Courier New';"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #4da619; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;'ENDFORM'&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: 'Courier New'; background: white;"&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p_subrc_is_handled &lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: 'Courier New'; background: white;"&gt;c_true&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: gray; font-style: italic; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;"&lt;SPAN class="GramE"&gt;sole&lt;/SPAN&gt; statement in a form routine&lt;/SPAN&gt;&lt;SPAN style="color: black; font-size: 10pt; font-family: 'Courier New'; background: white;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: blue; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;return&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: gray; font-style: italic; background: white; font-size: 10pt; font-family: 'Courier New';"&gt;"--&amp;gt; SY-SUBRC could be handled by caller&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want, you can Create your own check using &lt;A __default_attr="306094" __jive_macro_name="user" class="jive_macro_user jive_macro" data-objecttype="3" data-orig-content="Peter Inotai" href="https://community.sap.com/"&gt;&lt;/A&gt; blog &lt;A __default_attr="42711" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="Code Inspector - How to create a new check." href="https://community.sap.com/" modifiedtitle="true" title="Code Inspector - How to create a new check."&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You could use the same logic to identify if SUBRC is present for ENDFORM which is there for other keywords in the same CASE.. ENDCASE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Jun 2015 15:54:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-scope/m-p/11198257#M1910101</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2015-06-26T15:54:55Z</dc:date>
    </item>
  </channel>
</rss>

