{"title":"Export VAT statements in XML format","url":"https://jonas-paprotka.de/docs/localfunctionality/spain/how-to-export-vat-statements-in-xml-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-export-vat-statements-in-xml-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-export-vat-statements-in-xml-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 export a VAT statement as an XML file in Business Central for Spain, select VAT entries, and review the XML transference format.","date":"2026-10-20","meta":{"topic":"how-to"},"outline":[{"level":2,"title":"Steps to export a VAT statement in XML format","slug":"steps-to-export-a-vat-statement-in-xml-format","at":197,"chars":1375},{"level":2,"title":"Related information","slug":"related-information","at":1572,"chars":262}],"text":"You can export a VAT statement in XML format and then submit it electronically to the tax authorities.\nLearn more at the Spanish Tax Agency<https://go.microsoft.com/fwlink/?LinkID=238181> website.\n## Steps to export a VAT statement in XML 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 Generate XML file action.\n> IMPORTANT\n> The VAT statement name must be of the template type One Column Report.\n> In the standard version of Business Central, the VAT statement name for the 392 telematic statement is of the type One Column Report.\n1. On the XML VAT Declaration page, on the Options FastTab, fill in the fields as described in the following table.\n Field|Description\n VAT entries included|Specify if the VAT statement must include open entries, closed entries, or both open and closed entries.\n VAT entries included|Specify if the VAT statement must include only entries from the period that is specified in the Date Filter field, or also entries from previous periods.\n Additional Currency|Select to display the report amounts in the additional reporting currency.\n1. On the VAT Statement Line FastTab, specify a value for the Date Filter field.\n Optionally, select additional filters.\n1. Choose the OK button.\n1. On the XML Transference Format page, verify that the VAT statement is set up as required, and then choose the OK button.\nYou can open or save the generated XML file. You can now submit the VAT statement to the tax authorities.\n## Related information\n how-to-create-templates-for-telematic-vat-statements-in-xml-file-format\n how-to-export-vat-statements-in-text-format\nFind free e-learning modules for Business Central here<https://learn.microsoft.com/training/dynamics365/business-central>"}