SAPBR Technologies home

SAP in Brazil, explained

NT2015.003, EC87/15, ICMS Partition, Poverty Fund

First, apologies for the long gap since my last update. If you work in IT, you know the day job sometimes keeps you away from side projects. The blog had to wait while I traveled for business and did a go-live here and there.

This post covers NT 2015.003, EC 87/15, the ICMS partition and the poverty fund.

Much of what you’ll see is similar to the official documentation from the SAP localization team. They did a very good job on such a complicated subject, and without their guidance this would have been much more painful.

Since I used the localization team’s documentation and many SCN discussions to build this solution, some of it may look familiar.

I want to share my own experience and some screenshots, in case this lands on your desk one day. The post focuses on TAXBRA/RVABRA. If you’re still on TAXBRJ/RVXBRA, consider migrating soon (search this blog for my reasons).

I’ll skip the business requirement, the law and why the changes are needed. I covered that in my previous post.

Where did I start in the system?

  1. SAP KBA note 2259931 – FAQ of EC87 and NT003 solutions
  2. Webinar presentation: https://sap.na.pgiconnect.com/p5d77g2hgfm/
  3. Main OSS Note 2232757 – Interstate consumption operations for ICMS non-taxpayer
  4. The SCN SPED & NF-e forum

What to do

My recommendation was to implement ALL the OSS Notes listed in the KBA above that apply to your release, and to update the NF-e system to SP23.

Depending on your release and support package, that could be fewer than 20 notes or more than 150. Line up Basis and ABAP resources, because many of these notes have manual pre- and post-implementation steps.

Keep track of every configuration step mentioned in the notes, whether in an attachment or in the solution text. Once the notes are in, configuration should take a few hours. It can take a few days if you have many complex pricing procedures and need to move steps around to make room for the new entries.

After updating NF-e to SP23, check for notes released after SP23 and implement them too. To narrow down the notes for this area, look for descriptions that mention:

  • NT 003/2015
  • ICMS Partition
  • Note 2015.003

Configuration

To speed up configuration and keep the many new tax elements consistent, SAP provides BC Sets for each tax procedure (TAXBRA/RVABRA or TAXBRJ/RVXBRA). They’re attached to OSS Note 2232757.

Created by the BC Set

Internal codes for tax conditions (J1BTAX > Condition Setup > Condition Mapping > Internal Codes):

Internal codeDescription
ICMSBASE_INTRAICMS: Intrastate Base
ICMSNONCONTRIBUTORICMS Non Contributor
ICMSSPECFUNDBASEICMS: Special Fund Base
ICMSSPECFUNDRATEICMS: Special Fund Rate
NF_ICMS_PART_INTER_ACTIVEICMS Origin Partition Active
NF_ICMS_PART_INTER_AMOUNTICMS Origin Partition Amount
NF_ICMS_PART_INTER_BASEICMS: Origin Partition Base
NF_ICMS_PART_INTER_RATEICMS: Origin Partition Rate
NF_ICMS_PART_INTRA_ACTIVEICMS Destination Partition Active
NF_ICMS_PART_INTRA_AMOUNTICMS Destination Partition Amount
NF_ICMS_PART_INTRA_BASEICMS Destination Partition Base
NF_ICMS_PART_INTRA_RATEICMS Destination Partition Rate
NF_ICMS_SPEC_FUND_AMOUNTICMS Special Fund Amount
NF_ICMS_SPEC_FUND_BASEICMS Special Fund Base
NF_ICMS_SPEC_FUND_RATEICMS Special Fund Rate

Condition types for SD (J1BTAX > Condition Setup > Condition Types > Condition Types SD):

ConditionDescription
BX90ICMS Orig Part Base
BX91ICMS Dest Part Base
BX92ICMS Orig Part Rate
BX93ICMS Dest Part Rate
BX94ICMS Orig Part Amt
BX95ICMS Dest Part Amt
BX96ICMS Spec Fund Amt
BX97ICMS Spec Fund Rate
BX98ICMS Spec Fund Base
BX9DICMS Part Dest Off
BX9OICMS Part Orig Off
BX9PICMS Spec Fund Off
DINCICMS Non Contributor
ICAOICMS Destin offset
ICAPICMS Destin Part
ICEOICMS Origin offset
ICEPICMS Origin Part
ICPOICMS SP offset
ICSPICMS Special Fund
ISFBICMS Spec Fund Base
ISFRICMS Spec Fund Rate
ISIBICMS Intrastate Base

Condition types for MM (J1BTAX > Condition Setup > Condition Types > Condition Types MM):

ConditionDescription
BICJICMS Spec Fund Rate
BICKICMS Spec Fund Base
BICLICMS Intrastate Base
BX90ICMS Orig Part Base
BX91ICMS Dest Part Base
BX92ICMS Orig Part Rate
BX93ICMS Dest Part Rate
BX94ICMS Orig Part Amt
BX95ICMS Dest Part Amt
BX96ICMS Spec Fund Amt
BX97ICMS Spec Fund Rate
BX98ICMS Spec Fund Base
DINCICMS Non Contributor
ICAPICMS Dest Partition
ICEPICMS Orig Partition
ICSPICMS Special Fund

