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

Dashboarding

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 Teaser
Sign up now for our monthly newsletter!
Sign up for newsletter
 

How to use TensorFlow with SAP HANA EML

SAP HANA External Machine Learning (EML) as part of the SAP HANA Application Function Library (AFL) allows the execution of already trained TensorFlow models. This allows you to benefit from the advantages of this framework and address many machine learning issues. TensorFlow is particularly suitable for the application of neural networks, for example in deep learning.

What is TensorFlow?

TensorFlow is a platform independent open source framework for machine learning, artificial intelligence and deep learning, which was originally developed by Google. It offers a wide range of possible applications, for example in the areas of image recognition, speech recognition and time series analysis and enables creation of learning neural networks. It is characterized by excellent scalability and can be used in an on-premise scenario or in the cloud on a variety of computer cores (CPUs, GPUs, TPUs). Furthermore, TensorFlow supports several programming languages such as Python and C++.

How can I use TensorFlow with SAP HANA?

The integration of Google TensorFlow into SAP HANA is based on the SAP HANA Application Function Library (AFL). It is possible to interact with the TensorFlow models via SQL Script. This SQL script is executed in SAP HANA. Using the gRPC remote procedure call from Google, SAP HANA accesses models exported in SavedModel format from the TensorFlow Serving system.

An overview of the architecture can be found in the following sketch:

EML architecture

With the AFL framework, predefined TensorFlow models can be called remotely via gRPC calls, which are encapsulated in AFL procedures. The EML AFL is the TensorFlow Serving Client implementation for SAP HANA.

Using the TensorFlow ModelServer (TMS), TensorFlow models exported in SavedModel format can be executed via gRPC remote procedure calls. The models are stored in SavedModel format on the TMS. The active models are models that are available for execution. The gRPC server serves as an interface for communication with the TMS client. 


How to bring SAP BW and state of the art machine learning together

Whitepaper Machine Learning


Requirements

To be able to use SAP HANA EML functions, you need the SAP HANA Platform with the matching version of EML. You also must install the Application Function Library (AFL), which contains the External Machine Learning Library (EML). Please note that the revision number of the AFL must match the revision number of SAP HANA. Finally, you must activate the Script Server on the SAP HANA instance. For more information, see SAP Notes 1898497 and 1650957.

Deployment scenarios of SAP HANA EML

Deployment scenarios

The TMS can be used in the SAP HANA landscape or on separate hardware resources.

TMS Co-Deployment in the SAP-HANA-Landscape

Co-deployment in SAP HANA is the simplest setup, as no additional hardware is required. This type of setup is mainly used for test, development and other non-productive scenarios. For additional security and robustness, the TMS instances should be configured so that they run in a suitably configured container on the host computers.

TMS deployment on separate hardware resources

In production environments, however, TMS resources must be kept separate from SAP HANA.

Restrictions

Due to special characteristics of the HANA database not all TensorFlow data types and shapes are supported. External machine learning AFL supports those Tensor shapes and data types that are relatively easy to map between standard SQL tables and data types and tensors.

An overview of the supported data types and forms can be found in the following table:

Table-TensorFlow-and-HANA-data-typsAnother major limitation is the fact that (re)training of the models is not possible with EML. Only pre-trained models can be executed.

Our Summary - TensorFlow with SAP HANA EML

SAP HANA External Machine Learning (EML) generates predictions as part of the SAP Application Function Library (AFL) using externally pre-trained TensorFlow models. As a platform, TensorFlow is state of the art, popular with business users and can derive valuable forecasts from data. However, the possibility to train the model or update it over time is missing. Furthermore, not all tensor types are supported due to HANA-specific limitations. Therefore the tool cannot represent the full ML life cycle and is complicated to use. Business users in particular often prefer to use TensorFlow via the programming language Python and have little knowledge of the corresponding SAP tools.

If you want to gain valuable insights while maintaining full insight and control, we recommend our white paper "SAP BW and State of the Art Machine Learning". In this paper, we examine SAP's machine learning portfolio and give clear recommendations on how you can generate valuable added value from your data.

 

Learn more about Machine Learning and AI

avatar

Apostolos

Apostolos has been a Data Engineering Consultant for NextLytics AG since 2022. He holds experience in research projects regarding deep learning methodologies and their applications in Fintech, as well as background in backend development. In his spare time he enjoys playing the guitar and stay up to date with the latest news on technology and economics.

Got a question about this blog?
Ask Apostolos

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