0% found this document useful (0 votes)
195 views48 pages

KPMG Data Extraction Tool for SAP Execution Guide v8.2

The KPMG Data Extraction Tool for SAP® Execution Guide v8.2 outlines the process for extracting data from SAP systems using ABAP programming. It details the necessary steps for configuring, executing, and troubleshooting the data extraction, including the types of data extracted (Screening and Transaction data) and the prerequisites for successful execution. The guide serves as a comprehensive resource for users to effectively implement the extraction tool within their SAP environments.

Uploaded by

stéphane roland
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
195 views48 pages

KPMG Data Extraction Tool for SAP Execution Guide v8.2

The KPMG Data Extraction Tool for SAP® Execution Guide v8.2 outlines the process for extracting data from SAP systems using ABAP programming. It details the necessary steps for configuring, executing, and troubleshooting the data extraction, including the types of data extracted (Screening and Transaction data) and the prerequisites for successful execution. The guide serves as a comprehensive resource for users to effectively implement the extraction tool within their SAP environments.

Uploaded by

stéphane roland
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 48

KPMG Data & Analytics

Data Extraction Tool for SAP ®


Execution Guide v8.2

KPMG International
KPMG.COM

Document Classification - KPMG Confidential


KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

THIS PAGE LEFT INTENTIONALLY BLANK

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

1
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Table of Contents

I. Overview 3
Introduction 3
KPMG Data Extraction Tool 3
Extraction process 4
Before you begin 5

II. Execution of the Data Extraction Tool 6


Importing Scope and Configuration Data 6
Configure Screening Data Extraction 10
Configure Screening Data Extraction (continued) 15
Configure Transaction Data Extraction 19
Scheduling Data Extraction 31
Monitoring Data Extraction 33
Download Data Extracts 36

III. Troubleshooting 38
Possible errors 38
Possible errors (continued) 39

Appendix 40
Reasoning for data download approach 40
Normal extraction scenario 40
Number range loop scenario 41
Number range loop scenario (continued) 42
DaybyDay loop scenario 42
Master data loop scenario 44
Authorization Objects 44

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

2
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

I. Overview

This document describes how to extract data from SAP using KPMG Data Extraction
Introduction
Tool using Advanced Business Application Programming (ABAP).

The purpose of KPMG Data Extraction Tool is to extract the necessary data required
to run KPMG Data & Analytics. These procedures require the extraction of data from
some of the largest transaction data tables in SAP.

This extraction is complicated and needs a table specific approach. KPMG designed
the logic in the ABAP program to avoid potential threats such as:
• Long running extraction statements against the SAP Database Management
System (DBMS) which may cause the program to stop running.
• Extracting unnecessary data due to improper selection criteria.
• Overloading the available memory (RAM) during the data selection process which
may impact the system performance or other background processes.

There are three program guides that describe the KPMG Data Extraction Tool in
detail. The Execution Guide (this document) is written for anyone who uses KPMG’s
Data Extraction Tool. The Implementation Guide provides a step-by-step overview
of how to implement ABAP programs. The Technical Guide provides technical
details on the extraction logic used in the source code.

The KPMG Data Extraction Tool for SAP contains Read Only statements which
KPMG Data
Extraction Tool
produce output files that are written to a user-specified directory in the SAP
application server. The KPMG Data Extraction Tool can only be used in SAP release
version S/4HANA, ECC 6.0, ECC 5.0 and R/3 4.7 environments.

The extraction selections are pre-defined as agreed to during the audit scoping
process. Once the implementation of the KPMG Data Extraction Tool is complete,
they are ready to extract the relevant data.

There are two types of SAP data that are extracted:


• The Screening data are information about the organizational structure, the financial
account structure as well as basic system settings for planning purposes.
• The Transaction data are the actual business transaction and master data from the
SAP system. Depending on the scope of the Audit, only a subset of these data
might need to get executed.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

3
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Overview, Continued

The following diagram describes the steps needed to implement the KPMG Data
Extraction
process
Extraction Tool and run the extraction in the production environment.

Transfer data to
Execute the Execute
Implement the Approve and external hard
Test the ABAP screening report transaction data
ABAP reports in transport to the drive or use
reports in a test in production & reports in
the development production alternate route of
environment transfer results to production after
system system data transfer (e.g.
KPMG books close
sFTP)

Before transporting the reports to production, test them in a test environment.

As soon as the reports are available in the production environment perform the
following steps:
• import/upload the scoping and configuration data
• extract the Screening data
• ZIP the output files
• encrypt the files
• transfer the files to KPMG

The results of the Screening data extraction must be validated by KPMG before the
transaction data are extracted from production. Once the Screening data are
validated, KPMG will contact you to discuss the details of when to extract the
transaction data. This includes the relevant SAP periods for the extraction. KPMG
will send a file that contains the scoping parameters and configuration data for the
transaction data extraction. You can start the transaction data extraction in
production after the last relevant SAP period is closed for postings.

After the transaction data extraction process is complete, the transaction data files
are transferred to KPMG via sFTP. The secure file transfer address with the
instructions on how to use sFTP is provided by KPMG. A secondary option of data
transfer may be encrypted external hard disk. A detailed overview on how to
execute the Screening and transaction data extraction can be found in Section II of
this document.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

4
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Overview, Continued

