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?
- SAP KBA note 2259931 – FAQ of EC87 and NT003 solutions
- Webinar presentation: https://sap.na.pgiconnect.com/p5d77g2hgfm/
- Main OSS Note 2232757 – Interstate consumption operations for ICMS non-taxpayer
- 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 code | Description |
|---|---|
| ICMSBASE_INTRA | ICMS: Intrastate Base |
| ICMSNONCONTRIBUTOR | ICMS Non Contributor |
| ICMSSPECFUNDBASE | ICMS: Special Fund Base |
| ICMSSPECFUNDRATE | ICMS: Special Fund Rate |
| NF_ICMS_PART_INTER_ACTIVE | ICMS Origin Partition Active |
| NF_ICMS_PART_INTER_AMOUNT | ICMS Origin Partition Amount |
| NF_ICMS_PART_INTER_BASE | ICMS: Origin Partition Base |
| NF_ICMS_PART_INTER_RATE | ICMS: Origin Partition Rate |
| NF_ICMS_PART_INTRA_ACTIVE | ICMS Destination Partition Active |
| NF_ICMS_PART_INTRA_AMOUNT | ICMS Destination Partition Amount |
| NF_ICMS_PART_INTRA_BASE | ICMS Destination Partition Base |
| NF_ICMS_PART_INTRA_RATE | ICMS Destination Partition Rate |
| NF_ICMS_SPEC_FUND_AMOUNT | ICMS Special Fund Amount |
| NF_ICMS_SPEC_FUND_BASE | ICMS Special Fund Base |
| NF_ICMS_SPEC_FUND_RATE | ICMS Special Fund Rate |
Condition types for SD (J1BTAX > Condition Setup > Condition Types > Condition Types SD):
| Condition | Description |
|---|---|
| BX90 | ICMS Orig Part Base |
| BX91 | ICMS Dest Part Base |
| BX92 | ICMS Orig Part Rate |
| BX93 | ICMS Dest Part Rate |
| BX94 | ICMS Orig Part Amt |
| BX95 | ICMS Dest Part Amt |
| BX96 | ICMS Spec Fund Amt |
| BX97 | ICMS Spec Fund Rate |
| BX98 | ICMS Spec Fund Base |
| BX9D | ICMS Part Dest Off |
| BX9O | ICMS Part Orig Off |
| BX9P | ICMS Spec Fund Off |
| DINC | ICMS Non Contributor |
| ICAO | ICMS Destin offset |
| ICAP | ICMS Destin Part |
| ICEO | ICMS Origin offset |
| ICEP | ICMS Origin Part |
| ICPO | ICMS SP offset |
| ICSP | ICMS Special Fund |
| ISFB | ICMS Spec Fund Base |
| ISFR | ICMS Spec Fund Rate |
| ISIB | ICMS Intrastate Base |
Condition types for MM (J1BTAX > Condition Setup > Condition Types > Condition Types MM):
| Condition | Description |
|---|---|
| BICJ | ICMS Spec Fund Rate |
| BICK | ICMS Spec Fund Base |
| BICL | ICMS Intrastate Base |
| BX90 | ICMS Orig Part Base |
| BX91 | ICMS Dest Part Base |
| BX92 | ICMS Orig Part Rate |
| BX93 | ICMS Dest Part Rate |
| BX94 | ICMS Orig Part Amt |
| BX95 | ICMS Dest Part Amt |
| BX96 | ICMS Spec Fund Amt |
| BX97 | ICMS Spec Fund Rate |
| BX98 | ICMS Spec Fund Base |
| DINC | ICMS Non Contributor |
| ICAP | ICMS Dest Partition |
| ICEP | ICMS Orig Partition |
| ICSP | ICMS Special Fund |
Mapping of internal codes to condition types:
| Internal code | SD condition | MM condition |
|---|---|---|
| ICMSBASE_INTRA | ISIB | BICL |
| ICMSNONCONTRIBUTOR | DINC | DINC |
| ICMSSPECFUNDBASE | ISFB | BICK |
| ICMSSPECFUNDRATE | ISFR | BICJ |
| NF_ICMS_PART_INTER_ACTIVE | ICEP | |
| NF_ICMS_PART_INTER_AMOUNT | BX94 | BX94 |
| NF_ICMS_PART_INTER_BASE | BX90 | BX90 |
| NF_ICMS_PART_INTER_RATE | BX92 | BX92 |
| NF_ICMS_PART_INTRA_ACTIVE | ICAP | |
| NF_ICMS_PART_INTRA_AMOUNT | BX95 | BX95 |
| NF_ICMS_PART_INTRA_BASE | BX91 | BX91 |
| NF_ICMS_PART_INTRA_RATE | BX93 | BX93 |
| NF_ICMS_SPEC_FUND_AMOUNT | BX96 | BX96 |
| NF_ICMS_SPEC_FUND_BASE | BX98 | BX98 |
| NF_ICMS_SPEC_FUND_RATE | BX97 | BX97 |
Tax types (J1BTAX > Condition Setup > Tax Type):
| Tax type | Description |
|---|---|
| ICAP | ICMS Destination Partition |
| ICEP | ICMS Origin Partition |
| ICSP | ICMS 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):
| Key | Description |
|---|---|
| MW6 | Partition Origin |
| MW7 | Partition Destination |
| MW8 | Part.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):

* 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.



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

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

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.

SD tax conditions in nota fiscal fields
J1BTAX > Condition Setup > Nota Fiscal Mapping > Tax Values SD. Update all SD pricing procedures with the following:



Maintain SD tax offset conditions (VK11)
Maintain condition records in VK11 for BX9O, BX9P, BX9D, ICEO, ICAO and ICPO:






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

ICMS taxpayer indicators
SM30 > J_1BTICMSTAXPAY. Add these entries:

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:
| Field | Value |
|---|---|
| Country | BR |
| Amount | 100,000- |
| Unit | % |
| Calculat. Type | A |
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 key | Description |
|---|---|
| MW6 | ICMS Origin Partition |
| MW7 | ICMS Destination Partition Expense |
| MW8 | ICMS FCP Expense |
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.

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.

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

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.



Leave a Reply