Mapping of internal codes to condition types:

Internal codeSD conditionMM condition
ICMSBASE_INTRAISIBBICL
ICMSNONCONTRIBUTORDINCDINC
ICMSSPECFUNDBASEISFBBICK
ICMSSPECFUNDRATEISFRBICJ
NF_ICMS_PART_INTER_ACTIVEICEP
NF_ICMS_PART_INTER_AMOUNTBX94BX94
NF_ICMS_PART_INTER_BASEBX90BX90
NF_ICMS_PART_INTER_RATEBX92BX92
NF_ICMS_PART_INTRA_ACTIVEICAP
NF_ICMS_PART_INTRA_AMOUNTBX95BX95
NF_ICMS_PART_INTRA_BASEBX91BX91
NF_ICMS_PART_INTRA_RATEBX93BX93
NF_ICMS_SPEC_FUND_AMOUNTBX96BX96
NF_ICMS_SPEC_FUND_BASEBX98BX98
NF_ICMS_SPEC_FUND_RATEBX97BX97

Tax types (J1BTAX > Condition Setup > Tax Type):

Tax typeDescription
ICAPICMS Destination Partition
ICEPICMS Origin Partition
ICSPICMS Special Fund

Nota fiscal mapping: J1BTAX > Condition Setup > Nota Fiscal Mapping > Tax Values SD, and the same path for Tax Values MM.

Processing keys for FI (OBCN):

KeyDescription
MW6Partition Origin
MW7Partition Destination
MW8Part.Spec.Funds

Account keys for SD: OB40.

Not delivered by the BC Set

Condition formulas for SD and MM. Assign these formulas to condition DINC in TAXBRA and RVABRA (or your equivalents). Create them in VOFM > Formulas > Condition Value.

FORM FRM_KONDI_WERT_980.
*{   INSERT                                                                                1
*Manual Instructions FOR SAP Note 2232757
*Technical Note 2015/003 - Interstate Consumption Operations FOR non ICMS-contributors
*Version 5
* STEP # 2- ormula_SD_605_higher

* Determination of non ICMS-Contributor according to Technical Note 2015/003
* Created according to SAP Note 2232757
* Relevant for Sales and Distribution Customizing
* Relevant only for Brazil

DATA:
lv_iedest TYPE j_1bnfe_iedest.

CONSTANTS:
lc_no_icms_contributor TYPE j_1bnfe_iedest VALUE '9'.

* Select the ICMS Taxpayer value according to Vendor's

SELECT SINGLE j_1biedest
FROM j_1bticmstaxpay
INTO lv_iedest
WHERE j_1bicmstaxpay = komk-icmstaxpay.

* Check if ICMS Taxpayer refers to non ICMS-contributor
IF sy-subrc = 0 AND lv_iedest = lc_no_icms_contributor.
xkomv-kbetr = 100000.
ENDIF.

*}   INSERT
ENDFORM.

FORM FRM_KONDI_WERT_981.
*{   INSERT                                                                                1

*Manual Instructions FOR SAP Note 2232757
*Technical Note 2015/003 - Interstate Consumption Operations FOR non ICMS-contributors
*Version 5
* step # 2- formula_MM_605_higher

* Determination of non ICMS-Contributor according to Technical Note 2015/003
* Created according to SAP Note 2232757
* Relevant for Materials Management Customizing
* Relevant only for Brazil

DATA:
lv_business_place TYPE j_1bbranc_,
lv_iedest         TYPE j_1bnfe_iedest,
lv_icmstaxpay     TYPE j_1bicmstaxpay.

CONSTANTS:
lc_no_icms_contributor TYPE j_1bnfe_iedest VALUE '9'.

"Gets business place using plant
SELECT SINGLE j_1bbranch
INTO lv_business_place
FROM t001w
WHERE werks = komp-werks.

"Gets ICMS Taxpayer indicator from Business Place
SELECT SINGLE icmstaxpay
INTO lv_icmstaxpay
FROM j_1bbranch
WHERE bukrs = komk-bukrs
AND  branch = lv_business_place.

SELECT SINGLE j_1biedest
FROM j_1bticmstaxpay
INTO lv_iedest
WHERE j_1bicmstaxpay = lv_icmstaxpay.

IF sy-subrc = 0 AND lv_iedest = lc_no_icms_contributor.
xkomv-kbetr = 100000.
ENDIF.

*}   INSERT
ENDFORM.

Calculation procedure SD

Add the entries below to the SD pricing procedures (J1BTAX > Condition Setup > Calc. Procedures > Calc Procedures SD):

SAP screen: Calculation procedure SD

* Use the number of the formula you created in your system.

The step numbers may differ depending on the existing entries in your calculation procedure. The numbers can change, but the order matters for a correct calculation.

SAP screen: Calculation procedure SD
SAP screen: Calculation procedure SD
SAP screen: Calculation procedure SD

Calculation procedure MM

J1BTAX > Condition Setup > Calc. Procedures > Calc Procedures MM. I added the entries below:

SAP screen: Calculation procedure MM

* Use the number of the formula you created in your system.

