SAP Query - Creation & Execution - Table Join & Logical Database - SAP Blogs
SAP Query - Creation & Execution - Table Join & Logical Database - SAP Blogs
Products
Products Industries
Industries Support
Support Training
Training Community
Community Developer
Developer Partner
Partner
About
About
Home / Community / Blogs + Actions
Jaymin Bhatt
more by this author
FIN (Finance)
share
0 share
0 tweet share
0
Follow
https://blogs.sap.com/2014/05/09/sap-query-creation-execution-table-join-logical-database/ 1/13
6/9/2017 SAP Query – Creation & Execution – Table Join & Logical Database | SAP Blogs
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.
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
The Terminologies:
SAP Query Area is a set of objects having queries, InfoSets and User
Groups which are consistent.
https://blogs.sap.com/2014/05/09/sap-query-creation-execution-table-join-logical-database/ 2/13
6/9/2017 SAP Query – Creation & Execution – Table Join & Logical Database | SAP Blogs
Create a logical set of User Group to which the InfoSet Queries would be
assigned.
It allows selecting Fields from either the tables selected or the logical
database used to get display/select in the output.
https://blogs.sap.com/2014/05/09/sap-query-creation-execution-table-join-logical-database/ 3/13
6/9/2017 SAP Query – Creation & Execution – Table Join & Logical Database | SAP Blogs
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.
https://blogs.sap.com/2014/05/09/sap-query-creation-execution-table-join-logical-database/ 4/13
6/9/2017 SAP Query – Creation & Execution – Table Join & Logical Database | SAP Blogs
You can even change the text of the Fields that is getting displayed over
the Output.
All the InfoSet queries which are created to be assigned to one or more
user group
https://blogs.sap.com/2014/05/09/sap-query-creation-execution-table-join-logical-database/ 5/13
6/9/2017 SAP Query – Creation & Execution – Table Join & Logical Database | SAP Blogs
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).
https://blogs.sap.com/2014/05/09/sap-query-creation-execution-table-join-logical-database/ 6/13
6/9/2017 SAP Query – Creation & Execution – Table Join & Logical Database | SAP Blogs
We can select the Output Format, Variant assignment over the Basic
List.
Field.
https://blogs.sap.com/2014/05/09/sap-query-creation-execution-table-join-logical-database/ 7/13
6/9/2017 SAP Query – Creation & Execution – Table Join & Logical Database | SAP Blogs
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.
https://blogs.sap.com/2014/05/09/sap-query-creation-execution-table-join-logical-database/ 8/13
6/9/2017 SAP Query – Creation & Execution – Table Join & Logical Database | SAP Blogs
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
https://blogs.sap.com/2014/05/09/sap-query-creation-execution-table-join-logical-database/ 9/13
6/9/2017 SAP Query – Creation & Execution – Table Join & Logical Database | SAP Blogs
accessed from Tables, Logical Database, Table joins & from Infosets also.
We get an option of extracting the data from a Table / Table Join / Logical
Database / SAP Infoset
Once all the required tables are been assigned and joined, click no the
Back Icon to Create the Selection / Output Screen.
https://blogs.sap.com/2014/05/09/sap-query-creation-execution-table-join-logical-database/ 10/13
6/9/2017 SAP Query – Creation & Execution – Table Join & Logical Database | SAP Blogs
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.
Alert Moderator
5 Comments
You must be Logged on to comment or reply to a post.
https://blogs.sap.com/2014/05/09/sap-query-creation-execution-table-join-logical-database/ 11/13
6/9/2017 SAP Query – Creation & Execution – Table Join & Logical Database | SAP Blogs
Kumar R
Good Document 🙂
Thanks…
GT SAP
Hello Jaymin,
Thanks for sharing the document.
Is it possible for you to share one example of logical database query for ADA?
Thanks in advance!
my email ID [email protected]
B/R
Prashant Rane
Sreekanta Marikeri
https://blogs.sap.com/2014/05/09/sap-query-creation-execution-table-join-logical-database/ 12/13
6/9/2017 SAP Query – Creation & Execution – Table Join & Logical Database | SAP Blogs
https://blogs.sap.com/2014/05/09/sap-query-creation-execution-table-join-logical-database/ 13/13