<?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 SAP Hana Extension 2.0 in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Query-SAP-Hana-Extension-2-0/m-p/237812#M4095</link>
    <description>&lt;P&gt;I am currently creating a 2.0 extension to perform queries.&lt;BR /&gt;I am making the extension for sap Hana.&lt;BR /&gt;This is the query I am using&lt;BR /&gt;SELECT COUNT(VBELN) AS "Quantity", TO_DATE(AUDAT, 'YYYYMMDD') as Datevedia , CURRENT_DATE FROM SAPABAP1.VBAK WHERE ERNAM ='CNX_ERP_CPI' AND AUART ='ZB2C' AND AUDAT &amp;gt;= '20240221' GROUP BY TO_DATE(AUDAT , 'YYYYMMDD') ORDER BY TO_DATE(AUDAT, 'YYYYMMDD');&lt;BR /&gt;I have the following problem.&lt;BR /&gt;I want to group the results by day.&lt;BR /&gt;When the next day passes, the result accumulates and this should not happen. example 11:59 PM is 50 records. The next day should start with 0 records and not 50 from the previous day.&lt;BR /&gt;I don't know what I should do to accumulate correctly.&lt;/P&gt;&lt;P&gt;21-02-2024 23:59&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gabriel_gomez_0-1708578693952.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17781iC73B876A9F73DC99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gabriel_gomez_0-1708578693952.png" alt="gabriel_gomez_0-1708578693952.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;22-02-2024 00:10&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gabriel_gomez_1-1708578758305.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17782i24497F0C1AA772E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gabriel_gomez_1-1708578758305.png" alt="gabriel_gomez_1-1708578758305.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Feb 2024 05:15:09 GMT</pubDate>
    <dc:creator>gabriel_gomez</dc:creator>
    <dc:date>2024-02-22T05:15:09Z</dc:date>
    <item>
      <title>Query SAP Hana Extension 2.0</title>
      <link>https://community.dynatrace.com/t5/Extensions/Query-SAP-Hana-Extension-2-0/m-p/237812#M4095</link>
      <description>&lt;P&gt;I am currently creating a 2.0 extension to perform queries.&lt;BR /&gt;I am making the extension for sap Hana.&lt;BR /&gt;This is the query I am using&lt;BR /&gt;SELECT COUNT(VBELN) AS "Quantity", TO_DATE(AUDAT, 'YYYYMMDD') as Datevedia , CURRENT_DATE FROM SAPABAP1.VBAK WHERE ERNAM ='CNX_ERP_CPI' AND AUART ='ZB2C' AND AUDAT &amp;gt;= '20240221' GROUP BY TO_DATE(AUDAT , 'YYYYMMDD') ORDER BY TO_DATE(AUDAT, 'YYYYMMDD');&lt;BR /&gt;I have the following problem.&lt;BR /&gt;I want to group the results by day.&lt;BR /&gt;When the next day passes, the result accumulates and this should not happen. example 11:59 PM is 50 records. The next day should start with 0 records and not 50 from the previous day.&lt;BR /&gt;I don't know what I should do to accumulate correctly.&lt;/P&gt;&lt;P&gt;21-02-2024 23:59&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gabriel_gomez_0-1708578693952.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17781iC73B876A9F73DC99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gabriel_gomez_0-1708578693952.png" alt="gabriel_gomez_0-1708578693952.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;22-02-2024 00:10&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gabriel_gomez_1-1708578758305.png" style="width: 400px;"&gt;&lt;img src="https://community.dynatrace.com/t5/image/serverpage/image-id/17782i24497F0C1AA772E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gabriel_gomez_1-1708578758305.png" alt="gabriel_gomez_1-1708578758305.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 05:15:09 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Query-SAP-Hana-Extension-2-0/m-p/237812#M4095</guid>
      <dc:creator>gabriel_gomez</dc:creator>
      <dc:date>2024-02-22T05:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Query SAP Hana Extension 2.0</title>
      <link>https://community.dynatrace.com/t5/Extensions/Query-SAP-Hana-Extension-2-0/m-p/238263#M4118</link>
      <description>&lt;P&gt;Make sure that the metric is of type "gauge" and not "count", and then solve it within your query to return exactly the number you want to report on each execution.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 11:14:06 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Query-SAP-Hana-Extension-2-0/m-p/238263#M4118</guid>
      <dc:creator>Mike_L</dc:creator>
      <dc:date>2024-02-27T11:14:06Z</dc:date>
    </item>
  </channel>
</rss>

