<?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 Report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-report/m-p/3328698#M797322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Case:&lt;/P&gt;&lt;P&gt;To keep it simple, I chose a very simple case where I join the tables MARA and MAKT with basic Material details and descriptions as the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T.Code SQ03&lt;/P&gt;&lt;P&gt;Create user group, enter description &amp;amp; save&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter User Group name &amp;amp; Click on CREATE&lt;/P&gt;&lt;P&gt;Enter description in the next screen (below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After saving click on the button Assign users and Infosets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Multiple users can be assigned to the group &lt;/P&gt;&lt;P&gt;After assigning, save &amp;amp; go back &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To know the Users settings click on the &amp;#147;Description&amp;#148; button in the main screen you can get the details as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now go to T.Code SQ02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Infoset, join &amp;amp; relate tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter Infoset name &amp;amp; Click on CREATE&lt;/P&gt;&lt;P&gt;Enter description in the next screen (below)&lt;/P&gt;&lt;P&gt;Enter main table name in the fiels circled in red below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Infoset's initial screen will appear with the table specified earlier (as shown below)&lt;/P&gt;&lt;P&gt;Now click on the (encircled in red) to insert the next Table for joining (MAKT in this case)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As soon as you mention the table name and hit Enter, the Infoset screen will display the seciond table showing the primary key link to the base table as shown below (MATNR in this case)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now check the Infoset for inconsistencies and on finding none, you can bo back by clicking the BACK button&lt;/P&gt;&lt;P&gt;After clicking the BACK button the below screen appears in that choose the option &amp;#147;Create Empty Field Groups&amp;#148;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the above selection is been selected the below screen appears with collapsible menus for each table to seledct fields for selection and display&lt;/P&gt;&lt;P&gt;Drill down the tables and simply drag and drop the fields to the right hand side to their respective tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selected fields are displayed in the screen below&lt;/P&gt;&lt;P&gt;Now Check the Infoset for inconsistencies; on finding none, SAVE and GENERATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then click the button "ROLE/USER GROUP ASSIGNMENT" in the main screen to assign the Role. The Below screen appears in that Activate the Assigned table against the User Group name &amp;#147;ZKAR_UG&amp;#148;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now save &amp;amp; go back&lt;/P&gt;&lt;P&gt;Now go to T.Code SQ01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on the button "INFOSET QUERY" to see the screeb below&lt;/P&gt;&lt;P&gt;Select the ifnoset ("ZKAR_INFOSET" in thos case)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After selecting the InfoSet below screen appears&lt;/P&gt;&lt;P&gt;Here you can select the fields for output and selection separately&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ensure the Output &amp;amp; the Selection Fields are in VALUE &amp;amp; Not in TEXT. If it is a TEXT then in the screen in the menu bar you have &amp;#147;EDIT&amp;#148; option in that select &amp;#147;SETTINGS&amp;#148; the below screen comes in that ensure the Selection &amp;amp; the output is in VALUES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Output tab ensure the Type of Output list as &amp;#147;BASIC LIST&amp;#148; &amp;amp; the Type of Output as &amp;#147;SAP LIST VIEWER&amp;#148; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Default: Val/Text Tab ensure for the Output &amp;amp; Selection the &amp;#147;VALUE&amp;#148; radio button is selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now click enter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that select which are the fields to be the selection fields &amp;amp; which are the fields to be the listed fields, that is the output fields.&lt;/P&gt;&lt;P&gt;After doing the above process save the settings by clicking the save button &amp;amp; go back&lt;/P&gt;&lt;P&gt;When you click the save button the below screen appears in that Query Name will be generated automatically by the System Title can be defined by us&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats it!!! your SAP Query is ready. Click on Execute to run the Query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assigning a t-code to your query is simple. There are 2 ways to it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute the query; go to "Status" on menu bar; take the program name; go to SE93; create &amp;amp; assign your own "Z" transaction to the query&lt;/P&gt;&lt;P&gt;Go to query - more functions - reportname; take the program name; go to SE93; create &amp;amp; assign your own "Z" transaction to the query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data from internet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sumesh Nair on Jan 29, 2008 10:43 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2008 05:13:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-29T05:13:18Z</dc:date>
    <item>
      <title>ABAP Query Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-report/m-p/3328696#M797320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt; Can anyone please provide me with the tutorial on how to create an ABAP Query Report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 05:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-report/m-p/3328696#M797320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T05:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Query Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-report/m-p/3328697#M797321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An ABAP/4 query can be designed in four steps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Creation of a user group &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Creation of functional area &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Assignment of user group to functional area &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Creation of the query based on functional area &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The various objects that form an ABAP query can be created in the following 2 ways:&lt;/P&gt;&lt;P&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;&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;SQ02   Functional Area &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQ03   User group &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 05:09:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-report/m-p/3328697#M797321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T05:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP Query Report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-report/m-p/3328698#M797322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Case:&lt;/P&gt;&lt;P&gt;To keep it simple, I chose a very simple case where I join the tables MARA and MAKT with basic Material details and descriptions as the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;T.Code SQ03&lt;/P&gt;&lt;P&gt;Create user group, enter description &amp;amp; save&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter User Group name &amp;amp; Click on CREATE&lt;/P&gt;&lt;P&gt;Enter description in the next screen (below)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Save&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After saving click on the button Assign users and Infosets&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Multiple users can be assigned to the group &lt;/P&gt;&lt;P&gt;After assigning, save &amp;amp; go back &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To know the Users settings click on the &amp;#147;Description&amp;#148; button in the main screen you can get the details as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now go to T.Code SQ02&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Infoset, join &amp;amp; relate tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter Infoset name &amp;amp; Click on CREATE&lt;/P&gt;&lt;P&gt;Enter description in the next screen (below)&lt;/P&gt;&lt;P&gt;Enter main table name in the fiels circled in red below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Infoset's initial screen will appear with the table specified earlier (as shown below)&lt;/P&gt;&lt;P&gt;Now click on the (encircled in red) to insert the next Table for joining (MAKT in this case)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As soon as you mention the table name and hit Enter, the Infoset screen will display the seciond table showing the primary key link to the base table as shown below (MATNR in this case)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now check the Infoset for inconsistencies and on finding none, you can bo back by clicking the BACK button&lt;/P&gt;&lt;P&gt;After clicking the BACK button the below screen appears in that choose the option &amp;#147;Create Empty Field Groups&amp;#148;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the above selection is been selected the below screen appears with collapsible menus for each table to seledct fields for selection and display&lt;/P&gt;&lt;P&gt;Drill down the tables and simply drag and drop the fields to the right hand side to their respective tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The selected fields are displayed in the screen below&lt;/P&gt;&lt;P&gt;Now Check the Infoset for inconsistencies; on finding none, SAVE and GENERATE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then click the button "ROLE/USER GROUP ASSIGNMENT" in the main screen to assign the Role. The Below screen appears in that Activate the Assigned table against the User Group name &amp;#147;ZKAR_UG&amp;#148;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now save &amp;amp; go back&lt;/P&gt;&lt;P&gt;Now go to T.Code SQ01&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click on the button "INFOSET QUERY" to see the screeb below&lt;/P&gt;&lt;P&gt;Select the ifnoset ("ZKAR_INFOSET" in thos case)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After selecting the InfoSet below screen appears&lt;/P&gt;&lt;P&gt;Here you can select the fields for output and selection separately&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ensure the Output &amp;amp; the Selection Fields are in VALUE &amp;amp; Not in TEXT. If it is a TEXT then in the screen in the menu bar you have &amp;#147;EDIT&amp;#148; option in that select &amp;#147;SETTINGS&amp;#148; the below screen comes in that ensure the Selection &amp;amp; the output is in VALUES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Output tab ensure the Type of Output list as &amp;#147;BASIC LIST&amp;#148; &amp;amp; the Type of Output as &amp;#147;SAP LIST VIEWER&amp;#148; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Default: Val/Text Tab ensure for the Output &amp;amp; Selection the &amp;#147;VALUE&amp;#148; radio button is selected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now click enter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that select which are the fields to be the selection fields &amp;amp; which are the fields to be the listed fields, that is the output fields.&lt;/P&gt;&lt;P&gt;After doing the above process save the settings by clicking the save button &amp;amp; go back&lt;/P&gt;&lt;P&gt;When you click the save button the below screen appears in that Query Name will be generated automatically by the System Title can be defined by us&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats it!!! your SAP Query is ready. Click on Execute to run the Query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assigning a t-code to your query is simple. There are 2 ways to it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Execute the query; go to "Status" on menu bar; take the program name; go to SE93; create &amp;amp; assign your own "Z" transaction to the query&lt;/P&gt;&lt;P&gt;Go to query - more functions - reportname; take the program name; go to SE93; create &amp;amp; assign your own "Z" transaction to the query&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data from internet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sumesh Nair on Jan 29, 2008 10:43 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 05:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-query-report/m-p/3328698#M797322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T05:13:18Z</dc:date>
    </item>
  </channel>
</rss>

