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 Custom ABAP AI Scenario Consuming SAP AI Core Orchestration Service in Your SAP S/4HANA System

Learn how to implement an intelligent scenario including SAP AI Core's Orchestration Service features using the ABAP AI SDK powered by Intelligent Scenario Lifecycle Management (ISLM).

Overview

🎓 beginner 30 min. ABAP DevelopmentBeginnerSAP Ai CoreArtificial IntelligenceSAP S 4hana

You will learn

  • How to create an Intelligent Scenario in the Intelligent Scenarios Application, including an Execution Flow Template
  • 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 April 30, 2026
Created by April 30, 2026
Contributors

Prerequisites

Prerequisites

You have successfully configured your system as described in Set Up SAP BTP and Integrate SAP AI Core with ISLM.

Steps

Pre-Read

Beyond pure large language model (LLM) interactions, SAP AI Core features an orchestration service. Orchestration in SAP AI Core is a managed service that enables unified access, control, and execution of generative AI models through standardized APIs, templating, and configurable AI workflow components.

This allows you to enrich pure LLM interactions with additional capabilities such as data masking, content filtering, document grounding, and translation. Intelligent Scenario Lifecycle Management (ISLM) in ABAP can be used to leverage LLM interactions, including the consumption of orchestration features. The runtime APIs for this purpose are provided by the ABAP AI SDK powered by Intelligent Scenario Lifecycle Management.

NOTE: In SAP AI Core, an orchestration deployment is available by default in the default resource group during the onboarding. For any new or additional resource groups, you must deploy a separate orchestration setup.

While orchestration in SAP AI Core offers a broader set of capabilities, this tutorial focuses on the consumption of the following modules:

  • model templating
  • model configuration
  • data masking
  • input/output filtering
  • output translation

Consumption of other orchestration service modules is optional.

Want to learn more? Please see the Orchestration documentation for more information.


Step 1 Prepare the Execution Flow Template (optional)

Goal: Configure the custom configuration file for orchestration service consumption.

The preparation of the execution flow template is an optional step in this tutorial. The described procedure yields the creation of a JSON file that will be used when creating the intelligent scenario. Therefore, you may safely proceed with the JSON file provided in the next step, i.e. Create an Intelligent Scenario.

  1. Launch your SAP AI Launchpad application and navigate to Generative AI Hub > Orchestration

    Navigate to Orchestration in the SAP AI Launchpad
    Navigate to Orchestration in the SAP AI Launchpad

  2. Create an Orchestration configuration

    Create an Orchestration Configuration in the SAP AI Launchpad
    Create an Orchestration Configuration in the SAP AI Launchpad

  3. Choose the orchestration modules you would like to use by switching on via the respective slider

    Toggle orchestration modules
    Toggle orchestration modules

  4. Select the large language model and version. You are free to choose any available model, but for this tutorial let’s pick Antropic’s Claude 4 Sonnet

    Model configuration
    Model configuration

  5. Next, configure the data masking module. Data masking ensures that sensitive data is filtered out before information is passed to the large language model. For example, sensitive data such as credit card numbers, email addresses, and similar information can be masked. In this tutorial, we mask all available data types. If you are also using the Grounding Management Module, you can additionally enable the Apply to Grounding Input option

    Data masking module configuration
    Data masking module configuration

  6. In addition to data masking, the orchestration service supports input and output filtering. The Input Filtering module can be configured to, for example, remove hate speech from user inputs

    Input filtering module configuration (part 1)
    Input filtering module configuration (part 1)
    Input filtering module configuration (part 2)
    Input filtering module configuration (part 2)

  7. Like input filtering, the Output Filtering module filters the large language model’s output before it is returned to the application. As with input filtering, let’s enable all available filter options

    Output filtering module configuration (part 1)
    Output filtering module configuration (part 1)
    Output filtering module configuration (part 2)
    Output filtering module configuration (part 2)

  8. The default input and output language of the chosen LLM is English, but the actual language in the prompt may vary depending on the scenario. To address this, both input and output can be translated using the Input Translation and Output Translation modules. For simplicity, this tutorial uses only the Output Translation module, configured to translate responses to Spanish

    Output Translation configuration
    Output Translation configuration

  9. Define a mandatory prompt template and save the orchestration configuration

    Configure Prompt Template
    Configure Prompt Template
    Save orchestration configuration
    Save orchestration configuration

  10. Finally, retrieve the orchestration configuration for later use in your custom ABAP AI application. Switch to the JSON view and copy the content

    Switch to JSON view
    Switch to JSON view

NOTE: If you would like to know more about creation of orchestration configuration including how to test the configuration directly in the SAP AI Launchpad, please also check tutorial Consumption of GenAI models Using Orchestration(V2) service - A Beginner’s Guide.

Step 2 Create an Intelligent Scenario
+
Step 3 Deploy and Activate the Intelligent Scenario
+
Step 4 Consume the Intelligent Scenario in a Simple ABAP Class
+
Step 5 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 5
1. Prepare the Execution Flow Template (optional) 2. Create an Intelligent Scenario 3. Deploy and Activate the Intelligent Scenario 4. Consume the Intelligent Scenario in a Simple ABAP Class 5. Test yourself

Learn more →