Editor’s note (November 2026): SAP Tax Declaration Framework (TDF) is deprecated. This post is kept for reference.
This post follows on from SAP TDF: Where to start from?
Guess what? This one was also written by Karen Rodrigues and posted on SCN, and I’m translating it here. If you find it useful, please take a moment to give her original post 5 stars: Validação Online com TDF

The biggest challenge for companies in Brazil is staying compliant with so many legal rules. They’re complex, hard to interpret and hard to implement, which leaves businesses feeling legally exposed. On top of that, rules come from three levels (federal, state and municipal) and often conflict. SPED made documents and ancillary obligations electronic, which increased companies’ exposure to fines.
One of SAP’s main goals with the Tax Declaration Framework (TDF) is to help customers produce fiscal and legal reports more dynamically and with better data quality. That means less rework and SPED files and ancillary obligations that match the source records.
Among the improvements TDF brings is tax code determination for SD and MM, as explained by Eduardo Chagas (in Portuguese, to be translated):
- 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
BRF+ is a powerful business rules tool. It lets you build intuitive rule models and move business rules out of your code. The rules become easier to maintain, and business users can own them.
With BRF+ or Decision Service Management (DSM), you can implement online validation. Companies create their own checks to catch bad data at the moment it’s entered: material, customer and vendor master data, MM and SD documents, or even nota fiscal creation.
BRF+ and DSM offer similar features, and the right one depends on your landscape. BRF+ came with SAP NetWeaver 7.0 EhP 1 and was improved in EhP 2. DSM is released separately, requires NetWeaver and uses BRF+ for its decision service model. DSM can serve several systems for execution and has more options for testing business rules and controlling changes.
More information: DSM overview
In OSS Note 1878417, SAP published a guide listing the points where validations can be implemented, with a step-by-step for setting up online rule validation.
These are the validation points:
| Object | Enhancement | Method / include |
|---|---|---|
| Material master | BAdI BADI_MATERIAL_CHECK | CHECK_DATA |
| Customer master | BAdI CUSTOMER_ADD_DATA | CHECK_ALL_DATA |
| Vendor master | BAdI VENDOR_ADD_DATA | CHECK_ALL_DATA |
| Sales order | User exit USEREXIT_SAVE_DOCUMENT_PREPARE | |
| Schedule lines (SD) | User exit USEREXIT_SAVE_DOCUMENT_PREPARE | |
| Sales contract | User exit USEREXIT_SAVE_DOCUMENT_PREPARE | |
| Delivery | BAdI LE_SHP_DELIVERY_PROC | SAVE_DOCUMENT_PREPARE |
| Billing | BAdI SD_CIN_LV60AU02 | EXCISE_INVOICE_CREATE |
| Purchase order | Enhancement point MM06EF0P_PRUEFEN_01 | |
| Schedule lines (MM) | Enhancement point MM06EF0P_PRUEFEN_01 | |
| Purchase contract | Enhancement point MM06EF0P_PRUEFEN_01 | |
| Invoice verification | BAdI MRM_HEADER_CHECK | HEADERDATA_CHECK |
| Goods receipt | BAdI MB_MIGO_BADI | POST_DOCUMENT |
| Nota fiscal | Enhancement point PROCESSING_CHECKS | Include LJ1BBF2F (NF writer), include LJ1BB2FE6 (NF from SD and MM) |
With online validation, the company catches inconsistencies at the moment documents and master data are created, which reduces the risk of reporting wrong data. There’s no need for a dedicated team to fix data by hand in SAP or in a fiscal interface tool, so data gets faster and cleaner.
What used to be a dream is now possible with the new SAP fiscal platform.


Leave a Reply