0% found this document useful (0 votes)
440 views20 pages

Custom Analytical Queries

This blog post provides a step-by-step guide on creating Custom Analytical Queries in the SAP S/4HANA Embedded Analytics environment using the Custom Analytical Query app. It outlines the process of selecting fields, assigning them to rows and columns, adding custom fields and filters, and finally publishing the report for use in visualization applications. The app is designed for power users and offers an intuitive interface for generating reports without needing additional software.

Uploaded by

ann.ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
440 views20 pages

Custom Analytical Queries

This blog post provides a step-by-step guide on creating Custom Analytical Queries in the SAP S/4HANA Embedded Analytics environment using the Custom Analytical Query app. It outlines the process of selecting fields, assigning them to rows and columns, adding custom fields and filters, and finally publishing the report for use in visualization applications. The app is designed for power users and offers an intuitive interface for generating reports without needing additional software.

Uploaded by

ann.ali
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1/23/25, 1:05 PM How to use Custom Analytical Queries in SAP S/4HAN...

- SAP Community

Community

SAP Community  Products and Technology  Enterprise Resource Planning  ERP Blogs by Members

 How to use Custom Analytical Queries in SAP S/4HAN...

Enterprise Resource Planning Blogs by Members


Gain new perspectives and knowledge about enterprise resource planning in blog posts from community
members. Share your own comments and ERP insights today!

Blog  What are you looking for today?

How to use Custom Analytical Queries in SAP S/4HANA


Embedded Analytics?

victor_brosens
Participant

‎2022 Jul 06 4:15 PM

 15 Kudos  38,578

SAP Managed Tags: SAP S/4HANA, SAP S/4HANA Embedded Analytics

In this blog post you will learn step-by-step how to create a report in a SAP Fiori environment on
operational SAP S/4HANA data. This is done using the 'Custom Analytical Query' SAP Fiori app. This SAP
Fiori app is standard available in SAP S/4HANA Embedded Analytics and allows users to create reports
themselves, directly on the operational data. These reports can be consumed in SAP Fiori or in any other
visualization application like SAP Analysis for Office or SAP Analytics Cloud.

How to create a Custom Analytical Query?


To create a Custom Analytical Query the following steps need to be executed:

[Link] 1/20
1/23/25, 1:05 PM How to use Custom Analytical Queries in SAP S/4HAN... - SAP Community

Step 1: Start the Custom Analytical Query app

Step 2: Create a new report

Step 3: Select the fields

Step 4: Assign to rows and columns

Step 5: Add custom fields

Step 6: Add filters

Step 7: Publish

Step 1: Start the Custom Analytical Query app


Within the SAP Fiori environment, open the app 'Custom Analytical Queries' which can be found in the
category KPI Design.

Custom Analytical Query app in the SAP Fiori launchpad

When opening this app, an overview of the SAP pre-delivered reports (starting with C_) and manually
created reports (usually starting with Z) are presented. From this overview it is possible to create, edit or
delete the reports. In this blog post we are going to create a report.
[Link] 2/20
1/23/25, 1:05 PM How to use Custom Analytical Queries in SAP S/4HAN... - SAP Community

Note: it is possible to change SAP delivered reports. However, is it not advised to do so as changes will be
overwritten in future updates. Therefore, it is best to make a copy.

Custom Analytical Query app overview screen

Step 2: Create a new report


In this step we assume that the user knows which data is needed to create the report. In this example we
are going to use the view I_GLACCOUNTLINEITEMCUBE. This view contains all General Ledger data and
will be used to provide insight into the costs for all company codes in the system.

[Link] 3/20
1/23/25, 1:05 PM How to use Custom Analytical Queries in SAP S/4HAN... - SAP Community

Add Query Name and view in Data Source

After clicking OK a screen is shown with the description of the report (i.e. Label) and what the maximum
usage of the system when executing the report may be (i.e. Max. Processing Effort).

Add description (Label) and Max. Processing Effort


[Link] 4/20
1/23/25, 1:05 PM How to use Custom Analytical Queries in SAP S/4HAN... - SAP Community

By clicking on Save Draft, the report is saved. By clicking on the texts Field Selection, Display or Filters, you
can navigate to the different functionalities of the Custom Analytical Query app.

Step 3: Select the fields


With the help of the tab Field Selection we can choose which field should be part of the report. In this
example we want to add the Company Code, Sales Organization, Fiscal Year and Fiscal Period.

Field selection

The fields can easily be found by entering the description in the search bar. To add them to the report,
click the checkbox next to the field. By default, the field will be added to the free characteristics. From
this overview it is not possible to assign the fields directly to either the columns or the rows.

[Link] 5/20
1/23/25, 1:05 PM How to use Custom Analytical Queries in SAP S/4HAN... - SAP Community

Selected fields and measure selection

Next to the characteristics, we are also interested in the measures CreditAmountInCoCodeCrcy and
DebitAmountIncCoCodeCrcy. These are also selected.

