SAP GDPR Compliance Monitoring: What Audit Trails to Keep and How to Monitor Them

Summary

GDPR audits in SAP environments typically fail for the same reason. The audit trail exists in theory, but it was either not activated with the right configuration, not retained for long enough, or does not cover the specific access events the regulator is asking about. Having an audit log and having an audit log that satisfies a regulator are different things.

SAP systems carry some of the most sensitive personal data in any organization: customer names and contact details, vendor bank information, HR and payroll records, business partner addresses. The question is not whether that data needs to be protected and audited under GDPR. It does. The question is whether the technical controls that produce audit evidence are actually in place and generating the records the organization would need in the event of a regulator enquiry or a data breach.

What GDPR actually requires from SAP audit trails

Three GDPR obligations create direct audit trail requirements in SAP systems. Article 32 requires appropriate technical measures to ensure ongoing confidentiality and integrity of processing, which in practice means being able to demonstrate that access to personal data is controlled and logged. Article 33 requires notifying the supervisory authority of a personal data breach within 72 hours of becoming aware, which requires the detection capability to become aware in the first place. Article 17 (the right to erasure) requires being able to demonstrate that specific data was deleted when a deletion request was fulfilled.

None of these obligations is satisfied by having a monitoring tool running. They require specific events to be captured, retained for a demonstrable period, and available for extraction when needed. The 72-hour breach notification obligation is particularly demanding: it assumes the organization has near-real-time visibility into unauthorized access to personal data, not a weekly log review that discovers the breach days after it occurred.

Note: GDPR does not specify a minimum retention period for audit logs. The Article 29 Working Party guidance and subsequent EDPB interpretations suggest that retention sufficient to support the organization's accountability obligations is required. In practice, most organizations operating under regulatory scrutiny retain security audit logs for 12 to 36 months. The relevant constraint is that logs must be available for the duration of any potential investigation or enforcement action.

The SAP security audit log: configuration that actually covers GDPR

What to activate in SM19

The SAP Security Audit Log (accessible through SM19 for configuration and SM20 for review) is the primary technical control for recording access to personal data in ABAP environments. By default, it is either inactive or configured with a minimal event set that does not cover GDPR-relevant activities.

The event classes that are relevant for GDPR compliance are: DU (dialog logon events, including failed logon attempts), DUB (transaction start and authorization check failures), and DUF (RFC call events). All three should be active for all users in the production client, not just for specific user groups. Restricting the audit scope to a subset of users creates gaps that are difficult to defend if a breach is traced to a user who was not in the audit scope.

Activating the full event set increases the volume of log data significantly. Many organizations activate a reduced set to manage the storage impact and then discover during an audit that the events the regulator needs were not being captured. The storage cost of a full event capture is substantially lower than the regulatory cost of gaps in the audit trail.

Log integrity and the tampering problem

An audit log that an authorized administrator can delete, modify, or selectively purge has limited legal value. Under GDPR, the log needs to demonstrate that it is a complete and unmodified record of the events it covers. SAP's security audit log by default writes to files on the application server filesystem, which are accessible to anyone with OS-level access to that server.

Configurations that address this include writing audit log data to a separate, access-controlled system, generating cryptographic checksums for log files at regular intervals, or using a dedicated security information and event management (SIEM) platform as the log destination. The principle is that the person who could be implicated by a log entry should not have the ability to modify or delete that log entry.

Monitoring access to personal data in SAP

The tables and transactions that carry personal data

Not all SAP data is personal data under GDPR. Inventory levels, production orders, and financial account balances are generally not. Customer and vendor master data tables are. KNA1 and KNA1-related tables contain customer names, addresses, and contact details. LFA1 contains the equivalent for vendors. ADRC carries address data for business partners. In HR environments, the PA tables contain payroll and personal data of the most sensitive category under GDPR. In S/4HANA, the business partner model consolidates much of this in the BP transaction and associated tables.

The monitoring question is not whether these tables exist but who is accessing them, at what time, at what volume, and whether that access has a legitimate business justification. A finance user who opens a customer record during a normal business transaction is expected behavior. A technical RFC user querying KNA1 at 02:00 with no corresponding business transaction is an anomaly that warrants investigation.

RFC calls to personal data tables represent one of the clearest GDPR monitoring requirements and one of the most undercovered areas in most SAP environments. SAP RFC security monitoring covers in detail how RFC-based data extraction can occur without triggering dialog-layer monitoring, and why the security audit log RFC event class (DUF) is essential for GDPR compliance, not just for security purposes.

Access patterns that indicate a breach versus normal operations

Normal business access to personal data in SAP has recognizable characteristics: it occurs during business hours, involves individual record access rather than bulk reads, and correlates with specific business transactions visible in the dialog session. Anomalous access looks different: bulk table reads via RFC or direct database access, access outside normal working hours without a corresponding batch processing justification, or access from user accounts that are not normally associated with that data type.

