SAPBR Technologies home

SAP in Brazil, explained

Validation Online with TDF

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

Illustration

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):

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:

ObjectEnhancementMethod / include
Material masterBAdI BADI_MATERIAL_CHECKCHECK_DATA
Customer masterBAdI CUSTOMER_ADD_DATACHECK_ALL_DATA
Vendor masterBAdI VENDOR_ADD_DATACHECK_ALL_DATA
Sales orderUser exit USEREXIT_SAVE_DOCUMENT_PREPARE
Schedule lines (SD)User exit USEREXIT_SAVE_DOCUMENT_PREPARE
Sales contractUser exit USEREXIT_SAVE_DOCUMENT_PREPARE
DeliveryBAdI LE_SHP_DELIVERY_PROCSAVE_DOCUMENT_PREPARE
BillingBAdI SD_CIN_LV60AU02EXCISE_INVOICE_CREATE
Purchase orderEnhancement point MM06EF0P_PRUEFEN_01
Schedule lines (MM)Enhancement point MM06EF0P_PRUEFEN_01
Purchase contractEnhancement point MM06EF0P_PRUEFEN_01
Invoice verificationBAdI MRM_HEADER_CHECKHEADERDATA_CHECK
Goods receiptBAdI MB_MIGO_BADIPOST_DOCUMENT
Nota fiscalEnhancement point PROCESSING_CHECKSInclude 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.

Karen Rodrigues

Comments

One response to “Validation Online with TDF”

  1. SAP TDF – Where to start from? – SAP Blog, SAP BRAZIL, ECC, S/4HANA and more… Avatar

    […] Validação Online com TDF (now translated here: Online validation with TDF) […]

    Like

Leave a Reply