SAPBR Technologies home

SAP in Brazil, explained

How to Configure CFOP in SAP: 5 Essential Steps

Now that you know what CFOP (Código Fiscal de Operações e Prestações) is and why it matters, here is how to configure it in SAP in five steps.

It works whether you’re new to Brazilian localization or reviewing an existing setup.

Step 1: Define the CFOP version

The CFOP version tells SAP which CFOP structure (length and format) to use.

Maintain it with:

  • Transaction SM30, view J_1BCFOPVERV
  • Or the IMG path: IMG > Cross-Application Components > General Application Functions > Nota Fiscal > CFOP Codes > Define CFOP Versions

Recommended settings:

  • Version: 1
  • Description: NEW CFOP 4 DIGITS
  • Redetermination: unchecked (only needed for pre-2003 legacy formats)
  • CFOP length: 4
  • External length: 0
  • Text ID: any 2-character value, such as AA or 01
SAP screen: Step 1: Define the CFOP version

Step 2: Assign a validity date to the CFOP version

Assign a valid-from date so SAP knows when the version takes effect. You can also assign it per region (state) if needed.

Maintain it with:

  • Transaction SM30, view J_1BCFOP_XREGNV
  • Or the IMG path: IMG > Cross-Application Components > General Application Functions > Nota Fiscal > CFOP Codes > Assign Validity Date to CFOP Versions

Required fields:

  • Valid-from date
  • Country
  • CFOP version
SAP screen: Step 2: Assign a validity date to the CFOP version

Step 3: Define CFOP codes and assign the version

Create the individual CFOP codes and link them to the version from step 1.

Maintain them with:

  • View J_1BAGNV in SM30
  • Or the IMG path: IMG > Cross-Application Components > General Application Functions > Nota Fiscal > CFOP Codes > Define CFOP Codes and Assign Version

CFOP codes are defined by law. Ask your tax or fiscal department for the current list, or leave a comment and we’ll share the full list. A snapshot:

SAP screen: Step 3: Define CFOP codes and assign the version

Step 4: Define CFOP determination for goods receipts and returns

This makes SAP determine the right CFOP automatically for inbound goods movements (GR) and returns. It matters most for:

  • Inventory Management
  • Logistics Invoice Verification (LIV)

Maintain it with:

  • View J_1BAONV in SM30
  • Or the IMG path: IMG > Cross-Application Components > General Application Functions > Nota Fiscal > CFOP Codes > Define CFOP Determination for Goods Receipts and Returns (Versioned)

Make sure the rules match the company’s inbound scenarios, such as interstate purchases or imports. An example:

SAP screen: Step 4: Define CFOP determination for goods receipts and returns

Step 5: Define CFOP determination for goods issues and returns

Like step 4, but for outbound movements (GI), returns included. Relevant modules:

  • Sales and Distribution (SD)
  • Inventory Management (MM)

Maintain it with:

  • View J_1BAPNV in SM30
  • Or the IMG path: IMG > Cross-Application Components > General Application Functions > Nota Fiscal > CFOP Codes > Define CFOP Determination for Goods Issues and Returns (Versioned)

Getting this right keeps you compliant with Brazilian tax requirements and your tax reporting accurate. An example:

SAP screen: Step 5: Define CFOP determination for goods issues and returns

Want to learn more?

See SAP Note 571848, CFOP codes: description, determination and versioning.

Disclaimer

This article is accurate as of its publication date. SAP and Brazilian tax law change constantly, so always check the latest SAP Notes and consult a certified SAP localization expert or tax advisor before implementing.

Configuration banner

Comments

One response to “How to Configure CFOP in SAP: 5 Essential Steps”

Leave a Reply