SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Build a Supplier Disruption Response Agent on SAP S/4HANA

In this session, you will build a production-grade AI agent from scratch using the Joule Studio Local / CLI flow. The agent connects to SAP S/4HANA Public Cloud and automates the end-to-end response to a supplier disruption event: from identifying at-risk purchase orders and scheduling agreements to delivering a risk-scored, fully labeled assessment report.

Overview

🎓 intermediate ⏱ 40 min. JouleIntermediate
Paulina Bujnicka P Paulina Bujnicka October 23, 2026
Created on October 22, 2026
Contributors

More from Paulina Bujnicka

See all 6 tutorials by Paulina Bujnicka →

Prerequisites

No starter repo needed. You create everything from scratch using the IBD flow.

Steps

Step 1 Introduction
—

In this session, you will build a production-grade AI agent from scratch using the Joule Studio Local / CLI flow. The agent connects to SAP S/4HANA Public Cloud and automates the end-to-end response to a supplier disruption event — from identifying at-risk purchase orders and scheduling agreements to delivering a risk-scored, fully labeled assessment report.

What is Joule Studio?

Joule Studio is SAP’s platform for building, deploying, and managing AI agents. It provides an end-to-end development experience — from describing what you want in plain language to running a production agent in SAP AI Core, accessible via SAP Joule.

Joule Studio supports two development modes:

ModeWho it’s forHow it works
WebDevelopers, business analystsVisual flow builder in a browser
Local / CLIDevelopers, technical PMsjl CLI + coding agent (Claude Code or opencode) on your laptop

In this session, you use the local / CLI path. The core mechanic is Intent-Based Development (IBD): you describe the agent’s goal in plain language, and Joule Studio’s IBD engine generates a PRD, a technical specification, and a full implementation — which you then review, extend, and deploy.

Scenario

You are a Procurement Manager at a mid-sized manufacturer. A key supplier has just announced a production halt due to a logistics disruption. You have open purchase orders and scheduling agreements in SAP S/4HANA — but coordinating a triage response manually takes hours.

By the end of this session your agent will:

  1. Accept a disruption signal (event type, country, date)
  2. Retrieve all at-risk open POs and scheduling agreement lines from SAP S/4HANA
  3. Score each item HIGH / MEDIUM / LOW using a composite risk model
  4. Present a fully labeled assessment — every claim tagged [Confirmed Fact], [Assumption], or [Recommendation]
Code
┌─────────────────────────────────────────────────────────────────────────┐
│               Supplier Disruption Response Agent                        │
│                    LangGraph · Joule Studio                             │
└──────────────────────────┬──────────────────────────────────────────────┘
                           │
      ┌────────────────────▼────────────────────┐
      │  M1 — Signal Detection & Classification  │
      └────────────────────┬────────────────────┘
                           │
      ┌────────────────────▼────────────────────┐
      │       M2 — SAP Data Retrieval            │◄── S/4HANA: Purchase Orders
      │                                          │◄── S/4HANA: Scheduling Agreements
      └────────────────────┬────────────────────┘
                           │
      ┌────────────────────▼────────────────────┐
      │    M3 — Impact & Risk Assessment         │
      │    HIGH / MEDIUM / LOW per line item     │
      └────────────────────┬────────────────────┘
                           │
      ┌────────────────────▼────────────────────┐
      │   M4 — Consolidated Risk Report          │
      │   Labeled exposure summary presented     │
      │   to procurement manager                 │
      └─────────────────────────────────────────┘

  Every output: [Confirmed Fact] | [Assumption] | [Recommendation]

Business Outcomes

MetricCurrent (manual)Target (agent)
Time to identify at-risk POsHours< 15 minutes
Full risk-scored triage doneHours< 30 minutes
Recommendation traceabilityAd hoc100% labeled

System Architecture

MCP ServerSAP SystemAPIType
sap-s4-purchase-order-mcp-serverSAP S/4HANA Public CloudCE_PURCHASEORDER_0001Read
sap-s4-scheduling-agreements-mcp-serverSAP S/4HANA Public CloudAPI_SCHED_AGRMT_PROCESS_SRVRead

Both MCP servers are generated during the exercise using the MCP Builder in Joule Studio.

Step 2 Set Up Your Environment
+
Step 3 Initialize the Project
+
Step 4 Enter Your Intent
+
Step 5 Review Intent, PRD & Specification
+
Step 6 What Happened Behind the Scenes
+
Step 7 Implementation & Code Review
+
Step 8 Deploy & Test Your Agent
+
Step 9 Run the Disruption Scenario
+
Step 10 Summary
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 10
1. Introduction 2. Set Up Your Environment 3. Initialize the Project 4. Enter Your Intent 5. Review Intent, PRD & Specification 6. What Happened Behind the Scenes 7. Implementation & Code Review 8. Deploy & Test Your Agent 9. Run the Disruption Scenario 10. Summary