The following prerequisites must be met prior to executing the ABAP report:
Before you begin
• Create an extraction folder/directory with sufficient disk space on the SAP
application server to store the extracted files. KPMG will assist you with the
calculation of the required disk space for the transaction data based on the
Screening data.
• Verify that the user executing the ABAP reports has sufficient write permissions on
the extraction folder/directory. The user must also have specific SAP
authorizations (Table read permissions via object S_TABU_DIS or
S_TABU_NAM). This is an additional security measure to restrict regular users
with SA38 permission from executing these ABAP reports. The user must also
have SAP authorization to upload data (S_GUI ACTVT = 60) to be able to upload
the XML file containing the scope and configuration data.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

5
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

II. Execution of the Data Extraction Tool

Go to SAP transaction SE38 or SA38 and execute the program


Importing
Scope and /KPMGDA/DATA_EX_TOOL_81 to view KPMG Data Extraction Tool’s landing
Configuration page.
Data
You can also execute the transaction /KPMGDA/DATA_EX_81 to view this page.

This page provides the steps of the data extraction workflow.

In order to execute data extraction with the Data Extraction Tool, a Metadata Profile
is required. This profile fills the Constraints fields and provides the configuration of
the Table Groups, Technical-, Destination- and Source Settings in the selection
screen.

In the figure below, the Metadata Profile STANDARD contains the scoping
parameters to fill up the defaults for: Client, Fiscal Year, Company Code, Object
classes, Period, and Language fields. It also contains the table groups and the
associated SAP tables, the table fields to be extracted, their options or constraints
for data selection which fill up the selection screen block labeled Table Groups.
Other configuration data such as Extraction Logic, Parallel Processing option,
Packages sizes, etc, are used to fill up the Technical Settings block.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

6
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Step Action
1
From the landing page, click

From the different other pages, click


Result: Upload selection screen displays

2 Enter desired Metadata Profile field. It is recommended to use a new


Metadata Profile name when uploading a new XML file.(Hint: To view all
the existing variants, press F4 on the field to browse all existing variant
names)

Enter name of file to import in Upload Filepath field. (Hint: press F4 on the
field to browse and search for the file.)

Select Save Profile using Program and Variant names to save and store
the Metadata Profile.

Select Update package sizes to optimum values to adjust the default


package size values in the XML file to suit the memory requirements of the
client’s system. Package size is number of records to be extracted in one
iteration from the database.

Select Evaluate query against active table indexes to adjust the extraction
logic of certain tables as per the indexes active on the client’s system for
faster data extraction.

Languages referenced by the company codes in scope, are inserted in the


Metadata profile(if they are not in the XML file).

Select Display Only when you only want to check the contents of the file
without saving. (If you only want to display the contents of a saved

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

7
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Metadata Profile, enter the Metadata Profile ID, remove the Upload
Filepath and then select Display only.)

3
Click
Result: The file is read and the Metadata Variant is saved if the checkbox
was checked. A report of the file contents is displayed.

The tables and field names in the configuration file are verified against the
data dictionary and if invalid names are found, they will be listed in the
Error list at the beginning of the report.

If package sizes are optimized the changes will be listed in the report
output

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

8
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

If any changes are made to the extraction logic or constraints for


optimizing data extraction, then relevant message is displayed for the user
to confirm the change. You can accept the changes by clicking on

A warning message is displayed to prompt that there are some exception


messages that need to be verified.

Error Message Description


“Invalid: Missing/Empty Required information may be missing like:
tag” 1) <TABNAME> in Table objects;
2) <SUBROUTINEPOOL> or
<SUBROUTINE> or <SUBFUNC> in
Subroutine objects;
3) <NRFIELD> or <PKGSIZE> in objects
using Number range logic;

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

9
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

4) <DAYSPERLOOP> or <PKGSIZE> in
objects using Day by Day logic;
5) <PKGSIZE> in objects using Helper
table logic;
“Invalid: Table…in Object” Name of table specified in <TABNAME>
tag for the Object is not in the SAP Data
Dictionary
“Invalid: Header Table” or Name of table specified in
“Invalid: Footer Table” <HEADERTABLE> tag is not in the SAP
Data Dictionary
“Invalid: Name of table specified in
<ConstraintTable…” <CONSTRAINTTABLE> tag is not in the
SAP Data Dictionary
“Invalid: <Field> in Name of table field specified under the
<ConstraintTable” <CONSTRAINTTABLE> tag is not in the
SAP Data Dictionary
“Improper Bracket Syntax check to make sure that “(“ and “)”
Handling In come in pairs in <HARDCONSTRAINT>
HARDCONSTRAINT” tag
“Invalid: <Table name=…” Name of table specified in <TABLE> tag is
not in the SAP Data Dictionary
“Invalid: <Field> in Name of table field specified under the
<Table” <TABLE> tag is not in the SAP Data
Dictionary
“Invalid: Helper table Name of table specified in
name” <HELPERTABLE> tag is not in the SAP
Data Dictionary

Execution of the Data Extraction Tool, Continued

The Screening data extraction extracts information regarding the organizational


Configure
Screening Data
structure, financial account structure, and basic system settings for planning
Extraction purposes. The output of the Screening data extraction is used to determine the

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

10
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

selection parameters and optimal technical settings for the extraction of the
transaction data.

Step Action
1
From the landing page, click

From the different other pages, click


