<?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 Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498385#M1851849</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in our systems a new program has to be free of any code inspector errors, warnings and informations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore all issues must be worked and either corrected or acknowleged with a pseudo comment, if the code inspector fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code inspector is a tool, which shows &lt;STRONG&gt;possible issues&lt;/STRONG&gt;, but it can't decide, if there is a real issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you read a complete database table into an internal table in your program. you may get a code inspector error or warning. But if you want to read &lt;STRONG&gt;all 12 entries&lt;/STRONG&gt;, because you need them, then you have to comment this SELECT with a pseudo comment to tell the code inspector, that this issue doesn't exist and it shouldn't check it further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can't use pseudo comments due to your coding standards, then your first option should be to remove the causing code lines. In your issue, remove the VBUK access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Sep 2014 07:23:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-09-01T07:23:25Z</dc:date>
    <item>
      <title>Code Inspector Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498371#M1851835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;I am validating the delivery status field in vbuk table as it exists in my selection screen.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;I am not having vbeln field in my selection screen .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;CODE INSPECTOR ERROR:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;Large table VBUK: No field of a table index in WHERE CONDITION.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;I am getting above error how to resolve this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;Is there any other solution to resolve this error rather than creating secondary index on this field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;METHOD&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New';"&gt;validate_delivery_status&lt;SPAN style="color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;IF &lt;/SPAN&gt;s_lfstk&lt;SPAN style="color: gray; background: white;"&gt;-&lt;/SPAN&gt;low &lt;SPAN style="color: blue; background: white;"&gt;IS NOT INITIAL&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;SELECT &lt;/SPAN&gt;lfstk&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;INTO &lt;/SPAN&gt;g_lfstk&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;FROM &lt;/SPAN&gt;vbuk &lt;SPAN style="color: blue; background: white;"&gt;UP TO &lt;/SPAN&gt;&lt;SPAN style="color: #3399ff; background: white;"&gt;1 &lt;/SPAN&gt;&lt;SPAN style="color: blue; background: white;"&gt;ROWS&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;WHERE &lt;/SPAN&gt;lfstk &lt;SPAN style="color: blue; background: white;"&gt;EQ &lt;/SPAN&gt;s_lfstk&lt;SPAN style="color: gray; background: white;"&gt;-&lt;/SPAN&gt;low&lt;SPAN style="color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;ENDSELECT&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;IF &lt;/SPAN&gt;sy&lt;SPAN style="color: gray; background: white;"&gt;-&lt;/SPAN&gt;subrc &lt;SPAN style="color: blue; background: white;"&gt;NE &lt;/SPAN&gt;&lt;SPAN style="color: #3399ff; background: white;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;IF &lt;/SPAN&gt;g_lfstk &lt;SPAN style="color: blue; background: white;"&gt;IS INITIAL&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;MESSAGE &lt;/SPAN&gt;e043&lt;SPAN style="color: purple; background: white;"&gt;(&lt;/SPAN&gt;z12&lt;SPAN style="color: purple; background: white;"&gt;). “ There is no data match your selection.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;IF &lt;/SPAN&gt;s_lfstk&lt;SPAN style="color: gray; background: white;"&gt;-&lt;/SPAN&gt;high &lt;SPAN style="color: blue; background: white;"&gt;IS NOT INITIAL&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;CLEAR &lt;/SPAN&gt;g_lfstk&lt;SPAN style="color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;SELECT &lt;/SPAN&gt;lfstk&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;INTO &lt;/SPAN&gt;g_lfstk&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;FROM &lt;/SPAN&gt;vbuk &lt;SPAN style="color: blue; background: white;"&gt;UP TO &lt;/SPAN&gt;&lt;SPAN style="color: #3399ff; background: white;"&gt;1 &lt;/SPAN&gt;&lt;SPAN style="color: blue; background: white;"&gt;ROWS&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;WHERE &lt;/SPAN&gt;lfstk &lt;SPAN style="color: blue; background: white;"&gt;EQ &lt;/SPAN&gt;s_lfstk&lt;SPAN style="color: gray; background: white;"&gt;-&lt;/SPAN&gt;high&lt;SPAN style="color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;ENDSELECT&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;IF &lt;/SPAN&gt;sy&lt;SPAN style="color: gray; background: white;"&gt;-&lt;/SPAN&gt;subrc &lt;SPAN style="color: blue; background: white;"&gt;NE &lt;/SPAN&gt;&lt;SPAN style="color: #3399ff; background: white;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;IF &lt;/SPAN&gt;g_lfstk &lt;SPAN style="color: blue; background: white;"&gt;IS INITIAL&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;MESSAGE &lt;/SPAN&gt;e043&lt;SPAN style="color: purple; background: white;"&gt;(&lt;/SPAN&gt;z12&lt;SPAN style="color: purple; background: white;"&gt;). &lt;SPAN style="color: purple; font-size: 10.0pt; background: white; font-family: 'Courier New';"&gt;“ There is no data match your selection.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;.&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="color: blue; background: white;"&gt;ENDMETHOD&lt;/SPAN&gt;&lt;SPAN style="color: purple; background: white;"&gt;.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: purple; font-size: 10.0pt; background: white; font-family: 'Courier New';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: purple; font-size: 10.0pt; background: white; font-family: 'Courier New';"&gt;Thanks in Advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: purple; font-size: 10.0pt; background: white; font-family: 'Courier New';"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: purple; font-size: 10.0pt; background: white; font-family: 'Courier New';"&gt;Avinash.&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;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 15:19:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498371#M1851835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-28T15:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498372#M1851836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am confused...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain why you use select-options or a range this way ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 15:32:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498372#M1851836</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2014-08-28T15:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498373#M1851837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@Avinash &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are using "UP TO 1 ROWS" anyway, yes it will be kind of slow without key fields WHERE but because of "UP TO 1 ROWS" I think you can ignore this SCI error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second point: I see your method VALIDATE_DELIVERY_STATUS is validating Document Status selection value for VBUK but you can consider to use STATV domain values for validating instead of VBUK table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 15:41:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498373#M1851837</guid>
      <dc:creator>TuncayKaraca</dc:creator>
      <dc:date>2014-08-28T15:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498374#M1851838</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;you are getting this Error in code inspector becasue these in no key field in where condition and VBUK is a very big table..you can only remove it by adding vbeln in where condition or by creating secondary index .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 15:41:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498374#M1851838</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-28T15:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498375#M1851839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you get to this method do you know the delivery number ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 15:50:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498375#M1851839</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2014-08-28T15:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498376#M1851840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you did not provide any criteria used in an index or in primary key, the database will perform a full scan of the database table (the UP TO 1 ROWS will stop once found some record, but if unlucky you could (and will, Peter's principle) get awful response time in production (and time out dumps, in development system, you have usually much less data available) -&amp;gt; Check with a SQL trace ST05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you find another solution to check this field (Are you actually checking existence of at least one SO with this status ? ) thru domain value, or SAP provided index tables (similar to VRKPA for partner or VLKPA for deliveries)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At least only execute such SELECT only when user actually press the Execute icon (e.g. IF sscrfields-ucomm EQ 'ONLI'.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NB: Also (let Customer) consider tools like BW for this kind of report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2014 07:38:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498376#M1851840</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-08-29T07:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498377#M1851841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can comment the SELECT after end line with '.' using pseudo comment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"#EC CI_NOFIELD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Aug 2014 08:00:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498377#M1851841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-08-29T08:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498378#M1851842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Navneet Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will there be an other solution other than these two options(adding vbeln and secondary index).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because I don't know the vbeln value to specify because it is not there in selection screen field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Avinash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 05:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498378#M1851842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-01T05:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498379#M1851843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can't create a useful secondary index for this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every useless secondary index will slow down your system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 05:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498379#M1851843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-01T05:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498380#M1851844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tuncay Karaca,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even If I consider the STATV domain values in select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am Facing this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Avinash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 05:40:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498380#M1851844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-01T05:40:36Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498381#M1851845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eitan Rosenberg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having field delivery status field in selection screen .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the user gives value on that field in selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT selection-screen on s_lfstk.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to validate the values which he enters is valid or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not having the vbeln field in selection screen.&amp;nbsp; I am getting this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;CODE INSPECTOR ERROR:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;Large table VBUK: No field of a table index in WHERE CONDITION.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Avinash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 05:51:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498381#M1851845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-01T05:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498382#M1851846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Klaus Babl ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"#EC CI_NOFIELD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not recommended as per my coding&amp;nbsp; standards and it is strictly prohibited.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Avinash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 05:55:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498382#M1851846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-01T05:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498383#M1851847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;UP TO 1 ROWS and SELECT SINGLE perform &lt;STRONG&gt;exactly&lt;/STRONG&gt; the same operation on the database. You should use SELECT SINGLE because it is simpler and clearer programming.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 06:40:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498383#M1851847</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2014-09-01T06:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498384#M1851848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's no need to keep repeating information already given.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As it stands your validation won't work. What if the user enters a selection of ranges? Or an exclusion? Or just an "*" to get everything?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the correct function module to get the valid values for the domain LFSTK (see here: &lt;A href="http://wiki.scn.sap.com/wiki/display/Snippets/GET+DOMAIN+FIXED+VALUE" title="http://wiki.scn.sap.com/wiki/display/Snippets/GET+DOMAIN+FIXED+VALUE"&gt;GET DOMAIN FIXED VALUE - Code Gallery - SCN Wiki&lt;/A&gt;) into an internal table. Then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;DATA match TYPE abap_bool. match = abap_false. LOOP domain_values INTO domain_value. CHECK domain_value IN s_lfstk. match = abap_true. ENDLOOP.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;IF match EQ abap_false.&lt;/P&gt;
