In this exercise, we will learn how to define a document of format "TXT" which would contain the VAT line items
- Click on the "Define Statutory Reports" app
- Go to "Report Definition" tab
- Click on "Add"
- Select the radio button "Enhanced" and mark the checkbox "Do you want to extend an existing report definition"
- For the "Reference Report Definition" field, use the value-help and choose the report definition "ADV_VAT_RET_SUMMARY".
- ADV_VAT_RET_SUMMARY is the generic VAT report definition which is already defined as per the common statutory reporting requirement and can be easily extended. You can read more about such generic reports here: https://blogs.sap.com/2022/07/22/scaling-up-statutory-reporting-with-extensibility-in-sap-s-4hana/
- Enter a meaningful name in the field "New Report Definition" and click on "Continue"
- Click on "Edit"
- Step 1 and Step 2 can be skipped as the requirements do not warrant any adjustments here
- Under Step 3 - Query Definition, click on "Add"
- Enter a meaningful Query ID and click on continue
- Under "General Properties", provide a meaningful description
- Select the "Data Source Type" as "CDS View"
- Search for the CDS view "I_STRPTAXITEM" and select it
-
Under the now visible "Filters" section, set the filters as following:
- Search for CompanyCode and set the toggle as true
- Under "Define Filter Conditions", Select "Report Parameter", "Equals" from the drop downs and select "CompanyCode" from the "Report Parameter" value- help
- Search for "ReportingDate" and repeat the above steps
- In the "Report Parameter" value-help, select "Reporting Date"
- Click on "Activate"
- Go to Step 4 - Document Definition and click on "Add" and select "Add with schema/query"
-
Under "Document Id", provide a meaningful document id
-
Select "Document Type" as "TXT" and continue
- Under "General Properties", provide a meaningful document name
- Check the radio button "Create using query" and select the query id created in the previous step
- In the "New Schema" pop-up, click on "Select Columns" and in the next pop-up select all the columns and click on "Continue"
- Click on "Activate"
- Under "General Properties", in the "Delimiter" field, maintain ";"
- Click on "Activate"
You have now created an extended report definition which would generate a text file that would contain the VAT line items delimited by ";"
Continue to - Exercise 2 - Creating a custom report category