SAP Query - Creation & Execution - Table Join & Logical
SAP Query - Creation & Execution - Table Join & Logical
05-09-2014 11:47 AM
38 Kudos
SAP Query is used to create reports for users who have little knowledge about
SAP Table data storage structure. SAP Query allows evaluating data in the SAP
system.
SAP Query offers users a broad range of ways to define reporting programs
and create different types of reports such as basic lists, statistics, and ranked
lists.
Following are the major components which are associated with SAP Query:
Info Sets - Are base for the Query and it contains one or more database
table details
Queries – For the User to create and generate the Query
User Group – To restrict set of Users for a specific Query plus for
Authorizations
Quick Viewer - A simple tool for quick report generation
SAP Query Area is a set of objects having queries, InfoSets and User Groups
which are consistent.
Standard Area – They are Client Specific Queries and do not create an
Work Bench Request
Global Area - Queries in the Global Area are Client Independent
It allows selecting Fields from either the tables selected or the logical
database used to get display/select in the output.
The InfoSet creation can be made with the Combination of Tables (Table
Join), Direct read from a Single Table or with the help of Logical Database.
The Red Box marked Icon allows adding more tables under the join.
Field Group contains the Fields which are required either to get in the report
output or in the selection screen.
Drag the Fields for the “Data Fields” to the relevant Field Groups to appear in
the report.
You can even change the text of the Fields that is getting displayed over the
Output.
Once the InfoSet is created, it needs to be generated by click on "Generation"
icon.
All the InfoSet queries which are created to be assigned to one or more user
group
Click on Save button for the assignment.
Once the InfoSets are created and assigned to User Group, Query needs to be
designed. It is basically known as Query Painter in which we design basic lists
in WYSIWYG mode (what-you-see-is-what-you-get).
We need to select the User Group first in which query needs to be designed.
Click on icon to select the user group.
We can select the Output Format, Variant assignment over the Basic List.
The LDB is special type of ABAP program that combines the contents of
certain related database tables and retrieves some related data and make it
available to application programs. The LDB usually consists of the components
like Structure, Selections and Database programs.
Example:
Once the Table are copied follow the same steps as mentioned above for
creation of Field Groups, Query Creation & Execution.
Quick Viewer is tool to generate report with basic lists. Quick View Reports are user
dependent. While defining a Quick View Tool report data can be accessed from Tables,
Logical Database, Table joins & from Infosets also.
Once all the required tables are been assigned and joined, click no the Back
Icon to Create the Selection / Output Screen.
Select all the required fields, which are needed as a part of Selection Screen
and Report Output Layout and save the Quick Viewer Query.
To execute teh Query, Click on Execute Button to the run the Quick Viewer.
Above are the simple options of creating report with the help of Queries.