
Intelligent Scenario Lifecycle Management (ISLM) is a key enabler for integrating AI into SAP S/4HANA. With its latest enhancements, ISLM now facilitates adoption of generative AI (GenAI), providing a centralized framework to manage both SAP-delivered and custom AI use cases. This allows organizations to transform core business processes by integrating large language models (LLMs) seamlessly within their business applications
Key Capabilities
Blogs to Explore:
Learn more about the latest pre-Delivered AI use cases:
Based on SAP's strategy, new SAP-delivered AI use cases will be available only for cloud ERP with RISE with SAP and GROW with SAP.
Following information is relevant for SAP S/4HANA Cloud Private Edition & On-Premise only
Downporting all the latest enhancements in ISLM framework, including support for Generative AI, to 2021 and 2022 releases of SAP S/4HANA Cloud Private Edition and on-premise.
ISLM on lower release SPs
Lower releases of SAP S/4HANA Cloud Private Edition and On-Premise are supported via Transport-based Correction Instructions (TCI). This provides customers access to the latest ISLM capabilities without requiring an SP update.
Implement following SAP Notes:
Note: ISLM TCI must be implemented first, as it is a prerequisite for the ABAP AI SDK TCI.
Learn more about Transport-based correction instructions (TCI).
Additionally implement following Notes delivering fixes for runtime API’s.
Initial ISLM configuration Set up
Once TCIs are implemented you need to configure ISLM apps, Follow the steps outlined below to complete ISLM app configuration:
Building Custom Generative AI Use Cases through ISLM
Following information is relevant for SAP S/4HANA Cloud Private Edition & On-Premise only
With ISLM and ABAP AI SDK we offer an approach within ABAP stack to integrate GenAI models into your business application with a low-code approach. In ISLM you need to create an intelligent scenario which is representation of your AI use case. Using ISLM functionality you can perform lifecycle management operation and execute the prompts with a low code approach with ABAP AI SDK APIs
Following example outlines key steps and flow for using the ISLM framework to create a Generative AI use case. In this example large language model (LLM) is used to generate summary and extract key insights from sales data, enabling ABAP developers to integrate AI-driven capabilities into their applications.
In this example, we walk through the steps to create a new intelligent scenario that uses a Large Language Model (LLM) to generate summaries and extract key insights from sales data.
Create Prediction Class: Prediction Class for Generative AI | SAP Help Portal
Code Snippet:
class ZCL_SOC_EMAIL_CONFIRMATION definition
public
final
create public .
public section.
interfaces IF_ISLM_INTS .
interfaces IF_ISLM_INTS_SBS_SAPGENAI .
protected section.
private section.
ENDCLASS.
CLASS ZCL_SOC_EMAIL_CONFIRMATION IMPLEMENTATION.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_SOC_EMAIL_CONFIRMATION->IF_ISLM_INTS_SBS_SAPGENAI~GET_SERVEFLOW_ENDPOINT_URI
* +-------------------------------------------------------------------------------------------------+
* | [<-()] RV_URI TYPE STRING
* +--------------------------------------------------------------------------------------</SIGNATURE>
method IF_ISLM_INTS_SBS_SAPGENAI~GET_SERVEFLOW_ENDPOINT_URI.
rv_uri = '/chat/completions?api-version=2024-10-21'.
endmethod.
* <SIGNATURE>---------------------------------------------------------------------------------------+
* | Instance Public Method ZCL_SOC_EMAIL_CONFIRMATION->IF_ISLM_INTS~GET_INFERENCE_TYPE
* +-------------------------------------------------------------------------------------------------+
* | [<-()] RV_INFERENCE_TYPE TYPE ISLM_DE_INFERENCE_TYPE
* +--------------------------------------------------------------------------------------</SIGNATURE>
method IF_ISLM_INTS~GET_INFERENCE_TYPE.
rv_inference_type = 'ONLINE_ONLY'.
endmethod.
ENDCLASS.
The Intelligent Scenarios app is used to create intelligent scenarios, review, and publish them, and to make them available in the Intelligent Scenario Management app.
Click the Create button and choose Side-by-Side.
Provide the required information
Note: Enter the name of the Prediction class that you created in the ABAP system. Only a class that implements the IF_ISLM_INTS_SBS_SAPGENAI interface is allowed.
In the General Information area, enter a name and description.
In Prompt Specification enter dynamic parameters in the {ISLM_abc} format, where abc is the parameter name. For example, {ISLM_DynamicParameter}.
Enter values for the corresponding parameter that you specified in the Prompt field.
Create Using Generative AI | SAP Help Portal
Set up and provision the Generative AI Hub service in SAP BTP and obtain a service key. Use the service key to establish the connection. ISLM automatically generates the RFC destination and Outh configuration. There is also an option to verify the connection.
Perform following steps to make the Generative AI Hub in SAP AI Core service available and establish the connectivity between your ABAP system and SAP AI Core.
Maintain Connection for an Intelligent Scenario | SAP Help Portal
Enter the OAuth 2.0 client profile that you want to use for connecting to ML provider. Enter the service key from ML provider and click Next.
Test and save the connection.
Once the Intelligent Scenario is created, we can perform operations such as deployment and activation using Intelligent Scenario Management App.
Click Deploy.
You can now activate the deployment to consume the inference in your business application. You can activate deployment for your user or all users by selecting the For Me and For All options respectively.
Deploy and Undeploy | SAP Help Portal
Activate and Deactivate | SAP Help Portal
EXECUTE_FOR_STRING: Provide the prompt as a string.
EXECUTE_FOR_MESSAGES: Provide the prompt as a message list wrapped in a message container instance. Each message is classified as system role, user message, or assistant message. You can get an instance of the message container using the method CREATE_MESSAGE_CONTAINER.
Sample coding : Calling the Completion API | SAP Help Portal
Execute for String
FINAL(api) = cl_aic_islm_compl_api_factory=>get( )->create_instance( <your intelligent scenario name> ).
FINAL(params) = api->get_parameter_setter( ).
params->set_temperature( '0.5' ).
FINAL(answer) = api->execute_for_string( 'How are you?' )->get_completion( ).
Execute for Messages
FINAL(api) = cl_aic_islm_compl_api_factory=>get( )->create_instance( <your intelligent scenario name> ).
FINAL(messages) = api->create_message_container( ).
messages->set_system_role( 'You are an ABAP expert' ).
messages->add_user_message( 'Does ABAP support OO programming?' ).
messages->add_assistant_message( 'Yes' ).
messages->add_user_message( 'Can you build RESTful applications in ABAP?' ).
FINAL(answer) = api->execute_for_messages( messages )->get_completion( ).
By following these steps, you can easily start using Intelligent Scenario Lifecycle Management (ISLM) to bring Generative AI into your SAP S/4HANA business applications and unlock its full potential, and drive meaningful business transformation.
SAP Community Page: ISLM – SAP Community – Topic page
Webinar Replay: Integrating Generative AI in SAP S/4HANA with ISLM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
22 | |
13 | |
12 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |