<?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: Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4065416#M971731</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am giving the select statement i used in the program.&lt;/P&gt;&lt;P&gt;  SELECT ryear runit poper&lt;/P&gt;&lt;P&gt;           rbukrs activ refdocnr refdocln&lt;/P&gt;&lt;P&gt;           werks matnr lifnr bwart&lt;/P&gt;&lt;P&gt;           INTO TABLE gt_glpca&lt;/P&gt;&lt;P&gt;           FROM glpca&lt;/P&gt;&lt;P&gt;           WHERE rbukrs = p_rbukrs&lt;/P&gt;&lt;P&gt;           AND   werks IN s_werks&lt;/P&gt;&lt;P&gt;           AND   lifnr IN s_lifnr&lt;/P&gt;&lt;P&gt;           AND   poper IN s_poper&lt;/P&gt;&lt;P&gt;           AND   ryear IN s_ryear&lt;/P&gt;&lt;P&gt;           AND   activ = c_rmwa&lt;/P&gt;&lt;P&gt;           AND   bwart = c_411.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In glpca table,key field is gl_sirid.but this is not having any value.So I can't use this in the where condition.Can u suggest some solution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Jul 2008 06:29:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-03T06:29:15Z</dc:date>
    <item>
      <title>Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4065413#M971728</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 have developed a new report.When I check the code inspector it is showing 15 errors all for the same select statement.The error is 'No first field from table index in WHERE condition'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do we get this error.What can be done to remove this error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 06:16:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4065413#M971728</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T06:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4065414#M971729</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;it would be good if u can put the select statmt that is giving the error...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 06:21:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4065414#M971729</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T06:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4065415#M971730</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is because you have not used any key fields( primary or secondary indexes) in your WHERE condition of that SELECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is functionally viable to add any of the key fields, then you might not face this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 06:23:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4065415#M971730</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T06:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4065416#M971731</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am giving the select statement i used in the program.&lt;/P&gt;&lt;P&gt;  SELECT ryear runit poper&lt;/P&gt;&lt;P&gt;           rbukrs activ refdocnr refdocln&lt;/P&gt;&lt;P&gt;           werks matnr lifnr bwart&lt;/P&gt;&lt;P&gt;           INTO TABLE gt_glpca&lt;/P&gt;&lt;P&gt;           FROM glpca&lt;/P&gt;&lt;P&gt;           WHERE rbukrs = p_rbukrs&lt;/P&gt;&lt;P&gt;           AND   werks IN s_werks&lt;/P&gt;&lt;P&gt;           AND   lifnr IN s_lifnr&lt;/P&gt;&lt;P&gt;           AND   poper IN s_poper&lt;/P&gt;&lt;P&gt;           AND   ryear IN s_ryear&lt;/P&gt;&lt;P&gt;           AND   activ = c_rmwa&lt;/P&gt;&lt;P&gt;           AND   bwart = c_411.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In glpca table,key field is gl_sirid.but this is not having any value.So I can't use this in the where condition.Can u suggest some solution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 06:29:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4065416#M971731</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T06:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4065417#M971732</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Code Inspector
Analysis of the WHERE condition for SELECT

Table xyz: In the WHERE condition, there is no first field of a table index.

The current SELECT statement can probably not be processed using an index because the WHERE condition does not contain any first field of a table index (or index fields only with the addition NOT or the relational operators NE or '&amp;lt;&amp;gt;').

The whole database table therefore needs to be searched through, which can lead to long response times.
Check whether the WHERE condition can be reformulated to match a table index.
Check whether an additional table index can be created.

TIP: You can do this

The priority of the message depends on the size category of the table:
Size category       0, 1   =&amp;gt; Warning
Size category       &amp;gt;= 2   =&amp;gt; Error

The message can be suppressed using the pseudo comment "#EC CI_NOFIRST&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Jul 2008 06:31:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4065417#M971732</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-03T06:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4065418#M971733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Hema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When u are selecting from table check for the key for that  &amp;lt;b&amp;gt; table &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;in where condition more number of primary keys must be used to efficient data fetching,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in your case you might be &amp;lt;b&amp;gt;  not using the primary key or index  field of the that table &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;amit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 11:23:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4065418#M971733</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T11:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4065419#M971734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The fields u have used in Where conditions are not primary keys..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thats y its giving such a error&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 11:43:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4065419#M971734</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T11:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4065420#M971735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check with SE16, the number of entries in the GLPCA in your system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If large then you have a problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a number of indexes on this table. And you need index support for fast procesing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An index can only be used if you use the fields from the beginning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code inspector check only simple things whether there is at least a first field of an index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact you need selective fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jul 2008 13:00:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/4065420#M971735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-07T13:00:49Z</dc:date>
    </item>
  </channel>
</rss>

