AI agents are expected to review purchase orders, create maintenance requests and flag discrepancies in SAP environments. But many companies are facing a growing security and governance gap: These agents operate outside the authorization framework that organizations have spent years building.
Nearly every SAP customer is now experimenting with AI agents. The expectation is clear: Agents should do more than answer questions. They should be able to execute tasks. They can prepare purchase requisitions, check supplier statuses or create maintenance notifications. In doing so, they directly interact with business processes managed and controlled in SAP.
This is where the problem begins. Large language models (LLMs) are well acquainted with SAP standard functionality through documentation, forums and training materials. What they lack is knowledge of how individual companies actually operate: custom Z-tables, customer-specific transactions, special processes for particular plants or countries, and authorization frameworks that have evolved over more than two decades. Yet this is precisely where the knowledge of how a company really works resides.
The Authorization Dilemma
To make AI available quickly, many IT departments take the seemingly straightforward route: They copy SAP data into a data lake, vector database or third-party AI platform. The agent then works with this data, often using a shared technical account with extensive privileges.
This creates a second security model alongside SAP. Who can view which cost centers? Who is authorized to approve purchase orders above a certain amount? These rules are precisely defined in SAP roles and authorization objects. They must be recreated in the copied environment, but this is rarely achieved in full. The result is an agent that shows an employee purchasing terms or personnel data they would never be allowed to access in SAP. Alternatively, it may execute an action that would have required approval in the source system.
For data protection officers and internal auditors, this setup is extremely difficult to oversee. Data flows are hard to trace, deletion periods do not automatically apply to copied data, and audits may not be able to establish who acted on behalf of which user. What started as a quick AI project can quickly turn into shadow IT and a governance and compliance nightmare.
SAP Maintenance Deadlines Add to the Pressure
Time is also running short. Mainstream maintenance for SAP ECC 6.0 ends in late 2027, while optional extended maintenance runs until 2030. Many companies will continue operating hybrid environments combining ECC and S/4HANA for years to come.
An AI strategy that works on only one platform or waits until migration is complete will come too late. A strategy based on data exports, meanwhile, carries governance problems into every new environment. The answer is not to put innovation on hold until every issue has been resolved. Instead, companies need to integrate AI in a way that respects existing rules rather than creating new ones.
Agents Operating With the User’s Permissions
A more sustainable approach reverses the principle: Instead of moving data to the AI, the agent operates within the SAP environment. It acts on behalf of a logged-in user and with exactly that user’s SAP authorizations. When it reads data, SAP checks the user’s permissions. When it executes an action, the request goes through the same checks, workflows and approval processes as a manual entry. Every step remains traceable within the system.
This eliminates the need for a second security model. The authorization framework that companies have invested years in building becomes the foundation for AI rather than an obstacle. Keeping data within the system also resolves many data protection concerns. This approach works with both ECC and S/4HANA, provided access is handled through approved interfaces and the existing role-based authorization logic.
Custom Developments Provide Context, Not Technical Debt
In migration projects, custom developments are often dismissed as technical debt that needs to be eliminated. But this is a flawed way of thinking. A custom Z-transaction for handling complaints, special logic for consignment inventory or checks for hazardous materials all contain process knowledge that no standard model can provide. This knowledge can make the difference between a generic answer and one that is genuinely useful.
For an agent to make use of this context, it needs to understand it: What does each function do? What do the individual fields mean? Which rules apply? Companies should therefore document their custom developments and make them available to agents as tools rather than working around them. Clean Core remains the goal: New logic is developed outside the core, while existing logic is reused instead of copied.
Conclusion
AI agents will become part of SAP environments. The only open question is under which rules they will operate. Companies that copy data today and attempt to recreate authorization controls are creating tomorrow’s compliance problems. The better approach is to let agents act with the user’s permissions, directly within existing systems, while taking into account the business context companies have built up over decades. This makes governance an enabler rather than a bottleneck, and a prerequisite for bringing AI into everyday business operations.