SAPBR Technologies home

SAP in Brazil, explained

MM Tax Codes x SD Tax Codes relationship

How are SD and MM tax codes related in SAP Brazil?

SAP Austria building
SAP Austria building

Many SAP users still struggle with Brazilian tax codes, especially the relationship between MM (Materials Management) and SD (Sales and Distribution) tax codes. One company contacted me about recurring tax issues. It turned out they had been making manual adjustments for years because of a simple configuration oversight.

Here is how it works and where the usual mistakes happen.

The first golden rule

TAXBRJ = FTXP
TAXBRA = FV11

In other words:

  • TAXBRJ (legacy schema): tax calculation and postings are controlled in transaction FTXP.
  • TAXBRA (current schema): tax values (rates and amounts) are maintained as condition records in FV11.

Never maintain condition values directly in FTXP when using the TAXBRA schema.

There, FTXP only activates the tax condition types and controls posting. It no longer holds tax percentages or amounts.

How FTXP works in TAXBRJ

In older versions such as SAP 4.6C, FTXP decided which taxes were calculated and posted, through condition values like:

  • 100.000: calculate and post the tax (for example ICM1 for ICMS)
  • -100.000: copy from another condition and post as a negative (for example IC1O to reverse ICM1)
  • 0.000: show on the Nota Fiscal only, no posting

These values controlled:

  • Whether the tax appears on the NF-e (Nota Fiscal Eletrônica)
  • The accounting impact, if any

Important: the 0.000 rule has exceptions. SAP now recommends using 100.000 and controlling posting through dynamic exceptions and proper configuration, not by entering zeros manually.

From SAP 4.7 onward, FTXP can be retired

From SAP 4.7, FTXP can be considered obsolete for Brazilian tax configuration. The recommended tools are:

  • J1BTAX (view J_1BTAXCODEV) for MM tax codes
  • Transaction FV11 for tax condition values
  • View J_1BTXSDCV for SD tax code mapping

How MM tax codes relate to SD tax codes

MM and SD are different modules, but in Brazil they share the same tax engine and calculation logic, especially with the TAXBRJ schema.

  • All taxes are calculated by the same function module, J_1BCALCULATE_TAXES.
  • That function is driven by the MM tax code, even in SD transactions.
  • So every SD tax code must be linked to an MM tax code.

MM tax codes in SD scenarios

SAP recommends generic MM tax codes for SD scenarios:

  • One for the Free Trade Zone
  • One for services
  • One for regular sales

Each should have every possible condition active (ICMS, IPI, PIS, COFINS and so on). Which taxes are actually calculated depends on the SD tax code in the sales order and its setup in J_1BTXSDCV.

Example

  • MM tax code: “SD” (regular domestic sales)
  • Active conditions: ICM3, IPI3, ICN3, IPS3 and so on
  • SD tax code: “C3”
  • Only ICM3 and IPI3 are calculated for this process.

The MM tax code is a container for every possibility, and the SD tax code narrows it down to the final result.

Key takeaways

  • Don’t maintain Brazilian tax rates directly in FTXP. Use condition records in FV11.
  • MM tax codes trigger the calculation, even for SD processes.
  • SD tax codes are mapped to MM tax codes and filter which taxes apply.
  • Keep one generic MM tax code per SD process type and avoid changing them often.
  • Maintain tax configuration centrally in J1BTAX, aligned with fiscal and legal requirements.

Disclaimer

This article reflects SAP behavior and tax configuration logic as of the date it was written. SAP and Brazilian tax law change quickly, so check current SAP OSS Notes, SAP documentation or a certified consultant to stay compliant.

Comments

6 responses to “MM Tax Codes x SD Tax Codes relationship”

  1. L Avatar
    L

    ISS, PIS & COFINS deductible taxes aren’t getting calculated for inbound/incoming invoices

    Like

    1. leandropia Avatar

      let me know your email … I will need screenshots of so many things to even start telling you where to check.

      Like

      1. L Avatar
        L

        Hi Leaandropia,

        Thanks for your quick response. Kindly requesting to share all the screen shots on the configuration which helps to move forward

        Like

  2. L Avatar
    L

    Hi Leandropia,

    Thanks for your quick response. Done

    Like

    1. L Avatar
      L

      Hi Leandropia,

      Could your please suggest

      Like

Leave a Reply