Result: Configuration screen displays

2 Select Metadata Profile on the top row.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

11
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

3
Click
Result: The values from the Metadata Profile will be populated into the
fields.

The parameters in the selection screen are pre-defined by KPMG in the Scope and
Configuration file and loaded in the system as a Metadata Variant. With the
exception of the Export directory field, do not change any fields before discussing
your changes with KPMG.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

12
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

The four sections in the Data Extraction Tool for the Screening data extraction are
described below.

Step Action
Check all selections on the Table Groups tab ‘SCREENING_REPORT’
1

2 Uncheck all selections on the Table Groups tab ‘FI’

3 Uncheck all selections on the Table Groups tab ‘SD_MM’

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

13
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

4 Uncheck all selections on the Table Groups tab ‘SYS’

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

14
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Execution of the Data Extraction Tool, Continued

Configure Screening Data Extraction (continued)

Metadata Profile
The profile is required to populate the Constraints, Table Groups selection and other
extraction parameters and specifications.

Constraints
The data selections in this section apply limitations to certain tables in the account
mapping data.

Destination
Prior to running the report the output option and Export directory need to be
defined. Enter a valid folder or directory path on the application server. Verify that the
directory path contains a trailing-slash if it is a UNIX environment or a trailing-
backslash if it is a Windows environment. Example: For UNIX /usr/sap/kpmg2012/
Ensure that the export directory has access restrictions in place so the extracted
data can only be accessible for authorized users.

Filename Prefix
The Filename Prefix will allow several jobs extracting the same table or tables into
the same directory to execute in parallel without overwriting one another.

File Compression
The Compress files checkbox specifies that the extract files need to be
compressed. When this option is selected, files will either be compressed after data
extraction has completed for the Object (header, footer and related data tables) or
right after each file (partition) is closed depending on which of the following 2 options
is selected:

a) “After each Table”


b) “After each File partition”

Selecting the Delete files after Compress option just confirms that you want to delete
the original extract files to free up space. The parameter Max. File size (in MB) is
necessary for compression because the whole file to be compressed has to be read
into memory and memory is limited which makes it necessary to partition the large

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

15
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

files into smaller files. These options are useful for systems with memory constraints
or with limited disk space in the application server file directory.

Clean Directory Before Extraction


The ‘Clean Directory Before Extraction’ option provides the possibility to clean the
files in a directory from a prior run. Only files are deleted which means sub-
directories will be kept. If “Filename Prefix” is specified, only files having this prefix
will be deleted.

Table Groups
In the Table Groups selection screen block, there are four report tabs defined. The
first tab is the one used for the specifications for the Screening data extraction.
The selected checkboxes and selections define the settings and show the SAP
tables and table fields to be downloaded plus the selection options or constraints for
the tables. In the special case of a group for extracting data via subroutines instead
of table queries, the subroutine names are shown instead of tables. Do not deselect
the checkboxes or change any of the selections without first discussing the changes
with KPMG.

Technical Settings
Additional extraction options are available primarily provided to achieve better
performance and also to give flexibility in order to avoid technical problems such as
memory shortage.

Remove Linefeed characters in Text field option


This option is selected by default to remove all Linefeed characters that may be the
content of a data field as they lead to a line break in the exported text file which
causes errors during the import process by the missing end of record delimiter.
Usually these characters are found in description fields. There is the option to

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

16
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

deselect this feature to increase the extraction runtime and reduce the load on the
SAP system.

All the other Technical Settings are not relevant for the Screening data extraction.

An ABAP program variant (or Selection screen Variant) is required to create a


Background job to execute the Data Extraction Tool. It is important to note that
because the Data Extraction Tool includes several sub screens, unless all these sub
screens are displayed on screen before saving the selection screen to create the
variant, some of the sub screens may not be saved/ included with the variant. It is
very important to make sure that all the screens are selected/ checked before
saving.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

17
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Step Action
1
From the configuration screen, click
Result: Variant Attributes displays

2 Enter desired Variant ID in the Variant Name field and Description in the
Meaning field.
Make sure all the checkboxes in the Screen Assignment are selected/
checked. Use the scroll bar to see all the screens in the list.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

18
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

3
Click
Result: Message confirming that the Variant is saved displays

There are three report tabs used to extract transaction and master data from the
Configure
Transaction Data
SAP system. Due to the high volume of the tables downloaded by these reports it is
Extraction generally necessary to schedule them separately as background jobs.

• FI tab extracts data from the Financial module


• SD_MM tab extracts data from the Sales and Distribution and Materials
Management modules
• SYS tab extracts system data and change documents

The parameters in the selection screen are pre-defined by KPMG. With the
exception of the Export directory field, do not change any fields before discussing
your changes with KPMG.

Step Action
1 Uncheck all selections on the Table Groups tab ‘SCREENING_REPORT’

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

19
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

2 Check all selections on the Table Groups tab ‘FI’

3 Check all selections on the Table Groups tab ‘SD_MM’

4 Check all selections on the Table Groups tab ‘SYS’

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

20
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Execution of the Data Extraction Tool, Continued

Configure Transaction Data Extraction (continued)

Metadata Profile
The profile is required to populate the Constraints, Table Groups selection and other
extraction parameters and specifications.

The three main sections in the ABAP Data Extraction Tool for the transaction data
extraction are described below:

