SAP S/4HANA Advanced Compliance Reporting - Create Schema
SAP S/4HANA Advanced Compliance Reporting - Create Schema
Create Schema
Typographic Conventions
Example Words or characters quoted from the screen. These include field names, screen titles,
pushbuttons labels, menu names, menu paths, and menu options.
Textual cross-references to other documents.
EXAMPLE Technical names of system objects. These include report names, program names,
transaction codes, table names, and key concepts of a programming language when they
are surrounded by body text, for example, SELECT and INCLUDE.
Example Output on the screen. This includes file and directory names and their paths, messages,
names of variables and parameters, source text, and names of installation, upgrade and
database tools.
Example Exact user entry. These are words or characters that you enter in the system exactly as
they appear in the documentation.
<Example> Variable user entry. Angle brackets indicate that you replace these words and characters
with appropriate entries to make entries in the system.
Error! Reference source not found. SAP S/4HANA for advanced compliance reporting
2 © 2017 SAP SE or an SAP affiliate company. All rights reserved. Admistrator's Guide
Contents
SAP S/4HANA for advanced compliance reporting Error! Reference source not found.
Contents © 2017 SAP SE or an SAP affiliate company. All rights reserved. 3
1 Getting Started
In case of flat files (TXT), ALV, or PDF formats, the XSD files are not provided by the Government. The XSD files
are only provided for formats like XML, XBRL, and so on.
As XSDs are not available, you need to create the ABAP Dictionary using transaction SE11 in back-end system for
all the nodes as per file structure. You can then parse the ABAP dictionary from the ‘Define Compliance Reports’
app.
For creating the ABAP Dictionary structure, you first need to get the information for each record and the elements
in each record. If there are multiple records for one country or functionality, then accordingly you need to
create (n) number of structure. You should only create one root structure that would be the main structure to be
able to parse in the ‘Define Compliance Reports’ app. All the record level structures would be the nested
structures in sequence of the main structure.
Please find the below structure for France Withholding Tax functionality:
The structure, shown below, is the main root structure for France, which needs to be used to uploaded while
creating the schema. Here the component type is SRFS_FR_WHT_XSD_INPUT_HDR for root node.
SRFS_FR_WHT_XSD_INPUT_HDR is another structure which contains another multiple nested structure for each
record (one structure for one record).
For example, the structure SRFS_FR_WHT_CCODE is created to capture the record1 (company code
information). Similarly, the other structures.
Error! Reference source not found. SAP S/4HANA advanced compliance reporting - Create Schema
4 © 2017 SAP SE or an SAP affiliate company. All rights reserved. Getting Started
Figure: Record level sub structures (nested)
SAP S/4HANA for advanced compliance reports Error! Reference source not found.
Getting Started © 2017 SAP SE or an SAP affiliate company. All rights reserved. 5
Figure: Create Schema using ABAP Dictionary in Define Compliance Reports app
In case of ALV (Data preview), structure must be created in a different format as shown below as the preview of
the format consists of two parts: header part and table part.
As the first step to create a structure, from which the corresponding schema will be created.
Please note that the component names are restricted as shown in below structure – ‘HEADER’ and ‘TABLE’
After this, same process need to be followed to create nested structures for the required nodes in HEADER and
TABLE section.
Once all the structures are ready in the required format, you can create schema by parsing the same in ‘Define
Compliance Reports’ App.
Error! Reference source not found. SAP S/4HANA advanced compliance reporting - Create Schema
6 © 2017 SAP SE or an SAP affiliate company. All rights reserved. Getting Started
For using the ‘Define Compliance Reports’ App, refer the attached documentation.
SAP S/4HANA for advanced compliance reports Error! Reference source not found.
Getting Started © 2017 SAP SE or an SAP affiliate company. All rights reserved. 7
www.sap.com/contactsap