Editor’s note (November 2026): SAP Tax Declaration Framework (TDF) is deprecated. This post is kept for reference.
Readers have asked for more on TDF. Instead of explaining it in my own words, I asked my friend and TDF guru Karen Rodrigues, who kindly let me translate her entire SCN post.
Yes, I know, she’s great. If you find this useful, please take a moment to give her original post 5 stars: TDF – Por onde começar?
First things first: what is SAP TDF?
The Tax Declaration Framework (TDF) is SAP’s new tax management platform for Brazil. It improves the quality of the information produced and the productivity of tax and finance teams, and helps companies meet legal reporting requirements such as Accounting SPED (ECD), Fiscal SPED (EFD ICMS/IPI), eSocial, ECF and SPED Contributions (PIS/COFINS).
Powered by HANA
TDF runs on the in-memory SAP HANA database. It consolidates tax data with full governance and is integrated with ERP, so there’s no extraction interface or complex data migration. Data syncs automatically from SAP and non-SAP systems and is remodeled in memory through views. Advantages include fast processing, predictive analysis, analytical dashboards and mobile integration.
What’s daily life like in the tax department?
Every month the tax department has a huge volume of data to report just a few days after month-end close. A lot of effort goes into analyzing and fixing data before the legal reports are submitted.
For the close, companies usually rely on add-ons or bolt-ons from SAP partners: most data is created in SAP and extracted to the partner tool. That’s the first weakness. Extraction isn’t standardized or real time, so data can diverge. Visibility and transparency suffer, and with such short deadlines the tax team has little time to plan and fix the issues found.
How can TDF help?
TDF integrates with SAP ERP, SAP Payroll, HCM, EH&S, non-SAP payroll, other legacy systems, Excel and more.


Advantages
- Digital files generated as the tax authorities require
- Lower risk and better data accuracy
- Real-time data analysis
- Less architectural complexity
- Better use of tax credits and recoverable taxes
- Higher tax department productivity
- Fewer fines for errors in tax reports
See the latest updates in the TDF support packages: Support Package 06
Scope
Central Tax Repository
The HANA Central Tax Repository (CTR) takes data from different sources and consolidates it into one model based on the official SPED layouts. TDF and third-party partner solutions both use the CTR, for example to generate SPED reports or audit notas fiscais. The CTR doesn’t replicate data. It syncs it through SLT or SAP Data Services.
Fiscal documents have two kinds of data structure, tables and calculation views:
Tables:
- Standard SAP ERP tables: development shouldn’t read the standard tables directly in front-end programs.
- CPL tables: complement tables for data that doesn’t exist in ERP.
- Shadow tables: used to change data that can’t be changed in ERP. They take priority over the data built from the standard ERP tables. You can also add data that isn’t in ERP directly to the shadow tables.
Calculation views:
- Private views: data used by the CTR only. Development shouldn’t use them directly in front-end programs.
- Reuse views: data that ABAP programs can use, which is possible because the HANA view is synchronized with NetWeaver.
- Report views: views for the records of ECF, EFD ICMS/IPI, EFD Contributions, ECD and so on.
Persistence of fiscal documents
A new BAdI supports data persistence and the maintenance and display of that data on the NF-e screens.
With it, XML data is stored and available in both the CTR and ERP.
The new solution brings:
- A new BAdI for data persistence: J_1BNF_ADD_DATA
- New fields on the NF-e screen for manual entry and display
- Better, standardized mapping of the new fields to the XML

