<?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 AVRAGE INVENTORY in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/avrage-inventory/m-p/12392043#M1994817</link>
    <description>&lt;P&gt;I am trying to do a query to take out the stock with more than one date, I have tried this query but it does not work&lt;/P&gt;
  &lt;P&gt;SELECT T0.ItemCode,T0.ItemName,&lt;/P&gt;
  &lt;P&gt;DATE 1 = (select ItemCode, SUM(inqty)-SUM(outqty) from OINM where docdate &amp;lt;= '2021-04-01' group by ItemCode),&lt;/P&gt;
  &lt;P&gt;DATE 2 = (select ItemCode, SUM(inqty)-SUM(outqty) from OINM where docdate &amp;lt;= '2021-04-02' group by ItemCode),&lt;/P&gt;
  &lt;P&gt;DATE 3 = (select ItemCode, SUM(inqty)-SUM(outqty) from OINM where docdate &amp;lt;= '2021-04-03' group by ItemCode),&lt;/P&gt;
  &lt;P&gt;FROM OITM T0 INNER JOIN OINM T1 ON T0.ItemCode = T1.ItemCode group By T0.ItemCode, T0.ItemName&lt;/P&gt;</description>
    <pubDate>Mon, 05 Apr 2021 00:03:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2021-04-05T00:03:36Z</dc:date>
    <item>
      <title>AVRAGE INVENTORY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/avrage-inventory/m-p/12392043#M1994817</link>
      <description>&lt;P&gt;I am trying to do a query to take out the stock with more than one date, I have tried this query but it does not work&lt;/P&gt;
  &lt;P&gt;SELECT T0.ItemCode,T0.ItemName,&lt;/P&gt;
  &lt;P&gt;DATE 1 = (select ItemCode, SUM(inqty)-SUM(outqty) from OINM where docdate &amp;lt;= '2021-04-01' group by ItemCode),&lt;/P&gt;
  &lt;P&gt;DATE 2 = (select ItemCode, SUM(inqty)-SUM(outqty) from OINM where docdate &amp;lt;= '2021-04-02' group by ItemCode),&lt;/P&gt;
  &lt;P&gt;DATE 3 = (select ItemCode, SUM(inqty)-SUM(outqty) from OINM where docdate &amp;lt;= '2021-04-03' group by ItemCode),&lt;/P&gt;
  &lt;P&gt;FROM OITM T0 INNER JOIN OINM T1 ON T0.ItemCode = T1.ItemCode group By T0.ItemCode, T0.ItemName&lt;/P&gt;</description>
      <pubDate>Mon, 05 Apr 2021 00:03:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/avrage-inventory/m-p/12392043#M1994817</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-04-05T00:03:36Z</dc:date>
    </item>
  </channel>
</rss>

