<?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 error!! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-error/m-p/2344639#M517122</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)Better put all the conditons in where conditon of select single statement.&lt;/P&gt;&lt;P&gt;2)Otherwise put all data into internal table &amp;amp; then filter it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st option is good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward for useful answers.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2007 17:00:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-18T17:00:53Z</dc:date>
    <item>
      <title>Code error!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-error/m-p/2344634#M517117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;Can Anybody let me know what this code is supposed to do and it shows me an error with the INDEX, so please help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF T_KNVV OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE KNVV.&lt;/P&gt;&lt;P&gt;DATA: END OF T_KNVV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF T_KNC1 OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE KNC1.&lt;/P&gt;&lt;P&gt;DATA: END OF T_KNC1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT T_KNVV.&lt;/P&gt;&lt;P&gt;  SELECT * FROM KNC1&lt;/P&gt;&lt;P&gt;             INTO T_KNC1&lt;/P&gt;&lt;P&gt;               ORDER BY GJAHR DESCENDING.&lt;/P&gt;&lt;P&gt;               &lt;/P&gt;&lt;P&gt;   READ table T_KNC1 INDEX = 1.&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;   IF T_KNC1-GJAHR GT SO_GJAHR.&lt;/P&gt;&lt;P&gt;     EXIT.&lt;/P&gt;&lt;P&gt;   ELSE.&lt;/P&gt;&lt;P&gt;   ENDIF.      &lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 16:39:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-error/m-p/2344634#M517117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T16:39:33Z</dc:date>
    </item>
    <item>
      <title>Re: Code error!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-error/m-p/2344635#M517118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;READ table T_KNC1 INDEX 1.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Don't mention as INDEX = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if its useful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 16:40:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-error/m-p/2344635#M517118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T16:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Code error!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-error/m-p/2344636#M517119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It says that the SELECT SINGLE statement cannot contain the clause ORDER BY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 16:47:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-error/m-p/2344636#M517119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T16:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Code error!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-error/m-p/2344637#M517120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If there is any SELECT SINGLE statement it will fetch only 1 record so there is no need to mention ORDER BY . If it throws an syntax error it is correct. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ORDER BY is nothing but SORT. If there is only 1 record then no need to sort it right&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 16:50:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-error/m-p/2344637#M517120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T16:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Code error!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-error/m-p/2344638#M517121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;but waht i need is to select all the records and read the ones which meet the select criteria...&lt;/P&gt;&lt;P&gt;so how do i write it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 16:57:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-error/m-p/2344638#M517121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T16:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: Code error!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-error/m-p/2344639#M517122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)Better put all the conditons in where conditon of select single statement.&lt;/P&gt;&lt;P&gt;2)Otherwise put all data into internal table &amp;amp; then filter it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st option is good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward for useful answers.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 17:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-error/m-p/2344639#M517122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T17:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Code error!!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-error/m-p/2344640#M517123</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;DATA: BEGIN OF T_KNVV OCCURS 0.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE KNVV.&lt;/P&gt;&lt;P&gt;DATA: END OF T_KNVV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF T_KNC1 OCCURS 0.&lt;/P&gt;&lt;P&gt;INCLUDE STRUCTURE KNC1.&lt;/P&gt;&lt;P&gt;DATA: END OF T_KNC1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM KNC1 INTO TABLE T_KNC1 for all entries in T_KNVV &lt;/P&gt;&lt;P&gt;                                                            where GJAHR GT SO_GJAHR&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2007 17:03:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-error/m-p/2344640#M517123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-18T17:03:04Z</dc:date>
    </item>
  </channel>
</rss>

