Lesson 3
SAF-T: what the file holds
Under review by an accountant.
The SAF-T file (fișierul standard de control fiscal), the declaration D406, is an XML file on the OECD SAF-T 2.0 version, with the rules of ANAF. The lesson about the accounts and SAF-T showed what the file asks of the chart of accounts. Here you see the whole file: which sections it has, where a usual operation goes, and what kind of declaration each file is.
The sections of the file
The ANAF order lists the sections and sub-sections that you report. They fall into four parts: the header, the master data (MasterFiles), the accounting entries and the documents.
| Section | What it holds |
|---|---|
| Header | The company and the period declared |
| MasterFiles: GeneralLedgerAccounts | The accounts, with the balances at the start and at the end of the period |
| MasterFiles: Customers, Suppliers | The customers and the suppliers, with their balances |
| MasterFiles: TaxTable | The tax codes used |
| MasterFiles: UOMTable, Products | The units of measure and the products |
| MasterFiles: AnalysisTypeTable | The cost centres |
| MasterFiles: Assets | The register of fixed assets |
| GeneralLedgerEntries | All the accounting entries of the period, with their lines |
| SourceDocuments: SalesInvoices | The issued invoices, with their lines |
| SourceDocuments: PurchaseInvoices | The received invoices, with their lines |
| SourceDocuments: Payments | The receipts and the payments |
| SourceDocuments: MovementOfGoods | The stock movements |
The annex of the order also lists MovementTypeTable, PhysicalStock and Owners. They belong to the file for stocks.
An invoice in the file
On 10 February 2026, Carpatica Software SRL sells to Crișana Medical Distribuție SRL: 2 laptops x 5,500.00. The accounting entry of invoice CSA-2026-000005 is:
| Account | Name | Debit | Credit |
|---|---|---|---|
| 4111 | Customers | 13,310.00 | |
| 707 | Sale of goods purchased for resale | 11,000.00 | |
| 4427 | Output VAT | 2,310.00 | |
| Total | 13,310.00 | 13,310.00 |
13,310.00 = 11,000.00 + 2,310.00
The same operation shows in several places of the D406 for the month of February:
- GeneralLedgerEntries has the accounting entry, with its lines on 4111 Customers, 707 Sale of goods purchased for resale and 4427 Output VAT.
- SourceDocuments: SalesInvoices has the invoice, with its lines.
- MasterFiles: Customers has the customer, with the partner code: two digits for the kind of identifier, then the tax code.
- MasterFiles: GeneralLedgerAccounts has the three accounts, with their balances.
- MasterFiles: TaxTable has the VAT code for the supplies at the rate of 21%.
So ANAF sees the same invoice from three sides: as a document, as an accounting entry, and through the accounts and the partners. That is why they must match each other.
The VAT codes and the VAT return D300
You do not choose the VAT codes freely. They are in an official list of the ANAF workbook for the schema, separate for supplies and for purchases, by rate and by how much is deducted. For each code, the workbook shows the row of the VAT return D300 that matches it.
The declaration type and the accounting basis
The header of the file says what kind of declaration it is. The type shows the period and the content:
| Type | What you declare |
|---|---|
| L | One month |
| T | One quarter |
| A | The fixed assets, once a year |
| C | The stocks, at the request of ANAF |
| NL, NT | A non-resident: one month, or one quarter |
The header also gives the accounting basis. For double entry on the general chart of accounts, the basis is "A". Accounting on the basis of invoices has "I", and other bases are for IFRS, banks, insurers or non-profit entities.
Who files each type, and by which deadline, you see in the next lesson.
Version 1 · updated on 25 November 2026
Change history
- First version.
Thank you. We received your suggestion.