Update MM/FI tax codes

J1BTAX > Tax Calculation > Tax Codes MM.

Update the tax codes used for purchases for consumption, that is, the codes whose Usage in J_1BTAXCODEV is “CONSUMPTION”.

Activate conditions ICEP, ICAP and ICSP (you can also do this in FV11/FV12). Example:

SAP screen: Update MM/FI tax codes

Define ICMS partilha

ICMS partilha is the split of the ICMS difference between the intrastate rate (destination state) and the interstate rate. The difference is shared between the origin and destination states, under Constitutional Amendment 87/2015 (Emenda Constitucional 87/2015) and ICMS Agreement 93/2015 (Convênio ICMS 93/2015).

In view J_1BTPARTILHA, enter the partilha percentage for each destination state, as set by the government, along with the valid-from date for the calculation.

SAP screen: Define ICMS partilha

SD tax conditions in nota fiscal fields

J1BTAX > Condition Setup > Nota Fiscal Mapping > Tax Values SD. Update all SD pricing procedures with the following:

SAP screen: SD tax conditions in nota fiscal fields
SAP screen: SD tax conditions in nota fiscal fields
SAP screen: SD tax conditions in nota fiscal fields

Maintain SD tax offset conditions (VK11)

Maintain condition records in VK11 for BX9O, BX9P, BX9D, ICEO, ICAO and ICPO:

SAP screen: Maintain SD tax offset conditions (VK11)
SAP screen: Maintain SD tax offset conditions (VK11)
SAP screen: Maintain SD tax offset conditions (VK11)
SAP screen: Maintain SD tax offset conditions (VK11)
SAP screen: Maintain SD tax offset conditions (VK11)
SAP screen: Maintain SD tax offset conditions (VK11)

Maintain tax types

J1BTAX > Condition Setup > Tax Types. Maintain these entries:

SAP screen: Maintain tax types

ICMS taxpayer indicators

SM30 > J_1BTICMSTAXPAY. Add these entries:

SAP screen: ICMS taxpayer indicators

You can rename 01, 02 and 09 to anything you like, as long as they map to IE indicators 1, 2 and 9. For EC 87, the customer or business place must have the entry mapped to 9 in its ICMS Tax Payer field.

Cutover activities

Maintain SD tax offset conditions

In VK11, add this data for conditions BX9O, BX9P, BX9D, ICEO, ICAO and ICPO:

FieldValue
CountryBR
Amount100,000-
Unit%
Calculat. TypeA

Create G/L accounts and assign them to tax accounts

If needed, create the G/L accounts and assign them to the account keys created earlier, in OB40:

Account keyDescription
MW6ICMS Origin Partition
MW7ICMS Destination Partition Expense
MW8ICMS FCP Expense

Update MM/FI tax codes

SAP screen: Update MM/FI tax codes

Customer master and branch data

For sales and procurement, the system has to know whether the customer or branch is an ICMS non-contributor. The formulas in the procedure check this, using ICMSTAXPAY (branch) and IEDEST (customer).

Poverty fund (Fundo de Pobreza) settings in J1BTAX

Maintain the poverty fund base and rate in J1BTAX, by state. SAP added 2 new fields to tables J_1BTXIC1, J_1BTXIC2 and J_1BTXIC3. Remember the read order: material exceptions first, then dynamic exceptions, then the default by region. The program reads the poverty fund data from the destination state’s configuration.

SAP screen: Poverty fund (Fundo de Pobreza) settings in J1BTAX

Don’t add the poverty fund rate/base to the interstate rate entry. For example, shipping from SP to RJ, you need an RJ to RJ entry, and that’s where the poverty fund rate/base goes.

The poverty fund rate/base is always added to the internal ICMS rate, never to the interstate rate.

SAP screen: Poverty fund (Fundo de Pobreza) settings in J1BTAX

Another example: selling from another state to an end consumer in SP, the ship-from and ship-to are SP / SP:

SAP screen: Poverty fund (Fundo de Pobreza) settings in J1BTAX

The poverty fund rate must be part of the destination’s internal ICMS rate. The system calculates the rate without it (19% – 1% = 18%).

I have a dynamic exception for this customer to calculate 12% interstate ICMS. I NEVER add the poverty fund rate to the interstate entry.

Activate the VOFM formulas

SE38 > RV80HGEN.

Customer master data

Check that end consumers have ICMS Tax Payer indicator 9 (non-contributor).

Business place master data

If your branch is an ICMS non-contributor, assign ICMS Tax Payer 09. Otherwise your branch won’t get the poverty fund calculation when buying goods for consumption.

With this configuration, sales orders and purchase orders should calculate the ICMS partilha and poverty fund where relevant.

In my next post (very soon, I promise) I’ll show some examples of these postings in the system.

SAP screen: Business place master data

Comments

One response to “NT2015.003, EC87/15, ICMS Partition, Poverty Fund”

  1. Calculation and Results: NT2015.003, EC87/15, ICMS Partition, Poverty Fund | SAP BRAZIL Avatar

    […] NT2015.003, EC87/15, ICMS Partition, Poverty Fund […]

    Like

Leave a Reply