The security audit log produces the raw data for this analysis. Converting it into actionable detection requires either a SIEM platform that applies correlation rules, or a SAP monitoring tool that reads security audit log events and applies pattern-based alerts. Either way, the detection capability only works if the security audit log is capturing the right events in the first place.

Personal data leaving SAP: the interface dimension

GDPR requires knowing where personal data goes, not just who accesses it within a system. SAP environments send personal data to external systems through IDocs carrying customer orders and invoices, RFC calls to third-party applications, REST APIs to cloud services, and file-based exports processed by background jobs. Each of these represents a potential personal data transfer that requires a documented legal basis and, in the event of a breach at the receiving system, may trigger notification obligations. SAP interface monitoring covers the technical layer, but the GDPR dimension adds a content layer: which interfaces carry personal data fields, and to which external processors or controllers?

Background jobs that extract personal data deserve specific attention. A scheduled job that generates a customer extract file and deposits it on an SFTP server carries personal data outside the SAP system. If that job runs unexpectedly, changes its extraction scope, or sends data to a new destination, those changes should be visible in monitoring. SAP background job monitoring provides the operational framework; the GDPR requirement adds that any job whose output includes personal data fields should be monitored for output destination and volume anomalies, not just for completion status.

The right to erasure: monitoring deletion completion

When an individual exercises their right to erasure under Article 17, the organization must be able to demonstrate that the data was actually deleted across all systems where it was held. In SAP, this involves SAP ILM (Information Lifecycle Management) for structured archiving and deletion, and potentially custom ABAP programs for data that falls outside the standard ILM scope.

The monitoring requirement here is different from access monitoring. It is evidence generation: a time-stamped record that the deletion was executed, by which process, covering which records, with what confirmation that the deletion completed successfully. This evidence needs to be retained after the data is deleted, which creates a specific records management requirement: the audit trail outlives the data it documents.

The practical gap in most SAP environments is that deletion activities are not monitored for completion verification. A data subject sends a deletion request, an administrator initiates the ILM process, and the process is considered closed when the administrator marks it resolved. Whether the technical deletion actually completed correctly, whether all relevant tables and archive files were covered, and whether the deletion propagated to connected systems via interfaces, is often not verified and not logged in a retrievable format.

Configuring alerts for GDPR-relevant events

Alert configuration for GDPR compliance differs from performance monitoring in one important way: the threshold for alerting is not a percentage or a volume, it is a specific event type. Any authorization failure on a personal data transaction outside business hours should fire an alert. Any RFC call to a customer master table from a user account that is not a registered integration should fire an alert. Any background job that starts writing to a new output destination should fire an alert. SAP alert configuration best practices covers the mechanics of setting up event-based rather than threshold-based alerting, which is the correct model for security and compliance monitoring.

The 72-hour breach notification window is the hardest constraint. It requires that when an unauthorized access event occurs, someone is notified in time to investigate, assess the scope of the breach, and prepare the regulatory notification. An alert that fires when the security audit log is reviewed manually the following morning does not meet that requirement. Real-time or near-real-time event monitoring of the SAP security audit log, with routing to an on-call security contact, is what the 72-hour clock demands. The broader context for monitoring architecture that supports compliance requirements is covered in SAP security and reliability monitoring.

Watch out: Configuration changes to the security audit log itself should be monitored as a GDPR-relevant event. An administrator who reduces the audit scope in SM19, changes the retention period for log files, or disables specific event classes is making a change that directly affects the organization's compliance posture. These changes should generate an alert and require documented justification. A monitoring gap introduced by a configuration change is as much of a GDPR risk as an unauthorized data access event.

The gap between having GDPR controls in place and being able to demonstrate them to a regulator is mostly a monitoring and evidence retention question. The controls in SAP, the security audit log, the change document framework, the ILM deletion processes, exist in most environments. What is less consistently present is the configuration that makes those controls produce useful evidence, the retention policy that keeps that evidence available, and the monitoring layer that converts security log events into real-time detection rather than retrospective review.

A GDPR audit that finds these gaps will not be satisfied by explanations about what the system is capable of. It will ask for the logs, the configuration records, and the evidence of monitoring. Building those capabilities before they are needed in an audit or a breach response is considerably less costly than building them after.

Redpeaks monitors SAP security audit log events in real time, with GDPR-relevant alert patterns for personal data access anomalies, RFC calls to sensitive tables, and security configuration changes. See the security monitoring coverage.

You might also like:

There are no more posts to display

Become a Redpeaks Partner

Join forces as Redpeaks Partner and elevate your business to new heights!

Unlock unparalleled insights and operational efficiency with Redpeaks Monitoring. 
Join us as a reseller or referral partner and empower your clients with the tools they need to thrive in today’s dynamic IT landscape.

Together, let’s revolutionize the way businesses monitor and optimize their operations.

Download our complete brochure