SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Implement a Simple Custom ABAP AI Scenario in Your SAP S/4HANA System

Learn how to implement a simple Intelligent Scenario using the ABAP AI SDK powered by Intelligent Scenario Lifecycle Management (ISLM).

Overview

🎓 beginner 20 min. ABAP DevelopmentBeginnerSAP S 4hanaArtificial IntelligenceSAP Ai Core

You will learn

  • โœ”How to create an Intelligent Scenario in the Intelligent Scenarios Application
  • โœ”How to deploy and activate the Intelligent Scenario in the Intelligent Scenario Management Application
  • โœ”How to use the Intelligent Scenario in a simple ABAP Class
Jasmin Gruschke J Jasmin Gruschke July 28, 2026
Created by March 11, 2026
Contributors

Prerequisites

Prerequisites

You have successfully configured your system as described in Set Up Your SAP S/4HANA System for Custom AI Scenarios.

Steps

Pre-Read

Intelligent Scenario Lifecycle Management (ISLM) features the creation and deployment of an intelligent scenario (INTS). This intelligent scenario facilitates the interaction with a large language model (LLM) deployment on SAP AI Core in custom ABAP AI scenarios. The runtime APIs for this purpose are provided by the ABAP AI SDK powered by ISLM. More information can be found in the Developing Your Own AI-Enabled Applications documentation.

Step 1 Create an Intelligent Scenario
โ€”

Goal: Let’s first create and publish the intelligent scenario.

  1. In the SAP Fiori launchpad of your SAP S/4 HANA system, choose the Intelligent Scenarios Fiori Application tile as depicted below. Alternatively, you may start in the SAP GUI and start transaction F4469

    Open the Intelligent Scenarios Fiori App
    Open the Intelligent Scenarios Fiori App

  2. Create a Side-by-Side intelligent scenario (INTS)

    Create side-by-side Intelligent Scenario
    Create side-by-side Intelligent Scenario

  3. In the creation screen, first configure the intelligent scenario type Generative AI, which adjusts the Fiori creation screen. You can now provide the mandatory information for the INTS, e.g. the INTS name ZDEMO_INTS. Make sure to additionally provide the Usage Type.

    Configure the Intelligent Scenario
    Configure the Intelligent Scenario

  4. Click on Add Model, which opens the configuration of the Intelligent Scenario Model (INTM), which will be named ZDEMO_INTM in this tutorial. This intelligent scenario model holds the details of the large language model. You may choose from the list of supported providers and available models. In this tutorial, we are using the LLM as depicted below

    Configure the Intelligent Scenario Model
    Configure the Intelligent Scenario Model

NOTE: For simplicity, this tutorial omits the usage of prompt templates. This will be touched in a following tutorial.

  1. Finally, publish the intelligent scenario. This step registers the intelligent scenario in the ISLM framework

    Publish the Intelligent Scenario
    Publish the Intelligent Scenario

  2. The intelligent scenario (and the intelligent model) are transportable ABAP development artefacts. You may choose a dedicated package, e.g. in Z-/Y-namespace, which would further lead to transport management dialogues. For simplicity, in this tutorial we use the $TMP package

    Choose the ABAP package for the Intelligent Scenario
    Choose the ABAP package for the Intelligent Scenario

  3. Finally, confirm the publishing of the intelligent scenario

    Final confirmation for publishing the Intelligent Scenario
    Final confirmation for publishing the Intelligent Scenario

Conclusion: The intelligent scenario is now available in the ISLM framework.

Step 2 Deploy and Activate the Intelligent Scenario
+
Step 3 Consume the Intelligent Scenario in a simple ABAP Class
+
Step 4 Test yourself
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 4
1. Create an Intelligent Scenario 2. Deploy and Activate the Intelligent Scenario 3. Consume the Intelligent Scenario in a simple ABAP Class 4. Test yourself

Learn more →