Constraints
The Constraints section defines the limitations that are applied when downloading
the transaction data tables.

The Objectclasses field is used only to restrict the extraction of the change
document tables.

The Period fields’ dates are pre-initialized periods which usually exceed the actual
period under consideration by one month in each direction to cover business
processes beginning earlier and potentially ending through the day of extraction.
This also applies to the fiscal year parameters which contain the subsequent
financial year transactions.

The Sales organization, Purchasing organization, Valuation area and Plant


constraints are determined by the Company code constraints based on the current
Enterprise Structure assignments. These four organizational unit constraints are
determined internally when the report is executed so it’s usually not necessary to

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

21
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

specify the values in the selection screen. However, there may be instances where
the current assignments are not valid for the extraction/reporting period. Some units
may have been re-assigned to other company codes, or new units added, etc. If this
is the case, these constraints have to be maintained to reflect the organization
during the reporting period before executing the report.
Destination
Prior to running the report the output option and Export directory need to be
defined. Enter a valid folder or directory path on the application server. Verify that
the directory path contains a trailing-slash if it is a UNIX environment or a trailing-
backslash if it is a Windows environment. Example: For UNIX /usr/sap/kpmg2012/
Ensure that the export directory has access restrictions in place so the extracted
data can only be accessible for authorized users.

Filename Prefix
The Filename Prefix will allow several jobs extracting the same table or tables into
the same directory to execute in parallel without overwriting one another.

Compress files and Delete files after Compress options


These options are useful for systems with limited disk space in the application server
file directory. The option exist to compress each file after it got created or the files for
each table after the table got extracted. Selecting the Delete files after Compress
option just confirms that you want to delete the original extract files to free up space.
The parameter Max. File size (in MB) is necessary for compression because the
whole file to be compressed has to be read into memory and memory is limited
which makes it necessary to partition the large files into smaller files.

Clean Directory Before Extraction


The ‘Clean Directory Before Extraction’ option provides the possibility to clean the
files in a directory from a prior run. Only files are deleted which means sub-
directories will be kept. If “Filename Prefix” is specified, only files having this prefix
will be deleted.

Table Groups
In the Table Groups selection screen block, there are four report tabs defined. The
first tab is the one used for the specifications for the Screening data extraction. The
second tab is for extracting FI data, the third for SD_MM data, and the fourth for
System data. The selected checkboxes and selections define the settings and show
the SAP tables and table fields to be downloaded plus the selection options or
constraints for the tables. In the special case of a group for extracting data via
subroutines instead of table queries, the subroutine names are shown instead of

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

22
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

tables. Do not deselect the checkboxes or change any of the selections without first
discussing the changes with KPMG.

Technical Settings
Additional extraction options are available primarily provided to achieve better
performance and also to give flexibility in order to avoid technical problems such as
memory shortage.

# of PID for Parallel processing option


This parameter is relevant only when using the Parallel processing option and sets
the limit of the number of parallel DIA processes that can be active at any one time
to prevent the extraction job from occupying all the available DIA processes.

Output Job log for Parallel processing option


This option may only be useful when it’s necessary to track the events and timing
when using the Parallel processing option. Otherwise, leave it deselected as it will
create a lot of job log messages that may create spool issues.

Remove Linefeed characters in Text fields option


This option is selected by default to remove all Linefeed characters that may be part
of the content of a data field as they can be confused for an end of record delimiter.
Usually these are found in some long text fields. There is no good reason to deselect
this option.

Download related transactions option


In addition, there is a special provision to extract related transactions and the related
tables will also be added to the list of tables to extract. These related tables are
always displayed on the selection screen (hardcoded, meaning not via XML
configuration) but will only be extracted if the corresponding checkboxes are

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

23
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

selected. This option is selected by default for the purpose of extracting older data or
documents related to the Purchase invoices, Sales invoices, Accounting documents
and Change documents. For example if the Sales order related to the Sales invoice
is older than the current reporting period, it won’t otherwise be available in the KAAP
application for analysis because the Sales document extraction will only extract
Sales orders for the current reporting period. In addition to the above dependent
transaction logic for sales subledger documents outside of the analysis period has
been expanded with the following:
• An option to extract recursively all documents preceding sales order
documents (e.g. contracts, scheduling agreements)
• An option to extract all the transaction documents (e.g. sales orders,
deliveries, invoices, etc.) with individual calls related to those newly
extracted contracts or scheduling agreements
• An option to extract invoice related purchase documents for PTP

Query Footer tables outside Header SQL for Simple query logic
This option when selected will extract footer table data only after the header data
extraction is completed instead of within the header table looping to prevent (DB2)
database timeouts due to the header table SQL taking longer than the set maximum.
The footer extraction use the document number range as determined in the head
table data selection. Likely drawback is that some footer table data may be extracted
that do not have corresponding extracted header table data. <DOCNBR> in the XML
file is used to remove the hardcoded settings by flexible XML tags that can be
altered depending on the field to query by.

Technical Configuration options:

Extraction Logic

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

24
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Certain tables are identified to better be handled using a specific Extraction logic
other than a simple/flat query. If for some reason, a simple query is desired instead,
there is an option provided to disable using the special extraction logic by removing
the extraction logic code for the table.

Parallel processing will improve performance for the larger tables where the
overhead required to perform parallel processing is outweighed by the amount of
time required to extract all the data sequentially. Parallel processing may be
activated for these tables by marking their corresponding checkbox.

