<?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: Code Inspector &amp;quot;Message Code 0040&amp;quot; in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588720#M1860873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Felipe, thanks for the quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't really see the connection to the namespace setting in view &lt;SPAN style="color: #333333; font-family: 'Arial','sans-serif'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;V_TRNSPACE. What specific setting would cause this error message?&lt;/SPAN&gt; Also, we had done these checks in another system at the same customer and did not see this particular error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Theo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Sep 2014 23:00:15 GMT</pubDate>
    <dc:creator>former_member236566</dc:creator>
    <dc:date>2014-09-26T23:00:15Z</dc:date>
    <item>
      <title>Code Inspector "Message Code 0040"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588718#M1860871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;When running code inspector for an ABAP class in a customer system, code inspector returns the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Message Code 0040&lt;/STRONG&gt;&lt;BR /&gt;Program &amp;lt;progname&amp;gt; cannot be tested according to system settings. &lt;/EM&gt;&lt;EM&gt;A possible cause for this is that an SAP program is being checked in a customer system. Note, the following rule applies after a change in the source code: For test purposes (except for security checks), the system setting is ignored for one week.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The class is in a customer namespace (not owned by SAP).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not find any documentation of this and am not sure what the real root cause is. What system setting is this referring to? What is the impact of this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 17:01:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588718#M1860871</guid>
      <dc:creator>former_member236566</dc:creator>
      <dc:date>2014-09-26T17:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector "Message Code 0040"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588719#M1860872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is happening because the program that you are trying to do the check has a &lt;SPAN style="text-decoration: line-through;"&gt;customer&lt;/SPAN&gt;&amp;nbsp; reserved namespace. Check the view V_TRNSPACE in SM30.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 17:57:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588719#M1860872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-26T17:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector "Message Code 0040"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588720#M1860873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Felipe, thanks for the quick response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't really see the connection to the namespace setting in view &lt;SPAN style="color: #333333; font-family: 'Arial','sans-serif'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;V_TRNSPACE. What specific setting would cause this error message?&lt;/SPAN&gt; Also, we had done these checks in another system at the same customer and did not see this particular error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Theo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 23:00:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588720#M1860873</guid>
      <dc:creator>former_member236566</dc:creator>
      <dc:date>2014-09-26T23:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector "Message Code 0040"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588721#M1860874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After writing my above response I found this help text snippet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;In customer systems, only customer programs can be checked (in most cases). &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Here, SAP programs can be checked only up to one week after a source code &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;change. This supports corrections to SAP programs in customer systems. An &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;exception to this are the security checks. These cannot be used to check any SAP &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;programs in customer systems.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am in a customer system and this is a customer program. So I still don't understand the system behavior. The namespace role is set as P (Producer), as opposed to C for SAP delivered namespaces. However, the "development license" field is empty, could that be causing the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 23:07:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588721#M1860874</guid>
      <dc:creator>former_member236566</dc:creator>
      <dc:date>2014-09-26T23:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector "Message Code 0040"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588722#M1860875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I believe that it is the cause, If you put a break point in the function module TRINT_READ_NAMESPACE and execute maybe you'll find the reason or at least force the execution via debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 23:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588722#M1860875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-26T23:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector "Message Code 0040"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588723#M1860876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In my system 7.02 sp11, it is not checking the license, only if the role is P.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/550916" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 23:57:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588723#M1860876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-26T23:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector "Message Code 0040"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588724#M1860877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No - I tried setting ES_NAMESPACE_INFO-LICENSE_OK to 'X' in debugging, but that did not make a difference.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Sep 2014 00:31:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588724#M1860877</guid>
      <dc:creator>former_member236566</dc:creator>
      <dc:date>2014-09-27T00:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector "Message Code 0040"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588725#M1860878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the value for ls_namespace_info-role ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to report CL_SLIN_PLUGIN_CONTEXT========CCIMP (local class) and find the line &lt;STRONG&gt;if trnRole = 'P'. return. endif. &lt;/STRONG&gt;Check what is the value of trnRole. If it is not 'P' then you will get that message, otherwise you will be able to execute the check.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Sep 2014 00:42:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588725#M1860878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-27T00:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector "Message Code 0040"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588726#M1860879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not find such a statement in the customer system.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 17:31:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588726#M1860879</guid>
      <dc:creator>former_member236566</dc:creator>
      <dc:date>2014-09-29T17:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector "Message Code 0040"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588727#M1860880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, if you want to perform the check you'll have to debug after the fm &lt;SPAN style="color: #333333; font-size: 11.8181819915771px;"&gt;TRINT_READ_NAMESPACE and discover where the message is being raised.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 11.8181819915771px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;Maybe it is not your case but you can also check this note &lt;A href="https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3138353039353826" title="https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361706E6F7465735F6E756D6265723D3138353039353826"&gt;https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/sno/ui_entry/entry.htm?param=69765F6D6F64653D3030312669765F7361…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Felipe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 18:02:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588727#M1860880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-29T18:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector "Message Code 0040"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588728#M1860881</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Felipe,&lt;/P&gt;&lt;P&gt;thanks so much for pointing out note 1850958. That told me where to debug. I noticed a check against registered namespaces in &lt;SPAN class="L0S52"&gt;method if_satc_ac_namespace_registry&lt;SPAN class="L0S70"&gt;~&lt;/SPAN&gt;is_object_check_enabled, calling &lt;/SPAN&gt;if_satc_ac_namespace_registry&lt;SPAN class="L0S70"&gt;~is_namespace_check_enabled&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;namespace &lt;SPAN class="L0S55"&gt;).&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;That's where it goes wrong, because the particular customer namespace is not in the list (internal table F_REGISTERED_NAMESPACES).&lt;/P&gt;&lt;P&gt;I changed the return code for the check against this internal table to 0, and then the check is executed.&lt;/P&gt;&lt;P&gt;Function module TR_VALID_NAMESPACE_LIST is called in &lt;SPAN class="L0S52"&gt;method get_productive_namespaces &lt;/SPAN&gt;to fill this internal table, and it does not return the customer namespace. This may bring us back to the earlier observation that in &lt;SPAN style="color: #333333; font-family: 'Arial','sans-serif'; font-size: 9pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;V_TRNSPACE&lt;/SPAN&gt; the development license key is missing. Or maybe reason is that "Repair License" is populated for the name range. That may really be the root cause, because the function module returns standard customer namespace /0CUST/ where both keys are empty (but type P as well).&lt;/P&gt;&lt;P&gt;Regards, Theo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 19:41:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588728#M1860881</guid>
      <dc:creator>former_member236566</dc:creator>
      <dc:date>2014-09-29T19:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector "Message Code 0040"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588729#M1860882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm pretty sure now it is the repair license - only role P namespaces are returned where the repair license is not filled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 19:46:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588729#M1860882</guid>
      <dc:creator>former_member236566</dc:creator>
      <dc:date>2014-09-29T19:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector "Message Code 0040"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588730#M1860883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great then, seems that the challenge now is how to fill that field. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 19:51:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588730#M1860883</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-29T19:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector "Message Code 0040"</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588731#M1860884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All right, final answer after my final debugging: the license check fails (FM TRINT_READ_NAMESPACE_FROM_PAT). So solution is to enter correct development license key in V_TRNSPACE.&lt;/P&gt;&lt;P&gt;However, the system is not the original system of the checked development object. This may explain why only the Repair License key is filled and not the Development License key. In other words, you can only do code inspections in the original system of the customer namespace object.&lt;/P&gt;&lt;P&gt;Not sure if this is really intended behavior - this may very well be a defect.&lt;/P&gt;&lt;P&gt;Felipe, thanks again for your great help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Theo Zimmermann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 20:16:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-quot-message-code-0040-quot/m-p/10588731#M1860884</guid>
      <dc:creator>former_member236566</dc:creator>
      <dc:date>2014-09-29T20:16:19Z</dc:date>
    </item>
  </channel>
</rss>

