All posts

SAP Service Accounts vs Governed AI Agents: Comparing Automation Models

SAP Service Accounts vs Governed AI Agents: Comparing Automation Models

Every SAP Basis team already automates. Background jobs run nightly in SM36, monitoring scripts poll RFC destinations, and integration middleware posts documents through a communication user that nobody has looked at in years. The question is not whether to automate SAP operations. It is which automation model you trust with production once an AI agent is the one deciding what to run.

This comparison covers the three models most teams weigh when they bring AI into SAP Day 2 operations: a broad technical service account, fixed scheduled scripts, and a governed agent runtime. Each is a reasonable choice for some work. They differ sharply in who decides what runs, how far a mistake can reach, and what your auditors can reconstruct afterwards.

The three models at a glance

Broad service accountScheduled scriptsGoverned agent runtime
Who decides what runsThe calling system, at runtimeA human, at design timeThe agent proposes, policy decides
Scope of accessEverything in the authorization profileWhatever the script was written to callOne capability at a time, per tool call
Handles new situationsYes, without limitsNo, only the scripted pathYes, inside the policy boundary
Human approval before a writeNot built inOnly when the script was designed with oneSet per tool: Full, Approval or Blocked
Audit trailSecurity audit log entries under one technical userJob logs in SM37Every governed action with tool, risk, status and approval state
Blast radius of a mistakeThe whole profileThe script's fixed pathThe single action that was allowed

The table hides one important nuance. Scheduled scripts are the safest of the three precisely because they cannot adapt. That is also why they cannot triage an incident they were not written for.

Model 1: The broad technical service account

This is the default when an agent is wired straight into SAP. You create a communication user, give it a profile with S_RFC, S_TABU_DIS and a handful of transactions, and point the agent at it.

It is fast to set up and the agent can do almost anything it reasons its way into. That is the problem. A language model plans its steps at runtime, so its real permissions are the outer edge of the profile, not the task you had in mind. If the profile allows posting financial documents, an agent asked to check open invoices can still call a posting BAPI.

The audit trail does not help much either. Every action lands under the same technical user, so an SoD review sees a stream of activity with no record of why each call was made or who, if anyone, agreed to it.

Use it for: read-only reporting where the profile genuinely contains no write authorizations.

Model 2: Fixed scheduled scripts

Scripts and background jobs are deterministic. A human writes the path once, reviews it and schedules it. Nothing runs that was not designed in advance.

That makes scripts excellent for known, repeatable work: nightly housekeeping, spool cleanup, regular health checks. It makes them useless for the work an agent is actually brought in for, which is reasoning about an alert nobody predicted and deciding what to inspect next.

Use it for: recurring, well-understood tasks where the steps never change.

Model 3: A governed agent runtime

A governed runtime keeps the agent's ability to reason through new situations but moves the decision about what may execute out of the model and into policy. The agent can propose any step. Policy decides whether it runs.

Governance levelWhat happens when the agent calls the toolTypical SAP Basis examples
FullRuns immediately under policy guardrails and is loggedReading SM21 system logs, checking SM37 job status, testing an RFC destination in SM59
ApprovalPauses for a human to approve inline, then runsReprocessing an IDoc, restarting a failed background job, clearing a stuck update
BlockedNever runs, and the attempt is recordedChanging user authorizations in SU01, editing table contents directly

This is the model Luumen is built on. Governance is set per tool as Full, Approval or Blocked, permissions scope to the individual tool call, and every governed action lands in one queryable audit log with its session, tool, risk, status and approval state. Governed integrations go further: each connection is a capability with a risk level, schemas, an approval floor and evidence requirements, reviewed before it is enabled.

Use it for: incident triage and remediation on production systems, where you want the agent's judgement but not its unchecked authority.

How to choose

Most landscapes end up running all three, each where it fits:

  1. Keep scheduled scripts for recurring work whose steps never change.
  2. Retire broad service accounts for anything an agent touches, or strip them to read-only.
  3. Put agent-driven work on production behind a governed runtime, starting with read tools at Full and every state change at Approval. Loosen individual tools only after the audit log shows they behave.

The deciding question is simple. When the agent is wrong, which model lets you see it, stop it and prove afterwards what happened? For production SAP, only the governed model answers all three.

Frequently asked questions

Can an AI agent safely use an SAP service account?
Only if the account is read-only. An agent plans its steps at runtime, so its real permissions are the full authorization profile, not the task you intended.
What does a governed agent runtime add over scheduled scripts?
Scripts only run paths designed in advance. A governed runtime lets the agent reason through new situations while policy decides, per tool call, whether each action runs, needs approval or is blocked.
Which agent actions should require approval in SAP?
Any state change on production: reprocessing IDocs, restarting jobs, clearing updates. Keep read-only diagnostics at Full and block authorization or direct table changes outright.

Start free today

Free for individuals — no credit card required. Upgrade when your team is ready.

Download Free
Share