Package size

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

25
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Due to the size of the tables, an iterative approach is taken whereby each group of
tables is downloaded one at a time. The logic that is used to download tables can be
customized with Package sizes (number of records to be extracted in one iteration)
to comply with available memory as well as parallel processing settings to execute
multiple parallel download processes. Depending upon the basic system settings
and available memory, Upload program can change the package size values prior to
the extraction run.

Number Range Min/Max

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

26
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Specifically for the Number Range extraction logic, performance is generally


improved if the iteration using the number range is limited to the numbers that were
used for the specified extraction Period. The Min/Max option is available to minimize
the number of times the query is performed.

Archive Settings

Those settings can be checked to extract data from the SAP archive. The Table
Groups that are then related to several Archiving Index can be checked and the
package size can get changed.

Source

This option is to choose between extracting data from the Online Database and/or
the Archive. In case of the Archive data extraction the checkboxes for the Table
Groups have to be checked on the Archive Settings.

For details regarding the available parameter settings, refer to the Appendix in this
document.

An ABAP program variant (or Selection screen Variant) is required to create a


Background job to execute the Data Extraction Tool. It is important to note that
because the Data Extraction Tool includes several sub screens, unless all these sub
screens are displayed on screen before saving the selection screen to create the
variant, some of the sub screens may not be saved/ included with the variant. It is
very important to make sure that all the screens are selected/ checked before
saving.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

27
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Step Action
1
From the configuration screen, click
Result: Variant Attributes displays

2 Enter desired Variant ID in the Variant Name field and Description in the
Meaning field.

Import: Make sure all the checkboxes in the Screen Assignment are
selected/ checked. Use the scroll bar to see all the screens in the list.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

28
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

3
Click
Result: Message confirming that the Variant is saved displays

The Metadata Profile, after initially importing into the Data Extraction Tool selection
screen, can be modified and re-configured in the selection screen: package sizes
may be optimized, extraction logic may be switched to the option that works best for
the client, etc. There is an option to save this new configuration by generating a new
Scope and Configuration file.

Step Action
1 From the selection screen,

click

Result: Pop-up window displays to prompt user to specify file name and
location for the generated XML file.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

29
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

2
Select . or .

Result:

saves the generated XML file into the specified file name
and location.

aborts the process.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

30
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Execution of the Data Extraction Tool, Continued

The scheduling program helps with scheduling the extraction job in the background
Scheduling Data
Extraction
after a variant of the Data Extraction Tool was successfully created in the
Configuration step. The following steps has to get executed to schedule the data
extraction.
Step Action
1
From the landing page, click

From the different other pages, click


Result: Scheduling screen displays

2 Select the variant named we stored in the Configuration step. All stored
variants can be selected via F4 functionality.

3 The following fields should be entered:


The Program variant should contain a valid Data Extraction Tool variant,
for example, e.g FY2018_Q1.
The Job name (prefix) should contain a prefix for naming the job.
The name of the job to be scheduled will be a concatenation of the Job
name (prefix) and the Program variant, e.g., with prefix KPMGDA, results
in job name KPMGDA_FY2018_Q1.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

31
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

The following remaining fields should only be entered if it is necessary to


override the system defaults:
The Job class determines the priority of the background job
A – High priority
B – Middle priority
C – Low priority (default)
The Exec. Target provides the possibility to specify the processing server
used to execute the background job for SAP systems with more than one
application servers.
The Printer selections provide the possibility to enter a printer ID for the
output of the job.
The program also allows the user to enter the User name under which the
job should be executed. Make sure that the User name has the privileges
to execute the job.
The remaining selection is the Date/Time when the job should get
executed. If the date and time is not specified, the job will be scheduled
immediately.

4
Click
Result: The extraction job will be scheduled in background.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

32
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Execution of the Data Extraction Tool, Continued

The monitoring program allows the user to monitor the extraction job. During the run
Monitoring of the extraction job the user can check manually for the progress of the extraction
Data Extraction by entering the monitoring program. The program consists out of an overview screen
and a detailed screen, which then provides further details The following steps should
be followed to monitor the extraction jobs.

Step Action
1
From the landing page, click

From the different other pages, click


Result: Monitoring program screen displays

2 Select the Job Name we stored in the Scheduling step. The available
background jobs can be selected via F4 functionality. The screen shows
the status of the extraction job, start date and time, end date and time, the
amount of tables and fields we are going to extract and the last SQL
statement.

3
Click
Result: The status of the extraction job will be refreshed and loaded.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

33
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

4 To reach the extraction detail screen mark the line with the Job Name and
click
Result: The job details will be shown that list all the extracted tables and
files which were created including information about the size, rows and
extraction logic.

5 To reach the job log of the extraction job mark the line with the Job Name
and click
Result: The job log will be shown that list all the steps of the extraction job.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

34
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

35
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Execution of the Data Extraction Tool, Continued

The download program provides the possibility to load the extracted data from the
Download Data
Extracts
target directory of the application server to the clients’ machine without further
interaction with the basis team. Several files can get selected and copied than
through the SAP application layer to the client.

Step Action
1
From the landing page, click

From the different other pages, click


Result: Download program screen displays

2 Select the source folder on application server by using the F4 functionality


