Skip to content
NextLytics
Megamenü_2023_Über-uns

Shaping Business Intelligence

Whether clever add-on products for SAP BI, development of meaningful dashboards or implementation of AI-based applications - we shape the future of Business Intelligence together with you. 

Megamenü_2023_Über-uns_1

About us

As a partner with deep process know-how, knowledge of the latest SAP technologies as well as high social competence and many years of project experience, we shape the future of Business Intelligence in your company too.

Megamenü_2023_Methodik

Our Methodology

The mixture of classic waterfall model and agile methodology guarantees our projects a high level of efficiency and satisfaction on both sides. Learn more about our project approach.

Products
Megamenü_2023_NextTables

NextTables

Edit data in SAP BW out of the box: NextTables makes editing tables easier, faster and more intuitive, whether you use SAP BW on HANA, SAP S/4HANA or SAP BW 4/HANA.

Megamenü_2023_Connector

NextLytics Connectors

The increasing automation of processes requires the connectivity of IT systems. NextLytics Connectors allow you to connect your SAP ecosystem with various open-source technologies.

IT-Services
Megamenü_2023_Data-Science

Data Science & Engineering

Ready for the future? As a strong partner, we will support you in the design, implementation and optimization of your AI application.

Megamenü_2023_Planning

SAP Planning

We design new planning applications using SAP BPC Embedded, IP or SAC Planning which create added value for your company.

Megamenü_2023_Dashboarding

Business Intelligence

We help you with our expertise to create meaningful dashboards based on Tableau, Power BI, SAP Analytics Cloud or SAP Lumira. 

Megamenü_2023_Data-Warehouse-1

SAP Data Warehouse

Are you planning a migration to SAP HANA? We show you the challenges and which advantages a migration provides.

Business Analytics
Megamenü_2023_Procurement

Procurement Analytics

Transparent and valid figures are important, especially in companies with a decentralized structure. SAP Procurement Analytics allows you to evaluate SAP ERP data in SAP BI.

Megamenü_2023_Reporting

SAP HR Reporting & Analytics

With our standard model for reporting from SAP HCM with SAP BW, you accelerate business activities and make data from various systems available centrally and validly.

Megamenü_2023_Dataquality

Data Quality Management

In times of Big Data and IoT, maintaining high data quality is of the utmost importance. With our Data Quality Management (DQM) solution, you always keep the overview.

Career
Megamenü_2023_Karriere-2b

Working at NextLytics

If you would like to work with pleasure and don't want to miss out on your professional and personal development, we are the right choice for you!

Megamenü_2023_Karriere-1

Senior

Time for a change? Take your next professional step and work with us to shape innovation and growth in an exciting business environment!

Megamenü_2023_Karriere-5

Junior

Enough of grey theory - time to get to know the colourful reality! Start your working life with us and enjoy your work with interesting projects.

Megamenü_2023_Karriere-4-1

Students

You don't just want to study theory, but also want to experience it in practice? Check out theory and practice with us and experience where the differences are made.

Megamenü_2023_Karriere-3

Jobs

You can find all open vacancies here. Look around and submit your application - we look forward to it! If there is no matching position, please send us your unsolicited application.

Blog
NextLytics Newsletter
Subscribe for our monthly newsletter:
Sign up for newsletter
 

Custom SYS Monitoring in SAP Datasphere

SAP Datasphere provides built-in monitoring capabilities for reviewing storage consumption, task execution, and overall system activity. This is useful for day-to-day administration, however monitoring screens alone do not always answer the longer-term questions technical and business teams need to explore such as: 

  • Which SQL statements repeatedly consume the most time or memory?

  • Are performance issues increasing after a release, data-load change, or new reporting requirement?

  • Which workloads should be investigated, optimized, or tracked over time?

  • Can technical monitoring data be combined with operational or business context in an Analytic Model (AM)?

A practical way forward is to make selected monitoring data from the SAP HANA SYS schema available in a SAP Datasphere SPACE as data assets.

What Are SAP Datasphere SYS Monitoring Views and How Do They Work?

The SYS schema contains system and monitoring views that provide both structural and runtime information about the underlying SAP HANA database.

Some views provide relatively stable metadata, such as table or column information. Others provide insight into workload and performance, including:

  • M_EXPENSIVE_STATEMENTS

  • M_MULTIDIMENSIONAL_STATEMENTS

  • M_MULTIDIMENSIONAL_STATEMENT_STATISTICS

  • M_SQL_PLAN_STATISTICS

and plenty more.

These views are highly useful for technical analysis. However, they are not automatically available as reusable reporting objects in a Datasphere space. In addition, monitoring information can be transient: records may be cleared, replaced, or become unavailable after system events or retention limits are reached.

That makes historical reporting difficult unless the data is captured deliberately.

Wrap, expose and consume SYS Views 

Since it's infeasible to expose the complete SYS schema, create a controlled wrapper view in the schema view with a database user. The wrapper can expose the fields required for the relevant reporting or monitoring scenario.

For example, a database user can create a view over M_SQL_PLAN_STATISTICS:

CREATE VIEW "NL_GENERAL#MANTOUSIS"."MONITORING_SQL_PLAN_STATS" AS
SELECT
 *
FROM "SYS"."M_SQL_PLAN_STATISTICS";

For productive use, replace SELECT * with an explicit list of required columns. This makes the object easier to maintain, reduces unnecessary data exposure, and supports a least-privilege design.

Wrapper view in SAP HANAWrapper view created in SAP HANA Database Explorer 

Once the view has been created and the required permissions are in place, it can be made available to the relevant Datasphere space, that’s NL_GENERAL in our scenario. The view then appears as a source under the database user in the Sources browser when you're trying to create a new view.

SYS wrapper view in SAP DatasphereSYS wrapper view available as a source in SAP Datasphere

