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.

Learn more in Spanish Tax Agency website.

Create a template for VAT statements in XML file format

  1. Select Search (Alt+Q) in the upper-right corner, 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.\

    Learn more at the Spanish Tax Agency website.

    FieldDescription
    VAT Stmt. NameSpecify the VAT statement name that this template is for.
    No.Specify the field number in the XML file.
    Line TypeSpecify whether the VAT statement line type is an XML element or an XML attribute.
    Indentation LevelSpecify 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 TypeSpecify 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.
    DescriptionSpecify the text that you want to appear on the label.
    ValueSpecify the value for the label.
    BoxSpecify the box number from which to retrieve the data.
    AskSpecifies if the Value field can be changed before you create the XML file.
    Exists AmountSelect to omit the XML node when both Value and Box are blank.
  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.

Note

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.

Find free e-learning modules for Business Central here