&lt;P&gt;..." Sorry, pal, not valid.&lt;/P&gt;
&lt;P&gt;ENDIF.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Validating select options is not straightforward. If you need to validate against a db table, then you can only use&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SELECT SINGLE blah FROM dbtable INTO otherblah WHERE field IN s_field.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF sy-subrc IS NOT INITIAL:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; " Sorry, pal, not valid&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDIF.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which, as you've seen, is not very efficient.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 06:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498384#M1851848</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2014-09-01T06:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498385#M1851849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in our systems a new program has to be free of any code inspector errors, warnings and informations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore all issues must be worked and either corrected or acknowleged with a pseudo comment, if the code inspector fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code inspector is a tool, which shows &lt;STRONG&gt;possible issues&lt;/STRONG&gt;, but it can't decide, if there is a real issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you read a complete database table into an internal table in your program. you may get a code inspector error or warning. But if you want to read &lt;STRONG&gt;all 12 entries&lt;/STRONG&gt;, because you need them, then you have to comment this SELECT with a pseudo comment to tell the code inspector, that this issue doesn't exist and it shouldn't check it further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can't use pseudo comments due to your coding standards, then your first option should be to remove the causing code lines. In your issue, remove the VBUK access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 07:23:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498385#M1851849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-09-01T07:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Code Inspector Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498386#M1851850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just use function module DD_DOMA_GET and you will get all possible values for Delivery Status then compare with what entered on selection-screen. No need to use SELECT statement and you &lt;/P&gt;&lt;P&gt;won't get SCI error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/533211" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 21:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-inspector-error/m-p/10498386#M1851850</guid>
      <dc:creator>TuncayKaraca</dc:creator>
      <dc:date>2014-09-03T21:54:02Z</dc:date>
    </item>
  </channel>
</rss>

