{"title":"Create templates for telematic VAT statements in text file format","url":"https://jonas-paprotka.de/docs/localfunctionality/spain/how-to-create-templates-for-telematic-vat-statements-in-text-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-text-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-text-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 text file format for electronic submission in the Spanish version of Business Central.","date":"2026-10-20","meta":{"topic":"how-to"},"outline":[{"level":2,"title":"Create a template for VAT statements in text file format","slug":"create-a-template-for-vat-statements-in-text-file-format","at":322,"chars":1392},{"level":2,"title":"Related information","slug":"related-information","at":1714,"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 text files.\nLearn more at the Spanish Tax Agency<https://go.microsoft.com/fwlink/?LinkID=238181> website.\n## Create a template for VAT statements in text 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 txt file action.\n1. On the 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> See 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 text file.\nPosition|Specify the position of this field in the text file.\nLength|Specify the length of the field.\nType|Specify the type of the field. The available options are Alphanumerical, Numerical, Fix, Ask, and Currency.\nSubtype|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.\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## Related information\n how-to-export-vat-statements-in-text-format\n how-to-create-templates-for-telematic-vat-statements-in-xml-file-format\nFind free e-learning modules for Business Central here<https://learn.microsoft.com/training/dynamics365/business-central>"}