<?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 query helpe in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-helpe/m-p/12636866#M2013903</link>
    <description>&lt;P&gt;hello, &lt;/P&gt;
  &lt;P&gt;I need your help with the query below. (my goal is to have the base price which is in the sales documents (INV1, DLV1, RIN1, RDN1) but not found in the OINM table. thank you in advance.&lt;/P&gt;
  &lt;P&gt;SELECT year(T0.[DocDate]) as 'ANNEE', month(T0.[DocDate]) as 'Mois', T0.[BASE_REF], T0.[Warehouse], T0.[CardCode], T0.[JrnlMemo], T0.[ItemCode], T0.[Dscription], SUM(T0.[OutQty]) - SUM(T0.[InQty]) AS 'TOTAL QTY', SUM(T0.[Price]* ((T0.[OutQty]) - (T0.[InQty]))) AS 'TOTAL CA HT', SUM(T1.[LstEvlPric]* ((T0.[OutQty]) - (T0.[InQty]))) AS 'TOTAL PR', T2.[ItmsGrpNam], T3.[SlpName] FROM OINM T0 INNER JOIN OITM T1 ON T0.[ItemCode] = T1.[ItemCode] INNER JOIN OITB T2 ON T1.[ItmsGrpCod] = T2.[ItmsGrpCod] INNER JOIN OSLP T3 ON T0.[SlpCode] = T3.[SlpCode] WHERE T0.[TransType] IN ('13' , '14' , '15' , '16' ) AND T0.[DocDate] &amp;gt;=[%1] AND T0.[DocDate] &amp;lt;=[%2] GROUP BY T0.[BASE_REF], T0.[Warehouse], T0.[CardCode], T0.[JrnlMemo], T0.[ItemCode], T0.[Dscription],T2.[ItmsGrpNam], T3.[SlpName], month(T0.[DocDate]), year(T0.[DocDate]) &lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2022 17:43:53 GMT</pubDate>
    <dc:creator>former_member898563</dc:creator>
    <dc:date>2022-10-12T17:43:53Z</dc:date>
    <item>
      <title>query helpe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-helpe/m-p/12636866#M2013903</link>
      <description>&lt;P&gt;hello, &lt;/P&gt;
  &lt;P&gt;I need your help with the query below. (my goal is to have the base price which is in the sales documents (INV1, DLV1, RIN1, RDN1) but not found in the OINM table. thank you in advance.&lt;/P&gt;
  &lt;P&gt;SELECT year(T0.[DocDate]) as 'ANNEE', month(T0.[DocDate]) as 'Mois', T0.[BASE_REF], T0.[Warehouse], T0.[CardCode], T0.[JrnlMemo], T0.[ItemCode], T0.[Dscription], SUM(T0.[OutQty]) - SUM(T0.[InQty]) AS 'TOTAL QTY', SUM(T0.[Price]* ((T0.[OutQty]) - (T0.[InQty]))) AS 'TOTAL CA HT', SUM(T1.[LstEvlPric]* ((T0.[OutQty]) - (T0.[InQty]))) AS 'TOTAL PR', T2.[ItmsGrpNam], T3.[SlpName] FROM OINM T0 INNER JOIN OITM T1 ON T0.[ItemCode] = T1.[ItemCode] INNER JOIN OITB T2 ON T1.[ItmsGrpCod] = T2.[ItmsGrpCod] INNER JOIN OSLP T3 ON T0.[SlpCode] = T3.[SlpCode] WHERE T0.[TransType] IN ('13' , '14' , '15' , '16' ) AND T0.[DocDate] &amp;gt;=[%1] AND T0.[DocDate] &amp;lt;=[%2] GROUP BY T0.[BASE_REF], T0.[Warehouse], T0.[CardCode], T0.[JrnlMemo], T0.[ItemCode], T0.[Dscription],T2.[ItmsGrpNam], T3.[SlpName], month(T0.[DocDate]), year(T0.[DocDate]) &lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 17:43:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-helpe/m-p/12636866#M2013903</guid>
      <dc:creator>former_member898563</dc:creator>
      <dc:date>2022-10-12T17:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: query helpe</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-helpe/m-p/12636867#M2013904</link>
      <description>&lt;P&gt;Hi, &lt;SPAN class="mention-scrubbed"&gt;1m9e8d7&lt;/SPAN&gt;: &lt;/P&gt;&lt;P&gt;Welcome to the SAP Community! We're glad you've come here to get
answers to your questions. If you're also interested in connecting with
community members, please pay a visit to our &lt;A href="https://groups.community.sap.com/t5/welcome-corner-blog-posts/welcome-all-sap-community-members-your-engagement-starts-here/ba-p/5359"&gt;Welcome Corner&lt;/A&gt;. You'll
need to sign up, but it's a great way to interact with peers and connect with
other experts!&lt;/P&gt;

&lt;P&gt;Since you're asking a question here for the first time, I'd like
to offer some friendly advice on how to get the most out of your community
membership and experience.&lt;/P&gt;

&lt;P&gt;First, please see &lt;A href="https://community.sap.com/resources/questions-and-answers" target="_blank"&gt;https://community.sap.com/resources/questions-and-answers&lt;/A&gt;, as this
resource page provides tips for preparing questions that draw responses from
our members. Second, feel free to take our Q&amp;amp;A tutorial at &lt;A href="https://developers.sap.com/tutorials/community-qa.html" target="_blank"&gt;https://developers.sap.com/tutorials/community-qa.html&lt;/A&gt;, as that
will help you when submitting questions to the community.&lt;/P&gt;

&lt;P&gt;You should also make sure your e-mail notifications are turned on
for "Comments and answers to my questions and questions I follow" at &lt;SPAN class="mention-scrubbed"&gt;#communications&lt;/SPAN&gt; -- so you
won't miss any replies to your question.&lt;/P&gt;

&lt;P&gt;In addition, I recommend that you include a profile picture. By
personalizing your profile, you encourage readers to respond: &lt;A href="https://developers.sap.com/tutorials/community-profile.html" target="_blank"&gt;https://developers.sap.com/tutorials/community-profile.html&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;Now for some specific suggestions on how you might improve your
question:&lt;/P&gt;

&lt;P&gt;* Outline what steps you took to find answers (and why they
weren't helpful) -- so members don't make suggestions that you've already
tried.&lt;/P&gt;

&lt;P&gt;* Share screenshots of what you've seen/done (if possible), as
images always helps our members better understand your problem.&lt;/P&gt;

&lt;P&gt;* Make sure you've applied the appropriate tags -- because if you
don't apply the correct tags, the right experts won't see your question to
answer it. &lt;/P&gt;&lt;P&gt;* Use the "insert code" option to make your post easier for members to read.&lt;/P&gt;

&lt;P&gt;Should you wish, you can revise your question by selecting
Actions, then Edit. &lt;/P&gt;

&lt;P&gt;I hope you find this advice useful,
and please let me know if you require any additional guidance!&lt;/P&gt;

&lt;P&gt;All the best,&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;--Jerry&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 17:45:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-helpe/m-p/12636867#M2013904</guid>
      <dc:creator>jerryjanda</dc:creator>
      <dc:date>2022-10-12T17:45:37Z</dc:date>
    </item>
  </channel>
</rss>