Step 4: Assign to rows and columns


After the fields are selected, we move to the Display screen. Here the layout of the report can be defined
by assigning the selected fields to the rows, the columns or keep them in the free characteristics. Also the
order of the fields can be adjusted by using the Up and Down buttons. Next to that, new fields like
Restricted, Calculated and Converted measures and Counters can be created and added. This is shown in
the next step.

[Link] 6/20
1/23/25, 1:05 PM How to use Custom Analytical Queries in SAP S/4HAN... - SAP Community

Define layout of the report

In this example we want to see the measures per Fiscal Year, Fiscal Period and Company Code in the
currency of the Company Code. Dimensions that are not needed, like Sales Organization, are left in the
free characteristics section.

Step 5: Add custom fields


The SAP Fiori app has the possibility to add custom fields like Restricted, Calculated and Converted
measures. In this examples a Restricted measure named RM_CREDIT_2018, which only shows the Credit
values from 2018, is created.

By clicking on the button Add Restricted Measure, the systems asks for a name and description of the
new field.

[Link] 7/20
1/23/25, 1:05 PM How to use Custom Analytical Queries in SAP S/4HAN... - SAP Community

New Restricted Measure creation

Click OK and the screen where the filters can be filled in is shown. In this example we filter on Fiscal Year
2018.

Restricted measure settings

When looking at the preview of the report, you will see that for the new Restricted Measure only values
from 2018 are shown.

[Link] 8/20
1/23/25, 1:05 PM How to use Custom Analytical Queries in SAP S/4HAN... - SAP Community

Report preview

Next to Restricted Measures, it is also possible to create Calculated Measures.

Add Calculated measure

[Link] 9/20
1/23/25, 1:05 PM How to use Custom Analytical Queries in SAP S/4HAN... - SAP Community

Calculation and settings

It is also possible to convert the currency. In this example the Credit Amount in Company Code Currency is
converted to USD.

Add currency conversion

[Link] 10/20
1/23/25, 1:05 PM How to use Custom Analytical Queries in SAP S/4HAN... - SAP Community

Currency conversion settings

It is possible to preview the data at any step in the process. This is done by first save the report (Save
Draft or Publish) and secondly click the Preview button.

Save and get preview of the report

If the report is complete with all fields and calculations? Than it is time to add the filters.

[Link] 11/20
1/23/25, 1:05 PM How to use Custom Analytical Queries in SAP S/4HAN... - SAP Community

Preview of the report

Step 6: Add filters


In the last step we can limit the result set. This can be done with Fixed filters, which cannot be changed
by the users, or with User Input filters. A filter can be applied by clicking on the field. A pane appears on
the right side of the screen where the filter options are presented. In this example a filter is applied on
Sales Organization with the value NLDP (McCoy Motors DP). The entire result set will be limited to this
subset of data and users are not able to change it.

[Link] 12/20
1/23/25, 1:05 PM How to use Custom Analytical Queries in SAP S/4HAN... - SAP Community

Add filters to the report

Next to the filter on Sales Organization, a User Input filter is added on Fiscal year so the user can acquire
the data for a particular year. The default value will remain empty and the filter will be set as mandatory.

Add User Input Value

[Link] 13/20
1/23/25, 1:05 PM How to use Custom Analytical Queries in SAP S/4HAN... - SAP Community

When the report is executed, a variable screen requesting a Fiscal Year will pop up.

Variable screen

Step 7: Publish
When the developments of the report are finished, it is time to publish. This can be done by clicking the
Publish button. In this step, the view is generated and released for usage in visualization apps like SAP
Analytics Cloud or SAP Analysis for Office. Next to that, it is possible to link the report to an SAP Fiori tile
by adding it to a catalog. This will allow a specific group of users to run the report.

Conclusion
The standard Custom Analytical Query app provides sufficient possibilities when it comes to creating a
report on SAP S/4HANA data. The app is intuitive, user friendly and does not require additional software.
The apps is mainly focused on a specific group of end users, usually referred to as Power Users.

IT departments are best of by developing reports in the SAP BEx Query Designer or the SAP Query
Designer in SAP HANA Studio. Both options provide the same, and even more, flexibility and are
integrated in SAP Lifecycle Management. Next to that, it gives you the possibilities to add Constant
Selections, Exceptions, Conditions, navigational attributes and Customer Exit variables.

Tags:

Create Custom Analytical Query custom analytical queries Fiori

[Link] 14/20
1/23/25, 1:05 PM How to use Custom Analytical Queries in SAP S/4HAN... - SAP Community

3 Comments

shashankagg
Explorer


‎2023 Sep 04 6:26 AM

 0 Kudos

Can we create checkbox as a filter criteria and we should use custom sort based on this
checkbox?

hamza2017
Newcomer


‎2024 Aug 20 6:23 AM

 0 Kudos

Thank you for this incredibly informative and well-researched blog post!

