This repository contains the material for the Session DT266 | Troubleshoot and optimize extensions for ABAP Cloud in cloud ERP.
Ensuring optimal performance and stability of your ABAP Cloud-based extensions is crucial to long-term success. Learn techniques and best practices for troubleshooting and optimizing custom code in the Cloud ERP. Use powerful tools like the ABAP Cross Trace to get deep insights into execution flows and resource consumption. This session introduces attendees how to analyze custom extensions in SAP Fiori Apps within ABAP Cloud using tools like ABAP Debugger, Feed Reader, ABAP Cross Trace, ABAP Trace, SQL Trace, Memory Analyzer, Table Comparison Tool.
Note
DISCLAIMER:
Please note that information about SAP‘s strategy and possible future developments is subject to change and may be changed by SAP at any time for any reason without prior notice. Check out the SAP Road Map Explorer↗ and the ABAP Cloud Roadmap↗ for more details.
- Access the presentation: 📄DSAG_DT266.pdf (extended version)↗
Participants should have an interest in exploring topics through guided exercises and should have the following knowledge:
- Basic of ABAP knowledge↗
- Basic knowledge of ABAP Development Tools for Eclipse (ADT)↗
- Basic knowledge of ABAP Core Data Services (CDS)↗
- Basic understanding of ABAP RESTful Application Programming Model (RAP)↗
To complete the practical exercises in this workshop, you need the latest version of the ABAP Development Tools for Eclipse (ADT) on your laptop or PC
- The latest Eclipse platform and the latest ABAP Development Tools (ADT) plugin↗ must be installed
- The web browser settings in your ADT installation↗ must be adjusted.
And in addition you need the latest version of the MS Visual Studio Code on your laptop or PC with the SQL analyzer tool for SAP HANA
| Exercise Blocks | -- |
|---|---|
| Getting Started | -- |
| Getting Started | -- |
| Exercise Block for Functional Analysis | -- |
| Exercise 1: Analyze Errors with the Feed Reader | -- |
| Exercise 2: Usage of the Memory Inspector | -- |
| Exercise 3: Usage of the ABAP Cross Trace | -- |
| Exercise Block for Performance Analysis | -- |
| Exercise 4: Performance Analysis and Improvement using ABAP Trace and Table Comparison Tool | -- |
| Optional Exercises for Performance Analysis | -- |
| Exercise 4: Performance Analysis and Improvement using ABAP Trace and Table Comparison Tool | -- |
| Exercise 5: SQL Trace Analysis in SAP HANA SQL Analyzer | -- |
In the Getting Started section we outline how to logon to the system and to access your package for these exercises. We shortly introduce the Fiori App to use in the exercises.
In Exercise 1 a runtime error occurs for specific input data. With the tool Feed Reader and the ABAP Debugger we examine the root cause. Here a specific case is not handled correctly in a single line of ABAP code.
In Exercise 2 after a change in the ABAP code an Out-Of-Memory error is thrown. This runtime error is usually not related to the call of a single line of code. We analyze with the Memory Inspector the memory consumption and increase.
In Exercise 3 you will then use the ABAP Cross trace for tracing and analysing ABAP Cloud applications across different runtime components. The tool is useful to track down errors or unexpected behavior even without runtime errors.
The focus of Exercise 4 is on performance analysis using the ABAP Trace. There we learn different techniques to improve the runtime in ABAP code. In addition with help of the Table Comparison Tool we analye a functional error introduced with one of our optimizations.
In Exercise 5 we perform a code push down to the HANA Database using CDS views. Here we learn to create an SQL trace and analyze the execution plan in the HANA SQL Analyzer in Visual Studio Code.
So let us start and have a look at the Getting Started section: Getting Started - Mandatory, please check.
Please read the CONTRIBUTING.md to understand the contribution guidelines.
Please read the SAP Open Source Code of Conduct.
Support for the content in this repository is available during the actual time of the online session for which this content has been designed. Otherwise, you may request support via the Issues tab.
Copyright (c) 2025-2026 SAP SE or an SAP affiliate company and teched2025-DT266 contributors. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file; you may not use any file of this project except in compliance with the License.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the LICENSE for the specific language governing permissions and limitations under the License.