<?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: Suggestions Please in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestions-please/m-p/1462376#M218081</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;The warning in the Code Inspector is to include your key fields in the selection criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. If possible include the key field AUFNR of AUFK table in the WHERE condition. But from your code I can see that you retrieve AUFNR from the table hence you can ignore this warning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT aufnr INTO TABLE t_aufnr&lt;/P&gt;&lt;P&gt;FROM aufk&lt;/P&gt;&lt;P&gt;WHERE &amp;lt;b&amp;gt;aufnr EQ '011000000'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;bukrs EQ gs_key_com819_class-bukrs&lt;/P&gt;&lt;P&gt;AND jv_jibcl EQ gs_key_com819_class-jibcl&lt;/P&gt;&lt;P&gt;AND werks IN r_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wenceslaus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Jun 2006 08:56:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-06-16T08:56:32Z</dc:date>
    <item>
      <title>Suggestions Please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestions-please/m-p/1462374#M218079</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;Ive been told to remove all warnings from a large piece of code and after removing quite a few ive run into a couple i don't understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This warning message comes after running the code inspector (SCI)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Order subobject has error performance check: (1). Function Group /GAMMA/GV_ORDER_COM_CLASS &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Include /GAMMA/LGV_ORDER_COM_CLASSU01 Row 000067 Column 002 -  Table AUFK:No First Field from Table Index in WHERE Condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the following code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT aufnr INTO TABLE t_aufnr&lt;/P&gt;&lt;P&gt;       FROM aufk&lt;/P&gt;&lt;P&gt;       WHERE bukrs EQ  gs_key_com819_class-bukrs&lt;/P&gt;&lt;P&gt;          AND jv_jibcl EQ  gs_key_com819_class-jibcl&lt;/P&gt;&lt;P&gt;          AND werks IN r_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas what this error means???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2006 08:47:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggestions-please/m-p/1462374#M218079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-16T08:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions Please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestions-please/m-p/1462375#M218080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just one wild guess. Can you re-write the code as below as see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT aufnr INTO TABLE t_aufnr
FROM aufk
WHERE MANDT EQ SY-MANDT
AND bukrs EQ gs_key_com819_class-bukrs
AND werks IN r_werks
AND jv_jibcl EQ gs_key_com819_class-jibcl.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;TM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2006 08:56:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggestions-please/m-p/1462375#M218080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-16T08:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions Please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestions-please/m-p/1462376#M218081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;The warning in the Code Inspector is to include your key fields in the selection criteria.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. If possible include the key field AUFNR of AUFK table in the WHERE condition. But from your code I can see that you retrieve AUFNR from the table hence you can ignore this warning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT aufnr INTO TABLE t_aufnr&lt;/P&gt;&lt;P&gt;FROM aufk&lt;/P&gt;&lt;P&gt;WHERE &amp;lt;b&amp;gt;aufnr EQ '011000000'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;bukrs EQ gs_key_com819_class-bukrs&lt;/P&gt;&lt;P&gt;AND jv_jibcl EQ gs_key_com819_class-jibcl&lt;/P&gt;&lt;P&gt;AND werks IN r_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Wenceslaus.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2006 08:56:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggestions-please/m-p/1462376#M218081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-16T08:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions Please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestions-please/m-p/1462377#M218082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi james,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the key field aufnr and rewite the code.I guess u can use select single instead of table and in the where condition use aufnr field..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2006 09:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggestions-please/m-p/1462377#M218082</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2006-06-16T09:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions Please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestions-please/m-p/1462378#M218083</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 need to include AUFNR in your where clause.&lt;/P&gt;&lt;P&gt;that is misisng , Because of that it gave the error in Code inspector.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT aufnr INTO TABLE t_aufnr
FROM aufk
WHERE &amp;lt;b&amp;gt;AUFNR  EQ aufnr&amp;lt;/b&amp;gt;
and  bukrs EQ bukrs
AND jv_jibcl EQ jv_jibcl
AND werks IN r_werks.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now check it. it will not give it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2006 09:07:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggestions-please/m-p/1462378#M218083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-16T09:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions Please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestions-please/m-p/1462379#M218084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;    You are trying to select data from aufk without&lt;/P&gt;&lt;P&gt;    using any key fields thats why you are getting &lt;/P&gt;&lt;P&gt;    warning in SCI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;b&amp;gt;  range aufnr for aufk-aufnr.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;     SELECT aufnr INTO TABLE t_aufnr&lt;/P&gt;&lt;P&gt;     FROM aufk&lt;/P&gt;&lt;P&gt;     WHERE &amp;lt;b&amp;gt;aufnr in r_aufnr&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;     bukrs EQ gs_key_com819_class-bukrs&lt;/P&gt;&lt;P&gt;     AND jv_jibcl EQ gs_key_com819_class-jibcl&lt;/P&gt;&lt;P&gt;     AND werks IN r_werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2006 09:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggestions-please/m-p/1462379#M218084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-16T09:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions Please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestions-please/m-p/1462380#M218085</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;  SELECT aufnr INTO FROM aufk&lt;/P&gt;&lt;P&gt;      WHERE bukrs EQ gs_key_com819_class-bukrs&lt;/P&gt;&lt;P&gt;      AND jv_jibcl EQ gs_key_com819_class-jibcl&lt;/P&gt;&lt;P&gt;      AND werks IN r_werks&lt;/P&gt;&lt;P&gt;      append it_aufk.&lt;/P&gt;&lt;P&gt;  endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2006 09:09:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggestions-please/m-p/1462380#M218085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-16T09:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestions Please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestions-please/m-p/1462381#M218086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can both get rid of the warning and speed up the select without changing the program functionality by doing:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT aufnr INTO TABLE t_aufnr
  FROM aufk
  WHERE autyp IN ('01', '02', '03', '04', '05', '06', '10', '20',
                  '30', '40', '50', '60', '70')
    AND werks    IN r_werks
    AND jv_jibcl EQ gs_key_com819_class-jibcl
    and bukrs    EQ gs_key_com819_class-bukrs.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Adding all of the AUTYPs should force the select to use a secondary index. Instead of the way I coded this, you could use a range table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Jun 2006 13:32:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggestions-please/m-p/1462381#M218086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-06-16T13:32:07Z</dc:date>
    </item>
  </channel>
</rss>

