{"title":"Create templates for telematic VAT statements in XML file format","url":"https://jonas-paprotka.de/docs/localfunctionality/spain/how-to-create-templates-for-telematic-vat-statements-in-xml-file-format/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/localfunctionality/spain/how-to-create-templates-for-telematic-vat-statements-in-xml-file-format, MicrosoftDocs/dynamics365smb-docs at 46907ac (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/localfunctionality/spain/how-to-create-templates-for-telematic-vat-statements-in-xml-file-format","source":{"name":"Business Central application docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-docs","commit":"46907ace177f8d31deba47a2fdb57c3336e66252","date":"2026-11-19"},"checked":"2026-11-19","description":"Learn how to create templates for telematic VAT statements in XML format in the Spanish version of Business Central to enable electronic submission.","date":"2026-10-20","meta":{"topic":"how-to"},"outline":[{"level":2,"title":"Create a template for VAT statements in XML file format","slug":"create-a-template-for-vat-statements-in-xml-file-format","at":307,"chars":1804},{"level":2,"title":"Related information","slug":"related-information","at":2111,"chars":262}],"text":"In order to submit VAT statements electronically, you must create templates to generate the required files. You can submit files in text format and in XML format. This procedure describes how to create templates for XML files.\nSee Spanish Tax Agency<https://go.microsoft.com/fwlink/?LinkID=238181> website.\n## Create a template for VAT statements in XML file format\n1. Select Search (Alt+Q) in the upper-right corner, enter VAT Statement, and then choose the appropriate link.\n1. Select the required VAT statement, and then choose the Design XML file action.\n1. On the XML Transference Format page, fill in the fields as described in the following table.\n> IMPORTANT\n> The values for the fields are determined by the tax authorities.\n> Learn more at the Spanish Tax Agency<https://go.microsoft.com/fwlink/?LinkID=238181> website.\nField|Description\nVAT Stmt. Name|Specify the VAT statement name that this template is for.\nNo.|Specify the field number in the XML file.\nLine Type|Specify whether the VAT statement line type is an XML element or an XML attribute.\nIndentation Level|Specify the indentation level for the label. This level is used to format the XML file.\nParent Line No.|Specify the line number of the parent line that the current line is indented under.\nValue Type|Specify the subtype of the field.<br><br/> The subtype specifies if the line must show only the integer part of an amount, the decimal part, or the full amount.\nDescription|Specify the text that you want to appear on the label.\nValue|Specify the value for the label.\nBox|Specify the box number from which to retrieve the data.\nAsk|Specifies if the Value field can be changed before you create the XML file.\nExists Amount|Select to omit the XML node when both Value and Box are blank.\n1. Repeat the previous step for additional lines in the VAT statement.\n1. Choose the OK button.\nThis creates the template. Now, you can create a file that you can then submit to the tax authorities.\n> NOTE\n> Use either Value or Box on a line, not both. If you specify Box, select a nonblank Value Type. An attribute requires either a value or a box.\n## Related information\n how-to-export-vat-statements-in-xml-format\n how-to-create-templates-for-telematic-vat-statements-in-text-file-format\nFind free e-learning modules for Business Central here<https://learn.microsoft.com/training/dynamics365/business-central>"}