From that point onward, the system-monitoring data can be used like any other Datasphere source.


Watch the recording of our webinar: 
"SAP Datasphere and the Databricks Lakehouse Approach"


Report on current system behaviour

A Datasphere view built on top of the wrapper can provide immediate visibility into expensive statements, SQL-plan activity, or multidimensional-query behaviour. Additionally it provides a flexible way to extend your monitoring in any way you require.

This supports focused monitoring dashboards based on the organisation’s own KPIs, thresholds, and operational processes, rather than relying only on standard monitoring screens.

System-monitoring data can also be combined with technical or business context. For example, SQL-plan trends could be analysed by reporting period, project release, data-load window, application, or business process.

By using the standard modelling approach for this, culminating in an Analytic Model, we can consume this report like any other: in SAC with a dedicated Story/Dashboard.

Build a historic monitoring view using data flows

Live monitoring views are not intended to serve as a long-term historic layer. To retain SQL-plan statistics over time, you can for example create a scheduled Data Flow that reads the Datasphere view and writes the results to a local history table.

In this example, the Data Flow DF_MONITORING_SQL_PLAN_STATS can run daily and store a dated snapshot of the MONITORING_SQL_PLAN_STATS view.

M_SQL_PLAN_STATISTICS → 
MONITORING_SQL_PLAN_STATS → 
DF_MONITORING_SQL_PLAN_STATS →
MONITORING_SQL_PLAN_STATS_HISTORY

The history table should include a snapshot timestamp so that each execution can be analysed in context. To achieve that, configure the Data Flow to append records rather than overwrite them to maintain a daily log.

This creates a reliable historical layer for identifying recurring SQL-plan patterns, comparing system behaviour before and after changes, and investigating long-term performance trends.

Data Flow DF_MONITORING_SQL_PLAN_STATS loading daily SQL-plan statisticsData Flow DF_MONITORING_SQL_PLAN_STATS loading daily SQL-plan statistics into a local history table

Hint: Depending on the source data, it might be necessary to add the Current System Timestamp as a calculated field and define this as an additional primary key in the target table to achieve a daily snapshot.

What Security and Performance Considerations Apply When Exposing SYS Views?

A strong implementation should remain selective, secure, and manageable:

  • Expose only the SYS views and fields needed for the use case.

  • Filter unnecessary technical records or columns as early as possible.

  • Treat SQL text and user-related fields carefully, as they may contain sensitive information.

  • Define a retention policy for the history table to avoid creating unnecessary storage growth.

  • Consider a suitable deduplication key if the Data Flow can be triggered more than once per day.

  • Consider a quick feasibility test for each object as access might be blocked by SAP.

Custom monitoring in SAP Datasphere: Our Conclusion

SAP Datasphere standard monitoring provides useful operational visibility, but selected SYS monitoring views can deliver far more value when they are brought into the analytics layer in a controlled way.
By wrapping relevant SYS views through a database user, exposing them to a Datasphere space, and persisting selected snapshots through Data Flows such as DF_MONITORING_SQL_PLAN_STATS, organisations can move from point-in-time monitoring to reusable reporting and historical analysis. Building an Analytic Model and SAC Story on top, provides further benefits.
The result is straightforward: monitoring data becomes a governed analytics asset and can be extended in a flexible way, just like all your other reporting.

Stay tuned for a follow-up blog, where we took this a step further and implemented a custom monitoring solution for a client with dynamic SQL, to report on data quality and load behavior.

If you are looking to unlock deeper system visibility, automate custom dynamic SQL monitoring, or turn your operational logs into actionable analytics models, let's talk. Reach out to our team today to discuss your specific architecture and design a tailored monitoring strategy for your organization.

 

FAQ - Custom monitoring in SAP Datasphere

Here you can find some of the most frequently asked question about custom monitoring in SAP Datasphere.

What are SAP Datasphere SYS views? SAP Datasphere SYS views are system-level database tables that expose real-time operational metadata, runtime statistics, and performance metrics for underlying HANA database execution.
How do you safely expose SYS monitoring views in SAP Datasphere? You safely expose SYS views by using a dedicated database user to wrap only the required SYS views and fields, restricting access, and granting consumption privileges directly to your designated Datasphere space.
Why should you build historical snapshot tables for SAP Datasphere monitoring? Standard SYS views only offer point-in-time, real-time status. Persisting snapshots via Data Flows into a target history table enables long-term trend analysis, historical behavior tracking, and capacity planning.
What sensitive data risk comes with exposing SAP SYS views? SYS views can contain sensitive operational data, including raw SQL query text, schema names, and user identifiers. These fields must be selectively filtered or masked during exposure to prevent data exposure.
How do you build custom analytics on top of SAP Datasphere operational metadata? Once SYS monitoring data is exposed to a space and persisted in target tables, you can construct Analytic Models and SAP Analytics Cloud (SAC) stories to visualize usage, query performance, and system health.

,

avatar

Dimitrios

Dimitrios has been working with Native HANA and SAP products since January 2020, and he joined NextLytics as an SAP consultant in early 2022. Thus, he has already gained a lot of hands-on experience with SAP Datasphere. In his free time, he enjoys hiking, watching movies and spending time with friends.

Got a question about this blog?
Ask Dimitrios

Custom SYS Monitoring in SAP Datasphere
7:13

Blog - NextLytics AG 

Welcome to our blog. In this section we regularly report on news and background information on topics such as SAP Business Intelligence (BI), SAP Dashboarding with Lumira Designer or SAP Analytics Cloud, Machine Learning with SAP BW, Data Science and Planning with SAP Business Planning and Consolidation (BPC), SAP Integrated Planning (IP) and SAC Planning and much more.

Subscribe to our newsletter

Related Posts

Recent Posts