or directly entering the destination path of the extraction job. In addition
select the Target Folder on the clients’ machine.

The possibility to overwrite files or filter for certain file types is possible.

Hit ENTER key to confirm change in the folder names.


3 To select the files to be copied, click into the File Selection field and then
press F4 key and the list of files found in the ‘Source Folder On Application
Folder’.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

36
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Select/check the files to be downloaded. Please refrain from selecting too


many files as downloading files is an online execution of the program and
hence restricted to the Timeout parameter of the system.

To change the selected files please click and then select or unselect
files.

4 To initiate the download click

The download will be executed as a front-end transaction. Please be


aware that during that time no further transaction is possible on that
session. List of files downloaded are displayed in the report output.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

37
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

III. Troubleshooting
If the extraction program is interrupted or cancelled, send the following information
Possible errors
via email to the KPMG team.
1. Details of the ABAP-Runtime error of the cancelled extraction report as
shown in SAP transaction ST22.
2. Runtime of the extraction job (in seconds) up to the point where the report
failed as shown in SAP transaction SM37.
3. Name and data volume of the files that have been created in the extraction
folder up to the point where the report failed.
4. All Extraction log files that have been created in the extraction folder (files
starting with KPMG_LOG_*).

If the KPMG team asks you to provide any test results after a successful execution of
the reports in the test environments, please provide the items listed in points 2 to 4
above.

What could go wrong?


Execution of the Reports

ISSUE: The execution of an ABAP report fails because the report fails to write
any data in the extraction folder.

Solution 1: Verify that the SAP user executing the ABAP reports has sufficient write
permissions for the extraction folder on the file system.

Solution 2: Verify that the extraction folder is mounted to the SAP application server
instance that the ABAP report is running on.

Solution 3: Make sure to select an extraction folder with sufficient disk space. KPMG
can assist you with determining the required disk space based on the output of the
screening report.

Solution 4: Do not mount/dismount the extraction folder in the file system while
executing the transaction data report as this may cause errors in writing the output
files.

ISSUE: When validating the output of a transaction data report the KPMG
team finds that not all of the required files have been created in the
file system even though all reports completed without error.

Solution 1: Some of the checkboxes have been deselected in the Table Groups
section of the selection screen. Make sure not to deselect (uncheck) any of the
checkboxes unless advised by the KPMG team.

Solution 2: An error occurred during the implementation of the ABAP reports


causing the same ABAP code to be copied and pasted in two different reports. Make
sure that the ABAP selection screen in each of the transaction data reports shows a
different list of tables to be executed.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

38
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Troubleshooting, Continued

Possible errors (continued)

Solution 3: Verify that only the current version of the transaction data reports is
executed. Delete any older versions of the KPMG ABAP transaction data reports.

ISSUE: When validating the output of the transaction data report the KPMG
team finds that the output files do not contain all the relevant
transaction data even though all reports completed without error.

Solution 1: The ABAP transaction data reports can only be used to extract data from
one SAP client at a time. Make sure that the reports are executed in the SAP client
from which the data should be extracted. Make sure that this client is specified in the
Client field in the selection screen.

Solution 2: Verify that the parameters for Company Code and Fiscal Year match the
KPMG customization of the SAP system. The company code entries must be the
same as the customization. Example: Leading “0” numbers must be entered in the
selection parameter if company code is “0100”. Also, the Fiscal Year and the Date
parameters must agree to the customizing of the fiscal periods. Example: If the SAP
fiscal year is different from the calendar year, consider this when entering the Fiscal
Year and Dates in the selection screen.

Transfer of the Data

ISSUE: High transfer times when copying the extracted data from the SAP
application server to the encrypted hard drive.

Solution 1: Copying the extracted data files from the SAP application in an
uncompressed format may cause significant transfer time. If a compression program
is available on the SAP application server, the extracted files should be compressed
before copying them to the hard drive. The extracted files can be compressed to
approximately 5% of their original file size using standard compression algorithms.

ISSUE: The encrypted hard drive cannot be accessed or mounted after the
data has been transferred.

Solution 1: Make sure that the encrypted partition on the external hard drive is not
formatted when attaching the drive to a desktop computer.

Solution 2: Make sure that the encrypted drive is properly un-mounted before the
drive is removed from a desktop computer.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

39
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Appendix

The following is a brief summary of why KPMG decided to design the ABAP reports
Reasoning for
data download
and the different approaches taken to extract the data.
approach
The extraction of data from the biggest transaction data tables in SAP is complicated
and needs a table specific approach. The logic is built so that it can overcome
potential threats such as:
• Snapshot-to-Old issue: Long running SELECT statement against the SAP
Database Management System may time out if the activity in a particular SAP
table is significant and the pointer of the selection loses its consistency (e.g. SAP
Note 600141).
• Full Table scan: For certain SAP tables, the fields on which the KPMG data
requests can be limited, are not part of an index. To avoid extracting the whole
SAP table and undergoing a full table scan, various approaches of incrementally
looping through the tables instead of a single SELECT statement have been
implemented.
• Memory consumption: To not overload the available memory (RAM) during the
selection and to avoid affecting other background processes, only a limited amount
of records per table is kept in memory at once.

The ABAP reports contain four different extraction scenarios as outlined in the next
sections. The applicable extraction scenario for each table is determined based on
the expected data volume and the available index structures on this table.

