<?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 Create a View with Aggregation Function (COUNT) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-view-with-aggregation-function-count/m-p/1778733#M335698</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been looking up and down for a way to create a view with a few basic fields and some other fields containing aggregation function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance:&lt;/P&gt;&lt;P&gt;To display a view that contain all the Contract Agreement and the corresponding count of the PO releases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Agreement Nbr, Total PO releases&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need this view so that I can create a search help with this view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found something about the "CREATE VIEW" statement, but I don't have any idea how to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any helps toward this matter is very much appreciated, thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Dec 2006 16:24:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-06T16:24:55Z</dc:date>
    <item>
      <title>Create a View with Aggregation Function (COUNT)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-view-with-aggregation-function-count/m-p/1778733#M335698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been looking up and down for a way to create a view with a few basic fields and some other fields containing aggregation function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance:&lt;/P&gt;&lt;P&gt;To display a view that contain all the Contract Agreement and the corresponding count of the PO releases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Agreement Nbr, Total PO releases&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need this view so that I can create a search help with this view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found something about the "CREATE VIEW" statement, but I don't have any idea how to use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any helps toward this matter is very much appreciated, thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 16:24:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-view-with-aggregation-function-count/m-p/1778733#M335698</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T16:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Create a View with Aggregation Function (COUNT)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-view-with-aggregation-function-count/m-p/1778734#M335699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Aldern&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you have read about the SQL statement "CREATE VIEW". When we create a view in the dictionary this SQL statement is finally called to create the view on the DB. Thus, since we do not have any aggregation options in views you cannot achieve what you want using views.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution for your problem is to create a &amp;lt;b&amp;gt;search help&amp;lt;/b&amp;gt; having a &amp;lt;b&amp;gt;search help exit&amp;lt;/b&amp;gt;. Within the exit you can do your aggregation functions and add these values to the displayed search help data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jan 2007 20:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-a-view-with-aggregation-function-count/m-p/1778734#M335699</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-01-21T20:44:15Z</dc:date>
    </item>
  </channel>
</rss>

