<?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: ABAP QUERY in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/3248640#M775563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;ABAP QUERY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many times a need arises for SAP Users and Functional Consultants to generate quick reports without getting any ABAP coding done &amp;#150; time taken to complete the coding in development, transport and test it in QA system and then transport to production &amp;#150; is sometimes too long. In such cases, ABAP/4 query is a tool provided by SAP for generating these kind of reports. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Type of Report Desired:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Before starting to write an ABAP query, its advisable to decide the type of report that the user wants. ABAP query provides the following type of reports: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Basic List        Simple report  &lt;/P&gt;&lt;P&gt;  Statistics          Report containing statistical functions like Average &amp;amp;Percentage  &lt;/P&gt;&lt;P&gt;  Ranked List     Report written for analytical purpose  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is always seen in the order of Basic List, then Statistics and then Ranked List if any. One ABAP query can have one basic list, maximum of 9 statistics and maximum of 9 ranked lists.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a nutshell, an ABAP/4 query can be designed in four steps &lt;/P&gt;&lt;P&gt;- Creation of a user group  &lt;/P&gt;&lt;P&gt;- Creation of functional area  &lt;/P&gt;&lt;P&gt;- Assignment of user group to functional area  &lt;/P&gt;&lt;P&gt;- Creation of the query based on functional area  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The various objects that form an ABAP query can be created in the following 2 ways:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;- Tools =&amp;gt; ABAP/4 Workbench =&amp;gt; Utilities =&amp;gt; ABAP/4 Query &lt;/P&gt;&lt;P&gt;  OR &lt;/P&gt;&lt;P&gt;- By executing the transaction codes mentioned below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SQ01   ABAP/4 Query  &lt;/P&gt;&lt;P&gt; SQ02   Functional Area  &lt;/P&gt;&lt;P&gt; SQ03   User group  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step I - Create Functional Area &lt;/P&gt;&lt;P&gt;In the functional area section, the user indicates from which part of the SAP database the data is going to be retrieved and how the data is to be retrieved by the query. One functional area can be assigned to many user groups. A functional area can be created with or without a logical database.  To create a functional area with a logical database, one has to mention the name of the database and then select the fields from the tables that form the logical database. &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;ABAP Query Authorizations:  To use an ABAP query, the user must have appropriate authorizations. Two ways of providing authorizations to the users are as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- User groups &lt;/P&gt;&lt;P&gt;The user should be a part of at least one user group to run the corresponding ABAP query. This automatically restricts the access of the user to specific functional areas, and thus the corresponding underlying logical databases. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Authorizations &lt;/P&gt;&lt;P&gt;The authorization object S_QUERY should be used to give proper authorizations to the user for a query. This authorization object has a field named ACTVT which can take values 02 for Change, 23 for Maintain and 67 for Translate. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This value determines whether the user can create and modify the query. The possible authorizations in the object are as follows:  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  S_QUERY_ALL          Change, maintain and translate query  &lt;/P&gt;&lt;P&gt;  S_QUERY_UPD         Change and Translate  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though the general concept of an ABAP query is moderately difficult, the results and the long term use of the ABAP query is worth the effort&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link..(with screen shot)&lt;/P&gt;&lt;P&gt;&lt;A href="http://allaboutsap.blogspot.com/2007/09/sap-query-step-by-step.html" target="test_blank"&gt;http://allaboutsap.blogspot.com/2007/09/sap-query-step-by-step.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Jan 2008 18:40:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-05T18:40:31Z</dc:date>
    <item>
      <title>ABAP QUERY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/3248637#M775560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can anyone send ABAP QUERY STEPS....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 17:41:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/3248637#M775560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T17:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP QUERY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/3248638#M775561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dude &lt;/P&gt;&lt;P&gt;Check this link will find step by step about abap query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://allaboutsap.blogspot.com/2007/09/sap-query-step-by-step.html" target="test_blank"&gt;http://allaboutsap.blogspot.com/2007/09/sap-query-step-by-step.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2008 18:23:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/3248638#M775561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-04T18:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP QUERY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/3248639#M775562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venugopal,&lt;/P&gt;&lt;P&gt;     For step by step procedure to create an ABAP query you can refer to the following link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp" target="test_blank"&gt;http://www.thespot4sap.com/Articles/SAP_ABAP_Queries_Introduction.asp&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2008 15:36:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/3248639#M775562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-05T15:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP QUERY</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/3248640#M775563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;ABAP QUERY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many times a need arises for SAP Users and Functional Consultants to generate quick reports without getting any ABAP coding done &amp;#150; time taken to complete the coding in development, transport and test it in QA system and then transport to production &amp;#150; is sometimes too long. In such cases, ABAP/4 query is a tool provided by SAP for generating these kind of reports. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Type of Report Desired:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Before starting to write an ABAP query, its advisable to decide the type of report that the user wants. ABAP query provides the following type of reports: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Basic List        Simple report  &lt;/P&gt;&lt;P&gt;  Statistics          Report containing statistical functions like Average &amp;amp;Percentage  &lt;/P&gt;&lt;P&gt;  Ranked List     Report written for analytical purpose  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output is always seen in the order of Basic List, then Statistics and then Ranked List if any. One ABAP query can have one basic list, maximum of 9 statistics and maximum of 9 ranked lists.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a nutshell, an ABAP/4 query can be designed in four steps &lt;/P&gt;&lt;P&gt;- Creation of a user group  &lt;/P&gt;&lt;P&gt;- Creation of functional area  &lt;/P&gt;&lt;P&gt;- Assignment of user group to functional area  &lt;/P&gt;&lt;P&gt;- Creation of the query based on functional area  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The various objects that form an ABAP query can be created in the following 2 ways:&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;- Tools =&amp;gt; ABAP/4 Workbench =&amp;gt; Utilities =&amp;gt; ABAP/4 Query &lt;/P&gt;&lt;P&gt;  OR &lt;/P&gt;&lt;P&gt;- By executing the transaction codes mentioned below: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SQ01   ABAP/4 Query  &lt;/P&gt;&lt;P&gt; SQ02   Functional Area  &lt;/P&gt;&lt;P&gt; SQ03   User group  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Step I - Create Functional Area &lt;/P&gt;&lt;P&gt;In the functional area section, the user indicates from which part of the SAP database the data is going to be retrieved and how the data is to be retrieved by the query. One functional area can be assigned to many user groups. A functional area can be created with or without a logical database.  To create a functional area with a logical database, one has to mention the name of the database and then select the fields from the tables that form the logical database. &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;ABAP Query Authorizations:  To use an ABAP query, the user must have appropriate authorizations. Two ways of providing authorizations to the users are as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- User groups &lt;/P&gt;&lt;P&gt;The user should be a part of at least one user group to run the corresponding ABAP query. This automatically restricts the access of the user to specific functional areas, and thus the corresponding underlying logical databases. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Authorizations &lt;/P&gt;&lt;P&gt;The authorization object S_QUERY should be used to give proper authorizations to the user for a query. This authorization object has a field named ACTVT which can take values 02 for Change, 23 for Maintain and 67 for Translate. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This value determines whether the user can create and modify the query. The possible authorizations in the object are as follows:  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  S_QUERY_ALL          Change, maintain and translate query  &lt;/P&gt;&lt;P&gt;  S_QUERY_UPD         Change and Translate  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Though the general concept of an ABAP query is moderately difficult, the results and the long term use of the ABAP query is worth the effort&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link..(with screen shot)&lt;/P&gt;&lt;P&gt;&lt;A href="http://allaboutsap.blogspot.com/2007/09/sap-query-step-by-step.html" target="test_blank"&gt;http://allaboutsap.blogspot.com/2007/09/sap-query-step-by-step.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2008 18:40:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query/m-p/3248640#M775563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-05T18:40:31Z</dc:date>
    </item>
  </channel>
</rss>

