Create templates for telematic VAT statements in XML file format

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.

For more information, see the Spanish Tax Agency website.

To create a template for VAT statements in XML file format

  1. Choose the Lightbulb that opens the Tell Me feature. icon, enter VAT Statement, and then choose the appropriate link.

  2. Select the required VAT statement, and then choose the Design XML file action.

  3. On the XML Transference Format page, fill in the fields as described in the following table.

    Important

    The values for the fields are determined by the tax authorities.

    For more information, see the Spanish Tax Agency website.

    Field Description
    VAT Stmt. Name Specify the VAT statement name that this template is for.
    No. Specify the field number in the text file.
    Line Type Specify whether the VAT statement line type is an XML element or an XML attribute.
    Indentation Level Specify the indentation level for the label. This level is used to format the XML file.
    Parent Line No. Specify the line number of the parent line that the current line is indented under.
    Value Type Specify the subtype of the field.

    The subtype specifies if the line must show only the integer part of an amount, the decimal part, or the full amount.
    Description Specify the text that you want to appear on the label.
    Value Specify the value for the label.
    Box Specify the box number from which to retrieve the data.
    Ask Specifies if the Value field can be changed before you create the XML file.
    Exists Amount Select to include the existing amount.
  4. Repeat the previous step for additional lines in the VAT statement.

  5. Choose the OK button.

This creates the template. Now, you can create a file that you can then submit to the tax authorities.

See also

Export VAT Statements in XML Format
Create Templates for Telematic VAT Statements in Text File Format

Find free e-learning modules for Business Central here