The ABAP Platform Examples for Analytical Data Modeling provide an analytical data model that is based on the ABAP Flight Reference Scenario. It allows to get familiar with modern, ABAP-CDS based analytical data modeling and provides examples for the most prominent features of the Embedded Analytics functionality in the ABAP Platform. You can either use the provided data model as is or build your own data model using parts of the examples.
Make sure to fulfill the following prerequisites:
- You have access to a recent ABAP Platform Cloud instance.
- You have downloaded and installed the most recent version of ABAP Development Tools (ADT). See the installation page.
- You have created an ABAP Cloud Project in ADT that allows you to access your ABAP Environment instance.
- You have installed the abapGit plug-in for ADT from the ABAPGit update site.
- You have used abapGit to import the ABAP Flight Reference Scenario for ABAP Platform Cloud as described in the resrective README.
Use the abapGit plug-in to import the ABAP Platform Examples for Analytical Data Modeling by executing the following steps:
- In your ABAP cloud project, create the ABAP package
/DMO/ANA_FLIGHT
(using the superpackage/DMO/SAP
) as the target package for the demo content to be downloaded (leave the suggested values unchanged when following the steps in the package creation wizard). - To add the abapGit Repositories view to the ABAP perspective, click
Window
>Show View
>Other...
from the menu bar and chooseabapGit Repositories
. - In the abapGit Repositories view, click the
+
icon to clone an abapGit repository. - Enter the following URL of this repository:
https://github.com/SAP-samples/abap-platform-analytics-data-modeling.git
and choose Next. - Enter the newly created package
/DMO/ANA_FLIGHT
as the target package and choose Next. - Create a new transport request that you only use for this demo content installation (recommendation) and choose Finish to link the Git repository to your ABAP cloud project. The repository appears in the abapGit Repositories View with status Linked.
- Right-click on the new ABAP repository and choose
pull
to start the cloning of the repository contents. Note that this procedure may take a few minutes. - Once the cloning has finished, the status is set to
Pulled Successfully
. (Refresh theabapGit Repositories
view to see the progress of the import). - Refresh the project tree.
As a result of the installation procedure above, the ABAP system creates an inactive version of all artifacts of the demo content and adds the sub package /DMO/ANA_FLIGHT_QUERY
to the target package that contains additional analytical queries that demonstrate various features of embedded analytics.
NOTE: The namespace /DMO/ is reserved for the demo content. Apart from the downloaded demo content, do not use the namespace /DMO/ and do not create any development objects in the downloaded packages. You can access the development objects in /DMO/ from your own namespace.
To activate all development objects from the /DMO/ANA_FLIGHT
package:
- Click the mass-activation icon (Activate Inactive ABAP Development Objects) in the toolbar.
- In the dialog that appears, select all development objects in the transport request (that you created for the demo content installation) and choose
Activate
. (The activation may take a few minutes.)
To fill the demo database tables:
- Expand the package structure in the Project Explorer
/DMO/FLIGHT_LEGACY
>Source Code Library
>Classes
. - Open the data generator class
/DMO/CL_FLIGHT_DATA_GENERATOR
and go tolcl_flight_data_generator
. - Find the METHOD
build_connection_recurrency
and change the variablelv_days_between
to use the constantcv_days_between_4weeks
. The resulting code should now look like this:DATA(lv_days_between) = cv_days_between_4weeks.
to get data that is better suited for analytical purposes. - Mass-activate.
- Now press
F9
to run the generator as Console Application.
NOTE: Even if you did run the generator before, you need to run the generator again after having installed the ABAP Platform Examples for Analytical Data Modeling to get additional analytics-specific example data e.g. for hierarchies.
NOTE: The data generator will always generate "current" data around the date it was trigered. The demo views instead may have fixed dates e.g. for parameter defaults or in filter conditions. Therefore please check and adapt these dates in case you experience issues when previewing data.
To be able to use the currency conversion feature, you need the currency conversion rates to be available in your system. If loading currency conversion rates is not set up in your system, you may use the following procedure for lading the rates one time (or on demand):
- Create a new package of your choice, e.g.
ZCURR_CONV
. - Import the Github repo
https://github.com/SAP-samples/cloud-abap-exchange-rates
into the new package. - Mass-activate.
- Check the README.md of the repo for instructions how to use.
- Try the XML import from the European Central Bank by running
zcl_ecb_exchange_rates_xml
as console application (F9
). - As an alternative implement class
zcl_ecb_exchange_rates_xml
and run it in the console. The code of the class can be found in the text filezcl_ecb_exchange_rates_xml.aba
.
NOTE: Some queries do have fixed dates for the currency conversion in the demo content. You may need to update the dates in order to match the available conversion rates in your system by adapting the exchange_rate_date
parameter value in the currency_conversion
function of the query.
- Make sure all development objects are fully activated.
- Open
/DMO/ANA_C_AirportCapaQry
in ADT. - Right-click
/DMO/ANA_C_AirportCapaQry
and chooseOpen With
->Data Preview
. - A browser window should open that displays a multi-dimensional dat preview of the analytical query.
This project is provided "as-is": there is no guarantee that raised issues will be answered or addressed in future releases. For additional support, please ask questions in SAP Community.
Copyright (c) 2025 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.