0% found this document useful (0 votes)
50 views15 pages

SAP Compliance Report Schema Guide

Uploaded by

kedoh68709
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)
50 views15 pages

SAP Compliance Report Schema Guide

Uploaded by

kedoh68709
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

1/13/25, 11:56 AM Blog series on Define Compliance Reports: Creating...

- SAP Community
m
m
Products and Technology Groups Partners Topics Events What's New Get Started
u
ni
t
y
SAP Community  Products and Technology  Technology  Technology Blogs by SAP
 Blog series on Define Compliance Reports: Creating...

Technology Blogs by SAP


Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP
BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.

Blog  What are you looking for today?

Blog series on Define Compliance Reports: Creating a schema

jaishreeseth
Advisor

‎2021 Jun 17 7:53 AM

 9 Kudos  2,761

SAP Managed Tags: SAP S/4HANA Finance,


SAP Document and Reporting Compliance

This blog post is a part of the multi part series of blog posts on the Define compliance
Reports application in which we cover the end to end process of creating a report
using SAP Document and Reporting Compliance – Statutory Reporting (Formerly
ACR).

In this blog post, we’ll talk about creating a schema – the structural information of the
report output. In DRC - Statutory Reporting, schemas can be created based on a
technical object or also from a query defined in the report itself. The various technical
object formats which are supported for schema creation include XSD, JSON, XBRL.
Additionally, users can also create schemas using DDIC structures or CDS views or
DRC - Statutory Reporting queries.

Here we talk about how to create a schema using ABAP dictionary structure and using
an DRC - Statutory Reporting query.

Schema created using DDIC structure

https://community.sap.com/t5/technology-blogs-by-sap/blog-series-on-define-compliance-reports-creating-a-schema/ba-p/13502164 1/15
1/13/25, 11:56 AM Blog series on Define Compliance Reports: Creating... - SAP Community

The example schema has the following structure:

Report Header:

Company Name

Country Key

Total Input Tax

Tax Amount in Local Currency

Total Output Tax

Total Tax Payable

Reporting Currency

Item Level (Output tax):

Company Code

Transaction Key

Tax on Sales/Purchases Code

Percentage share of return delivery

Tax Reporting Country/Region

Tax Base Amount in Local Currency

Tax Amount in Local Currency

Total Amount in Local Currency

Currency Key

https://community.sap.com/t5/technology-blogs-by-sap/blog-series-on-define-compliance-reports-creating-a-schema/ba-p/13502164 2/15
1/13/25, 11:56 AM Blog series on Define Compliance Reports: Creating... - SAP Community

Item Level (Input tax):

Company Code

Transaction Key

Tax on Sales/Purchases Code

Percentage share of return delivery

Tax Reporting Country/Region

Tax Base Amount in Local Currency

Tax Amount in Local Currency

Total Amount in Local Currency

Currency Key

To create a schema using DDIC structure, first create database structure with the
required fields.

Here is the structure which will be used in this example:

https://community.sap.com/t5/technology-blogs-by-sap/blog-series-on-define-compliance-reports-creating-a-schema/ba-p/13502164 3/15
1/13/25, 11:56 AM Blog series on Define Compliance Reports: Creating... - SAP Community

ZDEMO_TT_VAT_OUTTAX is a table type of structure shown below:

ZDEMO_TT_VAT_INTAX is a table type of structure shown below:

Now to create schema in report definition.

In the Report Definition, Document section, specify a schema ID and click on Create.

https://community.sap.com/t5/technology-blogs-by-sap/blog-series-on-define-compliance-reports-creating-a-schema/ba-p/13502164 4/15
1/13/25, 11:56 AM Blog series on Define Compliance Reports: Creating... - SAP Community

In the popup, choose ABAP Dictionary and choose the structure (like the one created
above)

Now, click on verify to check if the schema has any errors. If there are no errors, click
on Activate.

And the schema is created.

https://community.sap.com/t5/technology-blogs-by-sap/blog-series-on-define-compliance-reports-creating-a-schema/ba-p/13502164 5/15
1/13/25, 11:56 AM Blog series on Define Compliance Reports: Creating... - SAP Community

To see the details of schema created, navigate to Mapping section.

Here the details are available and the corresponding data sources can also be
mapped.

The DDIC structure name is available as 1st element, followed by header details.

Then the item level information (output tax and input tax) is available. For item level
information, since multiple nodes are possible, there is an option to assign loop
query.

https://community.sap.com/t5/technology-blogs-by-sap/blog-series-on-define-compliance-reports-creating-a-schema/ba-p/13502164 6/15
1/13/25, 11:56 AM Blog series on Define Compliance Reports: Creating... - SAP Community

Schema created using query

To create a schema using query, first a query needs to be created. For this go to query
section in report definition and create a query [more details about how to create query

https://community.sap.com/t5/technology-blogs-by-sap/blog-series-on-define-compliance-reports-creating-a-schema/ba-p/13502164 7/15
1/13/25, 11:56 AM Blog series on Define Compliance Reports: Creating... - SAP Community

in blog post here]. In this example, we assume that output tax needs to be submitted
to government.

Example query:

Now, this query will be used to create a schema. In the Report Definition, Document
section, select the radio button for “Query”.

https://community.sap.com/t5/technology-blogs-by-sap/blog-series-on-define-compliance-reports-creating-a-schema/ba-p/13502164 8/15
1/13/25, 11:56 AM Blog series on Define Compliance Reports: Creating... - SAP Community

In the pop-up, select the query from which the schema must be created.

Now click on “Select Columns” to select the fields that will be used to create schema.

