<?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 Doubt in select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-select-statement/m-p/2614244#M599909</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys ,&lt;/P&gt;&lt;P&gt;i am writing a select statement like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ebeln into fp_records from eket for all entries in fpi_getrecords where &lt;/P&gt;&lt;P&gt;  (menge - wemng) gt 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to subtract two fields in the where condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Aug 2007 14:32:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-04T14:32:08Z</dc:date>
    <item>
      <title>Doubt in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-select-statement/m-p/2614244#M599909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi guys ,&lt;/P&gt;&lt;P&gt;i am writing a select statement like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ebeln into fp_records from eket for all entries in fpi_getrecords where &lt;/P&gt;&lt;P&gt;  (menge - wemng) gt 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to subtract two fields in the where condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2007 14:32:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-select-statement/m-p/2614244#M599909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-04T14:32:08Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-select-statement/m-p/2614245#M599910</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 cannot use this kind of natation in the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Rather &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    select ebeln menge wemng into fp_records from eket for all entries in fpi_getrecrods where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt; loop at fp_records.&lt;/P&gt;&lt;P&gt; if fp_records-menge - fp_records-wemng le 0.&lt;/P&gt;&lt;P&gt; delete fp_records index sy-tabix.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;mahesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Aug 2007 14:40:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-select-statement/m-p/2614245#M599910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-04T14:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt in select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-select-statement/m-p/2614246#M599911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;make a workarea&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: fp_records_wa like line of fp_records.

select ebeln menge wemng from eket into corresponding fields of fp_records_wa for all entries in fpi_getrecords.

if fp_records_wa-menge - fp_records_wa-wemng gt 0.
 append fp_records_wa to fp_records.
endif.

endselect.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 04:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubt-in-select-statement/m-p/2614246#M599911</guid>
      <dc:creator>former_member189059</dc:creator>
      <dc:date>2007-08-06T04:58:48Z</dc:date>
    </item>
  </channel>
</rss>

