<?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 SQL Query report for Active &amp; Inactive BP based on GRPO in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-query-report-for-active-inactive-bp-based-on-grpo/m-p/701856#M31972</link>
    <description>&lt;P&gt;Hi folks, &lt;BR /&gt; &lt;BR /&gt;I'm new in B1 and SQL so i need some help with this issue. A client asked for a query report for active and inactive BP based on &lt;STRONG&gt;GRPO&lt;/STRONG&gt; transaction. The inactive BP report does not fit my client's requirement. There are two requirement; &lt;BR /&gt; &lt;BR /&gt; &lt;/P&gt;
  &lt;UL&gt; 
   &lt;LI&gt;BP with transaction within a year&lt;/LI&gt; 
   &lt;LI&gt;BP with no transaction more than a year&lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;P&gt;What i'm struggling with is the second requirement which i could not understand how to achieve that. It would be great help if you can help me understand this. &lt;/P&gt;
  &lt;P&gt;Below are the query for what i;ve done so far (active bp within 1 year), i don't know if this even correct.&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;SELECT distinct getdate() as 'Current Date',T0.[DocDate], T1.[CardCode], T1.[CardName] 
FROM OPDN T0  INNER JOIN OCRD T1 ON T0.[CardCode] = T1.[CardCode] 
WHERE  (datediff(dd,T0.[DocDate],getdate())) &amp;lt; 365 
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Additional info, i'm using B1 9.2 PL11.&lt;/P&gt;</description>
    <pubDate>Thu, 29 Nov 2018 03:16:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2018-11-29T03:16:24Z</dc:date>
    <item>
      <title>SQL Query report for Active &amp; Inactive BP based on GRPO</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-query-report-for-active-inactive-bp-based-on-grpo/m-p/701856#M31972</link>
      <description>&lt;P&gt;Hi folks, &lt;BR /&gt; &lt;BR /&gt;I'm new in B1 and SQL so i need some help with this issue. A client asked for a query report for active and inactive BP based on &lt;STRONG&gt;GRPO&lt;/STRONG&gt; transaction. The inactive BP report does not fit my client's requirement. There are two requirement; &lt;BR /&gt; &lt;BR /&gt; &lt;/P&gt;
  &lt;UL&gt; 
   &lt;LI&gt;BP with transaction within a year&lt;/LI&gt; 
   &lt;LI&gt;BP with no transaction more than a year&lt;/LI&gt; 
  &lt;/UL&gt;
  &lt;P&gt;What i'm struggling with is the second requirement which i could not understand how to achieve that. It would be great help if you can help me understand this. &lt;/P&gt;
  &lt;P&gt;Below are the query for what i;ve done so far (active bp within 1 year), i don't know if this even correct.&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;SELECT distinct getdate() as 'Current Date',T0.[DocDate], T1.[CardCode], T1.[CardName] 
FROM OPDN T0  INNER JOIN OCRD T1 ON T0.[CardCode] = T1.[CardCode] 
WHERE  (datediff(dd,T0.[DocDate],getdate())) &amp;lt; 365 
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Additional info, i'm using B1 9.2 PL11.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2018 03:16:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-query-report-for-active-inactive-bp-based-on-grpo/m-p/701856#M31972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-11-29T03:16:24Z</dc:date>
    </item>
  </channel>
</rss>

