Declarations > Intrastat > Spain > Intrastat file SPA 

To comply with the Spanish government regulations (telematic transmission), it is necessary to generate two different files: one file to declare all the export operations and another file for all the import operations.

Use this function to generate the Spanish Intrastat files in a telematic format.

  • Select the processing number (DEBPAR table). The company and the declaration date are automatically populated.
  • If you do not select the processing number, you can select the company and the date range to perform the declaration. The  company must be associated with the Spanish legislation. You can use this option to add several processing numbers in one declaration.
With this information, the declaration files are generated in the following location:

DEC/INTRASTAT/leg/company/year/month

The files are named:

  • INTRSINn (for import operations)
  • INTRASEXn (for export operations)

n is dependent on the number of operations. Every 1,000 lines, a different file is generated.


Example: if the number of lines is larger than 1,000, the first file will be named INTRASIN, the second file will be named INTRASIN1 (it will be the same logic for export operations).

File format

Export operation file


Field numberField nameFormatExample
1Member state of destinationA2FR
2Province of destinationN246
3Freight termsA3FOB
4Transaction natureN211
5Transport modeN13
6Port/AirportNot entered
7Code of the goodsN885182100
Code of the goods with additional code (see Annex VI)N8A1N322042178R001
8Country of originA2ES
9Statistical procedureNot entered
10Net weight (kg)N12 orN12,31150 or1150,215
11Additional unitsN12 orN12,31210 ou1210,000
12Invoiced valueN13,254300 or54300,00
13Statistical valueN13,254300 or54300,00
14Fiscal ID (NIF) of the intracommunity operatorX15FR99999999999

The fields are separated by ";"

Example:

FR;46;FOB;11;3;;85182100;ES;;1150,215;1210;54300,00;54300,00; FR99999999999;

Import operation file


Field numberField nameFormatExample
1Member state of originA2AT
2Province of originN228
3Freight termsA3CIF
4Transaction natureN211
5Transport modeN13
6Port/AirportNot entered
7Code of the goodsN885182100
Code of the goods with additional code (see Annex VI)N8A1N3220421
8Country of destinationA2CN
9Statistical procedureNot entered
10Net weight (kg)N12 orN12,31150 or1150,215
11Additional unitsN12 orN12,31210 ou1210,000
12Invoiced valueN13,254300 or54300,00
13Statistical valueN13,254300 or54300,00
14Fiscal ID (NIF) of the intracommunity operatorNot entered

The fields are separated by ";"

Example:

AT;28;CIF;11;3;;85182100;BE;;1150,215;1210;54300,00;54300,00;;

Prerequisites

SEEREFERTTO Refer to documentation Implementation

Screen management

Entry screen

Fields

The following fields are present on this tab :

Criteria entry

  • Processing no. (field EECNUMDEB)

You can select the number assigned automatically during the DEB table generation operation.

The other fields will be automatically populated when you select the processing number.

The company is automatically populated when you select the processing number.

If you do not select the processing number, you can select the company and the date range to perform the declaration. This allows you to add several processing numbers to the same file.

The company must be associated with the Spanish legislation.

  • Intrastat date from (field DATINI)

 

  • Intrastat date to (field DATEND)

The date end must be in the same month as the start date.

Close

 

Error messages

In addition to the generic error messages, the following messages can appear during the entry :

Impossible to create a file directory

The directory does not exist and its creation is not allowed.

Must be in the same month

The end date must be in the same month as the start date.

Tables used

SEEREFERTTO Refer to documentation Implementation