Add a custom Business Partner Correspondence form in SAP Document and Reporting Compliance – Statutory Reporting (Formerly ACR)

SAP Document and Reporting Compliance reporting(formerly Advanced compliance reporting – ACR) is global compliance reporting solution for creating and submitting statutory reports on time and in correct format to the government.

What is a Business Partner correspondence form?
Company need to report the taxes paid on behalf of supplier as well as may require submit tax details to the respective business partners through the business partner correspondence documents. Usually correspondence document is in PDF format.

you can read about correspondence form on SAP help portal.

Correspondence form in statutory reports

How to add a custom Business Partner Correspondence form to SAP Document and Compliance reporting App?

Let us start by creating an Adobe form template which can be included in DRC.

Steps:

Go to the transaction SFP and enter the name of the form e.g ZFIWTES_GENERIC_BP and click on create. You need to use ‘SOMU_DEFAULT_INTERFACE’. If you create form with ‘SOME_DEFAULT_INTERFACE’ then layout technology will be ‘XFA2’ form. This form uses OData service as data source unlike XFA form. Assign OData service to the form. In this scenario it is ZFDP_FIWTES_CERT_SRV. We are going to create this service in next step.

Go to the transaction SEGW. Create a project. In this case it is ZFDP_FIWTES_CERT.
Your Entity model will have 2 parts.

QueryNode
Entity with name ‘QueryNode’ must be there in your project. Properties in this node will be taken as selection parameters by DRC framework. You should have Correspondence UUID property which is for UUID assigned to the form by DRC framework.

HearderNode
Name of the entity should not necessarily be ‘HeaderNode’. You can give any suitable name. Data from this entity we will use as data source for Adobe form. You must have an association between ‘QueryNode’ and ‘HeaderNode’ so that data can flow from DRC to QueryNode to HeaderNode.

Entity structure of your gateway project will look like below.

Generate run time artifacts and write your code in MPC_EXT and DPC_EXT classes. in this scenario ZCL_ZFDP_FIWTES_CERT_DPC_EXT and ZCL_ZFDP_FIWTES_CERT_MPC_EXT.

No need to register the service on gateway hub.

Open the layout of Adobe form created in first step and design the layout according to your requirement. In the data binding section you can assign field from header node. Format will be $HeaderNodeName.datafield as shown in below screenshot.

Go to the SPRO path Cross-Application Components->Output Control->Assign Form Templates. And add entry like below.

Application Object Type = SRF_REPRUN,  Output Type = ‘ACCT_WHT’, Form Type = ‘Output forms (gateway interface)’ , Form Template ID = your Adobe form name.

Now open the ‘Define Statutory Reports App’ app. You can extend an existing report definition or create one on your own. In this example we will extend the standard report definition for Spain Modelo 193 report.

Click on “Add” button in the app ‘Define Statutory Reports’ and fill in following data.

In the correspondence section, add a new form with the form template created in previous steps. You should assign a query ID which returns all the withholding tax items that should be considered in the report. Ideally same query which is used for generation of legal file should be used for correspondence section also.

Assign fields in query assigned in previous step to parameters. Properties in query node in Adobe form template will appear as parameters.

App will group the withholding tax items returned by query Tax_Items by the parameters mentioned on this screen and one form per group will be created.

You Can create a report category extension as explained in the page Create Report Category Extension and assign it to reporting entity as explained in page Assign Report Category to Entity

If you want to configure your own report category, you can refer the page Create Report Category and assign it to reporting entity as explained in page Assign Report Category to Entity

Go to the app “Run Statutory Reports” and open the report name  “ZES_WHT_M193” or the category extension that you have created and reporting year 2022. Create a new run as shown below.

Click on successfully generated run and navigate to “Business Partner Reporting”. From here you will be able to download the PDF file and send it to a supplier.

If you find this post helpful then please like, share and subscribe. You can also share your feedback in comments section.

Please feel free to post a question/ answer a question about Document and compliance reporting (formally called as Advanced Compliance Reporting) in Advance Compliance Reporting page.

You can read other blog posts on Advanced Compliance Reporting”  Blogs on Advanced Compliance Reporting