chhareess16
Explorer


‎2024 Dec 04 10:42 AM

 0 Kudos

[Link] 15/20
1/23/25, 1:05 PM How to use Custom Analytical Queries in SAP S/4HAN... - SAP Community

Hello i wanted to extract material price group from I_productsales delivery .

when i was trying to create custom analytical query i didnt find this cds view do we have
any limitations?
how can i get material price group from which cds view i can make use of for creating
custom analytical query in sap public cloud?

You must be a registered user to add a comment. If you've already registered,


sign in. Otherwise, register and sign in.

Comment

Labels In This Area


"Best Practice" 1 "Data Source Migration" 1 "mm02" 1 "SAP Sales" SAP Cloud 1

$session in CDS 1 'abap' 1 *SAP" 1 - SAP 1 2023 Upgrade 1 @expertsap 2

@sapcommunity 1 A_PurchaseOrderItem additional fields 1 ABAP 5 ABAP 7.4 1

abap cds 1 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 ABAP development 2 ABAP Extensibility 1

ABAP Programming 1 ABAP Query 1 abapGit 1 ACCOSTRATE 1 ACDOCP 1

Adding your country in SPRO - Project Administration 1 Adobe form binding 1

Adobe forms 1 Adobe Printing 1 Advance Return Management 1

Advanced Intercompany Sales (5D2) 1 Advanced Returns Management 1

Advanced SAP Techniques 1 ADVANCED VARIANT CONFIGURATION 1 AgenticAI 1

agentless 1 AI and RPA in SAP Upgrades 1 ALV 1 ALV GRID 1 ALV Report 1

API and Integration 1 Application Development for SAP HANA Cloud 1

Approval Workflows 1 Ariba 1 ARM 1 Artificial Intelligence (AI) 1 ASN 1

Asset Management 1 Asset under construction 1 Assigned budget 1

Associations in CDS 1 Associations in CDS Views 2 Attachment List 1 audit 1

auditlog 1 authorization 1 Auto PO from GR 1 Availability date 1

[Link] 16/20
1/23/25, 1:05 PM How to use Custom Analytical Queries in SAP S/4HAN... - SAP Community

Azure Center for SAP Solutions 1 AzureSentinel 3 BADI 1 Bank 2

BAPI_PO_CREATE1 1 BAPI_SALESORDER_CREATEFROMDAT2 1

batch characteristics 1 Batch Classification 1 batch Determination 1

Batch Management 1 Best Practice 1 Billing 1 BRF+ 1 BRFPLUS 1

Budget for PRs 1 Bundled Cloud Services 1 business participation 1

Business Partner Master Data 2 Business Processes 2 Business Trends 1

Business Trends​1 Capacity Planning 1 CAPM 1 Carbon 1 CDS Annotations 2

CDS View with Parameter 2 Cental Finance 1 Central finance 1 CFIN 2

CFIN Document Splitting 1 Charge calculation 1 CL_GUI_ALV_GRID 1

Classical MRP 1 Cloud 2 cloud alm 1 Cloud Integration 1 cloud security 1

COGS SPLIT 1 Commitment Cost 1 Commitments by Cost Center 1

Related Content
What is SAP RISE support model
in Enterprise Resource Planning Blogs by Members yesterday

OData service for Fiori Analytical Table - [Link]


in Enterprise Resource Planning Q&A Tuesday

Embedded Analytics in SAP S/4HANA Cloud: Leveraging Data for Success


in Enterprise Resource Planning Blogs by SAP Tuesday

Custom CDS Views – What’s New up to 2502


in Enterprise Resource Planning Blogs by SAP Friday

Is it possible to set the "Key User Rel. State" of a CDS-View to Released?


in Enterprise Resource Planning Q&A Friday

Popular Blog Posts

[Link] 17/20
1/23/25, 1:05 PM How to use Custom Analytical Queries in SAP S/4HAN... - SAP Community

IDoc Basics For Functional Consultants

former_member213836
Active Participant

 1088462  320  681

LSMW for Functional Consultants in simple step-by-step way

former_member182098
Active Contributor

[Link] 18/20
1/23/25, 1:05 PM How to use Custom Analytical Queries in SAP S/4HAN... - SAP Community

 644597  295  393

Pricing procedure Steps and Details in SAP MM

former_member183424
Active Contributor

 781093  161  328

Top Kudoed Authors

Kaushik_Samanta  5

Jigang_Zhang张吉刚  3

Sharadha1  2

former_member185682  2

[Link] 19/20
1/23/25, 1:05 PM How to use Custom Analytical Queries in SAP S/4HAN... - SAP Community

surykumar158  2

kumarsanjeev  2

MarianoCabalen  2

RaghavanKathamuthu  2

arghadipkar3013  2

satishbabu_bodepudi  2

View all

Follow

Privacy Terms of Use

Copyright Legal Disclosure

Trademark Support

Cookie Preferences

[Link] 20/20

You might also like