The global and independent platform for the SAP community.

Forensic data analysis in SAP

SAP is a table-driven application. The contents of these tables are the starting point for forensic data analysis in the SAP system. In the following, some principles and tools of forensic data analysis will be presented.
Marcus Herold, IBS Schreiber
November 9, 2017
It Security
avatar
This text has been automatically translated from German to English.

When data analysis is performed by using transactions and reports, one is already working on data processed by SAP. Errors can occur in this processing. To exclude this, analytical work should be done on the tables of the raw data.

This approach is referred to as SPOT (single point of truth). Transactions and reports often provide aggregated values - there is a loss of information. In data analyses, however, it makes sense to work on the individual data records.

By selecting and linking the correct tables, a business process can be completely mapped in terms of data analysis and analyzed according to a wide range of aspects (e.g. violation of functional separation, fraudulent actions).

For example, the complete document and payment run information of financial accounting is stored in five tables (BKPF, BSEG, BSEC, REGUH and REGUP), the essential process steps in purchasing in eight tables (EBAN, EKKO, EKPO, MKPF, MSEG, RBKP, RSEG and EKBE).

The biggest hurdle in table-oriented testing is determining the tables with the desired information and how they are linked to each other. However, SAP provides numerous aids here, for example the logical databases (transaction SLDB), in which process-related tables are grouped together with their links.

In the logical database BRF, for example, all important information about the document activity of financial accounting is summarized. SAP provides several tools for linking the tables. The transactions SE16H (extended table display), SQVI (QuickViewer) or SQ01-SQ03 (queries) can be used to link tables within SAP.

Export data manually

For more extensive analyses, it is necessary to export the required data from the SAP system using external tools. This export should be performed manually to ensure that the export was performed without errors or manipulation.

Analyze changes over time

In forensic data analysis, the analysis of changes in data over time plays a major role. If only key date-related analysis is performed, statements can only be made on the key date.

Especially in the case of fraudulent actions, the perpetrator will try to remove the traces of his fraudulent actions after they have been executed. However, these cover-up actions leave traces in the logs of the SAP system.

If changes are made in the Customizing of the SAP system, these are recorded in the table change logs. Changes to master and transaction data are logged in the change documents.

The table changes are stored in table DBTABLOG and can be evaluated with transaction SCU3. The change documents are stored in the two tables CDHDR (who made a change when with which transaction) and CDPOS (on which table field was the change made and what was the field content before and after the change).

To display only certain types of changes, you can filter by the change document object. For example, if you only want to display changes to vendor master data, filter by change document object KRED.

However, to ensure the reliability of logging, it is necessary to make sure that it has been configured correctly and that no user has permissions to manipulate logging settings and entries.

avatar
Marcus Herold, IBS Schreiber

Marcus Herold is Head of Data Science at IBS Schreiber.


Write a comment

Working on the SAP basis is crucial for successful S/4 conversion. 

This gives the Competence Center strategic importance for existing SAP customers. Regardless of the S/4 Hana operating model, topics such as Automation, Monitoring, Security, Application Lifecycle Management and Data Management the basis for S/4 operations.

For the second time, E3 magazine is organizing a summit for the SAP community in Salzburg to provide comprehensive information on all aspects of S/4 Hana groundwork.

Venue

More information will follow shortly.

Event date

Wednesday, May 21, and
Thursday, May 22, 2025

Early Bird Ticket

Available until Friday, January 24, 2025
EUR 390 excl. VAT

Regular ticket

EUR 590 excl. VAT

Venue

Hotel Hilton Heidelberg
Kurfürstenanlage 1
D-69115 Heidelberg

Event date

Wednesday, March 5, and
Thursday, March 6, 2025

Tickets

Regular ticket
EUR 590 excl. VAT
Early Bird Ticket

Available until December 20, 2024

EUR 390 excl. VAT
The event is organized by the E3 magazine of the publishing house B4Bmedia.net AG. The presentations will be accompanied by an exhibition of selected SAP partners. The ticket price includes attendance at all presentations of the Steampunk and BTP Summit 2025, a visit to the exhibition area, participation in the evening event and catering during the official program. The lecture program and the list of exhibitors and sponsors (SAP partners) will be published on this website in due course.