The following scenario describes the process for all the tables that are small in size
Normal
extraction
such as the customizing tables like T000 or T001.
scenario
Approach
A select statement fetches one record at a time from the database table and writes it
to a data file work area. It immediately writes it to a text file in a specified destination
onto the application server. In these cases the memory consumption is close to zero.

Applicability
Transaction data tables with a small data volume or a low number of fields. All
master data, dictionary and customizing tables.

Parameters in Selection Screen


None

Environmental and Performance Constraints


None

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

40
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Appendix, Continued

Approach
Number range
loop scenario • The number ranges for the primary key document number are put into a table.
• The report loops through each number range in partitions/packages and processes
all the records through select statements by limiting on the necessary primary keys
initially and later limiting the records separately on non-indexed fields individually
by ‘if’ conditions.
• Sorted tables are used to increase efficiency. Once a number of header table
records are processed, the corresponding footer tables such as VBRP or CDPOS
are triggered. If activated, the records can be split into multiple packages and
downloaded using the parallel download approach.
• The records are written into corresponding data files and then into text files to the
specified destination onto the application server.

Applicability
Transaction data tables with large data volume that do not have an index that
includes a relevant date field such as VBAK, CDHDR, RBKP.

Parameters in Selection Screen


• Package size for the header tables which determines the number of posting
documents that are included in one loop.
• Parallel processing option which is used to execute parallel downloads for
records in the position tables (e.g. VBRP) using a remote function module (RFC).
If this option is activated the package size for the position tables and the number of
dialog processes for parallel downloads can be entered (up to 5).
• Minimum/Maximum posting number option which determines the lowest and the
highest applicable posting document number for each number range interval. If this
option is activated the lowest and highest number are selected from the
transaction data tables and the values are then used as lower and higher
boundaries for the number range loops to reduce the number of loops to be
performed.
• Use Number range intervals option determines if the selection of the relevant
number range intervals within a number range object (e.g. RV_BELEG for sales
data) is restricted based on the customizing. This is relevant if a number range
object is used for multiple tables (e.g. sales orders, deliveries and sales invoices).
If this option is activated, only the relevant number range tables for a specific table
are selected from customizing (e.g. TVAK for sales orders).

Environmental and Performance Constraints


• The package size parameter directly impacts the memory that is used for internal
tables. An increase in the package size will increase the performance of the
reports because a smaller number of loops are required. However, on systems
with very restricted memory the default values should not be increased.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

41
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Appendix, Continued

Number range loop scenario (continued)


• Activating the parallel processing option will cause a temporary usage of up to five
dialog processes in addition to the background process used by the job. Moreover,
additional memory will be used for the execution of the function module. This needs to
be considered on systems with very restricted memory and a small number of available
dialog processes, especially when all three reports are executed in parallel.
• Activating the Minimum/Maximum posting number causes a select query on the
transaction data table to determine the minimum/maximum posting document number
for each number range object. This may cause a full table scan which can result in a
Snapshot-to-Old issue. In this case, the Min/Max option has to be deactivated.
• If any entries in the customizing tables for the number range intervals (e.g. TVAK, TVLK
and TVFK) have been updated or deleted in the period of the extraction, then you
cannot use Number range intervals. Using the option may cause an incomplete
extraction because some relevant number range intervals will not be included in the
loops.

Approach
DaybyDay loop
scenario • If the Date field cannot be limited from a business requirement, all the dates from
the entire database table are put into an internal table with the respective
limitations on indexed fields. Otherwise, a list of dates from the database table
within the selection screen date range is built into an internal table with the
respective limitations on indexed fields.
• The report loops through each date and extracts all the records in packages by
limiting on the necessary primary keys and the secondary indexed date field.
• Once a group of records are put into the internal table, corresponding footer tables
are triggered such as the FEBEP table.
• The records are written into corresponding data files and then into text files to the
specified destination onto the application server.

Applicability
Transaction data tables with large data volume that have an index that includes a
relevant date field (e.g. BKPF, MKPF).

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

42
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Parameters in Selection Screen


