SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
- SAP Community
m
m
Products and Technology Groups Partners Topics Events What's New Get Started
u
ni
t
y
SAP Community Products and Technology Enterprise Resource Planning ERP Blogs by Members
SAP Query - Creation & Execution - Table Join & Lo...
Former Member
2014 May 09 11:47 AM
40 Kudos 322,586
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
https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databas… 1/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
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.
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
https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databas… 2/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
Create a logical set of User Group to which the InfoSet Queries would be assigned.
SAP database have several numbers of tables in which the transactions, master data
gets stored and it’s practically not feasible to have all such fields for selection
when creating a query. Hence before the start of creating a query, InfoSet creation
is required.
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.
https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databas… 3/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
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://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databas… 4/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
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://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databas… 5/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
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.
https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databas… 6/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
We can select the Output Format, Variant assignment over the Basic List.
https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databas… 7/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
Click on
https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databas… 8/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
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:
https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databas… 9/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databa… 10/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
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.
https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databa… 11/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
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://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databa… 12/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
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.
14 Comments
Former Member
https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databa… 13/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
2014 May 09 4:32 PM
0 Kudos
Former Member
2014 May 09 5:25 PM
0 Kudos
Thanks...
former_member193854
Participant
2014 May 09 6:36 PM
0 Kudos
rane_prashant
Contributor
https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databa… 14/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
2014 May 11 1:29 PM
0 Kudos
Hello Jaymin,
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
mariks
Participant
2014 May 12 1:38 PM
0 Kudos
Former Member
2017 Nov 10 4:51 AM
https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databa… 15/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
0 Kudos
former_member183424
Active Contributor
2017 Nov 10 5:06 AM
0 Kudos
You are in comment section in a blog post. What help do you need? If you have any
doubt regarding this blog post, then ask that instead of just posting "Can anyone
help".
former_member132664
Member
2018 Dec 11 2:55 AM
0 Kudos
Hi Jaymin,
cigilr
Explorer
2019 Mar 15 9:56 AM
https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databa… 16/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
0 Kudos
Thanks
former_member210259
Member
2019 Sep 18 7:46 AM
0 Kudos
Can anyone also help for Making t-code after completing all the query building so
that user can use via t-code. Advance thanks..
ZAIED
samnovice_new
Participant
2019 Oct 01 12:01 PM
0 Kudos
zaiedbd
I hope it helps.
BR.
Sam
https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databa… 17/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
HamzaKhurshid
Explorer
2020 Dec 02 12:28 PM
0 Kudos
Very informative.
former_member706942
Explorer
2021 Jan 21 12:05 PM
0 Kudos
Nice explanation
Tokomak
Explorer
2022 Jul 05 2:49 AM
0 Kudos
Hello Sir,
https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databa… 18/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
How to create package that use in user group and tcode creation process for query
report?
Comment
ABAP CDS VIEW 2 ABAP CDS Views 2 ABAP CDS Views - BW Extraction 1
ABAP CDS Views - CDC (Change Data Capture) 2 ABAP DDIC CDS view 1
BAPI_PO_CREATE1 1 BAPI_SALESORDER_CREATEFROMDAT2 1
https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databa… 19/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
Related Content
Financial Accounting for Hierarchical Setup in Item-Based Services
in Enterprise Resource Planning Blogs by SAP Thursday
An in-depth look at clean core business processes, read our Clean Core for S/4
HANA Cloud paper!
in Enterprise Resource Planning Blogs by SAP Tuesday
Environment, Health, and Safety in SAP S/4HANA Cloud Public Edition 2502
in Enterprise Resource Planning Blogs by SAP a week ago
https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databa… 20/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
former_member213836
Active Participant
former_member182098
Active Contributor
https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databa… 21/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
former_member183424
Active Contributor
JayRamandika 8
DafinaZahra 6
rlaela 4
rohithkumar15 4
RaghavanKathamuthu 3
VKR_23 3
https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databa… 22/23
3/1/25, 2:48 PM SAP Query - Creation & Execution - Table Join & Lo... - SAP Community
former_member493884 3
Meka_Maduvandi_K 3
RajaGopalan 2
venkateshgolla 2
View all
Trademark Support
Cookie Preferences
Follow
https://community.sap.com/t5/enterprise-resource-planning-blogs-by-members/sap-query-creation-amp-execution-table-join-amp-logical-databa… 23/23