More information: TDF: DF-e persistence BAdI
New master data fields
New fields were added to ERP master data: customers, vendors, materials and business places. Some are available for dynamic exceptions (IS-OIL is also supported through the additions to KOMK and KOMP), and the new fields are available in the pricing structures (KOMK and KOMP).
The relevant fields are mapped to the electronic fiscal documents.
Examples of new customer master fields:
- SUFRAMA
- CNAE
- Legal nature (natureza jurídica)
- CRT (código de regime tributário)
- ICMS taxpayer type
- Main industry type
- Tax declaration type
- Company size
- PIS/COFINS declaration regime
- RG number, issuer, state and date
- RIC number
- RNE number
More information (in Portuguese; the same content is covered here in Customers and Vendors: New fields NF-e 3.10):
Online validation
Online validation audits data quality at the moment it’s entered, using existing rules.
To protect the integrity of the data users create every day, the BRF+ rules engine was added to several processes:
- Master data maintenance
- Sales order
- Delivery
- Billing
- Purchase order
- Goods movements
- Invoice verification
- Nota fiscal
More information (in Portuguese; please visit and rate 5 stars):
- Validação Online com TDF (now translated here: Online validation with TDF)
- TDF – Validação Online – Ex. Mestre de Materiais
Tax Obligation Monitor
The Tax Obligation Monitor tracks every legal obligation with an electronic deliverable, such as SPED ECD and SPED EFD.
Running a tax obligation or report as “official” ties it to the monitor. When you set a run as official, the system checks that the fiscal period is in reporting status and that no other official run with the same key is in progress.
The monitor controls the status of every tax obligation and report generated by TDF or by a third-party application, and keeps the files safely in the database.
The report shows details of these files:
- Application file: the obligation output created by the application, with no manual changes.
- Submitted file: the file that was edited, signed and sent to the authorities. Sometimes an application file needs changes before final submission.
- Proof of delivery: the file that proves delivery, such as a receipt protocol.
- Auxiliary file: files used while processing a submitted file. There can be several, for example documents used for the calculation, emails supporting manual changes, or manually edited versions of the final obligation.
More on running SPED reports in TDF (in Portuguese): Execução de relatórios SPED com TDF SP05
Enhancements in SAP ERP
MM tax code determination
- NAVS condition type (MM)
- DSM (Decision Service Management), optional (BRF+)
- TDF additions for tax code determination in Brazil
SD tax code determination
- TDF additions for SD tax code determination in Brazil
- New fields in the Country view
- Automated BAdI for reassignment and to define the reassignment
- DSM (BRF+)

More on the ERP enhancements (in Portuguese):
- Implementando TDF – Condição NAVS x BRF+
- Implementando TDF – Determinar Tax Code no Pedido de Compra – Tipo de condição NAVS
- Implementando TDF – Determinar Tax Code no Pedido de Compra usando o BRF+ – PARTE 1
- Implementando TDF – Determinar Tax Code no Pedido de Compra usando o BRF+ – PARTE 2
- SAP Tax Declaration Framework – Melhorias em SD
NF Writer accounting posting
Some processes in Brazil need a nota fiscal with an accounting posting, but no MM, SD or FI transaction automates them. For example:
- ICMS tax credit transfer
- Complementary tax nota fiscal
- Miscellaneous shipments or returns of material without stock control or master data
For these cases, TDF lets you issue the nota fiscal in NF Writer with an automatic accounting posting.
More information (in Portuguese): TDF – Contabilização automática de NF writer em 10 min!
Inventory adjustment
In Brazil, a stock adjustment may require issuing a nota fiscal and calculating taxes. It depends on each state’s rules and each company’s legal interpretation. Since the rules vary, TDF provides a flexible, simple solution.
CIAP
CIAP (Crédito de ICMS do Ativo Permanente, the ICMS credit on fixed assets) is part of SAP TDF. It uses SAP HANA to run the legal tax reports submitted periodically to the government. CIAP data feeds several views used mainly for SPED EFD Fiscal Block G.
SPED legal reporting
Native HANA support for the legal tax obligations: ECD, EFD ICMS/IPI, EFD Contributions, ECF and eSocial.
More on running SPED reports in TDF (in Portuguese):
- TDF – Escrituração Contábil Fiscal (ECF)
- TDF – Passo-a-passo para gerar o ECF
- Passo-a-passo para execução do SPED EFD ICMS/IPI no TDF
- TDF – Passo-a-passo para execução do SPED EFD-Contribuições
Want to know more?
Videos:
- HANA Academy – Replicando dados do sistema SAP em SAP HANA com SLT
- TDF – Vídeo sobre Estrutura Organizacional
- TDF – Vídeo: Apresentação de uma ficha de CIAP
SCN posts: SAP HANA (Portuguese)
- Implementando SAP TDF – Replicando os dados com SLT
- TDF: Preparando filtros SLT
- SLT e TDF – Ponto ideal de colocar os filtros
- Explorando views TDF com o SAP HANA Live Browser
- TDF – Conhecendo e entendendo o OrgStr
SAP Help: SAP Tax Declaration Framework for Brazil, SAP Help Portal
Cheers, Karen Rodrigues (LinkedIn)



Leave a Reply