<?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 Generator Help please in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-generator-help-please/m-p/731947#M34521</link>
    <description>&lt;P&gt;ended up using this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT CardCode, CardName, ItemCode, Dscription, DocNum, CASE WHEN T1.GrossBuyPr&amp;lt;&amp;gt;0 THEN ROUND(GrssProfit/GrossBuyPr* 100,2) ELSE ROUND(100,2) END AS GrossProfitPer FROM RDR1 T1 LEFT OUTER JOIN ORDR T2 ON T2.DocEntry = T1.DocEntry&lt;BR /&gt;WHERE CASE WHEN T1.GrossBuyPr&amp;lt;&amp;gt;0 THEN ROUND(T1.GrssProfit/T1.GrossBuyPr* 100,2) ELSE [%0] END &amp;lt;= [%0] AND T2.DocDate &amp;gt;= [%1] AND T2.DocDate &amp;lt;=[%3]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 01 Nov 2018 11:36:15 GMT</pubDate>
    <dc:creator>chrisvff</dc:creator>
    <dc:date>2018-11-01T11:36:15Z</dc:date>
    <item>
      <title>Query Generator Help please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-generator-help-please/m-p/731945#M34519</link>
      <description>&lt;P&gt;I would like to run a query that I can specify a date range of sales orders and specify a min profit percentage.&lt;/P&gt;
  &lt;P&gt;for example&lt;/P&gt;
  &lt;P&gt;&lt;BR /&gt; 1.9.18 to 25.10.18 %7 (THIS NUMBER CAN CHANGE)&lt;/P&gt;
  &lt;P&gt;this will show any sales orders with individual lines or products that were discounted below the 7% gross profit threshold.&lt;/P&gt;
  &lt;P&gt;Then I will be able to edit the induvial lines on the special prices for business partners in order to get the profit percent above 10%&lt;/P&gt;
  &lt;P&gt;The special prices for business partners do not have the option to show me the % profit after discount, as far as I can see.&lt;/P&gt;
  &lt;P&gt;as always, any help would be highly apricated &lt;/P&gt;</description>
      <pubDate>Thu, 25 Oct 2018 11:08:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-generator-help-please/m-p/731945#M34519</guid>
      <dc:creator>chrisvff</dc:creator>
      <dc:date>2018-10-25T11:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: Query Generator Help please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-generator-help-please/m-p/731946#M34520</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Put Below one in Where Conditon Block:&lt;/P&gt;&lt;P&gt;Where Tablename.FieldName=[%0]  and Tablename.FieldName=[%1] and Tablename.FieldName=[%2]&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;here from %0 and %1 field name is date like doc date or tax date.&lt;/P&gt;&lt;P&gt;and for %2 field name is Discount .&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Regards,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.linkedin.com/in/tejaspatil09"&gt;&lt;STRONG&gt;Tejas P&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Oct 2018 12:47:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-generator-help-please/m-p/731946#M34520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-10-29T12:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: Query Generator Help please</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-generator-help-please/m-p/731947#M34521</link>
      <description>&lt;P&gt;ended up using this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT CardCode, CardName, ItemCode, Dscription, DocNum, CASE WHEN T1.GrossBuyPr&amp;lt;&amp;gt;0 THEN ROUND(GrssProfit/GrossBuyPr* 100,2) ELSE ROUND(100,2) END AS GrossProfitPer FROM RDR1 T1 LEFT OUTER JOIN ORDR T2 ON T2.DocEntry = T1.DocEntry&lt;BR /&gt;WHERE CASE WHEN T1.GrossBuyPr&amp;lt;&amp;gt;0 THEN ROUND(T1.GrssProfit/T1.GrossBuyPr* 100,2) ELSE [%0] END &amp;lt;= [%0] AND T2.DocDate &amp;gt;= [%1] AND T2.DocDate &amp;lt;=[%3]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 11:36:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-generator-help-please/m-p/731947#M34521</guid>
      <dc:creator>chrisvff</dc:creator>
      <dc:date>2018-11-01T11:36:15Z</dc:date>
    </item>
  </channel>
</rss>

