<?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: Query generaton in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-generaton/m-p/12448270#M1999259</link>
    <description>&lt;P&gt;Its all about SAP B1. For "Sales return" we are using "A/R Credit memo".&lt;/P&gt;</description>
    <pubDate>Mon, 13 Sep 2021 10:49:41 GMT</pubDate>
    <dc:creator>former_member765243</dc:creator>
    <dc:date>2021-09-13T10:49:41Z</dc:date>
    <item>
      <title>Query generaton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-generaton/m-p/12448268#M1999257</link>
      <description>&lt;P&gt;I need a query to get sales-return of all customers. For this I use the following query that shows no result&lt;/P&gt;
  &lt;P&gt;SELECT T0.[CardCode], sum(T0.[DocTotal]-T1.[DocTotal]) FROM OINV T0 INNER JOIN ORIN T1 ON T0.[DocEntry] = T1.[AnnInvDecR] WHERE T0.[CANCELED] ='n' AND T1.[CANCELED] = 'n' GROUP BY T0.[CardCode]&lt;/P&gt;
  &lt;P&gt;Then I change it to the following, it shows wrong result&lt;/P&gt;
  &lt;P&gt;SELECT T0.[CardCode], sum(T0.[DocTotal]-T1.[DocTotal]) FROM OINV T0 INNER JOIN ORIN T1 ON T0.[CardCode] = T1.[CardCode] WHERE T0.[CANCELED] ='n' AND T1.[CANCELED] = 'n' GROUP BY T0.[CardCode]&lt;/P&gt;
  &lt;P&gt;Please suggest the correction.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Sep 2021 11:20:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-generaton/m-p/12448268#M1999257</guid>
      <dc:creator>former_member765243</dc:creator>
      <dc:date>2021-09-05T11:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: Query generaton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-generaton/m-p/12448269#M1999258</link>
      <description>&lt;P&gt;please share structure of table ORIN and OINV and foreign key relationship between these table Also pleasw specify sales-return data type.&lt;/P&gt;&lt;P&gt;  relationship between table(ORIN and OINV) is one to one or  realationship between table(ORIN and OINV) is one to many&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 10:30:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-generaton/m-p/12448269#M1999258</guid>
      <dc:creator>former_member688242</dc:creator>
      <dc:date>2021-09-08T10:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Query generaton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-generaton/m-p/12448270#M1999259</link>
      <description>&lt;P&gt;Its all about SAP B1. For "Sales return" we are using "A/R Credit memo".&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 10:49:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-generaton/m-p/12448270#M1999259</guid>
      <dc:creator>former_member765243</dc:creator>
      <dc:date>2021-09-13T10:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Query generaton</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-generaton/m-p/12448271#M1999260</link>
      <description>&lt;P&gt;I don’t have access to bi system.please share details mentioned above&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 12:35:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-generaton/m-p/12448271#M1999260</guid>
      <dc:creator>former_member688242</dc:creator>
      <dc:date>2021-09-13T12:35:03Z</dc:date>
    </item>
  </channel>
</rss>

