Skip to Content
Product Information
Author's profile photo Venkata Raghu Banda

Embedding Machine Learning into SAP S/4HANA

Part 6 of the blog series:

A podcast on this topic is also available here.

A blog series is in works around the topic of the ISLM framework and how it is leveraged for building machine learning scenarios!

Continuing our blog series after a brief interruption due to the unprecedented pandemic times, let us now dive into the details of how you can build machine learning and predictive analytics into SAP S/4HANA. In the earlier blog, we discussed briefly the various use cases around embedding and consuming machine learning services with SAP S/4HANA by explaining the way these use cases are organized. Let us now look into the mechanics of how this functionality is embedded into SAP S/4HANA.

In the blog series earlier, while discussing the architecture and the different approaches of doing predictive analytics and machine learning with SAP S/4HANA, we explained the concept of the Predictive Analytics Integrator (PAi) and the key role it plays while embedding this machine learning functionality. Now we are releasing the second version of the PAi which is called Intelligent Scenario Lifecycle Management (ISLM) in Q3 2020. While PAi was focused on embedding HANA’s APL library directly without coding, the HANA PAL algorithms could be embedded using generic coding methodology into SAP S4HANA. Now with ISLM technology, you could embed HANA PAL and HANA APL without any coding into the SAP S/4HANA business applications. The lifecycle management of ISLM handles this approach beautifully. Furthermore, you could also leverage the ISLM technology to leverage the other machine learning algorithms from R programming, Tensor Flow, Python libraries etc., using the side-by-side approach which we shall discuss in the next blog – “Expanding the digital core with SAP Business Technology Platform“.

Typically the need here is to handle the embedding of machine learning functionality with minimal or no movement of data. These algorithms used in embedded ML are very performance intensive as high volumes of data are handled and processed. As explained earlier with SAP HANA you have the Predictive Analysis Library (PAL) and Automated Predictive Library (APL) application libraries that provide statistical and mining algorithms. While the SAP HANA APL has built-in operations like feature engineering and detection of adequate algorithms, the SAP HANA PAL library provides more than 100 different flavors of ML algorithms. The purpose of PAi aka ISLM is to provide a common interface for the consumption of the ML models independent of the underlying predictive engine to provide predictions and results. This modeling and administrative tool is hugely helpful in managing the complete lifecycle of the model creation, model training, model adoption and model application into the SAP S/4HANA business processes.

The following pictures gives a quick overview of how ISLM can help to articulate in creating the ML models and embed into the SAP S/4HANA applications. Here we are using the PAL (also called HEMI – HANA Embedded Machine Language Interface) or APL libraries in creating the these ML models.

Step 1: Use the Intelligent Scenario Management app

Step 2: Select Embedded modeling

Step 3: Select APL or HEMI (HANA PAL)

As seen above you can start creating an embedded predictive model or use an existing predictive model into your SAP S/4HANA apps.

Currently the following is available for the customers/partners:

  • All the old scenarios developed using PAi are migrated to ISLM
  • New SAP S/4HANA intelligent scenarios integrated into S/4 are available based on the HANA ML (APL and PAL algorithms)
  • Custom developed scenarios are possible based on embedded SAP HANA ML (APL and PAL algorithms) – these can be developed by the customers and partners

For the audience to understand the concepts of how to leverage the ISLM technology to embed machine learning into SAP S/4HANA business processes, we have come up with a best practices package. The best practices package provides a step-by-step guide on the different aspects of machine learning with SAP S/4HANA, explains the different approaches of doing machine learning with SAP S/4HANA and finally provides access to all the different use cases along with the scope items corresponding to them. We have a created 2 different scope items or documentation that explains how to use ISLM while embedding in the SAP S/4HANA Cloud as well as embedding the the SAP S/4HANA On-premise.

Additionally an SAP CAL appliance image is available for customers and partners to try out some of the example ISLM scenarios. You can find more information here about the SAP CAL appliance.

In the next blog let us discuss the mechanics behind creating an ML scenario using the side-by-side methodology.

Here are some quick links to the blogs in this series to give you a complete understanding of how Predictive Intelligence is infused into SAP S/4HANA.

Happy predicting the future!!


Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo N. Pot
      N. Pot

      Just a simple question: I'm looking for the "Intelligent Scenario"-tiles in our S/4HANA Cloud Demo-system, but I cannot find them.

      I do have the role BR_ANALYTICS_SPECIALIST assigned to my user, but apparantly I miss either a role or an activated scope item.

      Do you have a suggestion where to look?

      Thanks in advance, Nic

      Author's profile photo Declan Kearney
      Declan Kearney

      The SAP_BR_ANALYTICS_SPECIALIST role as per S/4HANA 2011 should contain necessary auths for both ISLM tiles : Intelligent Scenario / Intelligent Scenario Management.

      Can you verify what release you are on ?

      Is the BR_ANALYTICS_SPECIALIST role template you mention a custom creation ?

      Author's profile photo N. Pot
      N. Pot

      Thanks for your reply, Declan.

      I'm on SAP S/4HANA CLOUD 2102.

      So I'm convinced that I missed something, but just cannot figure out what.

      Author's profile photo Venkata Raghu Banda
      Venkata Raghu Banda
      Blog Post Author

      Hello Nic,

      I hope your question is clarified.

      Thanks Declan for responding to the question. Prior to 2011, you would be having the "Predictive models" tiles. This is the older version which is based on the "Predictive Analytics Integrator". Starting 2011, you have the newer version of "Intelligent Scenario Lifecycle management". Please refer to the blog which talks about migration of the PAi scenarios to ISLM and the roadmap etc.

      best regards,



      Author's profile photo N. Pot
      N. Pot

      Hi Raghu,
      Thanks for your reply. I also replied Declan.
      I'm on SAP S/4HANA CLOUD 2102, so I don't have much to change, but somehow I do miss something.

      Author's profile photo Declan Kearney
      Declan Kearney

      Hi Nic,

      If you are on S/4HANA CE2102, and not seeing the tiles then I would suspect issue is with role you are using.

      As mentioned, SAP template role is SAP_BR_ANALYTICS_SPECIALIST. If you are using a different role template that it likely the reason you are not seeing the ISLM tiles.

      Please check role assignment, and if no obvious problem is seen raise a Ticket, we can then investigate issue further and connect to system etc.