top of page

LARGE ERP MODEL · FOR SAP S/4HANA

The preflight check for SAP AI agents.

Before a Joule or partner agent posts to S/4HANA, LEM tells it whether your system will accept the document, and why, without calling SAP. Standard agents know standard SAP. LEM knows your SAP.

Patent pending.

SEE IT IN ACTION
WHY NOW

Agents that act need a check before they post.

SAP is putting Joule agents in charge of executing business processes, not just suggesting them. Every document an agent posts can still be refused. LEM gives each agent a predicted verdict, its reason and an audit trail before it posts.

Now

Most landscapes carry years of custom validations, exits and configuration. Agents are arriving before the clean core is in place.

Agents shouldn't have to wait for clean core.

Clean core is SAP's direction, and the right one. LEM is useful at every stage of it.

Clean core is the destination. LEM makes the journey safe for agents, and checks every action when you arrive.

YOUR SAP, NOT STANDARD SAP

During the move

Compare what a system accepts before and after each step, and see which business behavior the change alters, in SAP's own reason codes.

At the destination

A clean core means standard code, not identical behavior. Configuration and master data still differ on every system, so every system still needs its own preflight check.

Your ERP knows exactly what it will accept. Until now, your agents didn't.

PLATFORM OVERVIEW

An ERP model that knows your ERP's rules

Learned Acceptance Model

A proprietary, patent-pending model that predicts what your SAP system will accept and why, in SAP's own reason codes. Nothing is ever posted.

Validated Rules

LEM captures the validation rules your system actually enforces, including rules that appear in no manual, and enforces each one only after it is shown to refuse nothing SAP would accept.

Verdict Prediction

Give LEM a document and it returns the predicted verdict and the most likely reasons, in milliseconds, without calling SAP.

Grounded in Your Landscape

A knowledge graph extracted from your own system holds the facts the rules check — which vendor is extended to which company, which cost center belongs where.

HOW IT WORKS

Predict. Explain. Enforce what's certain.

01.

Predict

Give LEM a document and it predicts whether SAP is likely to accept it, in milliseconds, without calling SAP.

02.

Explain

Each answer names the likely fault in plain language, with SAP's own reason code and the version that produced it.

03.

Enforce

Rules that are certain are compiled into a deterministic layer that names the fault in plain language. What remains uncertain is predicted, and labeled as a prediction.

Example: an agent is asked to bill a sales order that is still in approval. LEM: refused by rule, the order is in approval (SAP reason VF/267). The workflow routes it to the approver instead of creating an exception.

The model proposes. Deterministic controls validate and commit.

Covers about 50 posting interfaces across SAP S/4HANA:

Financial Accounting • Controlling • Purchase Requisitions • Purchase Orders • Contracts • Quotations • Sales Orders • Goods Movements • Reservations • Billing • Service Entry • Cost Allocations • Activity Allocations • Accounting Hand-offs • Reversals • Payments • Controlling Master Data • Supplier Invoices • Asset Accounting • Cash Journal • Sales Order Changes • Payment Blocks

USE CASES

Where knowing the verdict changes the outcome

Preflight for AI agents and automation

Before an agent or bot submits a document, LEM tells it whether SAP is likely to accept it, and why, so automation stops failing on errors it could have predicted.

Test assertions you can trust

Validated rules and known-bad documents with their expected reason codes give test suites assertions that are true of the system under test, including the negative tests that are usually skipped.

Migration and cutover readiness

Preflight converted legacy documents and master data against the target configuration before go-live, to find what would fail on day one, and why, without posting anything.

Behavioral change impact

Compare what the system enforces before and after an upgrade, transport or conversion. See what it now does differently, in SAP's own reason codes.

ARCHITECTURE

How LEM fits your SAP landscape.

LEM runs in your own SAP BTP subaccount. Joule agents, external agents and business apps call it over MCP or REST before they post; it answers from a snapshot of your system's facts, without calling SAP. The snapshot is read through SAP's OData APIs, a small set of read-only views installed in your system, and an optional read-only configuration reader. LEM's learning step runs on a non-production client and never posts. Your documents never leave your landscape. The white paper has the details.

LEM architecture on SAP BTP: AI agents ask LEM before they post, and LEM answers from a fact snapshot without calling SAP.
SAFE BY DESIGN

Built for your system without touching your books.

LEM is built around one constraint: it must never change the system it serves. Nothing is ever posted, every rule is validated before it is enforced, and the boundary between what is predicted and what is certain is explicit. LEM complements SAP's own checks rather than replacing them: SAP still gives the final answer at posting. Where an interface offers no check before posting, LEM is the only way to know in advance.

Never Posts

LEM never posts, changes or commits anything in your system.

Proven Before Enforced

A rule is enforced only after it refuses no document SAP accepted.

Plain-Language Reasons

Every refusal names the fault and carries SAP's own reason code.

Statutory Logic Excluded

Tax and statutory processes stay with your existing controls.

Runs in Your Account

Designed to run in your own SAP BTP account. Your facts stay there and remain your data.

Human Approval

The model proposes; a person and deterministic controls decide.

MEASURED, NOT ASSERTED

What the prototype has shown in testing

95%

Of SAP's refusals in testing predicted by 147 validated rules, with SAP's own reason code

0

False refusals on 4,659 real postings replayed from a system's history

36 of 36

Real billing-run refusals that LEM predicts, 34 with SAP's own reason code

< 50 ms

To return the verdict and reasons for one document

Measured on a demonstration SAP S/4HANA system: about 79,500 generated test documents across about 50 posting interfaces, plus that system's real posting history and real billing-run failures (October 22, 2026). Validation on customer landscapes is the next step with design partners.

Shrouva_LEM_WhitePaper_Cover.png

The Preflight Check for SAP AI Agents

Why every SAP system needs its own preflight check, before, during and after clean core, and the evidence so far.

Give your ERP an intelligence that knows its rules.

bottom of page