(ESP) Create a Spanish VAT book
Important
This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.
Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
Spanish companies must submit VAT declarations to the Spanish tax authorities. VAT transactions must be listed in periodic reports and be included in the appropriate VAT book, such as VAT receivable, VAT payable, and capital allowance.
Use the Spanish VAT books form to create VAT book types and assign sales tax codes to the VAT books.
One of the periodic VAT reports, the 340 report, must be submitted monthly to the tax authorities. This report contains details of sales and purchases and the associated taxes for a specified period. It is generated as an ASCII file.
After you generate the ASCII file, log on to the Agencia Tributaria website and upload the ASCII file. Once uploaded, the ASCII file is validated, and you will be notified of any errors in the file. Use the procedures to set up a sales tax code for the VAT book and generate a 340 report.
Set up a Spanish VAT book
Click General ledger > Setup > Sales tax > Spain > Spanish VAT books.
Click New to enter a VAT book code and description.
On the General FastTab, in the Book type field, select the VAT book type from the following options:
Sales tax receivable
Sales tax payable
All the books
Select a number sequence code.
Click the Setup FastTab, and then select a sales tax code to specify which VAT book that the VAT transactions are in. You also can select an equivalence charge code, which is a Spanish sales tax code.
Generate the 340 report
Click General ledger > Setup > Sales tax > Spain > Spanish VAT books..
Click Spanish VAT reports to open the Spanish VAT reports form.
Click Create new to open the Spanish VAT list form.
In the VAT book field, select the VAT book for the 340 report.
In the Settlement period and From date fields, select the settlement period and the start date for the 340 report.
Click OK .
In the Spanish VAT reports form, click Output > Export to ASCII file to open the Export to ASCII file form.
In the File name field, enter or browse to the path where the 340 report file is to be exported.
Click OK to generate the 340 report as an ASCII file.
Close the form to save your changes.