Next popup displays all the available columns from the CDS view used for creating
query.

The required columns can be selected. It is also possible to order the selected
columns based on the requirements.

In the mapping section, the schema elements can be seen along with mapping.

https://community.sap.com/t5/technology-blogs-by-sap/blog-series-on-define-compliance-reports-creating-a-schema/ba-p/13502164 9/15
1/13/25, 11:56 AM Blog series on Define Compliance Reports: Creating... - SAP Community

With this blog post, you have learned how to create a schema using DDIC structure
and DRC - Statutory Reporting query.

If you have any questions/queries, you can post them here.

Labels:

Technology Updates

Tags:

acr Define Compliance Reports design time

1 Comment

former_member776891
Member


‎2021 Nov 17 1:07 PM

https://community.sap.com/t5/technology-blogs-by-sap/blog-series-on-define-compliance-reports-creating-a-schema/ba-p/13502164 10/15
1/13/25, 11:56 AM Blog series on Define Compliance Reports: Creating... - SAP Community

 0 Kudos

Hi Jai Shree,

Nice step-by-step article.

However, I was wondering how can we get Schema details in the back-end if we want
to copy a standard schema like GENVAT_SCHEMA1 and add few changes to it.

Kind Regards,

KC

You must be a registered user to add a comment. If you've already registered,


sign in. Otherwise, register and sign in.

Comment

Labels In This Area


ABAP CDS Views - CDC (Change Data Capture) 2 Advanced Event Mesh 1 AI 1

Analyze Workload Data 1 BS Reclassification 1 BTP 1

Business and IT Integration 2 Business application stu 1

Business Technology Platform 1 Business Trends 1,656 Business Trends​256

CAP 1 cf 1 Characteristics display 1 Classes 1 Cloud Foundry 1

Confluent 1 Customer COE Basics and Fundamentals 1

Customer COE Latest and Greatest 3 Customer Data Browser app 1

Data Analysis Tool 1 Data Migration 1 data transfer 1 Databricks 1

datasphere 2 Event Information 1,396 Event Information 195 Events 1

Expert 1 Expert Insights 179 Expert Insights 868 General 2

Getting Started 2 Google cloud 1 Google Next'24 1 GraphQL 1

Introduction 1 Kafka 1 Life at SAP 779 Life at SAP 45 MDG materials 1

https://community.sap.com/t5/technology-blogs-by-sap/blog-series-on-define-compliance-reports-creating-a-schema/ba-p/13502164 11/15
1/13/25, 11:56 AM Blog series on Define Compliance Reports: Creating... - SAP Community

MDGM 1 Migrate your Data App 1 MLFlow 1 MTA 1

Network Performance Analysis 1 NodeJS 1 PDF 1 POC 1

Product Updates 4,560 Product Updates​951 Replication Flow 1 REST API 1

RisewithSAP 1 SAP BTP 1 SAP BTP Cloud Foundry 1 SAP Cloud ALM 1

SAP Cloud Application Programming Model 2 sap datasphere 2

SAP Datasphere ‫ تحقيق أقصى استفادة من بيانات األعمال‬1 SAP MDG Data Quality Management 1

SAP MDG DQM 1 SAP s4hana cloud 1 SAP S4HANA Migration Cockpit 1

Software Evolution 1 Technical article 1 Technology Updates 6,859

Technology Updates 1,165 Workload Fluctuations 1

Related Content
SAP Master data load into S4Hana or MDG?
in Technology Blogs by Members yesterday

SAP Business Technology Platform: “Change Agent” or “Scale Agent” Part 5 – BTP
for Finance
in Technology Blogs by SAP Friday

clean core on-prem, define background job


in Technology Q&A Friday

Navigating SAP Customizations: A Step-by-Step approach to a Clean(er) Core with


S/4HANA
in Technology Blogs by Members Friday

Orchestrate your Generative AI workflows through the SAP Generative AI Hub


in Technology Blogs by SAP Friday

Popular Blog Posts

https://community.sap.com/t5/technology-blogs-by-sap/blog-series-on-define-compliance-reports-creating-a-schema/ba-p/13502164 12/15
1/13/25, 11:56 AM Blog series on Define Compliance Reports: Creating... - SAP Community

Get Your SAP HANA Idea Incubator Badge Today!

Former Member

 41886  254  1283

SCN Mission - SAP HANA Quiz Challenge is now retired

ThomasJenewein
Product and Topic Expert

 42737  203  806

https://community.sap.com/t5/technology-blogs-by-sap/blog-series-on-define-compliance-reports-creating-a-schema/ba-p/13502164 13/15
1/13/25, 11:56 AM Blog series on Define Compliance Reports: Creating... - SAP Community

Share your #HANAStory and Win

christine_donato
Active Participant

 25742  60  452

Top Kudoed Authors

Raja_Gupta  15

ivelinakiryakov  10

Palak  9

Daniel_Sassaki  7

matthias_schmalz  6

_Nils_Lorenz_  6

https://community.sap.com/t5/technology-blogs-by-sap/blog-series-on-define-compliance-reports-creating-a-schema/ba-p/13502164 14/15
1/13/25, 11:56 AM Blog series on Define Compliance Reports: Creating... - SAP Community

Fempel  6

17689600  6

MarcelBusu  6

nageshcaparthy  5

View all

Privacy Terms of Use

Copyright Legal Disclosure

Trademark Support

Cookie Preferences
Follow

https://community.sap.com/t5/technology-blogs-by-sap/blog-series-on-define-compliance-reports-creating-a-schema/ba-p/13502164 15/15

You might also like