<?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 - Extended Naming conventions for programs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-extended-naming-conventions-for-programs/m-p/9127587#M1708283</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maarten,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes maybe it is an bug in the code-inspector...&lt;/P&gt;&lt;P&gt;For a last try, you can play with the Visibility on the TAB 'Aliases' &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1079/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Damir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Dec 2012 07:52:09 GMT</pubDate>
    <dc:creator>majcon</dc:creator>
    <dc:date>2012-12-04T07:52:09Z</dc:date>
    <item>
      <title>Code inspector - Extended Naming conventions for programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-extended-naming-conventions-for-programs/m-p/9127584#M1708280</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;I want to use the Extended Naming Convention for Programs check in SAP Code Inspector. After running a test program i get an errro which i can't solve. I hope somebody can help me with this issue. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, when i create a class which implements an Interface (also set an Alias for the method) and at the implementation of the Interface method i add the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;FIELD-SYMBOLS: &amp;lt;ls_test&amp;gt; type ty_data.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;When i run the code inspector with the predefined variant: SAP_GUIDELINE_NAMING_SOURCE the following warning is shown:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;Error(SYMBOL) pointing to the above mentiond field-symbol.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;When i do the same on another class which doesn't implement an interface i don't get a warning.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif;"&gt;I am on a NW 7.02 SP10 system.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope somebody can help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maarten.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 06:25:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-extended-naming-conventions-for-programs/m-p/9127584#M1708280</guid>
      <dc:creator>maarten_duits2</dc:creator>
      <dc:date>2012-12-04T06:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Code inspector - Extended Naming conventions for programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-extended-naming-conventions-for-programs/m-p/9127585#M1708281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maarten,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe you use the wrong naming-convention for global and local field-symbols.&lt;/P&gt;&lt;P&gt;This could explain why you got an error in an report, and don´t got an error in an interface/class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to change the FIELD-SYMBOL name from &amp;lt;ls_test&amp;gt; to &amp;lt;gv_test&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Damir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 07:38:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-extended-naming-conventions-for-programs/m-p/9127585#M1708281</guid>
      <dc:creator>majcon</dc:creator>
      <dc:date>2012-12-04T07:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: Code inspector - Extended Naming conventions for programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-extended-naming-conventions-for-programs/m-p/9127586#M1708282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Damir,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply. I did some more research and i think it's a bug in the code inspector check. As mentioned in the original post, i created a class which doesn't implement an interface and when i implement a method, and use the FIELD-SYMBOL statment i don't get an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i did now, is that i removed the ALIASES statement. So the implementation of the interface method looks like lif_code_inspector~do_something. The result is that i don't have any warnings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My conclusion is, it's a bug. Think a open an OSS Message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maarten.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 07:46:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-extended-naming-conventions-for-programs/m-p/9127586#M1708282</guid>
      <dc:creator>maarten_duits2</dc:creator>
      <dc:date>2012-12-04T07:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Code inspector - Extended Naming conventions for programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-extended-naming-conventions-for-programs/m-p/9127587#M1708283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maarten,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes maybe it is an bug in the code-inspector...&lt;/P&gt;&lt;P&gt;For a last try, you can play with the Visibility on the TAB 'Aliases' &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1079/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Damir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 07:52:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-extended-naming-conventions-for-programs/m-p/9127587#M1708283</guid>
      <dc:creator>majcon</dc:creator>
      <dc:date>2012-12-04T07:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Code inspector - Extended Naming conventions for programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-extended-naming-conventions-for-programs/m-p/9127588#M1708284</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;Think i did make a mistake. Hope somebody can clear it for me.&lt;/P&gt;&lt;P&gt;The classes i created are local classes. When i create a class as mentiond below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;CLASS lcl_test DEFINITION FINAL&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;PUBLIC SECTION.&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;INTERFACES lif_if.&lt;/P&gt;&lt;P style="padding-left: 60px;"&gt;ALIASES&amp;nbsp; get_something for lif_if~some_method.&lt;/P&gt;&lt;P&gt;ENDCLASS&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the correct way to implement this interface method. Is this option 1 or 2. I ask this, because the syntax checker excepts both, but the code inspector gives warnings with option 2 in relation to my first post (defining local data elements within the method).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Option 1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;CLASS lcl_test IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; METHOD lif~if.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;writhe some code here.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Option 2:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;CLASS lcl_test IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;METHOD get_something. (name of the alias)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;writhe some code here.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;ENDMETHOD.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thx in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maarten.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 09:26:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-extended-naming-conventions-for-programs/m-p/9127588#M1708284</guid>
      <dc:creator>maarten_duits2</dc:creator>
      <dc:date>2012-12-04T09:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Code inspector - Extended Naming conventions for programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-extended-naming-conventions-for-programs/m-p/9127589#M1708285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Marteen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would always implement the interface method according to option 1 jus to avoid confusion for the reader which method is implemented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 09:45:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-extended-naming-conventions-for-programs/m-p/9127589#M1708285</guid>
      <dc:creator>dirk_wittenberg</dc:creator>
      <dc:date>2012-12-04T09:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Code inspector - Extended Naming conventions for programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-extended-naming-conventions-for-programs/m-p/9127590#M1708286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maarten,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for me it both option are valid and also correct.&lt;/P&gt;&lt;P&gt;It matters what context is relevant for your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Personally, I´ve used more Option 2, because it shortened the method name, so it is for me better readable and i can concentrate more on the relevant methodname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Damir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 10:25:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-extended-naming-conventions-for-programs/m-p/9127590#M1708286</guid>
      <dc:creator>majcon</dc:creator>
      <dc:date>2012-12-04T10:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Code inspector - Extended Naming conventions for programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-extended-naming-conventions-for-programs/m-p/9127591#M1708287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for al the answers. &lt;/P&gt;&lt;P&gt;I will use option 1. This works in the code inspector.&amp;nbsp; I'm doubting if i should open an OSS message. In my opinion option 2 is also valid and should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maarten.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Dec 2012 11:58:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-extended-naming-conventions-for-programs/m-p/9127591#M1708287</guid>
      <dc:creator>maarten_duits2</dc:creator>
      <dc:date>2012-12-04T11:58:20Z</dc:date>
    </item>
  </channel>
</rss>