• Package size for the header tables which determine the number of posting
documents included in one loop.
• Parallel processing option is used to execute parallel downloads for records in
the position tables (e.g. BSEG) using a remote function module. If this option is
activated the package size for the position tables and the number of dialog
processes for parallel downloads can be entered (up to 5).
• Number of days in loop (#Days/DaybyDay loop) which is used to determine the
number of days that are part of one loop. In smaller systems this number may be
increased to reduce the number of loops for a table.
Environmental and Performance Constraints
• The package size parameter directly impacts the memory that is used for internal
tables. An increase in the package size will increase the performance of the
reports because a smaller number of loops are required. However, on systems
with very restricted memory the default values should not be increased. However,
on systems with very restricted memory the default values should not be
increased.
• Activating the parallel processing option will cause a temporary usage of up to
five dialog processes in addition to the background process used by the job.
Moreover, additional memory will be used for the execution of the function module.
This needs to be considered on systems with very restricted memory and a small
number of available dialog processes, especially when all three reports are
executed in parallel.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

43
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Appendix, Continued

Approach
Master data loop
scenario 1. A structure with the primary keys (obtained from helper/lookup tables) is
built.
2. These keys are used in packages to validate against the primary keys of the
main tables that need to be extracted.
3. All records from the main tables are processed in packages for all entries in
the previously triggered helper keys and written to an internal table at each
step.
4. The records are written into corresponding data files and then into text files
to the specified destination onto the application server.

Applicability
Transaction data tables that do not have an index that includes a relevant date field
or a number range object attached to a table.

Parameters in Selection Screen


Transaction data tables that do not have an index that includes a relevant date field
or a number range object attached to a table.

Environmental and Performance Constraints


The package size parameter directly impacts the memory that is used for internal
tables. An increase in the package size increases the performance of the reports
because a smaller number of loops are required. However, on systems with very
restricted memory the default values should not be increased.

Authorization
Objects
The User role authorization object details are in an excel file attached to this file. To
view the Attachments panel click on the below:

User Role
Authorization detail

List below explains the authorizations the user needs to run the Data extraction
program.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

44
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Authorization Authorization Field and Programs Use of this authorization/Checks performed


Object value which uses
this
authorization

S_GUI ID 'ACTVT' Upload Program This is used by the program to check if the user
FIELD '60' uploading the XML file (which has the scope
and configuration data) has the authorization to
load data into SAP system.

S_TABU_DIS ID 'DICBERCLS' FIELD Upload Program Program checks if the user has authorization to
<table class> Config Program display the contents of the tables belonging to
ID 'ACTVT' FIELD the <table class>. ACTVT = ‘03’ indicates
'03'. display table entries.

S_TABU_NAM ID 'TABLE' FIELD Upload Program Program checks if the user has authorization to
<table name> Config Program display the contents of the <table name>
ID 'ACTVT' FIELD specified. This check is performed if
'03'. S_TABU_DIS check fails. ACTVT = ‘03’
indicates display table entries.

S_DATASET ID 'PROGRAM' FIELD Config Program Program checks if user has authorization to
PROGNAME Subroutine access operating system files. ACTVT = ‘34’
ID 'ACTVT' FIELD Program indicates user can write and delete operating
'34' system files. File access can be restricted to a
ID 'FILENAME' FIELD few known programs by using <PROGNAME>.
P_PATH.

S_DATASET ID 'PROGRAM' FIELD Download Program checks if user has authorization to


PROGNAME Program access operating system files. ACTVT = ‘33’
ID 'ACTVT' FIELD indicates user can only read operating system
'33' files. File access can be restricted to a few
ID 'FILENAME' FIELD known programs by using <PROGNAME>.
P_PATH.

S_BTCH_ADM ID 'BTCADMIN' FIELD 'Y' Monitor Checks if the user has authorization to perform
Program all functions on all background jobs
Schedule
Program

S_BTCH_JOB ID 'JOBGROUP' FIELD '' Monitor In the monitor program, if the user does not
ID 'JOBACTION' FIELD Program have S_BTCH_ADM then this authorization is
‘PROT’ checked. This authorization object when
assigned to a user, permits the user to perform
different operations on select background jobs.
‘PROT’ lets the user display logs for other user’s
jobs

S_GUI ID 'ACTVT' Download This authorizes user to save lists displayed on


FIELD '61' Program SAP screen in local files (either unconverted, in
spreadsheet format, or in Rich Text Format).
This authorization can only be granted or denied

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

45
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

for all lists in the system - you cannot restrict it


to a selection of lists

S_TCODE SA38 User should be given access to the following


transactions:
/KPMGDA/DATA_EX_81
SA38 – To run the Extraction program
SU53
/KPMGDA/DATA_EX_81 transaction is used to
AL11 display the Extraction program’s landing page

SU53 – To check if the last authorization check


for the user was successful

AL11- To view the files on SAP Application


server

S_SPO_DEV LOCL SAP names of the output devices, for which


user is given authorization to print.
%LOC

S_GUI ID 'ACTVT' User authorizations for activities ‘Print’ and


FIELD '2' ‘Change’ with reference to GUI objects

ID 'ACTVT'
FIELD '4'

S_PROGRAM ID ‘ P_ACTION’ FIELD ‘*’ SAP checks if the user has authorization to
execute ABAP programs by program group. By
ID ‘GROUP’ FIELD assigning this authorization, user can start the
‘*’ program, schedule the program as background
job and maintain variants.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

46
KPMG Data & Analytics
Data Extraction Tool for SAP® - Execution Guide v8.2

Disclaimer:

This publication contains references to the products of SAP AG.

SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP BusinessObjects Explorer,
StreamWork, and other SAP products and services mentioned herein as well as their respective
logos are trademarks or registered trademarks of SAP AG in Germany and other countries.

SAP AG is neither the author nor the publisher of this publication and is not responsible for its
content. SAP Group shall not be liable for errors or omissions with respect to the materials. The
only warranties for SAP Group products and services are those that are set forth in the express
warranty statements accompanying such products and services, if any. Nothing herein should be
construed as constituting an additional warranty.

© 2018 KPMG International Cooperative (“KPMG International”), a Swiss entity. Member firms of the KPMG network of independent firms are affiliated with KPMG International.
KPMG International provides no services to clients. No member firm has any authority to obligate or bind KPMG International or any other member firm vis-à-vis third parties, nor
does KPMG International have any such authority to obligate or bind any member firm. All rights reserved.
The KPMG name and logo are registered trademarks or trademarks of KPMG International.
® Trademarks are the property of their respective company.

47

You might also like