docu cbt 302

181
Condition-Based Tax Calculation in R/3 For Brazil R/3 4.7 ERP2004/2005 Version 3.1

Upload: lui-yoshimoto

Post on 18-Apr-2017

234 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Docu Cbt 302
Page 2: Docu Cbt 302

SAP Online Help 5/2/2023

Condition-Based Tax Calculation in R/3 For Brazil 2

Page 3: Docu Cbt 302

SAP Online Help 5/2/2023

Condition-Based Tax Calculation in R/3 For Brazil 3

Condition-Based Tax Calculationin R/3 For Brazil

R/3 4 .7ERP2004/2005

Version 3.1

Page 4: Docu Cbt 302

SAP Online Help 5/2/2023

Copyright

© Copyright 2002 SAP AG. All rights reserved.

No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice.

Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.

Microsoft®, WINDOWS®, NT®, EXCEL®, Word®, PowerPoint® and SQL Server® are registered trademarks of Microsoft Corporation.

IBM®, DB2®, DB2 Universal Database, OS/2®, Parallel Sysplex®, MVS/ESA, AIX®, S/390®, AS/400®, OS/390®, OS/400®, iSeries, pSeries, xSeries, zSeries, z/OS, AFP, Intelligent Miner, WebSphere®, Netfinity®, Tivoli®, Informix and Informix® Dynamic ServerTM are trademarks of IBM Corporation in USA and/or other countries.

ORACLE® is a registered trademark of ORACLE Corporation.

UNIX®, X/Open®, OSF/1®, and Motif® are registered trademarks of the Open Group.

Citrix®, the Citrix logo, ICA®, Program Neighborhood®, MetaFrame®, WinFrame®, VideoFrame®, MultiWin® and other Citrix product names referenced herein are trademarks of Citrix Systems, Inc.

HTML, DHTML, XML, XHTML are trademarks or registered trademarks of W3C®, World Wide Web Consortium, Massachusetts Institute of Technology.

JAVA® is a registered trademark of Sun Microsystems, Inc.

JAVASCRIPT® is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape.

SAP, SAP Logo, R/2, RIVA, R/3, SAP ArchiveLink, SAP Business Workflow, WebFlow, SAP EarlyWatch, BAPI, SAPPHIRE, Management Cockpit, mySAP, mySAP.com, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and in several other countries all over the world. MarketSet and Enterprise Buyer are jointly owned trademarks of SAP Markets and Commerce One. All other product and service names mentioned are the trademarks of their respective owners.

Condition-Based Tax Calculation in R/3 For Brazil 4

Page 5: Docu Cbt 302

SAP Online Help 5/2/2023

Content

1 Version History.......................................................................................9

2 Glossary And Typographic Conventions.........................................103 Preface.................................................................................................114 Comparison of Old and New Tax Calculation..................................124.1 Previous Tax Calculation Method....................................................................124.2 New Tax Calculation Method...........................................................................124.3 Revised Approach: New Calculation Procedure..............................................13

5 Customizing the Brazilian Tax Calculation......................................145.1 Activation of Condition Record Generation......................................................145.2 Calculation Procedures for Condition-Based Tax Calculation.........................145.3 Tax Manager’s Workplace...............................................................................155.3.1 Entities.............................................................................................................165.3.2 Tax Calculation................................................................................................185.3.3 Condition Setup...............................................................................................195.4 Maintenance of Tax Tables.............................................................................215.5 Tax Groups of Dynamic Exceptions................................................................215.6 Access Sequences..........................................................................................235.6.1 Tax Groups in Access Sequences...................................................................235.6.2 Automatic Adjustment of Access Sequences..................................................235.7 Condition Types...............................................................................................255.8 Tax Calculation Procedure..............................................................................255.9 Alternative Calculation Procedure...................................................................255.10 Internal Condition Codes.................................................................................255.11 Assignment of Condition Types to Internal Codes...........................................265.12 Assignment of Condition Tables to Tax Tables...............................................265.13 Definition of Tax Types....................................................................................265.14 Customizing FI/MM Tax Codes.......................................................................265.14.1 One Single Tax Code Maintenance Tool.........................................................265.14.2 Maintenance of Tax Code Conditions..............................................................275.14.3 Hints on Customizing Tax Code Conditions....................................................305.14.4 Note on Transporting Tax Code Conditions....................................................315.15 Mapping of Tax Values to the Nota Fiscal.......................................................315.16 Mapping of Tax Laws to the Nota Fiscal..........................................................325.17 Migration of Tax Data to Condition Records....................................................335.17.1 Check Conditions.............................................................................................335.17.2 Convert Tax Data to Condition Records..........................................................345.18 Collective Migration of All Tax Data.................................................................355.19 Sequence for SD Tax Code Determination.....................................................355.20 Sequence for SD Tax Law Determination.......................................................35

6 Tax Calculation Logic.........................................................................367 Steps in Initial Tax Customizing........................................................37

Condition-Based Tax Calculation in R/3 For Brazil 5

Page 6: Docu Cbt 302

SAP Online Help 5/2/2023

7.1 Activation of BC Set CSC_BR_TAX................................................................377.1.1 Manual customizing required after BC Set activation......................................377.2 Transfer of Texts to Desired Language...........................................................377.2.1 Procedure for Language Supplementation in Expert mode.............................387.3 Assignment of Calculation Procedures............................................................387.3.1 Specify Calculation Procedures for CBT.........................................................387.3.2 Assign Country to Calculation Procedure........................................................397.4 Creation of Tax Codes.....................................................................................397.5 Creation of Default Condition Records............................................................397.6 Migration of Tax Customizing..........................................................................397.6.1 Note on Condition Records With Only One Application...................................397.7 Update of Access Sequences From Tax Groups............................................407.8 User-Specific Modification / Enhancements of Tax Calculation......................407.8.1 Extension of Calculation Procedure.................................................................407.8.2 Changes in ABAP Coding................................................................................40

8 Customizing SD Pricing Procedures With CBT...............................418.1 Price Conditions Including Taxes....................................................................418.1.1 Price Conditions SD.........................................................................................418.1.2 Price Conditions MM........................................................................................418.1.3 Define Which Taxes Are Included in MM/SD Price Conditions......................418.2 Where to Insert Discounts...............................................................................42

9 Troubleshooting.................................................................................439.1 Consistency of Condition Records...................................................................439.1.1 Tax Data Without Condition Record................................................................449.1.2 Condition Records Without Tax Data..............................................................44

10 SAP Standard Customizing...............................................................4610.1.1 Create Condition Table 601.............................................................................4610.1.2 Extend Pricing Field Catalog...........................................................................4610.1.3 Create Access Sequences..............................................................................4610.2 Access Sequences MM/FI...............................................................................4710.3 Access Sequences SD....................................................................................5410.4 Condition Types MM/FI....................................................................................6310.4.1 Condition types used in tax calculation procedure for MM..............................6310.4.2 Tax Rate Conditions.......................................................................................6710.4.3 Nota Fiscal Mapping Conditions......................................................................6810.4.4 Nota Fiscal Mapping Conditions With Manually Created Condition Records. .6910.5 Condition Types SD.........................................................................................6910.5.1 Condition types used in tax calculation procedure for SD...............................6910.5.2 Withholding tax types used in tax calculation procedure for SD......................7110.5.3 Withholding Tax Code Conditions...................................................................7210.5.4 Tax Code Conditions.......................................................................................7210.5.5 Withholding tax Tax Rate Conditions...............................................................7210.5.6 Nota Fiscal Mapping Condition........................................................................73

Condition-Based Tax Calculation in R/3 For Brazil 6

Page 7: Docu Cbt 302

SAP Online Help 5/2/2023

10.6 Calculation Procedure in MM (FI): TAXBRA....................................................7410.6.1 Transaction Data Retrieval..............................................................................7410.6.2 Customizing Data Retrieval.............................................................................7410.6.3 Results of Tax Calculation...............................................................................7610.6.4 Tax Code Conditions.......................................................................................7810.6.5 Create Processing keys for Withholding Tax (T007B)....................................8010.6.6 Create G/L Accounts.......................................................................................8110.6.7 Define and Assign Tax Accounts.....................................................................8210.6.8 Define Account Keys for SD (T687).................................................................8210.6.9 Tax Calculation................................................................................................8310.6.10 Results of Tax Calculation...............................................................................8310.6.11 Tax Code Conditions.......................................................................................8410.7 Calculation Procedure in SD: RVABRA...........................................................8610.7.1 Net price determination....................................................................................8710.7.2 Customizing Data Retrieval.............................................................................8710.7.3 Tax Calculation on net amount (Step 1)..........................................................8910.7.4 Nota Fiscal relevant modifications to the base price including ICMS..............8910.7.5 Tax recalculation on the modified amount including ICMS (Step 2)................8910.7.6 Results of Tax Calculation...............................................................................9010.7.7 Tax Code Conditions.......................................................................................9110.8 Internal Condition Codes.................................................................................9310.9 Assignment of Internal Codes to Condition Types...........................................9810.10 Assignment of Tax Rate Tables to Condition Tables.....................................10410.11 Definition of Tax Types..................................................................................10510.12 Nota Fiscal Mapping......................................................................................10610.13 Tax Codes......................................................................................................10810.13.1 Standard Tax Codes......................................................................................10810.13.2 Withholding Tax Codes..................................................................................10910.13.3 Tax Codes for Non-Taxable Transactions.....................................................11110.13.4 Tax codes for Incoming Movements - Industrialization..................................11210.13.5 Tax Codes for Incoming Movements - Consumption.....................................11310.13.6 Tax Codes for Incoming Movements - ICMS Sub.Trib. on Freight................11510.13.7 Tax Codes for Incoming Movements - Future Delivery Purchasing / Consignment

.......................................................................................................................11510.13.8 Tax Codes for Incoming Movements - Services - ISS and INSS...................11710.13.9 Tax Codes for Outgoing Movements - Ind. + Cons. Posted in SD................11710.13.10 Tax Codes for Transfer Postings - Outgoing Movements - Ind. + Cons....11810.14 Customizing of Extended Withholding Tax....................................................11910.14.1 Withholing Tax Types at Payment.................................................................11910.14.2 WHT Types at Invoice...................................................................................11910.14.3 Withholding Tax Codes.................................................................................12010.14.4 Define Processing Key For Modified Tax Amount.........................................12010.14.5 Assign WHT Types to Company Codes........................................................12110.14.6 Define Accounts For Withholding Tax to Be Paid Over.................................121

Condition-Based Tax Calculation in R/3 For Brazil 7

Page 8: Docu Cbt 302

SAP Online Help 5/2/2023

10.14.7 Define Official Collection Codes....................................................................12110.14.8 Maintain Tax Relevant Classification.............................................................12110.14.9 Maintain Withholding Tax SD Conditions......................................................12110.15 Maintain Settings For External Tax Calculation.............................................12210.15.1 Structure for Tax Jurisdiction Code (View V_TTXD).....................................12210.15.2 Activate External Tax Calculation..................................................................12210.15.3 Define Logical Destination.............................................................................12210.16 Define Tax Jurisdiction Codes.......................................................................12210.17 Assign Jurisdiction Codes to Ranges of Postal Codes..................................12210.18 Master Data Changes....................................................................................12210.18.1 Vendors (Transaction XK02).........................................................................12210.18.2 Customers (Transaction XD02).....................................................................12210.19 Other Address Changes: Organizational Structure.......................................12310.20 ISS Customizing............................................................................................12310.20.1 Tax Laws........................................................................................................12310.20.2 Official Service Types....................................................................................12310.20.3 Generic Service Types..................................................................................12310.20.4 Assign Official Service Types........................................................................12310.21 Tax Rates.......................................................................................................12310.21.1 COFINS.........................................................................................................12310.21.2 PIS.................................................................................................................12310.21.3 ISS.................................................................................................................12310.21.4 Withholding Taxes.........................................................................................12310.22 Reserved Tax Groups of Dynamic Exceptions..............................................12410.23 NF-relevant SD-Conditions for RVABRA.......................................................124

11 Maintain Settings For External Tax Calculation.............................12411.1 Structure for Tax Jurisdiction Code (View V_TTXD).....................................12411.2 Activate External Tax Calculation..................................................................12411.3 Define Logical Destination.............................................................................125

12 Define Tax Jurisdiction Codes........................................................12513 Assign Jurisdiction Codes to Ranges of Postal Codes................12514 Master Data Changes.......................................................................12514.1 Vendors (Transaction XK02).........................................................................12514.2 Customers (Transaction XD02).....................................................................12514.3 Other Address Changes: Organizational Structure.......................................125

15 ISS Customizing...............................................................................12515.1 Tax Laws........................................................................................................12515.2 Official Service Types....................................................................................12615.3 Generic Service Types..................................................................................12615.4 Assign Official Service Types........................................................................126

16 Tax Rates...........................................................................................12616.1 COFINS.........................................................................................................12616.2 PIS.................................................................................................................126

Condition-Based Tax Calculation in R/3 For Brazil 8

Page 9: Docu Cbt 302

SAP Online Help 5/2/2023

16.3 ISS.................................................................................................................12616.4 Withholding Taxes.........................................................................................126

17 Customizing Settings and Master Data for the Stock Transport Order Process using SD Processing.........................................................127

17.1 Settings – One-Step or Two-Step Procedure................................................12717.2 Stock Transport Order using SD Delivery (IntraCompany-Code)..................12717.2.1 Customizing Settings and Master Data for Issuing Plant 1000......................12717.2.2 Customizing Settings and Master Data for Receiving Plant 1200.................12817.2.3 Material Master..............................................................................................12917.2.4 Vendor Data...................................................................................................13017.2.5 Process Flow.................................................................................................13117.3 Stock Transport Order using SD Delivery......................................................13217.3.1 Customizing Settings and Master Data for Issuing Plant 1000......................13217.3.2 Customizing Settings and Master Data for Receiving Plant 0001.................13517.3.3 Material Master..............................................................................................13617.3.4 Process Flow.................................................................................................13717.4 Overview in Table Form.................................................................................139

18

Customizing Settings and Master Data for the Stock Transport Order Process using SD Processing................................................................11518.1 Settings – One-Step or Two-Step Procedure.................................11518.2 Stock Transport Order using SD Delivery (Intra-Company-Code)11518.2.1 Customizing Settings and Master Data for Issuing Plant 1000......................11518.2.2 Customizing Settings and Master Data for Receiving Plant 1200..................11618.2.3 Material Master...............................................................................................11718.2.4. Vendor Data...................................................................................................11818.2.5 Process Flow..................................................................................................11918.2.5.1 Create Stock Transport Order......................................................................11918.2.5.2 Create Delivery..............................................................................................11918.2.5.3 Pick Delivery and Post Goods Issue..............................................................12018.2.5.4 Post Goods Receipt.......................................................................................120

18.3 Stock Transport Order using SD Delivery......................................12018.3.1 Customizing Settings and Master Data for Issuing Plant 1000......................12018.3.2 Customizing Settings and Master Data for Receiving Plant 0001..................12318.3.3 Material Master...............................................................................................12418.3.4 Process Flow..................................................................................................12518.3.4.1 Create Cross-Company-Code Stock Transport Order...................................12518.3.4.2 Create Delivery..............................................................................................12518.3.4.3 Pick Delivery and Post Goods Issue..............................................................12618.3.4.4 Post Goods Receipt.......................................................................................126

18.4 Overview in Table Form...................................................................127

Condition-Based Tax Calculation in R/3 For Brazil 9

Page 10: Docu Cbt 302

SAP Online Help 5/2/2023

Condition-Based Tax Calculation in R/3 For Brazil 10

Page 11: Docu Cbt 302

SAP Online Help 5/2/2023

1 Version HistoryDocument Version Description of Change

2.0 New condition-based tax calculation (calculation procedures TAXBRA and RV-ABRA) replaces old one (calc. procedures TAXBRJ and RVXBRC).

Documented in Note 664855.

2.2 SD documentation added

2.3 Version history added.

Changes in tax calculation added that came with Note 679140: Modification of Sub.Trib. base amount by MM-PO conditions.

2.4 Troubleshooting section extended by section 9.1: Consistency of condition re-cords and corresponding Brazilian tax data (Note 686780).

2.5 Section 7.6.1 added: Note on Condition Records With Only One Application.

2.6 Added description of missing access sequences and condition types

2.7 Section 7.1.1 added: Note on manual customizing after BC set activation

2.8 ( 15.06.2004) General Revision

2.9. ( 01.08.2005) Revision including law change MP135

3.0. ( 01.09.2005) General Revision

3.1 (29.11.2006) The settings for the SD Conditions BXs and ISTI SD were changed

3.2 (14.02.2007) Mapping for Subtrib Base into NF Tax item added for NF-e

Condition-Based Tax Calculation in R/3 For Brazil 11

Page 12: Docu Cbt 302

SAP Online Help 5/2/2023

2 Glossary And Typographic ConventionsCondition record – Data record with condition rate, possibly units, text, and other data

Condition table – Table that stores the numbers of condition records

Condition-based tax calculation (CBT) – Contrary to external tax calculation, in the CBT all calculation and tax rate determination is done by standard condition technique (pricing)

Tax Manager’s Workplace (TMW) – A transaction that provides a workplace from which most of the Brazilian tax Customizing can be reached directly

Pricing procedure results table – The table that is accessible internally after a calculation procedure was processed. In other words, the table with the pricing results.

Entries which are relevant, if the law change MP 135 applies are marked in red.

In this document, sections that are only valid for specific application areas are marked at the side of the text:

Sections that are only relevant for condition based tax calculation are marked with a grey line and the text CBT.

Sections that are only relevant for Materials Management are marked with a grey line and the text MM.

Sections that are only relevant for Sales and Distribution are marked with a grey line and the text SD.

Condition-Based Tax Calculation in R/3 For Brazil 12

CBT

MMSD

Page 13: Docu Cbt 302

SAP Online Help 5/2/2023

3 PrefaceThis document describes the Brazilian tax Customizing and tax calculation, introduced in R/3 release 4.70.

It is focused on the condition-based tax calculation (CBT). What differs between this approach and the classical one of external tax calculation is described in section 4.

Note: Since the concept of CBT was revised (see section 4.3), at least support package 17 or SAP Note 664855 is required.

In section 5, all steps in Customizing the Brazilian tax calculation are described. The focus is put on the activities that have changed compared to the Customizing of the classical Brazilian tax calculation. Things that have not changed (e.g. account determination, nota fiscal types, etc.) are not described in this document.

Section 6 briefly describes the technical details of the new calculation logic. This should be enough for technical consultants to get the necessary knowledge to further study the ABAP coding that performs the tax calculation. The coding is quite self-explanatory.

In section 7, step-by-step instructions are given how to proceed when customizing a system from scratch. In a cookbook-like manner, you will be guided through the steps you have to perform in order to set up CBT for Brazil.

Section 8 contains troubleshooting hints. This section will be updated whenever a new common prob-lem in the area of CBT is identified.

In section 10, finally, you find a complete reference of the standard Customizing of tax calculation for Brazil delivered by SAP.

Condition-Based Tax Calculation in R/3 For Brazil 13

Page 14: Docu Cbt 302

SAP Online Help 5/2/2023

4 Comparison of Old and New Tax Calculation

4.1 Previous Tax Calculation MethodThe previous way of calculating Brazilian taxes made use of the external tax interface. The task of tax calculation is being executed by a dedicated function module rather than by direct processing of the tax calculation procedure assigned to the country, using the tax rates customized in transaction FTXP. The previous standard calculation procedure assigned to Brazil, TAXBRJ, does not actually make use of the calculation functionality provided by the pricing modules, but only calls the function module J_1BCALCULATE_TAXES in formula 320. All the tax calculation logic is contained in this function module.

The tax code serves to indicate which taxes are due, activating specific lines in the calculation proce -dure by setting the respective rate to 100%. Lines (taxes) which are not to be taken into account for the respective tax code have to be deactivated (N.B.: not only set to be 0%). However, a significant amount of logic that deals with specific special cases of the complicated Brazilian tax system is hidden in the function module, thus preventing a flexible and transparent adaption of the tax calculation logic to new legal requirements or special customer needs. Moreover, the tax rates are being read from the database in function J_1BCALCULATE_TAXES and not detemined by the standard condition tech-nique that is meant to get the rates based on the actual entries in the communication structures KOMP and KOMK.

The values of the various taxes are being fetched by base formulas 301 – 308 and value formulas 521 – 528 which only serve to get the values stored in the global variables of function group J1BR by the module J_1BCALCULATE_TAXES.

4.2 New Tax Calculation MethodThe new approach of the Brazilian tax calculation that is decribed in this design document makes use of the standard condition technique to calculate the taxes. During the tax calculation, by calls to the function module PRICING a calculation procedure is processed. The rates are stored as condition records and determined during the pricing procedure based on the actual values of the fields of the communication structures KOMP and KOMK. The whole calculation logic is contained in the calcula-tion procedure itself without calling an external function module. Formulas are only used to do special calculations that are not provided by the standard pricing functionality. These formulas typically consist of only a few lines of code, processing at most four parameters that are stored in the work fields XWORKD and XWORKE, the base value XKAWRT of the respective line in the calculation procedure, and the condition rate XKOMV-KBETR.

The tax rates, tax laws, and special indicators considering the appearance of the tax line item in the nota fiscal are maintained in Brazil-specific views J_1BTX* (e.g. J_1BTXIP1 contains the IPI rates). In the old method, the underlying tables are being read directly in the function module J_1BCALCU-LATE_TAXES. In the new approach the data are not only stored in the J_1BTX* tables, but are addi -tionally present as condition records on the database. These records can be directly read by the pric -ing logic so that no extra database selections have to be performed in formulas being processed in the calculation procedure. Furthermore, the condition records can easily be transferred to other systems (e.g. CRM systems).

The generation of the condition records takes place during the view mainenance of the J_1BTX* ta-bles. By making use of the event technique provided in the extended table maintenance (transaction SE54), condition records are automatically written, updated, or deleted when data are maintained in the views and saved to the database. Which conditions are to be generated is being customized in mapping tables that are described in section 5.

The generation of the nota fiscal used to be partly performed in J_1BCALCULATE_TAXES in the old method. In the new method, all logic which values are written in which fields in the nota fiscal line items and which tax lines are generated is customized in another mapping table and by the customiz -ing of the tax code. Basically, the system is being told which lines and values of the table of the calcu -lation procedure contain which tax items. Thus, the whole nota-fiscal-mapping logic is a matter of cus-

Condition-Based Tax Calculation in R/3 For Brazil 14

Page 15: Docu Cbt 302

SAP Online Help 5/2/2023

tomizing and no longer to a great extent hard-coded, hidden in the function module J_1BCALCULATE_TAXES.

4.3 Revised Approach: New Calculation ProcedureNote: This section was added on November 4, 2003. It refers to the changes in condition-based tax calculation for Brazil described in SAP Note 664855.

The initial approach pursued the aim to perform the complete tax calculation in the calculation proced-ure itself. Small condition value, base, and requirement formulas provide the calculation logic that can-not be achieved with the standard pricing algorithm.

This approach worked, but it turned out that the section in the calculation procedure where the actual calculation happened got very long and complicated to understand. For this reason, the calculation lo-gic was moved to ABAP coding.

This document refers to the revised calculation procedures (MM/FI and SD).

This guide also describes how to technically set up the system for the new tax functions (ISS, PIS, COFINS, and MP-135 withholding taxes).

All entries referring to this law change are highlighted in red.

The prerequisite for the implementation is that all coding and DDIC changes have already been imple-mented. This means, either the support package that contains the changes is installed, or the changes are implemented manually, following the instructions of the respective Note. For further details, see Note 727475 and the Notes mentioned there.

After implementation of the support package or the Note, there are still manual steps necessary to work with the new taxes. These manual steps are described in this guide. It may be that the changes described in some of the steps are already done in your system (e.g. entries in table J_1BAJ). In such case, just skip the section.

Condition-Based Tax Calculation in R/3 For Brazil 15

Page 16: Docu Cbt 302

SAP Online Help 5/2/2023

5 Customizing the Brazilian Tax Calculation

5.1 Activation of Condition Record GenerationIn order to use the new condition-based tax calculation, the generation of condition records in the maintenance of tax rates has to be activated by setting a flag for the respective country (see the screenshot in Figure 5-1). A new Customizing step in the IMG has been added: IMG Financial Ac-counting Financial Accounting Global Settings Tax on Sales/Purchases Basic Settings Brazil Condition-Based Tax Calculation Activate Condition Generation. In this customizing activ-ity, the new table J_1BCONDTAXACT is maintained.

Figure 5-1. Activation of condition generation.

If the flag is set for Brazil, condition records are being generated in the background during the mainte-nance of the Brazilian tax tables.

5.2 Calculation Procedures for Condition-Based Tax Calculation

The system needs to identify whether in the currently processed calculation procedure the tax calcula-tion is condition-based or not. This is necessary to either call the classical, external tax calculation or the new tax calculation in condition value formula 320. For this reason, you specify the calculation pro-cedure for CBT in the new IMG activity IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Basic Settings Brazil Specify Calculation Procedures for Condition-Based Tax Calculation. Here, the maintenance view J_1BCBTAXPROCV is called. Figure5-2 shows a screenshot.

Condition-Based Tax Calculation in R/3 For Brazil 16

CBT

CBT

Page 17: Docu Cbt 302

SAP Online Help 5/2/2023

Figure 5-2. Specification of calculation procedures used in CBT.

5.3 Tax Manager’s WorkplaceThe Tax Manager’s Workplace (TMW) is a general entry point to do almost all Customizing relevant for the Brazilian tax calculation. It is called by the transaction J1BTAX and can also be accessed from the IMG: IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Pur-chases Calculation Settings for Tax Calculation in Brazil Access Tax Manager’s Workplace. The underlying program is J_1B_MIGRATE_TAX_RATES.

Figure 5-3. Initial screen of the Tax Manager’s Workplace.

On the entry screen a list of all Brazilian tax tables is shown. Figure 5-3 shows a screenshot of the ini-tial screen of the transaction. The term “tax tables” shall mean all tables that contain Brazilian tax data being accessed during the tax calculation in order to find rates, tax laws, and special flags like “Con -vênio 100” or “Other base”. The Customizing of these tables can also be found in the IMG under IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Set-tings for Tax Calculation in Brazil Tax Rates.

This new transaction can be used in any case to do the Customizing of Brazilian taxes in R/3 Enter -prise. It is not necessary to switch to the condition-based tax calculation (CBT) to use it. If it is not ac-tive, some menu options regarding the CBT are not accessible, though.

In the following, an overview about all menu options is given. More detailed descriptions about the necessary Customizing steps to implement the CBT can be found in sections 5.4 to 5.17.

5.3.1 Entities

In this menu, Customizing steps are collected that define basic constants that are relevant for the Brazilian tax calculation.

Condition-Based Tax Calculation in R/3 For Brazil 17

Page 18: Docu Cbt 302

SAP Online Help 5/2/2023

5.3.1.1Tax RegionsAssignment of geographical regions to tax regions that are used in the ship-from and ship-to fields dur-ing the tax calculation. If the Tax-Free Zone indicator is set and the condition-based tax calculation is active (see section ), a condition record with a rate of 100% is generated in the background whose type was assigned to the internal code TAXFREEREGION. This condition can be used in the tax cal -culation procedure to perform special handling of tax-free regions.

The IMG activity that corresponds to this menu item can be found in IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Basic Settings Brazil Define Brazilian Tax Regions and Assign to Geograph. Regions. The corresponding maintenance view is J_1BTREGV.

5.3.1.2NCM CodesDefinition of NCM codes. The IMG activity that corresponds to this menu item can be found in IMG Cross Application Components General Application Functions Nota Fiscal NCM Codes De-fine NCM Codes. The corresponding maintenance view is J_1BT604FV.

5.3.1.3Sub.Trib. GroupsDefinition of possible Substituição Tributária groups in the vendor and customer master. The IMG ac-tivity that corresponds to this menu item can be found in IMG Financial Accounting Financial Ac-counting Global Settings Tax on Sales/Purchases Basic Settings Calculation Settings for Tax Calculation in Brazil Define Customer Groups for SubTrib Calculation. The corresponding main-tenance view is J_1BTXSTGV.

5.3.1.4CFOP – CFOP VersionsDefinition of CFOP versions. The IMG activity that corresponds to this menu item can be found in IMG Cross Application Components General Application Functions Nota Fiscal CFOP Codes Define CFOP Versions. The corresponding maintenance view is J_1BCFOPVERV.

5.3.1.5CFOP – Validity Date of CFOP VersionsDefinition of validity dates of CFOP versions. The IMG activity that corresponds to this menu item can be found in IMG Cross Application Components General Application Functions Nota Fiscal CFOP Codes Assign Validity Date to CFOP Versions. The corresponding maintenance view is J_1BCFOP_XREGNV.

5.3.1.6CFOP – CFOP CodesDefinition of CFOP codes. The IMG activity that corresponds to this menu item can be found in IMG Cross Application Components General Application Functions Nota Fiscal CFOP Define CFOP Codes and Assign Versions. The corresponding maintenance view is J_1BAGNV.

5.3.1.7CFOP – CFOP Determination MMRules for the determination of the CFOP codes in MM applications. The IMG activity that corresponds to this menu item can be found in IMG Cross Application Components General Application Func-tions Nota Fiscal CFOP CFOP Determination for Goods Receipts and Returns. The corre-sponding maintenance view is J_1BAONV.

5.3.1.8CFOP – CFOP Determination SDRules for the determination of the CFOP codes in SD applications. The IMG activity that corresponds to this menu item can be found in IMG Cross Application Components General Application Func-tions Nota Fiscal CFOP CFOP Determination for Goods Issues and Returns. The correspond-ing maintenance view is J_1BAPNV.

Condition-Based Tax Calculation in R/3 For Brazil 18

MM

SD

Page 19: Docu Cbt 302

SAP Online Help 5/2/2023

5.3.1.9Tax Laws IPIDefinition of IPI tax laws. The IMG activity that corresponds to this menu item can be found in IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Basic Settings Brazil Define IPI Tax Laws. The corresponding maintenance view is J_1BATL2V.

5.3.1.10 Tax Laws ICMSDefinition of ICMS tax laws. The IMG activity that corresponds to this menu item can be found in IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Basic Settings Brazil Define ICMS Tax Laws. The corresponding maintenance view is J_1BATL1V.

5.3.2Tax Calculation

In this menu, Customizing steps are collected that control the rates, flags, and texts that are used in the tax calculation.

5.3.2.1Maintain Tax RatesSelecting this menu item starts the maintenance of the tax rates of the selected line in the table of the overview screen (transaction J1BTAX). It can also be accessed by pressing the button in the appli-cation toolbar or by double-clicking the line in the table. If the condition-based tax calculation is active, condition records are being generated, modified, or deleted automatically in the background when the data are saved.

The IMG activities that correspond to this menu item can be found in IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Calculation Settings for Tax Calculation in Brazil Tax Rates.

5.3.2.2Maintain Tax GroupsHere you define tax groups used in the dynamic tax exceptions. The activity can also be accessed by pressing the button in the application toolbar. Groups in the range from 10 to 89 can be defined. The numbers between 0 and 9 as well as between 90 and 99 are reserved for SAP. These groups must not be deleted.

To use newly defined tax groups requires additional Customizing activities when the condition-based tax calculation is used. See section 5.5 for further information.

The IMG activitity that corresponds to this menu item can be found in IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Calculation Settings for Tax Calculation in Brazil Tax Rates Maintain Tax Groups for Dynamic Exceptions. The correspond-ing table is J_1BTXGRUOP.

5.3.2.3Tax Codes MMDefinition of FI tax codes that are used in MM applications. The activity can also be accessed by pressing the  MM button in the application toolbar. Details for this Customizing step can be found in section 5.14.

The IMG activitity that corresponds to this menu item can be found in IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Calculation Settings for Tax Calculation in Brazil Define MM Tax Codes. The corresponding maintenance view is J_1BTAX-CODEV.

Condition-Based Tax Calculation in R/3 For Brazil 19

MM

Page 20: Docu Cbt 302

SAP Online Help 5/2/2023

5.3.2.4Tax Codes SDDefinition of tax codes that are used in SD applications. The activity can also be accessed by pressing the  SD button in the application toolbar. The IMG activitity that corresponds to this menu item can be found in IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Pur-chases Calculation Settings for Tax Calculation in Brazil Define SD Tax Codes. The corre-sponding maintenance view is J_1BTAXCODEV.

5.3.2.5Alternative Calc. ProcedureAssignment of tax codes defined for a tax calculation procedure to a different combination of tax code/calculation procedure. Details can be found in section 5.9.The IMG activitity that corresponds to this menu item can be found in IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Basic Settings Brazil Assign Alternative Calculation Procedure per FI/MM Tax Code. The corresponding maintenance view is J_1BMWSKZKALSMV.

5.3.2.6Tax Code Determination SDDefinition of the sequence of the determination logic of the SD tax codes. Details can be found in sec-tion 5.19. The IMG activitity that corresponds to this menu item can be found in IMG Financial Ac-counting Financial Accounting Global Settings Tax on Sales/Purchases Calculation Set-tings for Tax Calculation in Brazil Define Sequence for SD Tax Code Determination. The corre-sponding table is J_1BTXCODESEQ.

5.3.2.7Tax Law Determination SDDefinition of the sequence of the determination logic of the SD tax laws. The IMG activitity that corre -sponds to this menu item can be found in IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Basic Settings Brazil Define Sequence for SD Tax Law Determination. The corresponding table is J_1BTXLAWSEQ.

5.3.2.8Other CountryHere a different country can be selected. At the start of the Tax Manager’s Workplace the country is determined from the set/get parameter LND. If this parameter has no value the user is prompted for a country that is stored in this parameter afterwards. This can also be executed by choosing this menu point. The calculation procedure assigned to the selected country (in table T005) is then taken as the default value.

5.3.3Condition Setup

In this menu, all Customizing steps are collected that are related to the condition technique in the tax calculation.

5.3.3.1Migration – Tax Tables to ConditionsChoosing this menu point, the generation of condition records out of the entries in the Brazilian tax ta-bles can be triggered initially, and the correct conversion can be monitored. Details can be found in section 5.17. There is no entry in the IMG to start this activity. The TMW always has to be used for this.

5.3.3.2Migration – Tax Groups in Access SequencesYou use this activity to automatically update access sequences after you have created or changed tax groups for dynamic exceptions. Details can be found in section 5.6.2.

You need to have authorization for cross-client Customizing if you want to modify the access se-quences. It is important that you ensure that tax groups are not customized differently in different clients because with each conversion to access sequences, the previous Customizing settings will be overwritten.

Condition-Based Tax Calculation in R/3 For Brazil 20

CBT

SD

MM

SD

CBT

SD

Page 21: Docu Cbt 302

SAP Online Help 5/2/2023

5.3.3.3Nota-Fiscal Mapping – Tax Values MMHere it is customized which fields of the table of the tax calculation procedure used in MM contain the values of the nota fiscal. Details can be found in section 5.15. The IMG activitity that corresponds to this menu item can be found in IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Basic Settings Brazil Condition-Based Tax Calculation Map MM Tax Values to Nota Fiscal Fields. The corresponding maintenance view is J_1BNFTXCONDMMV.

5.3.3.4Nota-Fiscal Mapping – Tax Values SDHere it is customized which fields of the table of the calculation procedure used in SD contain the val-ues of the nota fiscal. Details can be found in section 5.15. The IMG activitity that corresponds to this menu item can be found in IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Basic Settings Brazil Condition-Based Tax Calculation Map SD Tax Values to Nota Fiscal Fields.The corresponding maintenance view is J_1BNFTXCONDV.

5.3.3.5Nota-Fiscal Mapping – Tax Laws MMHere it is customized which fields of the table of the tax calculation procedure used in MM contain the tax law texts of the nota fiscal. Details can be found in section 5.16. The IMG activitity that corre-sponds to this menu item can be found in IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Basic Settings Brazil Condition-Based Tax Calculation Map MM Tax Laws to Nota Fiscal Fields. The corresponding maintenance view is J_1BNFLWCOND-MMV.

5.3.3.6Condition Mapping – Internal CodesDefinition of internal codes used in the condition-based tax calculation. Details can be found in section 5.9. The IMG activitity that corresponds to this menu item can be found in IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Basic Settings Brazil Condition-Based Tax Calculation Define Internal Codes for Tax Conditions. The corresponding maintenance view is J_1BCONDMAPV.

5.3.3.7Condition Mapping – Assign ConditionsAssignment of condition types to the internal codes. Details can be found in section 5.11. The IMG ac-tivitity that corresponds to this menu item can be found in IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Basic Settings Brazil Condition-Based Tax Calculation Assign Internal Codes for Tax Conditions to Condtion Types. The corresponding ta-ble is J_1BTXCOND.

5.3.3.8Condition Mapping – Tax Rate TablesAssignment of tax rate tables to the condition tables. Details can be found in section 5.12. The IMG activitity that corresponds to this menu item can be found in IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Basic Settings Brazil Condition-Based Tax Calculation Assign Condition Tables to Tax Tables. The corresponding table is J_1BVIEWMAP.

5.3.3.9Access Sequences – Access Sequences MMDefinition of access sequences with application TX. These access sequences can be used in the tax calculation that is called by the MM applications. The IMG activitity that corresponds to this menu item can be found in IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Basic Settings Check Calculation Procedure – Access Sequences. The corre-sponding view cluster is VVC_T682_TX.

5.3.3.10 Access Sequences – Access Sequences SDDefinition of access sequences with application V. These access sequences can be used in the SD pricing procedures. The IMG activity that corresponds to this menu item can be found in IMG Sales

Condition-Based Tax Calculation in R/3 For Brazil 21

CBTMM

CBTSD

CBTMM

CBT

MM

SD

CBT

CBT

Page 22: Docu Cbt 302

SAP Online Help 5/2/2023

and Distribution Basic Functions Pricing Pricing Control Define Access Sequences. The corresponding view cluster is V_T682.

5.3.3.11 Condition Types – Condition Types MMDefinition of condition types with application TX. These condition types can be used in the tax calcula-tion that is called by the MM applications. The IMG activitity that corresponds to this menu item can be found in IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Pur-chases Basic Settings Check Calculation Procedure – Define Condition Types. The correspond-ing maintenance view is VV_T685A_V1.

5.3.3.12 Condition Types – Condition Types SDDefinition of condition types with application V. These condition types can be used in the SD pricing procedures. The IMG activitity that corresponds to this menu item can be found in IMG Sales and Distribution Basic Functions Pricing Pricing Control Define Condition Types. The corre-sponding maintenance view is V_T685A.

5.3.3.13 Calc. Procedures – Calc. Procedures MMDefinition of tax calculation procedures. These calculation procedures can be used in the tax calcula-tion that is called by the MM applications. The IMG activitity that corresponds to this menu item can be found in IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Pur-chases Basic Settings Check Calculation Procedure – Define Procedures. The corresponding view cluster is VVC_T683_TX.

5.3.3.14 Calc. Procedures – Calc. Procedures SDDefinition of pricing calculation procedures. These access sequences can be used in the SD pricing procedures. The IMG activitity that corresponds to this menu item can be found in IMG Sales and Distribution Basic Functions Pricing Pricing Control Define And Assign Pricing Procedures. The corresponding view cluster is V_T683.

5.3.3.15 Tax TypesIn this IMG activity, you define tax types for Brazil. Here it is customized which fields of the pricing pro-cedure results table contain the values of the Nota Fiscal. Details can be found in section 5.15.

Furthermore, you can set the LPP (Last Purchase Price) indicator for each tax type in order to activate the recording of the LPP. Further details can be found in the document Last purchase price in R/3 for Brazil.

The IMG activitity that corresponds to this menu item can be found in IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Basic Settings Brazil Define Tax Types. The corresponding maintenance view is J_1BAJV.

5.4 Maintenance of Tax TablesSelecting a line of the table on the overview screen of the TMW leads to the maintenance view of the selected table. If a table with dynamic exceptions is selected the user is prompted for the tax group prior to the table maintenance. The screenshot in Figure 5-5 shows an example, the maintenance view J_1BTXIP3V.

If the automatic condition generation is active (see section 5.1), condition records are generated and changed automatically when the data that are entered in these views are saved. These conditions are accessed in the tax calculation. The Brazilian tables are no longer accessed anywhere in the applica-tions and only serve as a comfortable way of simultaneously maintaining multiple conditions having the same key fields.

It is possible to display the automatically generated condition records in transaction FV13. However, never may these condition records be changed or deleted with transaction FV12 or new conditions be created with transaction FV11. This will lead to inconsistencies between the data in the Brazilian tax

Condition-Based Tax Calculation in R/3 For Brazil 22

MM

SD

MM

SD

CBT

Page 23: Docu Cbt 302

SAP Online Help 5/2/2023

tables and the condition records. In section 5.17, it is decribed how to verify and reestablish the con-sistency of the data.

5.5 Tax Groups of Dynamic ExceptionsThe screenshot in Figure 5-4 shows the maintenance of the table J_1BTXGRUOP in which the groups of dynamic tax exceptions are defined. For each tax group, you can specify up to three key fields that are to be used to determine the tax rates. You can choose from the following key fields: material, NCM code, material class/material group, tax code, vendor, customer, industry sector, city code, and mate-rial tax usage. All of the fields are taken from the customer, vendor, and material master records - with the exception of the tax code, which is taken from the item level in the transactions.

The number of the tax group determines which rates are taken in case of more than one matching record. For example, supposed tax group 50 has the key field NCM code and tax group 51 has the key field material class. If in the tax calculation a record is found as well for tax group 50 as for group 51, the record of group 50 will be taken since it has the lower number.

Furthermore, a tax group can be restricted to be used only for certain applications by choosing a differ-ent value than General in the field Call. App. Using the CBT, two other applications can be selected: Sales and Distribution (SD) and Materials Management (MM). The individual MM sub-applications PO, IM, and IV, are no longer supported since it makes no sense to use, for example, different tax rates in the invoice compared to the purchase order.

Condition-Based Tax Calculation in R/3 For Brazil 23

Figure 5-4. Maintenance of tax groups of dynamic exceptions. Groups 11, 13, and 25 are an example which is not deliverd as standard.

Figure 5-5. Maintenance of the tax rate table J_1BTXIP3, tax group 6, in the view J_1BTX-IP3V. The dynamic key fields are material and vendor.

Page 24: Docu Cbt 302

SAP Online Help 5/2/2023

Also it can be restricted to be used only for certain tax types by only setting some tax type indicators in the columns at the right side of the table. You can individually activate the consideration of a tax group in the tax rate determination for the types ICMS, IPI, ISS, and SubTrib (ST).

In the former tax calculation method, the described logic is programmed in the tax-calculating function, J_1BCALCULATE_TAXES. When using the new tax calculation, this logic has to be transferred to the customizing of the access sequences belonging to the conditions that store the tax rates. See section 5.6.1 for a detailed description how this is realized.

Using CBT, in the standard setup delivered by SAP the tax data belonging to different tax groups are stored in condition records that have the same condition table. In order to identify which tax group an entry in the condition table belongs to, the condition table contains a key field TAXGROUP. However, this condition table is not only used for dynamic tax exceptions, but for other tax tables. For example, condition table 382 is used for all ICMS tax tables, i.e. J_1BTXIC1, J_1BTXIC2, and J_1BTXIC3). Therefore, SAP defines standard tax groups that are not to be used by customers. They are listed in section 10.22. In consequence, customers may only use tax group numbers in the range from 10 to 89. The other numbers are reserved for SAP.

5.6 Access SequencesIn the TMW, the maintenance of access sequences is accessed by selecting the menu item Condition Setup – Access Sequences MM and Access Sequences SD. This calls the maintenance of the view clusters VVC_T682_TX and V_T682, respectively. Access sequences are cross-client data.

In section 10.2, the access sequences and the underlying condition tables and fields that are used for the access are listed.

5.6.1Tax Groups in Access Sequences

Whenever a new tax group was created or an existing group was changed, e.g. tax type indicators were switched on and off, the application was changed, or even key fields were changed, the access sequences have to be adjusted accordingly if the condition-based tax calculation is used. A new step has to be included in all those access sequences that are used by conditions that are used to calculate taxes of the type that is switched as active in the customizing of the tax group. A program, J_1B_EXT_ACC_SEQ, is provided that can do this automatically. This is described in section 5.6.2. If you change the access sequences manually, the following example illustrates what you need to change.

Suppose you create tax group 50 with two key fields city code and NCM code, calling application Gen-eral, and marked as active for ICMS only. Then, you need to extend all MM and SD access sequences that are used in the ICMS conditions – by adding step 50. One example from MM is BRIB. You can create step 50 by copying step 5, since they both use the same condition table (the one corresponding to material-dependent exceptions). By copying step 5, you take over the assignment of fields and con-stant values for the fields - except for the dynamic ones. In the field assignment, you need to assign the city code to dynamic field 1, the NCM code to field 2, and the constant 'X' to field 3. Lastly, assign the constant value '50' to the field Tax group , so that the system can uniquely identify the record dur-ing rate determination.

If you do not use condition-based tax calculation, you do not need to adjust the corresponding access sequences. In this case, the system searches through the defined order of key fields of an active group as described above.

5.6.2Automatic Adjustment of Access Sequences

With the report J_1B_EXT_ACC_SEQ you can automatically adjust all access sequences that are used by condition types used for the condition-based tax calculation. Figure 5-6 shows the initial selec-tion screen.

You need to have authorization for cross-client Customizing if you want to modify the access se-quences. It is important that you ensure that tax groups are not customized differently in different

Condition-Based Tax Calculation in R/3 For Brazil 24

CBT

CBT

CBT

Page 25: Docu Cbt 302

SAP Online Help 5/2/2023

clients because with each conversion to access sequences, the previous Customizing settings will be overwritten.

On the program selection screen, you enter the tax groups you want to include in the update. You can simulate the results of the program by setting the Simulate Only indicator. This is extremely important, since the program makes cross-client changes to your data. If you have no authorization for cross-client customizing, this indicator is set by default and cannot be cleared.

Additionally, you need to specify what type of conversion is to take place:

Update access sequences - if you want to update existing steps in the access sequences.

Insert into the access sequences - if you want to include new steps in the access sequences af-ter creating a new tax group .

Delete from access sequences - if you want to delete existing steps from the access se-quences.

Following the conversion or the simulation, the system displays a log that contains all messages is-sued during processing.

In detail, the system behaves as follows based on the selected option:

A. Update access sequences If the system finds a step in the access sequence that has the same number of the tax group, it

overwrites the step's field assignment with the values customized for the tax group.

If the system does not find a corresponding step in the access sequence, it inserts a new step.

Condition-Based Tax Calculation in R/3 For Brazil 25

Figure 5-6. Selection screen of the program that automatically adjusts access sequences based on the Customizing of the tax groups of dynamic exceptions.

Page 26: Docu Cbt 302

SAP Online Help 5/2/2023

If the system finds a step in the access sequence that corresponds to the selected tax group, but the Customizing settings indicate that this access sequence is not to have this step, then the system deletes the step from the access sequence.

B. Insert into access sequencesSelect this option if the tax groups you have specified have no corresponding steps and field assign-ments in the access sequences yet (this would be when you have created a new tax group). If the sys-tem does find a step with the number of the tax group in an access sequence, it displays one of the following in the application log:

Warning message: if the existing field assignment is identical to the field assignment that would be generated by the conversion

Error message: if the actual field assignment differs, in which case the system does not change the access sequence

C. Delete from access sequencesSelect this option if the tax groups you have specified are to be deleted from all access sequences used in the CBT.

5.7 Condition TypesThe condition types that have to be defined can be classified in four categories:

1. Conditions containing tax data. These condition records are maintained automatically during the maintenance of the Brazilian tax rate tables. An internal code must be assigned to each condition in table J_1BTXCOND (see sections 5.9 and 5.11).

2. Conditions that refer to other conditions. These are conditions that have a reference condition containing the data. They are used to reuse a condition value in another line of the calculation procedure.

3. Conditions that are only used to mark specific lines of the calculation procedure to use them in the Nota Fiscal mapping tables. These conditions are manual, i.e. they have no access se-quence and no condition records in the database.

4. Conditions indicating that a certain tax type is due. These condition types have to be entered also in the table J_1BAJ to classify them as tax type. The maintenance of the tax types is ac-cessed in the TMW under Condition Setup – Tax Types. The records are maintained by cus-tomizing the tax codes.

The condition types used in CBT are described in section .

5.8 Tax Calculation ProcedureThe new standard tax calculation procedure for Brazil is TAXBRA. The customizing of calculation pro-cedures is done in the view cluster VVC_T683_TX and can be reached from the TMW by choosing Condition Setup – Calc. Procedure MM.

This tax calculation procedure has to be assigned to the country BR in table T005. The corresponding IMG activity can be found in IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Basic Settings Assign Country To Calculation Procedure.

A detailed description of the new standard calculation procedure TAXBRA can be found in section 10.5.

5.9 Alternative Calculation ProcedureIn R/3 Enterprise, an extension to the concept described in section 5.8 has been introduced. In the ta-ble J_1BMWSKZKALSM, alternative calculation procedures can be specified that are to be used for certain tax codes instead of the standard one. This is achieved by reading this table in a BAdI before the call to the pricing procedure and modifying the communication fields that contain the calculation procedure and the tax code.

Condition-Based Tax Calculation in R/3 For Brazil 26

CBT

CBTMM

MM

Page 27: Docu Cbt 302

SAP Online Help 5/2/2023

Thus the user could e.g. use the external tax calculation for some tax codes (by specifying TAXBRJ in the above mentioned table) or use several smaller calculation procedures, e.g. in case of performance problems or new requirements.

5.10 Internal Condition CodesAn internal code has to be created for each condition type that is to be used in the automatic genera -tion of condition records during the maintenance of the Brazilian tax tables. Only the internal codes are used in the program coding. By this mapping, the customers are free to use their own condition types.

The internal codes are maintained in the TMW by choosing Condition Setup – Condition Mapping – In-ternal Codes in the menu or maintaining the view J_1BCONDMAPV. The customer usually is not ex-pected to maintain this table because SAP delivers the internal codes required for the standard Brazil -ian tax calculation.The condition Codes for withholding tax might be required and are therefore listed. If customers need to define their own internal codes for user-specific coding, they can define new codes beginning with Z. Table 10- shows all standard internal condition codes delivered by SAP.

For the internal codes that represent condition types that contain data of a specific tax group (ICMS, IPI, ISS, or SubTrib), the respective tax group has to be assigned to the codes. This is necessary for the system to consider the access sequence of the condition type assigned to the internal code in the automatic extension of access sequences after changing tax groups of dynamic exceptions (see sec-tion 5.6.2).

5.11 Assignment of Condition Types to Internal CodesThe condition types that are actually used in the tax calculation procedure have to be assigned to the above described internal codes. For the standard Brazilian tax calculation, SAP delivers all internal codes, conditions, and their assignments.

5.12 Assignment of Condition Tables to Tax TablesDuring the maintenance of the Brazilian tax tables, condition records are generated and changed auto-matically. In the table J_1BVIEWMAP it has to be specified which condition tables are to be used for a specific tax table. In the case of dynamic exceptions, you additionally specify the condition table per tax group.

The default entries delivered by SAP are shown in Table.

5.13 Definition of Tax TypesThe condition types that indicate whether a specific tax is due or whether specific lines are to be listed in the nota fiscal have to be specified in the table J_1BAJ. The condition types are referred to as tax types in this table. They are customized in the view J_1BAJV that can be accessed in the TMW by choosing Condition Setup – Tax Types.

A tax type can be assigned to a tax group. Tax groups are the different Brazilian taxes (IPI, ICMS, Substituição Tributaria, ISS) and the information whether it is a complementary tax or a tax on freight. If a tax group is assigned to the tax type that corresponds to a tax code condition, this tax line will be transferred to the nota fiscal. Per group there is a separate line in the nota fiscal. If you do not assign a tax group to a tax type, the condition will be ignored in the nota fiscal generation. This is e.g. the case for offset conditions like ICOX. In order to maintain this condition in the tax code maintenance, it has to be defined as a tax type as well. However, it is not nota-fiscal relevant, and therefore no tax group is assigned to it.

For each tax type an indicator LPP can be set, indicating that for this tax type the last purchasing price is to be calculated and used in the tax rate determination. Details about this functionality can be found in the document Last purchase price in R/3 for Brazil.

Table 10-815 shows the standard tax types delivered by SAP.

Condition-Based Tax Calculation in R/3 For Brazil 27

CBT

CBT

CBT

MM

Page 28: Docu Cbt 302

SAP Online Help 5/2/2023

5.14 Customizing FI/MM Tax Codes

5.14.1 One Single Tax Code Maintenance Tool

The Customizing of FI/MM tax codes is done in the TMW by choosing Tax Calculation – Tax Codes MM. This leads to the maintenance view J_1BTAXCODEV. It is no longer done with the transaction FTXP. This transaction cannot be used because the tax calculation procedure TAXBRA is not compat-ible with the functionality of the transaction. E.g. in FTXP, records can be generated only for condition types that are non-statistical and that have an account key assigned in the calculation procedure. In TAXBRA, however, there are statistical lines that have tax code conditions (see section 10.5).

Before the table with the tax codes is displayed, the user is prompted for the calculation procedure. As default, the tax calculation procedure assigned to the country is displayed. This can be overwritten if the feature of alternative calculation procedures (section 5.9) is used.

Until release 4.6C three customizing steps had to be executed to customize a tax code. First, the con-ditions of the tax code had to be maintained in transaction FTXP. There it was also specified whether the code belongs to input or output tax. The Brazil-specific fields in table T007A, which contains the tax code data (except the condition records), had to be maintained with the view J_1BTXMMCV. For the automatic determination of tax codes in stock transfer processes, finally the table T007_IT had to be maintained to map SD tax codes (defined in table J_1BTXSDC) against incoming and outgoing tax codes (defined in T007A).

The table T007_IT has been replaced by the new table J_1BT007 in release 4.7. The new view J_1BTAXCODEV allows the maintenance of all fields mentioned in the three steps above at the same time in one line. shows a screenshot of this view.

5.14.2 Maintenance of Tax Code Conditions

The conditions belonging to a tax code are maintained by selecting the line with the tax code that is to be maintained and afterwards choosing Goto – Maintain Conditions (Ctrl+F3) or pressing the but-ton on the application toolbar. In case the system does not find a unique assignment of a tax calcula-tion procedure to a country (in table T005), the user is asked to select a country first.

The screenshot in Figure 5-8 shows an example of the screen where the tax code conditions are maintained. In the table, all condition types are listed that are defined as tax types in the table J_1BAJ (see the previous section) and that are present in the calculation procedure assigned to the country. A tax type is active when the respective checkbox is checked; otherwise it is inactive.

When the data are saved in the screen displayed in , condition records are automatically being gener-ated. Checked tax types are transferred to condition records with a value of 100%; for unchecked types the respective condition records are deleted so that the line will not appear in the pricing-proce-dure results table after the execution of the pricing procedure in the tax calculation.

The tax code conditions are stored in the condition table A003 which has as key fields the country and the tax code. This is different to the table T007A in which the tax codes are defined for

Condition-Based Tax Calculation in R/3 For Brazil 28

MM

MM

Page 29: Docu Cbt 302

SAP Online Help 5/2/2023

Figure 5-7. Overview of the tax code maintenanec.

Figure 5-8. Conditions that belong to the selected tax code.

Condition-Based Tax Calculation in R/3 For Brazil 29

Page 30: Docu Cbt 302

SAP Online Help 5/2/2023

country and calculation procedure. In the standard tax calculation, only one tax calculation procedure can be assigned to a country in table T005. However, if the new feature of alternative calculation pro-cedures is used (see section 5.9), a different calculation procedure can be used for certain tax codes. For this reason, the tax codes defined for different calculation procedures have to be given different names if their conditions are to be customized differently, in order its conditions do not overwrite the ones of tax codes with the same name assigned to a different calculation procedure.

5.14.3 Hints on Customizing Tax Code Conditions

Compared with the former way of customizing Brazilian tax code conditions, some changes were intro-duced in the condition-based tax calculation. The basic idea is the same: You activate the lines of the calculation procedure that store the tax amounts which are to be taken for the tax code. The other lines that contain tax code conditions (tax types) are deactivated. The table displayed in Figure 5-8 is basically a special view on the tax calculation procedure in which only those lines are displayed that contain conditions that are tax types (defined in table J_1BAJ, see section 5.13).

What has changed is that no special internal nota-fiscal handling is performed in an external tax calcu-lation any longer. All this logic is customizable in the nota-fiscal mapping table J_1BNFTXCOND, which is explained in section 5.15. This has the following consequences compared to the Customizing of tax codes for the classical, external tax calculation (TAXBRJ).

5.14.3.1 ICMS and IPI Lines in Nota FiscalIn general, a nota fiscal always has a line for ICMS and a line for IPI, no matter if ICMS and IPI are due. (There are some exceptions to this rule which are, however, handled in the ABAP coding of the tax calculation.)

In order to generate the IPI or ICMS lines in the nota fiscal that only store the calculation base in the Other Base field in case the respective tax is not due (referred to as dummy line in the following, the following conditions (lines in the table shown in Figure 5-8) have to be activated too:

IPI0 Activate if IPI dummy line is to be generated in the nota fiscal

ICM0 Activate if ICMS dummy line is to be generated in the nota fiscal

These special additional conditions that have to be maintained are only relevant for ICMS and IPI, not for ISS, SubTrib, or any other tax group.

Consequently, when migrating from the old to the new tax calculation, all tax codes that have either IPI or ICMS or both not active have to be modified accordingly.

5.14.3.2 IPI SplitIn order to consider the special case of “vendor non-industry” in IPI industrialization postings, two IPI conditions have to be activated, one being deductible and one non-deductible. In the new standard these are condition types IPI1 and IPI4. IPI1 is deductible, IPI4 non-deductible. In the old tax calcula -tion, it was condition IPI2 that had to be activated together with IPI1. This was changed, because the semantics of IPI2 is IPI consumption, and the nota-fiscal mapping is different.

The ABAP coding handles the special logic and does not transfer the values in the IPI4 line to the nota fiscal if IPI split is not the case. In this situation, as well the tax amount as all base amounts are zero which indicates that such line is not to be considered in the nota fiscal.

Consequently, all tax codes that have IPI industrialization active (and thus used to have condi-tions IPI1 and IPI2 active) have to be modified in a way that IPI2 is deactivated and instead IPI4 is activated.

Condition-Based Tax Calculation in R/3 For Brazil 30

CBTMM

CBTMM

CBTMM

Page 31: Docu Cbt 302

SAP Online Help 5/2/2023

5.14.3.3 Offset PostingsIn the old tax calculation, conditions for offset postings have the rate –100%. In the new tax calcula-tion, however, you only activate or deactivate conditions. If you activate a condition, a record with al-ways +100% is generated. Therefore, in each line of the calculation procedure that corresponds to a condition type used for an offset posting, the condition base formula 164 has to be specified. This for-mula multiplies the base value with –1.

Consequently, all tax codes that have active condition types with –100% have to be edited so that the rate is changed to +100% instead.

5.14.4 Note on Transporting Tax Code Conditions

When you customize tax codes with transaction FTXP, you have the option to import or export tax code conditions. When importing tax codes, the condition records are read from table T007V and the transaction FTXP is processed in batch input mode. The report RFTAXIMP reads the standard tax codes for a country. This is the way how standard tax codes can be created in a system.

With the new tax calculation procedure TAXBRA, however, this is not possible because transaction FTXP cannot be used to edit tax codes (see section 5.14.1). Therefore, for the time being, tax codes have to be created manually.

In section , the Brazilian tax codes SAP delivers as standard are described. Refer also to that section for examples and further explanations.

5.15 Mapping of Tax Values to the Nota FiscalBy using the new condition-based tax calculation the pricing-procedure results table contains all val-ues that need to be listed in the nota fiscal. Which values of the table are transferred to which nota fis -cal fields is customized in the TMW by choosing Condition Setup – Nota-Fiscal Mapping – Tax Values MM or SD, respectively. This leads to the maintenance of the views J_1BNFTXCONDMMV (for MM) and J_1BNFTXCONDV (for SD) that define the mapping rules. The screenshot in Figure 5-9 shows an example.

A tax line in the nota fiscal consists of the tax rate, pauta rate (used for IPI Pauta), the tax value, the normal base, the excluded base, and the other base. An active tax type for a tax code leads to a corre-sponding line in the nota fiscal. In this view it is specified from which fields in the pricing-procedure re-sults table the above mentioned nota fiscal fields are being filled.

Condition-Based Tax Calculation in R/3 For Brazil 31

CBT

CBTMM

CBTMM

Page 32: Docu Cbt 302

SAP Online Help 5/2/2023

For each nota fiscal field the condition type that identifies the line in the calculation procedure has to be specified. If the condition is inactive, the respective line will not be found in the pricing-procedure results table and the initial value will be transferred.

Furthermore, the field of the line of the pricing-procedure results table has to be specified in the col-umn Map. Field. There are three alternatives: the condition base value, KAWRT; the condition rate or amount, KBETR; and the condition value, KWERT.

Condition-Based Tax Calculation in R/3 For Brazil 32

Figure 5-9. Mapping of lines in the table of the calculation procedure to tax values in the Nota-Fiscal. The MM view J_1BNFTXCONDMMV is shown.

Page 33: Docu Cbt 302

SAP Online Help 5/2/2023

5.16 Mapping of Tax Laws to the Nota FiscalThe tax laws are also stored in condition records that are generated by the maintenance of the tax code or the maintenance of certain tax rate tables (e.g. J_1BTXIP1 or J_1BTXIC2). From which condi-tion types the laws are taken is defined in the table J_1BNFLWCOND. It is maintained in the TMW by choosing Condition Setup – Nota-Fiscal Mapping – Tax Laws. This leads to the maintenance of the view J_1BNFLWCONDMMV that defines the mapping. The screenshot in shows the standard map-ping delivered by SAP.

Figure 5-10. Mapping of lines in the table of the calculation procedure to tax law texts in the Nota-Fiscal.

5.17 Migration of Tax Data to Condition RecordsIn the TMW, by choosing Condition Setup – Migration (Shift+F5) a screen is displayed where the initial conversion of the entries in the Brazilian tax tables to condition records can be started and it can be checked whether all entries are successfully converted.

5.17.1 Check Conditions

The entries in the table of the selected line in the list of tax rate tables can be checked for correspond-ing condition records by choosing Condition Records – Check Conditions (F5) or pressing the but-ton in the application toolbar. For each entry in the respective table it is checked (based on the Cus-tomizing in the mapping tables J_1BVIEWMAP and J_1BTXCOND) whether corresponding condition records exist. The selections made in the Application group determine whether the conditions for the application TX (used in materials management) or V (used in sales and distribution) are being checked.

Condition-Based Tax Calculation in R/3 For Brazil 33

CBTMM

CBT

CBT

Page 34: Docu Cbt 302

SAP Online Help 5/2/2023

The entries and the numbers of the corresponding conditions are displayed in the ALV list. By double-clicking a condition record number a modeless popup window is displayed that contains detailed infor -mation about the condition record from the corresponding entries in the DDIC tables KONH and KONP. The screenshot in Figure 5-11 shows an example.

The traffic lights icon in the leftmost column of the ALV list indicates whether for each field in the table line that is to have a corresponding condition record exists a condition (green), that no conditions exist so far (red), or that only some fields have corresponding conditions (yellow). The icon in the leftmost column of the table control with all Brazilian tax tables gives a summary of the check: The magnifying-glass indicates that the respective table has not been checked yet since the transaction was started. Green traffic lights mean that every entry in the table has all corresponding condition records; red means that at least one entry has no condition records so far; yellow means that at least one line has only some converted fields.

5.17.2 Convert Tax Data to Condition Records

By choosing Condition Records – Convert (F6) or pressing the button in the application toolbar, the conversion of tax records to conditions is started. It is prerequisite that all customizing of the mapping tables described in this section is already done; otherwise errors are being issued. The selection made in the group Conversion Options determines the mode of conversion. If the first option is chosen, ev-ery field is converted in any case, no matter if there already exists a corresponding condition record. If the second option is chosen, the user is asked in case of the previously described situation. If the third option is chosen, only the fields are converted that do not have corresponding condition records so far.

Condition-Based Tax Calculation in R/3 For Brazil 34

Figure 5-11. The migration and check tool that controls the initial conversion and the consistency of entries in Brazilian tax tables to condition records.

CBT

Page 35: Docu Cbt 302

SAP Online Help 5/2/2023

5.18 Collective Migration of All Tax DataIn order to migrate all tax Customizing data to condition records, you can use the program J_1B_GEN_TAX_COND_BACK. Note 634981 describes the details. This program is useful in the ini-tial migration of all tax data. You can also schedule it in background.

5.19 Sequence for SD Tax Code DeterminationIn Sales and Distribution there are two places to define the SD Tax Code which can be automatically determined in a transaction (e.g. a sales order). It can be either derived from the Item Category, or the Customer/Material Information Record.

By means of the table J_1BTXCODESEQ, a sequence can be defined by which these data sources are accessed. Enter sequential integer numbers and assign the data sources from the drop down menu to them. During the transaction, the system will look up the data sources in ascending order of the sequence number until a tax code is found.

Table 5-1. Example of a sequence for tax code determination.Sequence in Tax Code Determination Source for Tax Code Determination1 Item Category Table2 Customer Material Information

An example is shown in Table 5-1. In this example the system would first look up the item category ta-ble and if no tax code was found, the customer material information.

5.20 Sequence for SD Tax Law DeterminationIn Sales and Distribution there are several places to define Tax Laws for ICMS and IPI which can be automatically determined in a transaction (e.g. a sales order). They can be either derived from the Item Category, the Tax Rate Exception Tables or from the Customer Master Record.

By means of the table J_1BTXLAWSEQ, a sequence can be defined by which the various data sources are accessed. Enter sequential integer numbers and assign the data sources from the drop down menu to them. During the transaction, the system will look up the data sources in ascending or-der of the sequence number until the tax laws are found.

Table 5-2. Example of a sequence for tax law determination.Sequence in Tax Law Determination Source for Tax Law Determination1 Tax Exception Tables2 Item Category Table3 Customer Master

An example is shown in Table 5-2. In this example the system would first look up the tax exception ta-bles, then the item category tables if no tax laws were found and finally the customer master.

Condition-Based Tax Calculation in R/3 For Brazil 35

CBTSD

CBTSD

CBT

Page 36: Docu Cbt 302

SAP Online Help 5/2/2023

6 Tax Calculation LogicDifferent to the initial approach of condition-based tax calculation (MM/FI calculation procedure TAXBRC), the tax calculation is no longer performed by the pricing algorithm in several steps of the calculation procedure. Instead, the calculation is performed in ABAP coding. However, different to the classical Brazilian tax calculation (TAXBRJ), only the calculation is done there. All data retrieval and nota fiscal generation is based on the Customizing of the calculation procedure and the nota fiscal mapping tables.

The condition value formula 320, already used in the classical Brazilian tax calculation, was extended to work also with CBT. If the calculation procedure is specified in the table J_1BCBTAXPROC (see section 5.2), the function module J_1B_CBT is called in which the new calculation logic is processed.

The formula is used as well to call the tax calculation (see section ) as to retrieve the results of the tax calculation in order to store them in the pricing-procedure results table (section 10.6.10). The differen-tiation is done by analyzing the condition type of the step in the calculation procedure in which the for-mula was called. By assigning internal codes to these condition types (see sections 5.11 and ), de-pending on this internal code either the calculation is started or a specific tax result is retrieved (identi-fied by the internal code).

For example, in the MM/FI calculation procedure TAXBRA the tax calculation is triggered in the step that contains the condition type BX01. This is because condition type BX01 is assigned to the internal code CALCULATE_TAX.

The tax results are retrieved in the next section of the calculation procedure. Each line contains a con-dition type that is assigned to an internal code that indicates a tax result value. E.g. condition type BX12 is assigned to the internal code NF_ICMS_OBAS which indicates the ICMS other base amount (see section for the complete list).

In the SD pricing, the formula must be called two times, in case there are Nota Fiscal relevant condi -tions (e.g. Discounts, Freight etc.) including ICMS. The procedure is identical to the classical tax calcu-lation, i.e. the first call is calculating tax on the net amount on condition ICMI, whereas the second call on condition IBRX is calculating based on the amount including ICMS, possibly modified by other con-ditions inbetween.

The ABAP coding of the tax calculation is object-oriented. Three ABAP Object classes contain the coding: CL_TAX_CALC_BR contains coding used for MM/FI and SD. Functionality that is specific for an application, i.e. MM/FI or SD is contained in two derived classes: CL_TAX_CALC_BR_MM and CL_TAX_CALC_BR_SD.

By the object-oriented approach, coding can be reused more easily, and customer-specific extensions on ABAP level can be implemented more transparently (see also section 7.8).

Condition-Based Tax Calculation in R/3 For Brazil 36

Page 37: Docu Cbt 302

SAP Online Help 5/2/2023

7 Steps in Initial Tax CustomizingThis section describes what to do when setting up the Brazilian tax Customizing from scratch.

7.1 Activation of BC Set CSC_BR_TAXThe SAP standard Customizing entries are delivered and available in client 000 of the system the ac-tual support package is installed in. In order to facilitate the transfer of Customizing to other clients, a BC Set is available that contains most of the Customizing entries for CBT.

Activate the BC Set CSC_BR_TAX with transaction SCPR20.

Only valid until release 4.7. Higher releases include this in delivered customizing.

It contains the Customizing entries of the IMG activities listed in Table 7-3.

Table 7-3: Customizing entries in BC Set CSC_BR_TAX

Customizing Activity Section in This Docu-ment w/ Explanations

Table in This Document w/ Standard Customizing

Define Tax Types 5.13 Table 10-815Define Internal Codes for Tax Conditions 5.10 Table 10-Activate Condition Generation 5.1Map MM Tax Laws to Nota Fiscal Fields 5.16Map MM Tax Values to Nota Fiscal Fields 5.15 TableDefine Tax Groups for Dynamic Exceptions 5.5 Table 11-25Assign Condition Types to Internal Codes for Tax Conditions 5.11 Table 10-

Assign Condition Tables to Tax Tables 5.12 TableSpecify Structure for Tax Jurisdiction CodeCalculation Procedure (FI) 5.8 Table 10-14 – Table 10-

Condition Types (FI) 5.7 Error: Reference source not found

Activate External Tax CalculationMap SD Tax Values to Nota Fiscal Fields 5.15Special Conditions for Pricing (SD)Define and Assign Pricing Procedures (SD)Define Condition Types (SD)

7.1.1Manual customizing required after BC Set activation

Note 736675

7.2 Transfer of Texts to Desired LanguageThe BC Set had to be created in language DE (German) because of limitations of some Customizing tables. However, the texts are English. In order to have texts also in your desired logon language, you have to proceed as follows after activating the BC Set.

Log on to the system in the relevant client.

Start transaction SMLT.

Select the language to be filled up (e.g. English) and verify it is filled up from German

Condition-Based Tax Calculation in R/3 For Brazil 37

Page 38: Docu Cbt 302

SAP Online Help 5/2/2023

Choose the expert mode for the language supplementation as described below.

Select the tables given below for the Language fillup

Repeat the process to fill up e.g. Portuguese from English.

7.2.1Procedure for Language Supplementation in Expert mode

Proceed as follows after starting transaction SMLT:

.. 1. Choose the following for the language that you want to supplement: Language → Special Actions → Supplementation (Expert).

2. On the next screen, enter a description of your supplementation. This helps you to recognize the supplementation you have started in the transaction SMLT overview.

3. In the center of the dialog box, you can specify conditions for selecting the tables you want to sup-plement. These fields are set with SAP defaults, however, you can change them by choosing Change. The default is set so that if you are logged on to client 000, all cross-client and client-specific tables are supplemented in client 000. In other clients, only the client-specific tables in the logon client are selected for supplementation.

4. The tables that you want to supplement appear at the bottom of the screen, according to the selec-tion you made by choosing Select. Each table is shown with its table class, a description, the supple-mentation mode, and the client in which the table will be supplemented. You can use the appropriate pushbuttons to change this list, however, we recommend this for experienced users only. Read the long texts of the dialog boxes that appear when you change the defaults. For information on the rest of the procedure, see the document

SAP Web AS 6.20: Language TransportTables to be selected for language fillup:

T682T

T683T

T683U

T685T

J_1BCONDMAPT

7.3 Assignment of Calculation Procedures

7.3.1Specify Calculation Procedures for CBT

In the IMG, execute the activity IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Basic Settings Brazil Specify Calculation Procedures for Condi-tion-Based Tax Calculation. Alternatively, with transaction SM30, call the maintenance view J_1BCB-TAXPROCV (see section 5.2).

Create two new entries:

For MM, create an entry for usage A, application TX, calculation procedure TAXBRA and set the CBT Act. Indicator.

For SD, create an entry for usage A, application V, calculation procedure RVABRA and set the CBT Act. Indicator.

If you want to use other calculation procedures for CBT, specify them here as well.

Condition-Based Tax Calculation in R/3 For Brazil 38

Page 39: Docu Cbt 302

SAP Online Help 5/2/2023

7.3.2Assign Country to Calculation Procedure

In the IMG, execute the activity IMG Financial Accounting Financial Accounting Global Settings Tax on Sales/Purchases Basic Settings Assign Country to Calculation Procedure. Alternat-ively, with transaction SM30, call the maintenance view V_T005.

Edit the entry for country BR and assign the calculation procedure TAXBRA to it.

7.4 Creation of Tax CodesIn transaction J1BTAX, go to the maintenance of tax codes as described in section 5.14. Create the tax codes you need. Refer to section 10.13 that describes the standard tax codes for Brazil.

Create tax codes based on Table 10-

Create the tax code condition records based on Table1 0- – Table 0-24.

7.5 Creation of Default Condition RecordsSome condition records of tax rates cannot be maintained by creating entries in the Brazilian tax tables J_1BTX*, but must be created manually with transactions FV11 (for FI records) and VK11 (for SD records). If these entries do not exist, wrong tax Customizing data can be read during the tax cal-culation.

With transaction FV11, create the following condition record:

Condition type BCI1 (ICMS complement base), country BR: 100%

This condition record is taken when ICMS complement is calculated and no exception of ICMS com-plement base reduction was defined in table J_1BTXCI1 for the material of the item being processed.

7.6 Migration of Tax CustomizingIf you upgraded to release 4.70 or if you switched to condition-based tax calculation after some tax Customizing had already been carried out, you have to initially generate condition records for the entries in the Brazilian tax tables.

Refer to section 5.17 to see how to migrate tax Customizing to condition records for each table separ-ately.

Especially when migrating all tables the first time, the mass migration program described in section 5.18 will be helpful.

If you have not maintained any tax rates yet, you do not need to run the migration tools. After activat-ing the condition generation (described in section 5.1), which happens during activation of the BC Set (section 7.1), condition records will be generated automatically when maintaining tax rates.

7.6.1Note on Condition Records With Only One Application

The system usually generates condition records for as well application ‘V’ as application ‘TX’. How-ever, for the following tables this is not the case:

In tables with dynamic tax exceptions you maintain entries for a certain tax group. If you re-strict the calling application of the tax group to either SD or MM (see section 5.3.2.2), condition records are generated only for that application. In the migration tool, you cannot check or con-vert condition records for a combination of application and table/tax group if the tax group is not valid for the selected application. The system displays a message in such case.

Table J_1BTXSDC contains the tax codes used in SD. When you maintain entries of this table (see section 5.3.2.4), only condition records with application ‘V‘ are generated, because they are not used in the FI calculation procedure. Therefore, you don’t need to check for condition records of application ‘TX’ belonging to table J_1BTXSDC. Furthermore, you can’t generate such condition records with the tool. Moreover, there are no condition types of application ‘TX’

Condition-Based Tax Calculation in R/3 For Brazil 39

Page 40: Docu Cbt 302

SAP Online Help 5/2/2023

assigned to the internal codes of the values you maintain in table J_1BTXSDC (see the entries for internal codes beginning with TXSDC in section ).

7.7 Update of Access Sequences From Tax GroupsThe access sequences used in CBT have to be extended by the steps according to the definition of tax groups for dynamic exceptions. This is explained in section 5.6.2.

For this purpose, execute the activity in TMW as described in this section.

7.8 User-Specific Modification / Enhancements of Tax Calculation

7.8.1Extension of Calculation Procedure

If there is the need to enhance or modify the tax calculation SAP delivers, the easiest way to do this is to modify the calculation procedure or the nota-fiscal mapping.

The kind of modification that is easiest to handle is an extension of the tax calculation that does not af -fect the standard tax calculation. This is e.g. the case for additional taxes like PIS / COFINS. In this case you just add additional lines to the calculation procedure. You can access all transaction-specific and tax Customizing data by referring to the respective standard lines in the calculation procedure (see section 10.5). If the calculation logic is too complicated to handle by the standard pricing al-gorithm, a customer-specific condition value formula can be used. If values need to be transferred to the nota fiscal, new tax types can be defined (table J_1BAJ) and the nota-fiscal-mapping table can be extended (see section 5.15).

A little more complicated is the case if some of the existing calculation logic has to be modified. This would be the case if e.g. the ICMS calculation logic has to be modified. In this case you can add lines to the calculation procedure that perform the calculation according to your needs, as mentioned in the paragraph above. Then you modify the nota-fiscal mapping for the ICMS values so that the values are no longer taken from the standard conditions, but from your own ones. In this way, the system still cal-culates all taxes according to the standard way, but you only use part of the results.

7.8.2Changes in ABAP Coding

If the modification turns out to be more complicated or to have a strong interaction with the standard tax calculation logic, an alternative to extending the calculation procedure is to implement the change in ABAP coding.

This kind of change would be suitable rather for industry-specific solutions than for customer exten-sions, unless a customer has requirements of large changes in the tax calculation.

The object-oriented implementation of the tax calculation coding makes it easy to reuse the standard coding. Without going in too much detail here, the approach would be to inherit an own ABAP class from the class CL_TAX_CALC_BR or the MM- and SD-specific classes CL_TAX_CALC_BR_MM and class CL_TAX_CALC_BR_SD, respectively in which all the tax calculation and data transfer takes place. You then overwrite only those methods of the class that actually have to be changed, so that most of the standard coding is used.

With this approach, the tax calculation logic can be changed deeply. Though being a coding modifica -tion, it is, however, still possible for SAP to analyze problems in the tax calculation, provided that SAP standard coding is affected. This is because the object-oriented implementation allows a clearer dis-crimination of modified coding from standard one.

Condition-Based Tax Calculation in R/3 For Brazil 40

Page 41: Docu Cbt 302

SAP Online Help 5/2/2023

8 Customizing SD Pricing Procedures With CBT Note 549179

8.1 Price Conditions Including Taxes The new solution for tax calculation supports prices which are not the real net prices, but may contain PIS, COFINS, ISS due at the municipio of the service provider, ISS due at the municipio of the service execution, or any combination of these.

In order to allow the system to consider correctly which taxes are already included in a price and which not, corresponding price conditions should be maintained. It is possible to either continue using exist-ing price conditions or introduce new ones. Of course, if new price conditions are introduced, all price conditions must be updated.

The following is a suggestion based on 4 new price conditions.

8.1.1Price Conditions SD

Copy pricing procedure PR0000 to RVABR2 before creating the conditions.

Cond. Class: B (Prices)

Calculat. Type: C (Quantity)

Cond. Category: H (Basic Price)

Access Seq.: PR00

Manual Entries: C (Manual entry has priority)

Amount/percent: X

Item Condition: X

Pricing Proc: RVABR2

Delete fr. DB: (do not delete)

Scale basis: C

Check value: A

Quantity Conversion: X

Cond. Type Description

ZPB0 Price w/o Taxes

ZPB1 Price+ISS

ZPB2 Price+PIS+COF

ZPB3 Price+ISS+PIS+COF

8.1.2Price Conditions MMIf necessary, create new price conditions and adapt the MM pricing procedure for Purchase Orders (e.g. RM0000) or create new ones by copying and modifying.

Condition-Based Tax Calculation in R/3 For Brazil 41

Page 42: Docu Cbt 302

SAP Online Help 5/2/2023

8.1.3Define Which Taxes Are Included in MM/SD Price Condi-tions

Views J_1BKON1MMVV and J_1BKON1SDVV.

Maintain for each SD (Application V) or MM (Application M) pricing procedure the taxes that are in-cluded in each price condition type. As an example, the SD procedure RVABRA is maintained for the conditions ZPB0 … ZPB3

Price Condition Tax GroupZPB1 ISSP ISS at location of service providerZPB1 ISSS ISS at location where service is

providedZPB2 COFI COFINSZPB2 PIS PISZPB3 COFI COFINSZPB3 ISSP ISS at location of service providerZPB3 ISSS ISS at location where service is

providedZPB3 PIS PIS

8.2 Where to Insert Discounts

Condition-Based Tax Calculation in R/3 For Brazil 42

Page 43: Docu Cbt 302

SAP Online Help 5/2/2023

9 TroubleshootingThis section will be updated whenever a new common problem regarding CBT is identified.

9.1 Consistency of Condition RecordsWhen the automatic generation of condition records in the tax Customizing is active, the same inform-ation is stored at two places:

1. the Brazilian tax table (like e.g. J_1BTXIC2)

2. the condition database

The reason for this redundancy is the fact that for a given key field combination (e.g. ship-from, ship-to, material number) several tax data can be specified, like tax rate, reduced base rate, tax law, ex -empt flag, etc. To facilitate the tax Customizing (and to stay compatible with the old tax calculation), the Brazilian tables still contain this information, and additionally the system automatically generates corresponding condition records.

Normally, there is a 1:1 relationship between Brazilian tax data and corresponding condition records. This means:

1. For each tax rate (or whatever you customize in the Brazilian tables) there exists one condi-tion record.

2. Each condition record of a condition type that is used for Brazilian tax determination has a cor-responding entry in a Brazilian tax table.

Consequently, you can have two kinds of inconsistencies in your system:

1. There does not exist a corresponding condition record for a tax rate (or whatever you custom-ize in the Brazilian tables).

Condition-Based Tax Calculation in R/3 For Brazil 43

Figure 9-12. Program J_1B_CBT_CONSIST.

Page 44: Docu Cbt 302

SAP Online Help 5/2/2023

2. There does not exist a corresponding entry in a Brazilian tax table for a condition record of a condition type that is used for Brazilian tax determination.

Such inconsistencies can have several reasons:

- You deactivated automatic generation of condition records and created or changed tax data (results in type 1 inconsistencies).

- You deactivated automatic generation of condition records and deleted tax data (results in type 2 inconsistencies).

- You manually created condition records with transactions VK11 (application V) or FV11 (ap-plication TX) (results in type 2 inconsistencies).

- You deleted records with customer programs or the database utility (results in type 1 or 2 in-consistencies).

9.1.1Tax Data Without Condition Record

You can detect inconsistencies of type 1 by running the migration tool in TMW (see section 5.17). Tax data without corresponding condition records are indicated by a red traffic-light icon. You can migrate them as described in section 5.17.2.

9.1.2Condition Records Without Tax Data

For type 2 of inconsistencies there exists a check program, introduced with support package 19 (re-lease 4.6C: 47) and Note 686780, respectively.

1. Run program J_1B_CBT_CONSIST, and the system displays a list of condition tables.

2. Double-click a table, and the system displays all condition records used for Brazilian tax calcu-lation. Figure 9-12 shows an example screenshot

The traffic light indicates the status of the condition record: red means there is no correspond-ing record in the tax table; yellow means a record exists in the tax table, but the data differs (for example, the tax rate); and green means a correct corresponding entry exists.

At the far right, you see the corresponding Brazilian tax table as well as the index in the table (for condition records with yellow and green status only; for red entries, this field is blank).

3. Select all condition records with red and yellow status, and delete them by pressing the Delete condition records pushbutton. In a popup window you are asked to confirm the deletion (see Figure 9-13).

Condition-Based Tax Calculation in R/3 For Brazil 44

Figure 9-13: Deletion of condition records.

Page 45: Docu Cbt 302

SAP Online Help 5/2/2023

4. Repeat steps 2 and 3 for each of the condition tables. For the tax calculation to function prop-erly, all condition tables must contain green entries only.

Once you have viewed a condition table, the icon next to it changes to include a pair of eyeglasses; if you have made at least one change to a table, the icon includes a diskette.

5. To ensure that there are condition records for all existing tax records, run the migration pro -gram as described in section 5.17

Condition-Based Tax Calculation in R/3 For Brazil 45

Page 46: Docu Cbt 302

SAP Online Help 5/2/2023

10 SAP Standard Customizing

10.1.1 Create Condition Table 601This table is used for ISS data.

You can choose a different number than 601 if this table is already in use for something else. In this case, replace 601 by your number in the access sequences described in the next sections.

IMG -> Sales and Distribution -> Basic Functions -> Pricing -> Define Condition Tables

10.1.2 Extend Pricing Field Catalog

In order to use the new components LOC_PR and LOC_SE in the ISS access sequences, the pricing field catalogue has to be extended by these components. This is performed in the maintenance view V_T681F. Specify usage ‘A’, application ‘V’ or ‘TX’, and field group 001. Add the new components from structure KOMP.

10.1.3 Create Access Sequences

New access sequences have to be created that are used in the new condition types that store the rates of the new taxes.

Condition-Based Tax Calculation in R/3 For Brazil 46

Page 47: Docu Cbt 302

SAP Online Help 5/2/2023

10.2 Access Sequences MM/FITable 10-4 shows the access sequences used in the Brazilian MM/FI tax calculation. The steps and field assignments of each access sequence are listed in the following tables.

Table 10-4: Access sequences used in the MM (FI) tax calculationAccSeq DescriptionBRB1 Dummy 1 for BrazilBRCI Brazil ICMS Complement

BRCO Brazil COFINSBRIB Brazil ICMS BaseBRIC Brazil ICMSBRID Brazil ICMS Rate SF=STBRIP Brazil IPIBRIS Brazil ISSBRPI Brazil PISBRLC Brazil Tax Law: ICMSBRLP Brazil Tax Law: IPIBRS1 Brazi:ISS at Service ProviderBRS2 Brazi:ISS wh Service providedBRST Brazil Subtrib.BRTF Brazil: Tax-ExemptBRII Brazil ICMS Rate SF=ST for S.T.BRWT Brazil whtMWST Country, Tax Code

Table 10-5: Access sequence BRB1 – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

10 392 0 X ALAND = BR

Table 10-6: Access sequence BRCI – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

10 349 0 X ALAND = BRTXREG_ST KOMP TXREG_STMATNR KOMP MATNR

20 392 0 X ALAND = BR

Table 10-4 : Access sequence BRCO -Name: Brazil COFINS

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 346 0 X ALAND = BR

DYNKEY1 KOMP MATNR

Condition-Based Tax Calculation in R/3 For Brazil 47

Page 48: Docu Cbt 302

SAP Online Help 5/2/2023

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

DYNKEY2 = X

DYNKEY3 = X

TAXGROUP = 5

Step 5 is necessary as a template to automatically update access sequences when creating new tax groups of dynamic exceptions. Use requirement formula that is never fulfilled in step 5 of the access sequence if you don’t want to consider it.

Table 10-5: Access sequence BRIB – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

1 344 0 X ALAND = BRTAXBS KOMK TAXBSDOCTYP KOMK DOCTYP

5 382 0 X ALAND = BRDOCTYP = 0TXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_STDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

98 382 0 X ALAND = BRDOCTYP = 0TXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_STDYNKEY1 = XDYNKEY2 = XDYNKEY3 = XTAXGROUP = 98

99 392 0 X ALAND = BR

Table 10-6: Access sequence BRIC – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 382 0 X ALAND = BRDOCTYP = 0TXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_STDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = X

Condition-Based Tax Calculation in R/3 For Brazil 48

Page 49: Docu Cbt 302

SAP Online Help 5/2/2023

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field ConstantTAXGROUP = 5

98 382 0 X ALAND = BRDOCTYP = 0TXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_STDYNKEY1 = XDYNKEY2 = XDYNKEY3 = XTAXGROUP = 98

99 392 0 X ALAND = BR

Table 10-7: Access sequence BRID – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 382 0 X ALAND = BRDOCTYP = 0TXREG_SF KOMP TXREG_STTXREG_ST KOMP TXREG_STDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

98 382 0 X ALAND = BRDOCTYP = 0TXREG_SF KOMP TXREG_STTXREG_ST KOMP TXREG_STDYNKEY1 = XDYNKEY2 = XDYNKEY3 = XTAXGROUP = 98

99 392 0 X ALAND = BR

Table 10-8: Access sequence BRIF– steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 382 0 X ALAND = BRDOCTYP = 4TXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_STDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

Condition-Based Tax Calculation in R/3 For Brazil 49

Page 50: Docu Cbt 302

SAP Online Help 5/2/2023

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

98 382 0 X ALAND = BRDOCTYP = 4TXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_STDYNKEY1 = XDYNKEY2 = XDYNKEY3 = XTAXGROUP = 98

99 392 0 X ALAND = BR

Table 10-9: Access sequence BRII – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 382 163 X ALAND = BRDOCTYP = 4TXREG_SF KOMP TXREG_STTXREG_ST KOMP TXREG_STDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

Table 10-10: Access sequence BRIP – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 346 0 X ALAND = BRDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

97 346 0 X ALAND = BRDYNKEY1 KOMP STEUCDYNKEY2 = XDYNKEY3 = XTAXGROUP = 97

99 392 0 X ALAND = BR

Table 10-11: Access sequence BRIR – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 382 163 X ALAND = BRDOCTYP KOMK DOKTYPTXREG_SF KOMP TXREG_ST

Condition-Based Tax Calculation in R/3 For Brazil 50

Page 51: Docu Cbt 302

SAP Online Help 5/2/2023

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field ConstantTXREG_ST KOMP TXREG_STDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

98 382 0 X ALAND = BRDOCTYP KOMK DOKTYPTXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_STDYNKEY1 = XDYNKEY2 = XDYNKEY3 = XTAXGROUP = 98

99 392 0 X ALAND = BR

Table 10-12: Access sequence BRIS – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

1 121 0 X ALAND = BRMATNR KOMP MATNR

5 347 0 X ALAND = BRTXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_STDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

99 392 0 X ALAND = BR

Table 10-13: Access sequence BRLC – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 382 0 X ALAND = BRDOCTYP = 0TXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_STDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

98 382 0 X ALAND = BRDOCTYP = 0TXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_ST

Condition-Based Tax Calculation in R/3 For Brazil 51

Page 52: Docu Cbt 302

SAP Online Help 5/2/2023

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field ConstantDYNKEY1 = XDYNKEY2 = XDYNKEY3 = XTAXGROUP = 98

99 3 0 X ALAND = BRMWSKZ KOMK MWSKZ

Table 10-14: Access sequence BRLP – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 346 0 X ALAND = BRDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

97 346 0 X ALAND = BRDYNKEY1 KOMP STEUCDYNKEY2 = XDYNKEY3 = XTAXGROUP = 97

99 3 0 X ALAND = BRMWSKZ KOMK MWSKZ

Table 10-15: Access sequence BRPI – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 346 0 X ALAND = BRDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

Table 10-16: Access Sequence BRS1 – steps and field assignment

Step Tab. Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 601 0 X ALAND = BR

TXJCD = KOMP LOC_PR

DYNKEY1 KOMP MATNR

DYNKEY2 = X

DYNKEY3 = X

TAXGROUP = 5

Condition-Based Tax Calculation in R/3 For Brazil 52

Page 53: Docu Cbt 302

SAP Online Help 5/2/2023

Step Tab. Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

99 392 0 X ALAND = BR

Table 10-17: Access sequence BRS2 - steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 601 0 X ALAND = BR

TXJCD = KOMP LOC_SE

DYNKEY1 KOMP MATNR

DYNKEY2 = X

DYNKEY3 = X

TAXGROUP = 5

99 392 0 X ALAND = BR

Step 5 is necessary as a template to automatically update access sequences when creating new tax groups of dynamic exceptions. Use requirement formula that is never fulfilled in step 5 of the access sequence if you don’t want to consider it.

Step 99 is used for country default rates. A different condition table is used that has only country as key field.

Table 10-18: Access sequence BRST – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 348 0 X ALAND = BRTXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_STXSUBT KOMK XSUBTDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

98 348 0 X ALAND = BRTXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_STXSUBT KOMK XSUBTDYNKEY1 = XDYNKEY2 = XDYNKEY3 = XTAXGROUP = 98

Condition-Based Tax Calculation in R/3 For Brazil 53

Page 54: Docu Cbt 302

SAP Online Help 5/2/2023

Table 10-19: Access sequence BRTF – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 394 0 X ALAND = BRTXREG_ST KOMP TXREG_ST

10 3 0 X ALAND = BRMWSKZ KOMK MWSKZ

Table 10-20: Access sequence BRWT – Name: Brazil WHT

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 346 0 X ALAND = BRDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

Step 5 is necessary as a template to automatically update access sequences when creating new tax groups of dynamic exceptions. Use requirement formula that is never fulfilled in step 5 of the access sequence if you don’t want to consider it.

Table 10-21 : Access sequence BUNI – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

10 3 0 X ALAND KOMKMWSKZ KOMK MWSKZ

99 392 0 X ALAND = BR

Table 10-22: Access sequence MWST – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

10 3 0 X ALAND KOMK ALANDMWSKZ KOMK MWSKZ

10.3 Access Sequences SDTable 10-23: Access sequences used in the SD tax calculationAccSeq DescriptionBRCO Brazil CofinsBRPI Brazil PISBRWT Brazil whtDIBR Brazil Taxes DueIBRR Brazil: 100% offsetIBRX Brazil Ext. Tax Det.

Condition-Based Tax Calculation in R/3 For Brazil 54

Page 55: Docu Cbt 302

SAP Online Help 5/2/2023

AccSeq DescriptionICBS BR: ICMS Tax Base ValICCB BR: ICMS Offsetting EntryICLW BR: ICMS Tax LawsICVA BR: ICMS Tax RatesICXC BR: Customer ICMS ExemptIPBS BR: IPI Tax Base ValueIPLW BR: IPI Tax LawsIPVA BR: IPI Tax RatesISS1 Brazil ISS at Service ProviderISS2 Brazil ISS wh Service providedIPXC BR: Customer IPI ExemptISTC BR: ICMS Rates for SubtribISTI BR: ICMS Rate for S.TISTV BR: Subtrib SurchargeISVA BR: ISS Tax RatesIZOF Zona Franca

Table 10-24: Access sequence BRCO– steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 346 0 X ALAND = BRDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

Table 10-25: Access Sequence BRPI - steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 346 0 X ALAND = BR

DYNKEY1 KOMP MATNR

DYNKEY2 = X

DYNKEY3 = X

TAXGROUP = 5

Step 5 is necessary as a template to automatically update access sequences when creating new tax groups of dynamic exceptions. Use requirement formula that is never fulfilled in step 5 of the access sequence if you don’t want to consider it.

Table 10-26 Access sequence BRWT– Brazil WHT

Condition-Based Tax Calculation in R/3 For Brazil 55

Page 56: Docu Cbt 302

SAP Online Help 5/2/2023

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 346 0 X ALAND = BRDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

Step 5 is necessary as a template to automatically update access sequences when creating new tax groups of dynamic exceptions. Use requirement formula that is never fulfilled in step 5 of the access sequence if you don’t want to consider it.

Table 10-27: Access sequence DIBR – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

10 291 X ALAND = BRJ_1BTXSDC KOMP J_1BTXSDC

Table 10-28 Access sequence DICM– steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

10 11 0 X ALAND = BRLLAND KOMK LAND1TAXK1 KOMK TAXK1TAXM1 KOMP TAXM1

20 392 0 X ALAND = BR

Table 10-29: Access sequence DIPI – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

20 002 X ALAND KOMK ALAND

TAXK1 KOMK TAXK1 ATYP A / PRIO 1

TAXM1 KOMP TAXM1 ATYP A / PRIO 2

30 342 0 X ALAND KOMK ALANDTAXM2 KOMP TAXM2

40 392 0 X ALAND = BR

Table 10-30: Access sequence DISI– steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

10 121 0 X ALAND KOMK ALANDMATNR KOMP MATNR

Condition-Based Tax Calculation in R/3 For Brazil 56

Page 57: Docu Cbt 302

SAP Online Help 5/2/2023

Table 10-31: Access sequence IBRR – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

1 390 0 X ALAND = BR

Table 10-32: Access sequence IBRX – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

1 002 X ALAND KOMK ALANDTAXK1 KOMK TAXK1TAXM1 KOMP TAXM1

Table 10-33: Access sequence ICCB – steps and field assignment

Step Tab Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

10 349 0 X ALAND = BRTXREG_ST KOMP TXREG_STMATNR KOMP MATNR

20 392 0 X ALAND = BR

Table 10-34: Access sequence ICBS – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

1 341 X ALAND KOMK ALANDTAXK3 KOMK TAXK3

5 382 0 X ALAND = BRDOCTYP = 0TXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_STDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

98 382 0 X ALAND = BRDOCTYP =TXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_STDYNKEY1 = XDYNKEY2 = XDYNKEY3 = XTAXGROUP = 98

99 392 0 X ALAND = BR

Condition-Based Tax Calculation in R/3 For Brazil 57

Page 58: Docu Cbt 302

SAP Online Help 5/2/2023

Table 10-35: Access sequence ICLW – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 382 0 X ALAND = BRDOCTYP = 0TXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_STDYNKEY1 KOMP MATNRDYNKEY2 =DYNKEY3 = XTAXGROUP = 5

98 382 0 X ALAND = BRDOCTYP = 0TXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_STDYNKEY1 = XDYNKEY2 = XDYNKEY3 = XTAXGROUP = 98

99 003 0 X ALAND = BRMWSKZ KOMK MWSKZ

Table 10-36: Access sequence ICVA – steps and field assignment

Step

Tab. Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 382 0 X ALAND = BRDOCTYP = 0TXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_STDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

98 382 0 X ALAND = BRDOCTYP = 0TXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_STDYNKEY1 = XDYNKEY2 = XDYNKEY3 = XTAXGROUP = 98

99 392 0 X ALAND = BR

Condition-Based Tax Calculation in R/3 For Brazil 58

Page 59: Docu Cbt 302

SAP Online Help 5/2/2023

Table 10-37: Access sequence ICXC – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

1 341 0 X ALAND KOMK ALANDTAXK3 KOMK TAXK3

Table 10-38: Access sequence IPBS – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

1 293 0 X ALAND = BRTAXK2 KOMK TAXK2

5 346 0 X ALAND = BRDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

97 346 0 X ALAND = BRDYNKEY1 KOMP STEUCDYNKEY2 = XDYNKEY3 = XTAXGROUP = 97

99 392 0 X ALAND = BR

Table 10-39: Access sequence IPLW – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

1 293 0 X ALAND = BRTAXK2 KOMK TAXK2

5 346 0 X ALAND = BRDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

97 346 0 X ALAND = BRDYNKEY1 KOMP STEUCDYNKEY2 = XDYNKEY3 = XTAXGROUP = 97

98 346 0 X ALAND = BRDYNKEY1 = XDYNKEY2 = XDYNKEY3 = XTAXGROUP = 98

99 003 0 X ALAND = BRMWSKZ KOMK MWSKZ

Condition-Based Tax Calculation in R/3 For Brazil 59

Page 60: Docu Cbt 302

SAP Online Help 5/2/2023

Table 10-40: Access sequence IPVA – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

1 293 0 X ALAND = BRTAXK2 KOMK TAXK2

5 346 0 X ALAND = BRDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

98 346 0 X ALAND = BRDYNKEY1 KOMP STEUCDYNKEY2 = XDYNKEY3 = XTAXGROUP = 98

99 392 0 X ALAND = BR

Table 10-41: Access sequence IPXC – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

1 293 0 X ALAND KOMK ALANDTAXK2 KOMK TAXK2

Table 10- 42: Access Sequence ISS1 - steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 601 0 X ALAND = BR

TXJCD = KOMP LOC_PR

DYNKEY1 KOMP MATNR

DYNKEY2 = X

DYNKEY3 = X

TAXGROUP = 5

99 392 0 X ALAND = BR

Step 5 is necessary as a template to automatically update access sequences when creating new tax groups of dynamic exceptions. Use requirement formula that is never fulfilled in step 5 of the access sequence if you don’t want to consider it.

Step 99 is used for country default rates. A different condition table is used that has only country as key field.

Table 10- 43: Access Sequence ISS2 - steps and field assignment

Condition-Based Tax Calculation in R/3 For Brazil 60

Page 61: Docu Cbt 302

SAP Online Help 5/2/2023

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 601

392

Leer

0 X ALAND = BR

TXJCD = KOMP LOC_SE

DYNKEY1 KOMP MATNR

DYNKEY2 = X

DYNKEY3 = X

TAXGROUP = 5

99 392 0 X ALAND = BR

Step 5 is necessary as a template to automatically update access sequences when creating new tax groups of dynamic exceptions. Use requirement formula that is never fulfilled in step 5 of the access sequence if you don’t want to consider it.

Step 99 is used for country default rates. A different condition table is used that has only country as key field.

Table 10-44: Access sequence ISTC – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 382 0 X ALAND = BRDOCTYP = 0TXREG_SF KOMP TXREG_STTXREG_ST KOMP TXREG_STDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

98 382 0 X ALAND = BRDOCTYP = 0TXREG_SF KOMP TXREG_STTXREG_ST KOMP TXREG_STDYNKEY1 = XDYNKEY2 = XDYNKEY3 = XTAXGROUP = 98

99 392 0 X ALAND = BR

Table 10-45: Access sequence ISTI – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 382 163 X ALAND = BRDOCTYP = 0TXREG_SF KOMP TXREG_STTXREG_ST KOMP TXREG_ST

Condition-Based Tax Calculation in R/3 For Brazil 61

Page 62: Docu Cbt 302

SAP Online Help 5/2/2023

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field ConstantDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

Table 10-46: Access sequence ISTV – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 382 0 X ALAND = BRTXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_STXSUBT KOMK XSUBTDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

98 382 0 X ALAND = BRTXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_STXSUBT KOMK XSUBTDYNKEY1 = XDYNKEY2 = XDYNKEY3 = XTAXGROUP = 98

Table 10-47: Access sequence ISVA – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

1 121 0 X ALAND = BRMATNR KOMP MATNR

5 347 0 X ALAND = BRTXREG_SF KOMP TXREG_SFTXREG_ST KOMP TXREG_STDYNKEY1 KOMP MATNRDYNKEY2 = XDYNKEY3 = XTAXGROUP = 5

99 392 0 X ALAND = BR

Table 10-48: Access sequence IZOF – steps and field assignment

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field Constant

5 394 0 X ALAND = BR

Condition-Based Tax Calculation in R/3 For Brazil 62

Page 63: Docu Cbt 302

SAP Online Help 5/2/2023

Step Tab.

Req.

Excl.

Field Assignment

Condition I/O Doc.Struc. Doc.Field ConstantTXREG_ST KOMP TXREG_ST

10.4 Condition Types MM/FI

10.4.1 Condition types used in tax calculation procedure for MM

Table 10-79: Condition types used in tax calculation procedure for MM (FI)CTyp Name AcSq CalTy CdCat CCl RfCTy Rap

B100 Convenio 100 BRIC A D A

BCI1 ICMS Complement Base BRCI A 1 A

BCI2 ICMS Complem. Exempt BRCI A 1 A

BDIS Discount B F A

BFRE Freight B F A

BI00 Dummy Non-Statistic. BRB1 A 1 D BIC6 TX

BIC0 ICMS Rate BRIC A 1 A

BIC1 ICMS Base Reduction BRIB A 1 A

BIC2 ICMS Other Base Flag BRIC A 1 A

BIC6 ICMS Base BRB1 A 1 A

BICH ICMS Rate SF=ST BRID A 1 A BIC0 TX

BICS ICMS Rate for S.T. BRII A 1 A BIC0 TX

BICX ICMS exempt MWST A 1 A

BIF0 ICMS on freight BRIC A 1 A

BIFH ICMS Fr Rate SF=ST BRID A 1 A BIF0 TX

BIP0 IPI Rate BRIP A 1 A

BIP1 IPI Base Reduction BRIP A 1 A

BIP2 IPI Other Base Flag BRIP A 1 A

BIPP IPI Pauta Amount BRIP C 1 B

BIPX IPI exempt MWST A 1 A

BIS0 ISS Rate BRIS A 1 D

BIZF Tax Free Region BRTF A 1 D ICZF TX

BLIC Tax Law ICMS BRLC A 1 A

Condition-Based Tax Calculation in R/3 For Brazil 63

Page 64: Docu Cbt 302

SAP Online Help 5/2/2023

CTyp Name AcSq CalTy CdCat CCl RfCTy Rap

BLIP Tax Law IPI BRLP A 1 D

BSF0 Subtrib. Rate BRST A 1 A BST0 TX

BSF1 ICMS Fr Rate SF=ST BRID A 1 A BIF0 TX

BST0 Subtrib. Rate BRST A 1 A

BST1 Subtrib. surch. type BRST A 1 A

BST2 Subtrib. Minprice BRST C 1 B

BST3 Subtrib. Fixprice BRST C 1 B

BST6 Subtrib. reduction 1 BRST A 1 A

BST7 Subtrib. reduction 2 BRST A 1 A

BST8 Subtrib. base reduct BRST A 1 A

BSTF Subtrib.Minpr.Factor BRST A 1 A

BSTI S.T. Minp.Bef.Surch. BRST A 1 A

BSUB S.T. Base Modif. B F A

BX01 BR Tax Calculation B 1 A

BX10 BR ICMS Normal Base B 1 A

BX11 BR ICMS Exclude Base B 1 A

BX12 BR ICMS Other Base B 1 A

BX13 BR ICMS Amount B 1 A

BXZF BR ICMS Zona Franca B 1 A

BX14 BR ICMS Freight Base B 1 A

BX15 BR ICMS Freight Amnt. B 1 A

BX16 BR ICMS Rate B 1 A

BX20 BR IPI Normal Base B 1 A

BX21 BR IPI Exclude Base B 1 A

BX22 BR IPI Other Base B 1 A

BX23 BR IPI Amount B 1 A

BX24 BR IPI Offset Base B 1 A

BX25 BR IPI Offset Amount B 1 A

BX30 BR ICMS Comp. Base B 1 A

BX31 BR ICMS Comp. Amnt. B 1 A

BX32 BR ICMS Comp. Rate B 1 A

BX40 BR SubTrib Base B 1 A

Condition-Based Tax Calculation in R/3 For Brazil 64

Page 65: Docu Cbt 302

SAP Online Help 5/2/2023

CTyp Name AcSq CalTy CdCat CCl RfCTy Rap

BX41 BR SubTrib Amount B 1 A

BX42 BR SubTrib Fr. Base B 1 A

BX43 BR SubTrib Fr. Amnt B 1 A

BX44 BRSubTrib NF Rate B 1 A

BX45 BRSubtrib Basered1 B 1 A

BX46 BRSubtrib Basered2 B 1 A

BX50 BR ISS Base B 1 A

BX51 BR ISS Amount B 1 A

BXPA BR IPI Pauta Amount B 1 A

BXPO BR Caller = PO? B 1 A

IC1C ICMS Ind.Clearing MWST A 1 D

IC1O ICMS Ind.Clear.Off. MWST A 1 D

ICM0 ICMS NF Zero Line MWST A 1 D

ICM1 ICMS Industr. In MWST A 1 D

ICM2 ICMS Consumption In MWST A 1 D

ICM3 ICMS from SD Out MWST A 1 D

ICM4 STO-ICMS SD (ICM3) MWST A 1 D

ICMF ICMS S.T. fr. offset MWST A 1 D

ICOA COFINS Normal PO/GR MWST A 1 D

ICN3 COFINS Normal Tax MWST A 1 D

ICOF COFINS deductible MWST A 1 D

ICON COFINS Normal Tax MWST A 1 D

ICOO COFINS Offset Tax Included MWST A 1 D

ICOP ICMS complement MWST A 1 D

ICOS COFINS Normal PO/GR MWST A 1 D

ICOT STO-ICMS complement MWST A 1 D

ICOU COFINS COFINS Normal MWST A 1 D

ICOV COFINS Offset ICOS/ICOU MWST A 1 D

ICOW COFINS WHT MWST A 1 D

ICOX ICMS complement 100 MWST A 1 D

ICOZ COFINS WHT Offset MWST A 1 D

ICSW CSLL WHT MWST A 1 D

Condition-Based Tax Calculation in R/3 For Brazil 65

Page 66: Docu Cbt 302

SAP Online Help 5/2/2023

CTyp Name AcSq CalTy CdCat CCl RfCTy Rap

ICSZ CSLL WHT Offset MWST A 1 D

ICS1 Sub.Tributaria In MWST A 1 D

ICS2 S.T. Consumption In MWST A 1 D

ICS3 Sub.Tributaria Out MWST A 1 D

ICW3 COFINS Withholding TaxSD MWST A 1 D

ICZF ICMS Rev (Z.F.)-STO BRTF A 1 D

ICZ3 COFINS WHT SD Offset MWST A 1 D

IFR1 ICMS on freight In MWST A 1 D

IFR3 ICMS on freight Out MWST A 1 D

IFS1 ICMS ST freight In MWST A 1 D

IFS3 ICMS ST freight Out MWST A 1 D

IGEW General WHT MWST A 1 D

IGEZ General WHT Offset MWST A 1 D

IGW3 General WHT SD MWST A 1 D

IGZ3 General WHT SD Offset MWST A 1 D

IIRW IR WHT MWST A 1 D

IIRZ IR WHT Offset MWST A 1 D

INSS INSS Incoming MWST A 1 D

INSX INSS offset (100-)-- MWST A 1 D

IPI0 IPI NF Zero Line MWST A 1 D

IPIS PIS deductible MWST A 1 D

IPI1 IPI Industr. In MWST A 1 D

IPI2 IPI Consumption In MWST A 1 D

IPI3 IPI from SD Out MWST A 1 D

IPI4 IPI -Split Vendor MWST A 1 D

IPS3 PIS Normal Tax MWST A 1 D

IPSA PIS Normal PO/GR MWST A 1 D

IPSN PIS Normal Tax MWST A 1 D

IPSO PIS Offset Tax Included MWST A 1 D

IPSS PIS Normal PO/GR MWST A 1 D

IPSU PIS Normal IV NVV MWST A 1 D

IPSV PIS Offset IPSS / IPSU MWST A 1 D

Condition-Based Tax Calculation in R/3 For Brazil 66

Page 67: Docu Cbt 302

SAP Online Help 5/2/2023

CTyp Name AcSq CalTy CdCat CCl RfCTy Rap

IPSW PIS WHT MWST A 1 D

IPSZ PIS WHT Offset MWST A 1 D

IPZ3 PIS WHT SD Offset MWST A 1 D

IPW3 PIS WHT SD MWST A 1 D

IRD1 Reimbursement ICMS MWST A 1 D

IRD2 Reimb. ICMS offset MWST A 1 D

IRD3 Reimbursement SUBT MWST A 1 D

IRD4 Reimb. SUBT offset MWST A 1 D

IRD5 Reimb. ICMS off. NVV MWST A 1 D

IRD6 Reimb. SUBT off.NVV MWST A 1 D

IRW3 IR Withholding TaxSD MWST A 1 D

IRZ3 IR WHT SD Offset MWST A 1 D

ISA3 ISS at Provider SD MWST A 1 D

ISB3 ISS WHT at Provider SD MWST A 1 D

ISE3 ISS at Service Loc SD MWST A 1 D

ISF3 ISS WHT at Service Loc SD MWST A 1 D

ISSA ISS at Provider MWST A 1 D

ISSB ISS WHT at Provider MWST A 1 D

ISSE ISS at Service Loc MWST A 1 D

ISSF ISS WHT at Service Loc MWST A 1 D

ISSG ISS Offset MWST A 1 D

ISS2 ISS from MM In MWST A 1 D

ISS3 ISS from SD Out MWST A 1 D

ISSO ISS from MM In Offs MWST A 1 D

ISW3 CSLL Withholding Tax SD MWST A 1 D

ISZ3 CSLL WHT SD Offset MWST A 1 D

10.4.2 Tax Rate Conditions

Cond. Category: 1 (Jur. Level 1)

Manual Entries: D (Not possible to process manually)

Item Condition: X

Condition-Based Tax Calculation in R/3 For Brazil 67

Page 68: Docu Cbt 302

SAP Online Help 5/2/2023

Delete fr. DB: B (without popup)

Table 10-50:

Cond. Description Acc.Seq. Cal.Type Co.Class RefCon RefApp

BCO1 COFINS Rate BRCO A A

BCO2 COFINS Base BRCO A A

BCOP COFINS Pauta Amount BRCO C B

BIS1 ISS Rate at Prov. BRS1 A A

BIS2 ISS Base at Prov. BRS1 A A

BIS3 ISS Law at Prov. BRS1 A A

BIS5 ISS Taxloc at Prov. BRS1 A A

BIS6 ISS WHT at Prov. BRS1 A A

BIS7 ISS Min WHT at Prov. BRS1 B A

BISA ISS Rate at Serv. BRS2 A A BIS1 TX

BISB ISS Base at Serv. BRS2 A A BIS2 TX

BISC ISS Law at Serv. BRS2 A A BIS3 TX

BISE ISS Taxloc at Serv. BRS2 A A BIS5 TX

BISF ISS WHT at Serv. BRS2 A A BIS6 TX

BISG ISS Min WHT at Serv. BRS2 A A BIS7 TX

BPI1 PIS Rate BRPI A A

BPI2 PIS Base BRPI A A

BPIP PIS Pauta Amount BRPI C B

BW01 WHT Coll.Code Gen. BRWT A A

BW02 WHT Rate Gen. BRWT A A

BW11 WHT Coll.Code PIS BRWT A A

BW12 WHT Rate PIS BRWT A A

BW21 WHT Coll.Code COFINS BRWT A A

BW22 WHT Rate COFINS BRWT A A

BW31 WHT Coll.Code CSLL BRWT A A

BW32 WHT Rate CSLL BRWT A A

BW41 WHT Coll.Code IR BRWT A A

BW42 WHT Rate IR BRWT A A

10.4.3 Nota Fiscal Mapping Conditions

Cond. Class: A (Discount or surcharge)

Calculat. Type: B (Fixed amount)

Cond. Category: 1 (Jur. Level 1)

Access Seq.: (empty)

Manual Entries: D (Not possible to process manually)

Item Condition: X

Delete fr. DB: B (without popup)

Condition-Based Tax Calculation in R/3 For Brazil 68

Page 69: Docu Cbt 302

SAP Online Help 5/2/2023

Table 10-51:

Cond. Description

BX60 BR ISS Base Prov

BX61 BR ISS ExBase Prov

BX62 BR ISS Amount Prov

BX63 BR ISS WTAmount Prov

BX64 BR ISS WT Base Prov

BX65 BR ISS WT ExBas Prov

BX6A BR ISS Base Serv

BX6B BR ISS ExBase Serv

BX6C BR ISS Amount Serv

BX6D BR ISS WTAmount Serv

BX6E BR ISS WT Base Serv

BX6F BR ISS WT ExBas Serv

BX6O BR ISS Offset TxIncl

BX70 BR COFINS Base

BX71 BR COFINS Excl. Base

BX72 BR COFINS Amount

BX7O BR COFINS Off.TxIncl

BX7P BR COFINS Pauta Amt.

BX80 BR PIS Base

BX81 BR PIS Excl. Base

BX82 BR PIS Amount

BX8O BR PIS Off.TxIncl

BX8P BR PIS Pauta Amount

10.4.4 Nota Fiscal Mapping Conditions With Manually Created Condition RecordsCond. Category: 1 (Jur. Level 1)

Manual Entries: D (Not possible to process manually)

Item Condition: X

Delete fr. DB: B (without popup)

Table 10-52:

Cond. Description Acc.Seq. Co.Class Cal.Type RefCon RefApp

BXWT BR WHT Base Amount BRB1 D A

With transaction FV11, create a condition record for this condition type with rate 100% and tax code ‘SD’.

Condition-Based Tax Calculation in R/3 For Brazil 69

Page 70: Docu Cbt 302

SAP Online Help 5/2/2023

10.5 Condition Types SD

10.5.1 Condition types used in tax calculation procedure for SD

Table 10-81:

CTyp Name AcSq CalTy CdCat CCl RfCTy

RAp

BI00 Dummy Non-Statistic. IBRX A D D IBRX VBX10 BR ICMS Normal Base 1 ABX11 BR ICMS Exclude Base B 1 ABX12 BR ICMS Other Base B 1 ABX13 BR ICMS Amount IBRX B D D IBRX VBX14 BR ICMS Freight Base B 1 ABX15 BR ICMS Freight Amnt. IBRX B D D IBRX VBX16 BR ICMS Rate B 1 ABX20 BR IPI Normal Base B 1 ABX21 BR IPI Exclude Base B 1 ABX22 BR IPI Other Base A H ABX23 BR IPI Amount IBRX B D D IBRX VBX40 BR SubTrib Base B 1 ABX41 BR SubTrib Amount IBRX B D D IBRX VBX42 BR SubTrib Fr. Base B 1 ABX43 BR SubTrib Fr. Amnt IBRX B D D IBRX VBX44 BRSubTrib NF Rate B 1 ABX45 BRSubTrib Basered1 B 1 ABX46 BRSubTrib Basered2 B 1 ABX50 BR ISS Base B 1 ABX51 BR ISS Amount IBRX B D D IBRX VBXPA BR IPI Pauta Amount B 1 ABXZF BR ICMS Zona Franca IBRX A D DDICF Devido ICMS Freight DIBR A D DDICM Devido ICMS DIBR A D DDIPI BR: Devido IPI DIBR A D DDISI Devido ICMS s/IPI DIBR A D DDISS Devido ISS DIBR A D DDIZF Zona Franca IZOF A 1 D ICZF VDSUB Devido Sub Trib DIBR A D DDSUF Devido SubTrib Fr. DIBR A D DIBRX Brazil tax calc. IBRX A 1 DIC0X BR: ICMS 0 excempt DIBR A D DICBS ICMS Tax Base ICBS A D DICCB BR: ICMS comp.base ICCB A D DICCX BR: ICMS comp.excmpt ICCB A D DICFR BR: ICMS on freight ICVA A D DICLW BR: ICMS Law ICLW A D D

Condition-Based Tax Calculation in R/3 For Brazil 70

Page 71: Docu Cbt 302

SAP Online Help 5/2/2023

CTyp Name AcSq CalTy CdCat CCl RfCTy

RAp

ICM3 ICMS from SD A 1 DICMI Price+Tax (for NF) C BICMO ICMS offset IBRR A H AICOB BR: ICMS other base ICVA A D DICS3 Sub.Trib. from SD A 1 DICSO ISS offset IBRR A H AICVA ICMS Tax Rate ICVA A D DICXC BR Cust ICMS Exempt ICXC A D AICZF ICMS Disc. Zona Fr. IZOF A 1 DIFR3 ICMS on freight SD A 1 DIFS3 ICMS ST freight SD A 1 DIP0X BR: IPI 0 excempt DIBR A D DIPBS IPI Tax Base IPBS A D DIPI3 IPI from SD A 1 DIPIP BR: IPI Pauta IPVA A D DIPLW BR: IPI Law IPLW A D DIPOB BR: IPI other base IPVA A D DIPVA IPI Tax Rate IPVA A D DIPXC BR Cust IPI Exempt IPXC A D AISIC ICMS Rate SF=ST ISTC A D D ICVA VISS3 ISS from SD A 1 DIST2 BR: Sub.Trib 2 ISTV A D DISTB Sub. Trib Base Value ISTV A D DISTC Subtrib. base reduct ISTV A D DISTD ICMS Rate for S.T. ISTI A D DISTF BR: Sub.Trib FixPric ISTV C D DISTI S.T. Minp.Bef.Surch. ISTV A AISTM BR: Sub.Trib MinPric ISTV C D DISTN Subtrib.Minpr.Factor ISTV A AISTS Subtrib Surcharge ISTV A D DISTT BR: Sub.Trib SurType ISTV A D D

ISVA BR: ISS amount ISVA A D D

10.5.2 Withholding tax types used in tax calculation procedure for SD

Table 10-92:

Tax Type Description AcSq CalTy CdCat CCl RfCTy RAp

ICN3 COFINS from SD MWST A 1 D

ICW3 COFINS Withholding TaxSD MWST A 1 D

IGW3 General WHT SD MWST A 1 D

IPS3 PIS Normal Tax MWST A 1 D

Condition-Based Tax Calculation in R/3 For Brazil 71

Page 72: Docu Cbt 302

SAP Online Help 5/2/2023

IPW3 PIS WHT SD MWST A 1 D

IRW3 IR Withholding TaxSD MWST A 1 D

ISA3 ISS at Provider SD MWST A 1 D

ISB3 ISS WHT at Provider SD MWST A 1 D

ISE3 ISS at Service Loc SD MWST A 1 D

ISF3 ISS WHT at Service Loc SD MWST A 1 D

ISW3 CSLL Withholding Tax SD MWST A 1 D

ICZ3 COFINS WHT SD Offset IBRR A 1 D ICMO V

IGZ3 General WHT SD Offset IBRR A 1 D ICMO V

IPZ3 PIS WHT SD Offset IBRR A 1 D ICMO V

IRZ3 IR WHT SD Offset IBRR A 1 D ICMO V

ISZ3 CSLL WHT SD Offset IBRR A 1 D ICMO V

ICO2 COFINS Offset SD IBRR A A ICMO V

IPS2 PIS Offset SD IBRR A A ICMO V

10.5.3 Withholding Tax Code Conditions

Table 10-103

Tax Type Description AcSq CalTy CdCat CCl RfCTy RAp

IKW4 ISS provider WHT cde J1AG A D W

ILW4 ISS service WHT cde J1AG A D W

ICW4 COFINS WHT code J1AG A D W

IPW4 PIS WHT code J1AG A D W

ISW4 CSLL WHT code J1AG A D W

IRW4 IR WHT code J1AG A D W

IGW4 General WHT code J1AG A D W

10.5.4 Tax Code Conditions

Table 10-114:

Tax Type Description AcSq CalTy CdCat CCl RfCTy RAp

DCOF COFINS Due DIBR A D D

DPIS PIS Due DIBR A D D

DWHT WHT Due DIBR A D D

10.5.5 Withholding tax Tax Rate Conditions

Table 10-125:

Cond. Description AcSq CalTy CdCat CCl RfCTy RAp

BCO1 COFINS Rate BRCO A D D

BCO2 COFINS Base BRCO A D D

BCOP COFINS Pauta Amount BRCO C D D

Condition-Based Tax Calculation in R/3 For Brazil 72

Page 73: Docu Cbt 302

SAP Online Help 5/2/2023

Cond. Description AcSq CalTy CdCat CCl RfCTy RAp

ISVB ISS Rate at Prov. ISS1 A D D

ISVC ISS Base at Prov. ISS1 A D D

ISVD ISS Law at Prov. ISS1 A D D

ISVF ISS Taxloc at Prov. ISS1 A D D

ISVG ISS WHT at Prov. ISS1 A D D

ISVH ISS Min WHT at Prov. ISS1 B D D

ISVN ISS Rate at Serv. ISS2 A D D ISVB V

ISVO ISS Base at Serv. ISS2 A D D ISVC V

ISVP ISS Law at Serv. ISS2 A D D ISVD V

ISVR ISS Taxloc at Serv. ISS2 A D D ISVF V

ISVS ISS WHT at Serv. ISS2 A D D ISVG V

ISVT ISS Min WHT at Serv. ISS2 B D D ISVH V

BPI1 PIS Rate BRPI A D D

BPI2 PIS Base BRPI A D D

BPIP PIS Pauta Amount BRPI C D B

BW01 WHT Coll.Code Gen. BRWT A D D

BW02 WHT Rate Gen. BRWT A D D

BW11 WHT Coll.Code PIS BRWT A D D

BW12 WHT Rate PIS BRWT A D D

BW21 WHT Coll.Code COFINS BRWT A D D

BW22 WHT Rate COFINS BRWT A D D

BW31 WHT Coll.Code CSLL BRWT A D D

BW32 WHT Rate CSLL BRWT A D D

BW41 WHT Coll.Code IR BRWT A D D

BW42 WHT Rate IR BRWT A D D

10.5.6 Nota Fiscal Mapping Condition

Table 10-136:

Cond. Description AcSq CalTy CdCat CCl RfCTy RAp

BX60 BR ISS Base Prov B 1 A

BX61 BR ISS ExBase Prov B 1 A

BX62 BR ISS Amount Prov B 1 A

BX63 BR ISS WTAmount Prov B 1 A

BX64 BR ISS WT Base Prov B 1 A

BX65 BR ISS WT ExBas Prov B 1 A

BX6A BR ISS Base Serv B 1 A

BX6B BR ISS ExBase Serv B 1 A

BX6C BR ISS Amount Serv B 1 A

BX6D BR ISS WTAmount Serv B 1 A

Condition-Based Tax Calculation in R/3 For Brazil 73

Page 74: Docu Cbt 302

SAP Online Help 5/2/2023

BX6E BR ISS WT Base Serv B 1 A

BX6F BR ISS WT ExBas Serv B 1 A

BX6O BR ISS Offset TxIncl B 1 A

BX70 BR COFINS Base B 1 A

BX71 BR COFINS Excl. Base B 1 A

BX72 BR COFINS Amount B 1 A

BX7O BR COFINS Off.TxIncl B 1 A

BX7P BR COFINS Pauta Amt. B 1 A

BX80 BR PIS Base B 1 A

BX81 BR PIS Excl. Base B 1 A

BX82 BR PIS Amount B 1 A

BX8O BR PIS Off.TxIncl B 1 A

BX8P BR PIS Pauta Amount B 1 A

10.6 Calculation Procedure in MM (FI): TAXBRA

The calculation procedure TAXBRA is used in the FI tax calculation, which is called in MM transac-tions. This calculation procedure is assigned to the country in table T005.

It is structured in the following sections:

Transaction data retrieval

Customizing data retrieval

Tax calculation

Results of tax calculation

Tax code conditions

Each of the sections forms a connected block in the calculation procedure.

The calculation part is completely moved to a formula. This is discussed in section 6.

In the following, each of the sections of the new calculation procedure will be discussed.

10.6.1 Transaction Data Retrieval

The first line of the calculation procedure just contains a zero value. It is used to refer to it in lines of the calculation procedure that only contain explanatory texts (like e.g. step 011) in order that no con-fusing intermediate sum appears in such lines on the pricing results screen in the transactions.

In the first section of the calculation procedure, data specific to the item that is processed in the tax calculation are processed. These are the net value (step 010, BASB), the discount (step 012, BDIS), the freight (step 013, BFRE), and the S.T. base modification amount (step 014, BSUB). Furthermore, the calling application (PO/ IM or IV) is determined (step 017, BXPO).

Table 10-141: Retrieval of transaction data in the calculation procedureStep CTyp Description Fro

m To Reqt

Stat

AltCTy

AltCBV

ActKy

001   First line: zero 000 000 000 X 000 000  

010 BAS Base Amount 000 00 000   000 000  

Condition-Based Tax Calculation in R/3 For Brazil 74

Page 75: Docu Cbt 302

SAP Online Help 5/2/2023

Step CTyp Description Fro

m To Reqt

Stat

AltCTy

AltCBV

ActKy

B 0

011   Tax-relev. conditions: 001 00

0 000 X 000 000  

012 BDIS Discount 000 000 000 X 320 160  

013 BFRE Freight 000 00

0 000 X 320 160  

014 BSUB S.T. Base Modif. 000 00

0 000 X 320 160

015     001 000 000 X 000 000  

017 BXPO BR Caller = PO? 000 00

0 160 X 000 160  

10.6.2 Customizing Data Retrieval

In the next section, the tax Customizing data (rates, laws, and other flags) are read from the condition database. The access is done based on the actual values in the communication structures KOMP and KOMK and is controlled by the access sequences assigned to the condition types. The steps in red are only required for CBT. If Using the classical calculation please skip the step.

The entries in dark blue are due to withholding tax law change (MP135)

Table 10-62: Retrieval of tax Customizing data in the calculation procedureStep CTyp Description From To Reqt Stat AltCTy AltCBV ActKy

019 Read tax data: 001 000 000 X 000 000

020 ICMS 001 000 000 X 000 000

021 BIC0 ICMS Rate 000 000 000 X 000 160

022 BIC1 ICMS Base Reduction 000 000 000 X 000 160

023 BIC2 ICMS Other Base Flag 000 000 000 X 000 160

024 BICX ICMS exempt 000 000 000 X 000 160

025 B100 Convenio 100 000 000 000 X 000 160

026 BLIC Steuergesetz ICMS 000 000 000 X 000 160

027 BICH ICMS Rate SF=ST 000 000 000 X 000 160

028 BICS ICMS Rate for S.T. 000 000 000 X 000 160

030 ICMS Complement 001 000 000 X 000 000

031 BCI1 ICMS Complement Base 000 000 000 X 000 160

032 BCI2 ICMS Complem. Ex-empt 000 000 000 X 000 160

040 ICMS on Freight 001 000 000 X 000 000

041 BIF0 ICMS on freight 000 000 000 X 000 160

042 BIFH ICMS Fr Rate SF=ST 000 000 000 X 000 160

050 IPI 001 000 000 X 000 000

051 BIP0 IPI Rate 000 000 000 X 000 160

052 BIP1 IPI Base Reduction 000 000 000 X 000 160

Condition-Based Tax Calculation in R/3 For Brazil 75

Page 76: Docu Cbt 302

SAP Online Help 5/2/2023

Step CTyp Description From To Reqt Stat AltCTy AltCBV ActKy

053 BIP2 IPI Other Base Flag 000 000 000 X 000 160

054 BIPP IPI Pauta Amount 000 000 000 X 000 000

055 BIPX IPI exempt 000 000 000 X 000 160

056 BLIP Steuergesetz IPI 000 000 000 X 000 160

060 ISS 001 000 000 X 000 000

061 BIS0 ISS Rate 000 000 000 X 000 160

070 Sub.Trib. 001 000 000 X 000 000

071 BST0 Subtrib. Rate 000 000 000 X 000 160

072 BST1 Subtrib. surch. type 000 000 000 X 000 160

073 BST2 Subtrib. Minprice 000 000 000 X 000 000

074 BST3 Subtrib. Fixprice 000 000 000 X 000 000

075 BST6 Subtrib. reduction 1 000 000 000 X 000 160

076 BST7 Subtrib. reduction 2 000 000 000 X 000 160

077 BST8 Subtrib. base reduct 000 000 000 X 000 160

078 BSTF Subtrib.Minpr.Factor 000 000 000 X 000 160

079 BSTI S.T. Minp.Bef.Surch. 000 000 000 X 000 160

080 ISS New 2004 1 000 000 X 000

081 BIS1 ISS Rate at Prov. 000 000 000 X 000 160

082 BIS2 ISS Base at Prov. 000 000 000 X 000 160

083 BIS3 ISS Law at Prov. 000 000 000 X 000 160

084 BlS4 ISS Ins. Cal at Prov. 000 000 000 x 000 160

085 BIS5 ISS Taxloc at Prov. 000 000 000 X 000 160

086 BIS6 ISS WHT at Prov. 000 000 000 X 000 160

087 BIS7 ISS Min WHT at Prov. 000 000 000 X 000 160

091 BISA ISS Rate at Serv. 000 000 000 X 000 160

092 BISB ISS Base at Serv. 000 000 000 X 000 160

093 BISC ISS Law at Serv. 000 000 000 X 000 160

094 BISD ISS Ins.Cal at Serv. 000 000 000 x 000 160

095 BISE ISS Taxloc at Serv. 000 000 000 X 000 160

096 BISF ISS WHT at Serv. 000 000 000 X 000 160

101 BX01 BR Tax Calculation 1 000 000 x 000 160

097 BISG ISS Min WHT at Serv. 000 000 000 X 000 160

110 PIS, COFINS 1 000 000 X 000

111 BCO1 COFINS Rate 000 000 000 X 000 160

112 BCO2 COFINS Base 000 000 000 X 000 160

113 BCOP COFINS Pauta Amount 000 000 000 X 000

Condition-Based Tax Calculation in R/3 For Brazil 76

Page 77: Docu Cbt 302

SAP Online Help 5/2/2023

Step CTyp Description From To Reqt Stat AltCTy AltCBV ActKy

121 BPI1 PIS Rate 000 000 000 X 000 160

122 BPI2 PIS Base 000 000 000 X 000 160

123 BPIP PIS Pauta Amount 000 000 000 X 000

Rot markierte Stellen stehen so in MP135

After all data are retrieved that are necessary to calculate the taxes, the tax calculation is performed by processing the condition value formula 320 which is discussed in section 6.

Table 10-63: Call to tax calculation in the calculation procedureStep

CTyp Description Fro

m To Reqt

Stat

AltCTy

AltCBV

ActKy

100   Call Tax Calculation: 001 00

0 000 X 000 000  

101 BX01

BR Tax Calculation 010 00

0 000 X 320 000  

190 Call Tax Calculation: 1 X

191 BX01 BR Tax Calculation 10 X 320

In MP 135

10.6.3 Results of Tax Calculation

The results of the tax calculation are retrieved in the next section of the calculation procedure. For each value, a condition type is defined that serves to indicate the result in the pricing procedure results table. For these new condition types, corresponding internal codes are defined which are used in the coding to transfer the tax results back to the calculation procedure. This coding is processed in the call to the condition value formula 320 as well (see section 6).

The condition types and internal codes are listed in sections and 10.7, respectively.

Table 10-64: Results of tax calculation in the calculation procedure

Step CTyp Description From To Req

tStat

AltCTy

AltCBV

ActKy

100/190   Call Tax Calculation: 001 00

0 000 X 000 000  

200   Tax Results: 001 000 000 X 000 000  

210 BX10

BR ICMS Normal Base 000 00

0 000 X 320 000  

215 BX11

BR ICMS Exclude Base 000 00

0 000 X 320 000  

220 BX12

BR ICMS Other Base 000 000

000 X 320 000  

225 BX13 BR ICMS Amount 000 00

0 000 X 320 000  

Condition-Based Tax Calculation in R/3 For Brazil 77

Page 78: Docu Cbt 302

SAP Online Help 5/2/2023

Step CTyp Description From To Req

tStat

AltCTy

AltCBV

ActKy

226 BXZF

BR ICMS Zona Franca 000 00

0 000 X 320 000  

227 BX16 BR ICMS Rate 000 00

0 000 X 320 000  

230 BX20 BR IPI Normal Base 000 00

0 000 X 320 000  

235 BX21 BR IPI Exclude Base 000 00

0 000 X 320 000  

240 BX22 BR IPI Other Base 000 00

0 000 X 320 000  

245 BX23 BR IPI Amount 000 00

0 000 X 320 000  

246 BX24 BR IPI Offset Base 000 00

0 000 X 320 000  

247 BX25 BR IPI Offset Amount 000 00

0 000 X 320 000  

248 BXPA BR IPI Pauta Amount 000 00

0 000 X 320 000  

250 BX30

BR ICMS Comp. Base 000 00

0 000 X 320 000  

255 BX31

BR ICMS Comp. Amnt. 000 00

0 000 X 320 000  

256 BX32 BR ICMS Comp. Rate 000 00

0 000 X 320 000  

260 BX40 BR SubTrib Base 000 00

0 000 X 320 000  

265 BX41 BR SubTrib Amount 000 00

0 000 X 320 000  

270 BX42 BR SubTrib Fr. Base 000 00

0 000 X 320 000  

275 BX43 BR SubTrib Fr. Amnt 000 00

0 000 X 320 000  

277 BX44 BRSubTrib NF Rate 000 00

0 000 X 320 000  

278 BX45 BRSubTrib Basered1 000 00

0 000 X 320 000  

279 BX46 BRSubTrib Basered2 000 00

0 000 X 320 000  

280 BX14

BR ICMS Freight Base 000 00

0 000 X 320 000  

285 BX15

BRICMS Freight Amnt.

000 000

000 X 320 000  

290 BX50 BR ISS Base 000 00

0 000 X 320 000  

Condition-Based Tax Calculation in R/3 For Brazil 78

Page 79: Docu Cbt 302

SAP Online Help 5/2/2023

Step CTyp Description From To Req

tStat

AltCTy

AltCBV

ActKy

295 BX51 BR ISS Amount 000 00

0 000 X 320 000  

300 BX60

BR ISS Base Prov 000 000

000 X 320 000

301 BX61

BR ISS ExBase Prov 000 000

000 X 320 000

305 BX62

BR ISS Amount Prov 000 000

000 X 320 000

310 BX63

BR ISS WTAmount Prov

000 000

000 X 320 000

311 BX64

BR ISS WT Base Prov

000 000

000 X 320 000

312 BX65

BR ISS WT ExBas Prov

000 000

000 X 320 000

315 BX6A

BR ISS Base Serv 000 000

000 X 320 000

316 BX6B

BR ISS ExBase Serv 000 000

000 X 320 000

320 BX6C

BR ISS Amount Serv 000 000

000 X 320 000

325 BX6D

BR ISS WTAmount Serv

000 000

000 X 320 000

330 BX6E

BR ISS WT Base Serv

000 000

000 X 320 000

335 BX6F

BR ISS WT ExBas Serv

000 000

000 X 320 000

339 BX6O

BR ISS Offset TxIncl 000 000

000 X 320 000

350 BX70

BR COFINS Base 000 000

000 X 320 000

351 BX71

BR COFINS Excl. Base

000 000

000 X 320 000

355 BX72

BR COFINS Amount 000 000

000 X 320 000

360 BX7O

BR COFINS Off.Tx-Incl

000 000

000 X 320 000

365 BX7P

BR COFINS Pauta Amt.

000 000

000 X 320 000

370 BX80

BR PIS Base 000 000

000 X 320 000

371 BX81

BR PIS Excl. Base 000 000

000 X 320 000

375 BX82

BR PIS Amount 000 000

000 X 320 000

Condition-Based Tax Calculation in R/3 For Brazil 79

Page 80: Docu Cbt 302

SAP Online Help 5/2/2023

Step CTyp Description From To Req

tStat

AltCTy

AltCBV

ActKy

380 BX8O

BR PIS Off.TxIncl 000 000

000 X 320 000

385 BX8P

BR PIS Pauta Amount

000 000

000 X 320 000

10.6.4 Tax Code Conditions

The last section of the tax calculation procedure contains the tax code conditions, i.e. the conditions that you activate (100%) or deactivate (no record) by customizing the tax codes.

The condition base values are taken from the lines in the calculation procedure that contain the tax results described in the section before.

Table 10-65: Tax code conditions in the calculation procedure

Step CTyp Description From To Req

tStat

AltCTy

AltCBV

ActKy

100/190   Call Tax Calculation: 001 00

0 000 X 000 000  

400   Tax Code Condi-tions: 001 00

0 000 X 000 000  

405 IPI0 IPI NF Zero Line 245 000 000 X 000 000 VST

406 ICM0 ICMS NF Zero Line 225 000 000 X 000 000 VST

410 IPI1 IPI Industr. In 245 000 000   000 000 VS1

412 IPI4 IPI -Split Vendor 247 000 000   000 000 NVV

415 ICM1 ICMS Industr. In 225 000 000   000 000 VS2

420 ICS1 Sub.Tributaria In 265 000 000   000 000 VS3

425 ICMF ICMS S.T. fr. offset 225 000 000   000 164 IC1

430 IFR1 ICMS on freight In 285 000 000   000 000 VS3

435 IFS1 ICMS ST freight In 275 000 000   000 000 VS3

440 IP1C IPI Ind.Clearing 245 000 000   000 000 IPC

445 IP1O IPI Ind.Clear.Off. 440 000 000   000 164 IPC

450 IC1C ICMS Ind.Clearing 225 000 000   000 000 ICC

455 IC1O ICMS Ind.Clear.Off. 415 00 000   000 164 ICC

Condition-Based Tax Calculation in R/3 For Brazil 80

Page 81: Docu Cbt 302

SAP Online Help 5/2/2023

Step CTyp Description From To Req

tStat

AltCTy

AltCBV

ActKy

0

510 IPI2 IPI Consumption In 245 000 000   000 000 NVV

515 ICM2 ICMS Consumption In 225 00

0 000   000 000 NVV

520 ICS2 S.T. Consumption In 265 000 000   000 000 NVV

525 ICOP ICMS complement 255 000 000   000 000 ICP

530 ICOT STO-ICMS comple-ment 255 00

0 000   000 000 ICP

535 ICOX ICMS complement 100 525 00

0 000   000 164 ICX

555 ISS2 ISS from MM In 295 000 000   000 000 IC1

560 ISSO ISS from MM In Offs 555 000 000   000 164 MW4

610 IPI3 IPI from SD Out 245 000 000   000 000 MW1

615 ICM3 ICMS from SD Out 225 000 000   000 000 MW2

620 ICS3 Sub.Tributaria Out 265 000 000   000 000 MW3

625 ISS3 ISS from SD Out 295 000 000   000 000 MW4

630 ICZF ICMS Rev (Z.F.)-STO 225 00

0 000   000 164 ICZ

640 IFR3 ICMS on freight Out 285 000 000   000 000 MW3

645 IFS3 ICMS ST freight Out 275 000 000   000 000 MW3

650 ICM4 STO-ICMS SD (ICM3) 225 00

0 000   000 000 MW2

680 INSS INSS Incoming 010 000 000   000 000 VST

685 INSX INSS offset (100-)-- 680 000 000   000 164 INX

710 IRD1 Reimbursment ICMS 010 000 000   000 000 IR1

715 IRD2 Reimb. ICMS offset 710 000 000   000 000 IR2

720 IRD3 Reimbursment SUBT 010 000 000   000 000 IR3

725 IRD4 Reimb. SUBT offset 720 00 000   000 000 IR4

Condition-Based Tax Calculation in R/3 For Brazil 81

Page 82: Docu Cbt 302

SAP Online Help 5/2/2023

Step CTyp Description From To Req

tStat

AltCTy

AltCBV

ActKy

0

730 IRD5 Reimb. ICMS off. NVV 010 00

0 000   000 000 NVV

735 IRD6 Reimb. SUBT of-f.NVV 010 00

0 000   000 000 NVV

750 ISS 1 X

755 ISSA ISS at Provider 305 1

760 ISSB ISS WHT at Provider 310 1

765 ISSE ISS at Serv.Loc. 320 1

770 ISSF ISS WHT at Serv.-Loc.

325 1

775 ISSG ISS Offsets 339 1

779 PIS/COFINS NON-DEDUCTIBLE

1 X

780 ICON COFINS NVV 355 1

782 ICOO COFINS NVVOff Tx-Incl

360 1

784 IPSN PIS NVV 375 1

786 IPSO PIS NVV Off. TxIncl 380 1

789 PIS/COFINS DE-DUCTIBLE

1 X

790 ICOF COFINS deductible 355 X

791 IPIS PIS deductible 375 X

792 ICOV Cofins Offset 360 1 164

793 ICOS COFINS deduct. PO/GR

360 160 1

794 ICOU Cofins IV Non Deduct

360 161 1

795 ICOA Cofins ded. not inc. 355 360

1

796 IPSV Offset IPSS / IPSU 380 1 164

797 IPSS PIS deduct. PO/GR 380 160 1

798 IPSU PIS non deductib. IV 380 161 1

799 IPSA PIS ded. not inc. 375 380

1

900 WITHHOLDING TAXES

1 X

901 BXWT

BR WHT Base Amount

X 5

904 BW01

WHT Coll.Code Gen. X 5

Condition-Based Tax Calculation in R/3 For Brazil 82

Page 83: Docu Cbt 302

SAP Online Help 5/2/2023

Step CTyp Description From To Req

tStat

AltCTy

AltCBV

ActKy

905 BW02

WHT Rate Gen. X 5

909 BW11

WHT Coll.Code PIS X 5

910 BW12

WHT Rate PIS X 5

914 BW21

WHT Coll.Code COFINS

X 5

915 BW22

WHT Rate COFINS X 5

919 BW31

WHT Coll.Code CSLL

X 5

920 BW32

WHT Rate CSLL X 5

924 BW41

WHT Coll.Code IR X 5

925 BW42

WHT Rate IR X 5

950 ICOW

COFINS WHT 915

951 ICOZ COFINS WHT Offset 950 164

955 IPSW PIS WHT 910

956 IPSZ PIS WHT Offset 955 164

960 ICSW

CSLL WHT 920

961 ICSZ CSLL WHT Offset 960 164

965 IIRW IR WHT 925

966 IIRZ IR WHT Offset 965 164

970 IGEW

General WHT 905

971 IGEZ General WHT Offset 970 164

999 BI00 Dummy Non-Statis-tic.

163

10.6.5 Create Processing keys for Withholding Tax (T007B)

For the withholding tax new processing keys (account keys) have to be created to post taxes to sep-arate accounts and to identify withholding tax amounts in the normal tax calculation.

Tax Type: 2 (input tax)

Not deductible: X

Posting indicator: 3 (Distribute to relevant expense/revenue items)

Condition-Based Tax Calculation in R/3 For Brazil 83

Page 84: Docu Cbt 302

SAP Online Help 5/2/2023

Table 10-66

Processing Key Description

ISW ISS WHT

WTC COFINS WHT

WTG General WHT

WTI IR WHT

WTP PIS WHT

WTS CSLL WHT

Tax type: 2 (input tax)

Non deductible: space

Posting indicator: 2 (separate line item)Table 10-67

Processing Key Description

CO3 COFINS Clearing

PI3 PIS Clearing

Tax type: 1 (output tax)

Non deductible: space

Posting indicator: 2 (separate line item)

Table 10-65

Processing Key Description

COF COFINS

PIS PIS

WK3 ISS WHT

WC3 Cofins WHT

WC4 Cofins WHT offset

WG3 General WHT

WG4 General WHT offset

WI3 IR WHT

WI4 IR WHT offset

WP3 PIS WHT

WP4 PIS WHT offset

WS3 CSLL WHT

WS4 CSLL WHT offset

10.6.6 Create G/L AccountsIf you need to post the new taxes to separate accounts, create new G/L accounts. The following is just a suggestion.

177011: COFINS Withholding Tax Posting at Payment

177013: PIS Withholding Tax Posting at Payment

Condition-Based Tax Calculation in R/3 For Brazil 84

Page 85: Docu Cbt 302

SAP Online Help 5/2/2023

177020: CSLL Withholding Tax Posting at Payment

177021: IR Withholding Tax Posting at Payment

177022: General Withholding Tax (PIS/COFINS/CSLL/IR)

177030: PIS Normal Tax

177031: COFINS Normal Tax

154031: PIS Tax deductible

154008: COFINS Tax deductible

177040: ISS Withholding Tax

10.6.7 Define and Assign Tax AccountsPosting Keys: 40 – 50

Table 10-66

Account Key Ac-count

CO3 154008

COF 177031

PI3 154031

PIS 177030

WK3 177040

WC3 177011

WC4 177011

WG3 177022

WG4 177022

WI3 177021

WI4 177021

WP3 177013

WP4 177013

WS3 177020

WS4 177020

10.6.8 Define Account Keys for SD (T687)

Table 10-67

Account Key Description

COF COFINS

PIS PIS

WK3 ISS WHT

WC3 Cofins WHT

WC4 Cofins WHT offset

WG3 General WHT

WG4 General WHT offset

Condition-Based Tax Calculation in R/3 For Brazil 85

Page 86: Docu Cbt 302

SAP Online Help 5/2/2023

WI3 IR WHT

WI4 IR WHT offset

WP3 PIS WHT

WP4 PIS WHT offset

WS3 CSLL WHT

WS4 CSLL WHT offset

10.6.9 Tax Calculation

This is only relevant for the classical calculation.

After all data are retrieved that are necessary to calculate the taxes, the tax calculation is performed by processing the condition value formula 320 which is discussed in section 6.

Table 10-68: Call to tax calculation in the calculation procedureStep

CTyp Description Fro

m To Reqt

Stat

AltCTy

AltCBV

ActKy

100   Call Tax Calculation: 001 00

0 000 X 000 000  

101 BX01

BR Tax Calculation 010 00

0 000 X 320 000  

10.6.10 Results of Tax Calculation

The results of the tax calculation are retrieved in the next section of the calculation procedure. For each value, a condition type is defined that serves to indicate the result in the pricing procedure results table. For these new condition types, corresponding internal codes are defined which are used in the coding to transfer the tax results back to the calculation procedure. This coding is processed in the call to the condition value formula 320 as well (see section 6).

The condition types and internal codes are listed in sections and 10.7, respectively.

Table 10-69: Results of tax calculation in the calculation procedureStep CTyp Description Fro

m To Reqt

Stat

AltCTy

AltCBV

ActKy

190   Call Tax Calculation: 001 000 000 X 000 000  

191 BX01 BR Tax Calculation 010 000 000 X 320 000

200   Tax Results: 001 000 000 X 000 000  

210 BX10 BR ICMS Normal Base 000 00

0 000 X 320 000  

215 BX11 BR ICMS Exclude Base 000 00

0 000 X 320 000  

220 BX12 BR ICMS Other Base 000 000 000 X 320 000  

225 BX13 BR ICMS Amount 000 000 000 X 320 000  

227 BX16 BR ICMS Rate 000 000 000 X 320 000  

230 BX20 BR IPI Normal Base 000 000 000 X 320 000  

235 BX21 BR IPI Exclude Base 000 000 000 X 320 000  

Condition-Based Tax Calculation in R/3 For Brazil 86

Page 87: Docu Cbt 302

SAP Online Help 5/2/2023

Step CTyp Description Fro

m To Reqt

Stat

AltCTy

AltCBV

ActKy

240 BX22 BR IPI Other Base 000 000 000 X 320 000  

245 BX23 BR IPI Amount 000 000 000 X 320 000  

246 BX24 BR IPI Offset Base 000 000 000 X 320 000  

247 BX25 BR IPI Offset Amount 000 000 000 X 320 000  

248 BXPA BR IPI Pauta Amount 000 000 000 X 320 000  

250 BX30 BR ICMS Comp. Base 000 000 000 X 320 000  

255 BX31 BR ICMS Comp. Amnt. 000 00

0 000 X 320 000  

256 BX32 BR ICMS Comp. Rate 000 000 000 X 320 000  

260 BX40 BR SubTrib Base 000 000 000 X 320 000  

265 BX41 BR SubTrib Amount 000 000 000 X 320 000  

270 BX42 BR SubTrib Fr. Base 000 000 000 X 320 000  

275 BX43 BR SubTrib Fr. Amnt 000 000 000 X 320 000  

277 BX44 BRSubTrib NF Rate 000 000 000 X 320 000  

278 BX45 BRSubTrib Basered1 000 000 000 X 320 000  

279 BX46 BRSubTrib Basered2 000 000 000 X 320 000  

280 BX14 BR ICMS Freight Base 000 00

0 000 X 320 000  

285 BX15 BRICMS Freight Amnt. 000 00

0 000 X 320 000  

290 BX50 BR ISS Base 000 000 000 X 320 000  

295 BX51 BR ISS Amount 000 000 000 X 320 000  

300

BX60

BR ISS Base Prov 000 000 000 X 320 000

301

BX61

BR ISS ExBase Prov 000 000 000 X 320 000

305

BX62

BR ISS Amount Prov 000 000 000 X 320 000

310

BX63

BR ISS WTAmount Prov

000 000 000 X 320 000

311

BX64

BR ISS WT Base Prov

000 000 000 X 320 000

312

BX65

BR ISS WT ExBas Prov

000 000

000 X 320 000

315

BX6A

BR ISS Base Serv 000 000 000 X 320 000

Condition-Based Tax Calculation in R/3 For Brazil 87

Page 88: Docu Cbt 302

SAP Online Help 5/2/2023

Step CTyp Description Fro

m To Reqt

Stat

AltCTy

AltCBV

ActKy

316

BX6B

BR ISS ExBase Serv 000 000 000 X 320 000

320

BX6C

BR ISS Amount Serv 000 000 000 X 320 000

325

BX6D

BR ISS WTAmount Serv

000 000 000 X 320 000

330

BX6E

BR ISS WT Base Serv

000 000 000 X 320 000

335

BX6F

BR ISS WT ExBas Serv

000 000 000 X 320 000

339

BX6O

BR ISS Offset TxIncl 000 000 000 X 320 000

350

BX70

BR COFINS Base 000 000 000 X 320 000

351

BX71

BR COFINS Excl. Base

000 000 000 X 320 000

355

BX72

BR COFINS Amount 000 000 000 X 320 000

360

BX7O

BR COFINS Off.TxIncl

000 000 000 X 320 000

365

BX7P

BR COFINS Pauta Amt.

000 000 000 X 320 000

370

BX80

BR PIS Base 000 000 000 X 320 000

371

BX81

BR PIS Excl. Base 000 000 000 X 320 000

375

BX82

BR PIS Amount 000 000 000 X 320 000

380

BX8O

BR PIS Off.TxIncl 000 000 000 X 320 000

385

BX8P

BR PIS Pauta Amount

000 000 000 X 320 000

10.6.11 Tax Code Conditions

The last section of the tax calculation procedure contains the tax code conditions, i.e. the conditions that you activate (100%) or deactivate (no record) by customizing the tax codes.

The condition base values are taken from the lines in the calculation procedure that contain the tax results described in the section before.

Table 10-69: Tax code conditions in the calculation procedureStep CTyp Description Fro

m To Reqt

Stat

AltCTy

AltCBV

ActKy

100   Call Tax Calculation: 001 000 000 X 000 000  400   Tax Code Conditions: 001 000 000 X 000 000  405 IPI0 IPI NF Zero Line 245 000 000 X 000 000 VST406 ICM0 ICMS NF Zero Line 225 000 000 X 000 000 VST

Condition-Based Tax Calculation in R/3 For Brazil 88

Page 89: Docu Cbt 302

SAP Online Help 5/2/2023

Step CTyp Description Fro

m To Reqt

Stat

AltCTy

AltCBV

ActKy

410 IPI1 IPI Industr. In 245 000 000   000 000 VS1412 IPI4 IPI -Split Vendor 247 000 000   000 000 NVV415 ICM1 ICMS Industr. In 225 000 000   000 000 VS2420 ICS1 Sub.Tributaria In 265 000 000   000 000 VS3425 ICMF ICMS S.T. fr. offset 225 000 000   000 164 IC1430 IFR1 ICMS on freight In 285 000 000   000 000 VS3435 IFS1 ICMS ST freight In 275 000 000   000 000 VS3440 IP1C IPI Ind.Clearing 245 000 000   000 000 IPC445 IP1O IPI Ind.Clear.Off. 440 000 000   000 164 IPC450 IC1C ICMS Ind.Clearing 225 000 000   000 000 ICC455 IC1O ICMS Ind.Clear.Off. 415 000 000   000 164 ICC510 IPI2 IPI Consumption In 245 000 000   000 000 NVV515 ICM2 ICMS Consumption In 225 000 000   000 000 NVV520 ICS2 S.T. Consumption In 265 000 000   000 000 NVV525 ICOP ICMS complement 255 000 000   000 000 ICP530 ICOT STO-ICMS complement 255 000 000   000 000 ICP535 ICOX ICMS complement 100 525 000 000   000 164 ICX555 ISS2 ISS from MM In 295 000 000   000 000 IC1560 ISSO ISS from MM In Offs 555 000 000   000 164 MW4610 IPI3 IPI from SD Out 245 000 000   000 000 MW1615 ICM3 ICMS from SD Out 225 000 000   000 000 MW2620 ICS3 Sub.Tributaria Out 265 000 000   000 000 MW3625 ISS3 ISS from SD Out 295 000 000   000 000 MW4630 ICZF ICMS Rev (Z.F.)-STO 225 000 000   000 164 ICZ640 IFR3 ICMS on freight Out 285 000 000   000 000 MW3645 IFS3 ICMS ST freight Out 275 000 000   000 000 MW3650 ICM4 STO-ICMS SD (ICM3) 225 000 000   000 000 MW2680 INSS INSS Incoming 010 000 000   000 000 VST685 INSX INSS offset (100-)-- 680 000 000   000 164 INX710 IRD1 Reimbursment ICMS 010 000 000   000 000 IR1715 IRD2 Reimb. ICMS offset 710 000 000   000 000 IR2720 IRD3 Reimbursment SUBT 010 000 000   000 000 IR3725 IRD4 Reimb. SUBT offset 720 000 000   000 000 IR4730 IRD5 Reimb. ICMS off. NVV 010 000 000   000 000 NVV735 IRD6 Reimb. SUBT off.NVV 010 000 000   000 000 NVV

750 ISS 1 X

755 ISSA ISS at Provider 305 000 000   000 000 NVV

760 ISSB ISS WHT at Provider 310 000 000   000 000 ISW

765 ISSE ISS at Serv.Loc. 320 000 000   000 000 NVV

770 ISSF ISS WHT at Serv.Loc. 325 000 000   000 000 ISW

775 ISSG ISS Offsets 339 000 000   000 000 NVV

779 PIS/COFINS NON-DEDUCTIBLE

1 000 000 000 000 000

780 ICON COFINS NVV 355 000 000 000 000 000 NVV

782 ICOO COFINS NVVOff TxIncl 360 000 000 000 000 000 NVV

784 IPSN PIS NVV 375 000 000 000 000 000 NVV

786 IPSO PIS NVV Off. TxIncl 380 000 000 000 000 000 NVV

Condition-Based Tax Calculation in R/3 For Brazil 89

Page 90: Docu Cbt 302

SAP Online Help 5/2/2023

Step CTyp Description Fro

m To Reqt

Stat

AltCTy

AltCBV

ActKy

789 PIS/COFINS DEDUCTIBLE 1 000 000 X 000 000

790 ICOF COFINS deductible 355 000 000 X 000 000 VST

791 IPIS PIS deductible 375 000 000 X 000 000 VST

792 ICOV Cofins Offset 360 000 000 000 000 164 CO3

793 ICOS COFINS deduct. PO/GR 360 000 160

000 000 000 CO3

794 ICOU Cofins IV Non Deduct 360 000 161

000 000 000 NVV

795 ICOA Cofins ded. not inc. 355 360

000 000 000 000 CO3

796 IPSV Offset IPSS / IPSU 380 000 000 000 000 164 PI3

797 IPSS PIS deduct. PO/GR 380 000 160

000 000 000 PI3

798 IPSU PIS non deductib. IV 380 000 161

000 000 000 NVV

799 IPSA PIS ded. not inc. 375 380

000 000 000 000 PI3

900 WITHHOLDING TAXES 1 000 000 X 000 000

901 BXWT

BR WHT Base Amount 000 000 000 X 000 5

904 BW01

WHT Coll.Code Gen. 000 000 000 X 000 5

905 BW02

WHT Rate Gen. 000 000 000 X 000 5

909 BW11

WHT Coll.Code PIS 000 000 000 X 000 5

910 BW12

WHT Rate PIS 000 000 000 X 000 5

914 BW21

WHT Coll.Code COFINS 000 000 000 X 000 5

915 BW22

WHT Rate COFINS 000 000 000 X 000 5

919 BW31

WHT Coll.Code CSLL 000 000 000 X 000 5

920 BW32

WHT Rate CSLL 000 000 000 X 000 5

924 BW41

WHT Coll.Code IR 000 000 000 X 000 5

925 BW42

WHT Rate IR 000 000 000 X 000 5

950 ICOW

COFINS WHT 915 000 000 000 000 000 WTC

951 ICOZ COFINS WHT Offset 950 000 000 000 000 164 NVV

Condition-Based Tax Calculation in R/3 For Brazil 90

Page 91: Docu Cbt 302

SAP Online Help 5/2/2023

Step CTyp Description Fro

m To Reqt

Stat

AltCTy

AltCBV

ActKy

955 IPSW PIS WHT 910 000 000 000 000 000 WTP

956 IPSZ PIS WHT Offset 955 000 000 000 000 164 NVV

960 ICSW

CSLL WHT 920 000 000 000 000 0000 WTS

961 ICSZ CSLL WHT Offset 960 000 000 000 000 164 NVV

965 IIRW IR WHT 925 000 000 000 000 000 WTI

966 IIRZ IR WHT Offset 965 000 000 000 000 164 NVV

970 IGEW

General WHT 905 000 000 000 000 000 WTG

971 IGEZ General WHT Offset 970 000 000 000 000 164 NVV

999

BI00 Dummy Non-Statistic. 000 000 000 000 000 163 VS1

10.7 Calculation Procedure in SD: RVABRAThe calculation procedure RVABRA is delivered as a sample SD pricing procedure. Since it contains normal conditions besides the tax conditions, it will most likely be necessary to adapt it to the indi-vidual needs.

It is structured in the following sections:

Net price determination

Customizing data retrieval

Tax calculation on net amount (Step 1)

Nota Fiscal relevant modifications to the base price including ICMS

Tax recalculation on the modified amount including ICMS (Step 2)

Results of tax calculation

Tax code conditions

Each of the sections forms a connected block in the calculation procedure.

The calculation part is completely moved to a formula. This is discussed in section 6.

In the following, each of the sections of the new calculation procedure will be discussed.

10.7.1 Net price determination

The first line of the calculation procedure just contains a zero value. It is used to refer to it in lines of the calculation procedure that only contain explanatory texts (like e.g. step 011) in order that no con-fusing intermediate sum appears in such lines on the pricing results screen in the transactions.

The rest covers the determination of the net price (price excluding any kind of tax), e.g. taking into ac -count discounts which should not have impact on Nota Fiscal.

If using CBT use the red entries, id using the classical procedure, ignore the red entries. The step 10 may only be included whether with the red or the black entry.

The entries in dark blue are due to withholding tax lax change MP135. Examples for other procedures (like RVXBRE etc.) are not given, since the changes are the same.

Table 10-71: Retrieval of transaction data in the calculation procedure

Condition-Based Tax Calculation in R/3 For Brazil 91

Page 92: Docu Cbt 302

SAP Online Help 5/2/2023

Step

Cntr

CTyp Description Fro

m To Reqt

Stat

Prt

AltCTy

AltCBV

ActKy

001   **** Zero **** 000 000 000 X 000 000  

010 1 ZPB0

Price w/o Taxes 000 000

002 000 000

010 2 ZPB1

Price+ISS 000 000

002 000 000

010 3 ZPB2

Price+PIS+COF 000 000

002 000 000

010 4 ZPB3

Price+ISS+PIS+COF

000 000

002 000 000

010 PR00 Price 000 00

0 002   000 000  

045   001 000 000 X 000 000  

050 RB00 Discount 000 00

0 002 000 000  

199 Net Base 000 000 000 000 000  

10.7.2 Customizing Data Retrieval

In the next section, the tax Customizing data (rates, laws, and other flags) are read from the condition database. The access is done based on the actual values in the communication structures KOMP and KOMK and is controlled by the access sequences assigned to the condition types.

Table 10-72: Retrieval of tax Customizing data in the calculation procedureStep

Cntr CTyp Description Fro

m To Reqt

Stat

AltCTy

AltCBV

ActKy

200 DICM Devido ICMS 000 000 000 X 000 000

201 ICVA ICMS Tax Rate 000 000 000 X 000 160

202 ICBS ICMS Tax Base 000 000 000 X 000 160

203ICOB BR: ICMS other base 000 00

0 000 X 000 160

204 IC0X BR:ICMS 0 exempt 000 000 000 X 000 160

205 I100 BR: ICMS Convênio 100 000 00

0 000 X 000 160

206 ICLW BR: ICMS Law 000 000 000 X 000 160

207 ISIC ICMS Rate SF=ST 000 000

000 X 000 160

208 ISTD ICMS Rate for S.T 000 000 000 X 000 160

Condition-Based Tax Calculation in R/3 For Brazil 92

Page 93: Docu Cbt 302

SAP Online Help 5/2/2023

Step

Cntr CTyp Description Fro

m To Reqt

Stat

AltCTy

AltCBV

ActKy

209 ICXC BR Cust ICMS Ex-empt 000 00

0 000 X 000 160

210 DIZF Zona Franca 000 000 000 X 000 160

220 DICF Devido ICMS Freight 000 000 000 X 000 160

221 ICFR BR: ICMS on freight 000 000 000 X 000 160

230 DISI Devido ICMS s/IPI 000 000 000 X 000 160

240 DIPI Devido IPI 000 000 000 X 000 160

241 IPVA IPI Tax Rate 000 000 000 X 000 160

242 IPBS IPI Tax Base 000 000 000 X 000 160

243 IPOB BR: IPI other base 000 000 000 X 000 160

244 IPIP BR: IPI Pauta 000 000 000 X 000 160

245 IP0X BR: IPI 0 exempt 000 000 000 X 000 160

246 IPLW BR: IPI Law 000 000 000 X 000 160

247 IPXC BR Cust IPI Exempt 000 000 000 X 000 160

250 DCOF

COFINS Due X 160

251 BCO1

COFINS Rate X 160

252 BCO2

COFINS Base X 160

253 BCOP

COFINS Pauta Amount

X

255 DPIS PIS Due X 160

256 BPI1 PIS Rate X 160

257 BPI2 PIS Base X 160

258 BPIP PIS Pauta Amount X

260 DISS Devido ISS X 160

265 ISS New 2004 1 X

266 ISVB ISS Rate at Prov. X 160

267 ISVC ISS Base at Prov. X 160

Condition-Based Tax Calculation in R/3 For Brazil 93

Page 94: Docu Cbt 302

SAP Online Help 5/2/2023

Step

Cntr CTyp Description Fro

m To Reqt

Stat

AltCTy

AltCBV

ActKy

268 ISVD ISS Law at Prov. X 160

269 ISVE ISS Ins.Cal at Prov. X 160

270 ISVF ISS Taxloc at Prov. X 160

271 ISVG ISS WHT at Prov. X 160

272 ISVH ISS Min WHT at Prov. X 160

273 ISVN ISS Rate at Serv. X 160

274 ISVO ISS Base at Serv. X 160

275 ISVP ISS Law at Serv. X 160

276 ISVQ ISS Ins.Cal at Serv. X 160

277 ISVR ISS Taxloc:1=PR,2=SR

X 160

278 ISVS ISS WHT at Serv. X 160

279 ISVT ISS Min WHT at Serv. X 160

280 DSUB Devido Sub Trib 000 00

0 000 X 000 160

281 ISTS Subtrib Surcharge 000 000 000 X 000 160

282 ISTT BR: Sub.Trib SurType 000 000 000 X 000 160

283 ISTM BR: Sub.Trib MinPric 000 000 000 X 000 160

284 ISTF R: Sub.Trib FixPric 000 000 000 X 000 160

285 ISTB Sub. Trib Base Value 000 000 000 X 000 160

286 IST2 BR: Sub.Trib 2 000 000 000 X 000 160

287 ISTC Subtrib. base reduct 000 000 000 X 000 160

288 ISTN Subtrib.Minpr.Factor 000 000 000 X 000 160

289 ISTI S.T. Minp.Bef.Surch. 000 000 000 X 000 160

290 DSUF

Devido Sub-TribFreight 000 00

0 000 X 000 160

10.7.3 Tax Calculation on net amount (Step 1)

After all data are retrieved that are necessary to calculate the taxes, the tax calculation is performed by processing the condition value formula 320 which is discussed in section 6.

Table 10-73: Call to tax calculation in the calculation procedure

Condition-Based Tax Calculation in R/3 For Brazil 94

Page 95: Docu Cbt 302

SAP Online Help 5/2/2023

Step

CTyp Description Fro

m To Reqt

Stat

Prt

AltCTy

AltCBV

Ac-tKy

300 ICMI Price+Tax (for NF) 000 00

0 002 X 320 002 ERL

10.7.4 Nota Fiscal relevant modifications to the base price in-cluding ICMS

In this part, the price including ICMS which results from the first step of the calculation amount can be used to apply conditions that modify this amount, e.g. Nota Fiscal relevant discounts, freight, insur-ance or other expenses. Since these conditions are not really part of the tax calculation, but are spe-cific to individual requirements, the section given below must be seen as an example only. The step range foreseen for these kinds of conditions is between 301 and 599.

Table 10-74: Call to tax calculation in the calculation procedureStep

Cntr Ctyp Description From To Re

qtStat

Prt

AltCTy

AltCBV

ActKy

310 **** Modify Base **** 001 00

0 000 X 000 000

320 K004 Material 000 00

0 002 000 000 ERS

321 K007 Customer 000 00

0 002 000 000 ERS

322 K005 Customer/Material 000 00

0 002 000 000 ERS

400 KF00 Freight 000 00

0 002 000 000 ERF

10.7.5 Tax recalculation on the modified amount including ICMS (Step 2)

The modification amounts that have been applied in the previous part require a recalculation of the taxes, this time on the modified gross amount

Table 10-75: Call to tax calculation in the calculation procedureStep

Cntr

CTyp Description Fro

m To Reqt

Stat

Prt

AltCTy

AltCBV

ActKy

600 IBRX

Brazil tax calc. 300 59

9 002 X 320 002

10.7.6 Results of Tax Calculation

The results of the tax calculation are retrieved in the next section of the calculation procedure. For each value, a condition type is defined that serves to indicate the result in the pricing procedure results table. For these new condition types, corresponding internal codes are defined which are used in the coding to transfer the tax results back to the calculation procedure. This coding is processed in the call to the condition value formula 320 as well (see section 6).

The condition types and internal codes are listed in sections and 10.7, respectively.

Table 10-76: Results of tax calculation in the calculation procedure

Condition-Based Tax Calculation in R/3 For Brazil 95

Page 96: Docu Cbt 302

SAP Online Help 5/2/2023

Step Cntr CTyp Description From To Reqt M Sta

tAltCTy

AltCBV

ActKy

610 BX10 BR ICMS Normal Base 000 00

0 000 X 320 000  

Condition-Based Tax Calculation in R/3 For Brazil 96

Page 97: Docu Cbt 302

SAP Online Help 5/2/2023

Step Cntr CTyp Description From To Reqt M Sta

tAltCTy

AltCBV

ActKy

612 BX11 BR ICMS Ex-clude Base 000 00

0 000 X 320 000  

614 BX12 BR ICMS Other Base 000 00

0 000 X 320 000  

616 BX13 BR ICMS Amount 000 00

0 000 320 000 MW2

617 BXZF BR ICMS Zona Franca 000 00

0 000 X 320 000 MWS

618 BX14 BR ICMS Freight Base 000 00

0 000 X 320 000

620 BX15 BR ICMS Freight Amnt 000 00

0 000 320 000 MW3

622 BX16 BR ICMS Rate 000 000 000 X 320 000  

624 BX20 BR IPI Normal Base 000 00

0 000 X 320 000  

626 BX21 BR IPI Exclude Base 000 00

0 000 X 320 000  

628 BX22 BR IPI Other Base 000 00

0 000 X 320 000  

630 BX23 BR IPI Amount 000 000 000 320 000 MW1

636 BX40 BR SubTrib Base 000 000 000 X 320 000  

638 BX41 BR SubTrib Amount 000 00

0 000 320 000 MW3

640 BX42 BR SubTrib Fr. Base 000 00

0 000 X 320 000  

642 BX43 BR SubTrib Fr. Amnt 000 00

0 000 320 000  MW3

644 BX44 BRSubTrib NF Rate 000 00

0 000 X 320 000  

645 BX45 BRSubTrib Basered1 000 00

0 000 X 320 000  

646 BX46 BRSubTrib Basered2 000 00

0 000 X 320 000  

647 BX50 BR ISS Base 000 000 000 X 320 000  

648 BX51 BR ISS Amount 000 000 000 320 000  MW

4

650 BXPA BR IPI Pauta Amount 000 00

0 000 X 320 000

652 BX60 BR ISS Base Prov

X 320

653 BX61 BR ISS ExBase X 320

Condition-Based Tax Calculation in R/3 For Brazil 97

Page 98: Docu Cbt 302

SAP Online Help 5/2/2023

Step Cntr CTyp Description From To Reqt M Sta

tAltCTy

AltCBV

ActKy

Prov

654 BX64 BR ISS WT Base Prov

X 320

655 BX65 BR ISS WT Ex-Bas Prov

X 320

656 BX6A BR ISS Base Serv

X 320

657 BX6B BR ISS ExBase Serv

X 320

658 BX6E BR ISS WT Base Serv

X 320

659 BX6F BR ISS WT Ex-Bas Serv

X 320

660 BX51 BR ISS Amount 1 320

661 BX62 BR ISS Amount Prov

1 320

662 BX63 BR ISS WTA-mount Prov

1 320

663 BX6C BR ISS Amount Serv

1 320

664 BX6D BR ISS WTA-mount Serv

1 320

665 BX6O BR ISS offset 660 664

1

666 BX70 BR COFINS Base

X 320

667 BX71 BR COFINS Excl. Base

X 320

668 BX72 BR COFINS Amount

1 320

669 BX7P BR COFINS Pauta Amt.

X 320

672 BX7O BR COFINS off-set

668 668

1

675 BX80 BR PIS Base X 320

677 BX81 BR PIS Excl. Base

X 320

679 BX82 BR PIS Amount 1 320

680 BX8P BR PIS Pauta Amt.

X 320

683 BX8O BR PIS offset 679 679

1

Condition-Based Tax Calculation in R/3 For Brazil 98

Page 99: Docu Cbt 302

SAP Online Help 5/2/2023

10.7.7 Tax Code Conditions

The last section of the tax calculation procedure contains the tax code conditions, i.e. the conditions that you activate (100%) or deactivate (no record) by customizing the tax codes for the MM/FI calcula-tion procedure. In the SD procedure they are present only to provide a counterpart, however they act as a dummy. The true postings are being done directly by the tax result conditions of the previous sec-tion.

The conditions ICMO and ISSO are the known ICMS ans ISS offset conditions.

The part between step 730 and 998 can be used for additional conditions, e.g. cash discount or round-ing difference conditions.

Table 10-77: Tax code conditions in the calculation procedure

Step

Cntr CTyp Description Fro

m To Reqt

Stat

AltCTy

AltCBV

ActKy

700   **** Tax Code Conditions **** 001 000 000 X 000 000  

702   Tax Code Conditions: 001 000 000 X 000 000  

704 IPI3 IPI from SD 001 000 000 X 000 000

706 ICM3 ICMS from SD 001 000 000 X 000 000

708 ISS3 Sub.Trib. from SD 001 000 000   000 000

710 ICZF ISS from SD 001 000 000   000 000

712 IFR3 ICMS Disc. Zona Fr. 001 000 000   000 000

714 IFS3 ICMS on freight SD 001 000 000   000 000

715 1 ISSA ISS at Provider Cond type not defined

1 X X

715 2 ISSB ISS WHT at Provider Cond type not defined

1 X X

715 3 ISSC ISS WHT Off. Prov. Cond type not defined

1 X X

715 4 ISSD ISS WHT Again Prov. Cond type not defined

1 X X

715 5 ISSE ISS at Serv.Loc. Cond type not defined

1 X X

715 6 ISSF ISS WHT at Serv.Loc. Cond type not defined

1 X X

715 7 ISSG ISS WHT Off. SrvLoc Cond type not defined

1 X X

715 8 ISSH ISS WHT Again SrvLoc Cond type not defined

1 X X

719 Total Tax 702 718

720 ICMO ICMS ST freight SD 001 616 000   000 164

720 ICMO ICMS offset 616

730 ISSO ICMS offset 001 650 000   000 000

720 ICMO ICMS offset 616

740 DIFF Rounding Off 13 16

Condition-Based Tax Calculation in R/3 For Brazil 99

Page 100: Docu Cbt 302

SAP Online Help 5/2/2023

Step

Cntr CTyp Description Fro

m To Reqt

Stat

AltCTy

AltCBV

ActKy

750 4

800 SKTO Cash Discount 9 X

810 VPRS Cost 4 B X

999 BI00 Dummy Non-Statistic. 001 000 000 X 000 000

899 WITHHOLDING TAXES ON GROSS

1 X

900 WGEC

BR General WHT Code Cond type not defined

X

901 WPIC BR PIS WHT Code X

902 WCOC

BR COFINS WHT Code X

903 WCSC

BR CSLL WHT Code X

904 WIRC BR IR WHT Code X

905 WISC BR ISS WHT Code X

906 DWHT

WHT Due X

910 BXWT

BR WHT Base Amount X

915 BW01 WHT Coll.Code Gen. X

916 BW02 WHT Rate Gen.

920 BW11 WHT Coll.Code PIS X

921 BW12 WHT Rate PIS

925 BW21 WHT Coll.Code COFINS X

926 BW22 WHT Rate COFINS

930 BW31 WHT Coll.Code CSLL 1 X

931 BW32 WHT Rate CSLL

935 BW41 WHT Coll.Code IR 1 X

936 BW42 WHT Rate IR

960 BGEZ BR General WHT off 916

965 BPSZ BR PIS WHT Offset 921

970 BCOZ BR COFINS WHT offset 926

975 BCSZ BR CSLL WHT offset 931

980 BIRZ BR IR WHT offset 936

999 BI00 Dummy for Tax 1 X X

In Doku PIS/ COFINS so enthalten

The SD pricing procedure below is the new price supplement procedure RVABR2 which is introduced for the optional new price conditions. It can be configured in the following way:

Condition-Based Tax Calculation in R/3 For Brazil 100

Page 101: Docu Cbt 302

SAP Online Help 5/2/2023

Table 10-78:

St C CTyp Description Fro To M M S P S Req A.C A.B. Act.K

10 1 ZPB0 Price w/o Taxes

10 2 ZPB1 Price+ISS

10 3 ZPB2 Price+PIS+COF

10 4 ZPB3 Price+ISS+PIS+COF

40 1 RA00 % Discount from Net

40 2 RB00 Discount (Value)

40 3 RC00 Quantity Discount

40 4 RD00 Weight Discount

10.8 Internal Condition CodesTable 10-79: Internal condition codesInternal TC Code Description TaxGrp

CALCULATE_INCL_2ND Calculate 2nd pass including ICMS  

CALCULATE_TAX Marks line where tax calculation is called  

CALLER_PO Check Caller = PO  

COFINSBASE COFINS Tax Base COFI

COFINSPAUTA COFINS Pauta Rate COFI

COFINSRATE COFINS Tax Rate COFI

FREIGHTSUBTRIB Sum of freight amounts relevant for SubTrib  

ICMSBASE ICMS Reduced Base Rate ICMS

ICMSCOMPBASE ICMS Complement, Tax Base  

ICMSCOMPEXEMPT ICMS Complement, Tax Exemption  

ICMSCONV100 ICMS Code: Convênio 100 ICMS

ICMSCUSTEXEMPT ICMS exempt Customer

ICMSDISCOUNT ICMS Discount for Tax Free Zones  

ICMSFREIGHT ICMS on Freight ICMS

ICMSFREIGHT_INTRA ICMS on Freight Rate SF=ST  

ICMSLAW ICMS Tax Law ICMS

ICMSNULLEXEMPT ICMS Base in Excluded Base, If Not ICMS-Relevant  

ICMSOTHER ICMS Code: Other Base ICMS

ICMSRATE ICMS Tax Rate ICMS

ICMSRATE_INTRA ICMS Rate SF=ST  

ICMSSUBTRIB ICMS Exception Rate for SubTrib ICST

IPIBASE IPI Reduced-Base Rate IPI

IPIBASEMOD Sum of discounts/surcharges not relevant for IPI base  

Condition-Based Tax Calculation in R/3 For Brazil 101

Page 102: Docu Cbt 302

SAP Online Help 5/2/2023

Internal TC Code Description TaxGrpIPICUSTEXEMPT IPI exempt Customer

IPILAW IPI Tax Law IPI

IPINULLEXEMPT IPI Base in Excluded Base, If Not IPI-Relevant  

IPIOTHER IPI Code: Other Base IPI

IPIPAUTA IPI Pauta Rate IPI

IPIRATE IPI Tax Rate IPI

ISSBASE_PR ISS Base at Provider ISS

ISSBASE_SE ISS Base at Service Loc.

ISSLAW_PR ISS Law at Provider ISS

ISSLAW_SE ISS Law at Service Loc.

ISSMINVALWT_PR ISS Minimum Value For Withholding Tax at Provider ISS

ISSMINVALWT_SE ISS Minimum Value For Withholding Tax at Service Loc.

ISSRATE ISS Tax Rate ISS

ISSRATE_PR ISS Rate at Provider ISS

ISSRATE_SE ISS Rate at Service Loc.

ISSTAXRELLOC_PR ISS Tax-Relevant Location at Provider ISS

ISSTAXRELLOC_SE ISS Tax-Relevant Location at Service Loc.

ISSWITHHOLD_PR ISS Indicator: Withholding Tax at Provider ISS

ISSWITHHOLD_SE ISS Indicator: Withholding Tax at Service Loc.

NF_COFINS_AMOUNT Result of Tax Calculation: COFINS Normal Tax Amount

NF_COFINS_BASE Result of Tax Calculation: COFINS Base Amount

NF_COFINS_EBAS Result of Tax Calculation: COFINS Exclude Base Amount

NF_COFINS_OFFSET Result of tax calc.: COFINS Offset due to tax incl. in price

NF_COFINS_PAUTA_RATE Result of tax calc.: COFINS Pauta rate

NF_ICMS_AMOUNT Result of tax calc.: ICMS amount  

NF_ICMS_COMP_AMOUNT Result of tax calc.: ICMS complement amount  

NF_ICMS_COMP_BASE Result of tax calc.: ICMS complement base amount  

NF_ICMS_COMP_RATE Result of tax calc.: ICMS complement rate  

NF_ICMS_EBAS Result of tax calc.: ICMS exclude base  

NF_ICMS_FREIGHT_AMOUNT Result of tax calc.: ICMS on freight amount  

NF_ICMS_FREIGHT_BASE Result of tax calc.: ICMS on freight base amount  

NF_ICMS_NBAS Result of tax calc.: ICMS normal base  

NF_ICMS_OBAS Result of tax calc.: ICMS other base  

NF_ICMS_RATE Result of tax calc.: ICMS rate (normal/freight/S.T.)  

NF_ICMS_ZONAFRANCA Result of tax calc.: ICMS Zona Franca Discount

Condition-Based Tax Calculation in R/3 For Brazil 102

Page 103: Docu Cbt 302

SAP Online Help 5/2/2023

Internal TC Code Description TaxGrpNF_IPI_AMOUNT Result of tax calc.: IPI amount  

NF_IPI_EBAS Result of tax calc.: IPI exclude base  

NF_IPI_NBAS Result of tax calc.: IPI normal base  

NF_IPI_OBAS Result of tax calc.: IPI other base  

NF_IPI_OFFSET_AMOUNT Result of tax calc.: IPI offset amount for IPI split vendor  

NF_IPI_OFFSET_BASE Result of tax calc.: IPI offset base for IPI split vendor  

NF_IPI_PAUTA_RATE Result of tax calc.: IPI Pauta rate  

NF_ISS_AMOUNT Result of tax calc.: ISS amount  

NF_ISS_BASE Result of tax calc.: ISS base amount  

NF_ISS_AMOUNT_PROV Result of tax calc.: ISS amount at location of provider

NF_ISS_AMOUNT_SERV Result of tax calc.: ISS amount at location of service

NF_ISS_EBAS_PROV Result of tax calc.: ISS excl. base at location of provider

NF_ISS_EBAS_SERV Result of tax calc.: ISS excl. base at location of service

NF_ISS_LAW Result of tax calc.: ISS Law

NF_ISS_NBAS_PROV Result of tax calc.: ISS normal base at location of provider

NF_ISS_NBAS_SERV Result of tax calc.: ISS normal base at location of service

NF_ISS_OFFSETS Result of tax calc.: ISS Offset due to tax included in price

NF_ISS_WTAMOUNT_PROV Result of tax calc.: ISS WT amount at location of provider

NF_ISS_WTAMOUNT_SERV Result of tax calc.: ISS WT amount at location of service

NF_ISS_WT_EBAS_PROV Result of tax calc.: ISS WT excl. base at loc. of provider

NF_ISS_WT_EBAS_SERV Result of tax calc.: ISS WT excl. base at loc. of service

NF_ISS_WT_NBAS_PROV Result of tax calc.: ISS WT normal base at loc. of provider

NF_ISS_WT_NBAS_SERV Result of tax calc.: ISS WT normal base at loc. of service

NF_PIS_AMOUNT Result of Tax Calculation: PIS Normal Tax Amount

NF_PIS_BASE Result of Tax Calculation: PIS Base Amount

NF_PIS_EBAS Result of Tax Calculation: PIS Exclude Base Amount

NF_PIS_OFFSET Result of tax calc.: PIS Offset due to tax incl. in price

NF_PIS_PAUTA_RATE Result of tax calc.: PIS Pauta rate

NF_SUBTRIB_AMOUNT Result of tax calc.: Sub.Trib. amount  

NF_SUBTRIB_BASE Result of tax calc.: Sub.Trib. base amount  

NF_SUBTRIB_BASERED1 Federal base reduction Rate for Subtrib

NF_SUBTRIB_BASERED2 State Base reduction Rate for Subtrib

NF_SUBTRIB_NFRATE Result of tax calc.: Sub.Trib. rate on nota fiscal  

NF_SUB_FREIGHT_AMOUNT Result of tax calc.: Sub.Trib. on freight amount  

NF_SUB_FREIGHT_BASE Result of tax calc.: Sub.Trib. on freight base amount  

Condition-Based Tax Calculation in R/3 For Brazil 103

Page 104: Docu Cbt 302

SAP Online Help 5/2/2023

Internal TC Code Description TaxGrpPISBASE PIS Tax Base PIS

PISPAUTA PIS Pauta Rate PIS

PISRATE PIS Tax Rate PIS

PO_DISCOUNT Discount from PO  

PO_FREIGHT Freight from PO  

PO_SUBTRIBBASE Sum of discounts/surcharges modifying SubTrib base  

SUBTRIBBASE1 Substituição Tributária: Reduced Base 1 ICST

SUBTRIBBASE2 Substituição Tributária: Reduced Base 2 ICST

SUBTRIBFIXPRICE Substituição Tributária: Fixed Price ICST

SUBTRIBICMS Substituição Tributária: ICMS Reduction ICST

SUBTRIBMINFACTOR Substituição Tributária: Minimum Price Factor ICST

SUBTRIBMINPRICE Substituição Tributária: Minimum Price ICST

SUBTRIBSURCHARGE Substituição Tributária: Surcharge Rate ICST

SUBTRIBSURCHIN Substituição Tributária: Compare Minprice before Surcharge ICST

SUBTRIBSURTYPE Substituição Tributária: Calculation Rule ICST

TAXFREEREGION Tax Free Region Indicator (Zona Franca)  

TXSDCICMS SD Tax Code: Calculate ICMS  

TXSDCICMSFREIGHT SD Tax Code: Calculate ICMS on Freight  

TXSDCINDUS SD Tax Code: Material Usage Indicator  

TXSDCIPI SD Tax Code: Calculate IPI  

TXSDCISS SD Tax Code: Calculate ISS  

TXSDCSUBTRIB SD Tax Code: Calculate Substituição Tributária  

TXSDCSUBTRIBFREIGHT SD Tax Code: Calculate Substituição Tributária on Freight  

Changes due t0 MP 135

Internal TC Code Description TaxGrp

COFINSBASE COFINS Tax Base COFI

COFINSPAUTA COFINS Pauta Rate COFI

COFINSRATE COFINS Tax Rate COFI

ISSBASE_PR ISS Base at Provider ISS

ISSBASE_SE ISS Base at Service Loc.

ISSLAW_PR ISS Law at Provider ISS

ISSLAW_SE ISS Law at Service Loc.

ISSMINVALWT_PR ISS Minimum Value For Withholding Tax at Provider ISS

ISSMINVALWT_SE ISS Minimum Value For Withholding Tax at Service Loc.

ISSRATE_PR ISS Rate at Provider ISS

ISSRATE_SE ISS Rate at Service Loc.

Condition-Based Tax Calculation in R/3 For Brazil 104

Page 105: Docu Cbt 302

SAP Online Help 5/2/2023

Internal TC Code Description TaxGrp

ISSTAXRELLOC_PR ISS Tax-Relevant Location at Provider ISS

ISSTAXRELLOC_SE ISS Tax-Relevant Location at Service Loc.

ISSWITHHOLD_PR ISS Indicator: Withholding Tax at Provider ISS

ISSWITHHOLD_SE ISS Indicator: Withholding Tax at Service Loc.

NF_COFINS_AMOUNT Result of Tax Calculation: COFINS Normal Tax Amount

NF_COFINS_BASE Result of Tax Calculation: COFINS Base Amount

NF_COFINS_EBAS Result of Tax Calculation: COFINS Exclude Base Amount

NF_COFINS_OFFSET Result of tax calc.: COFINS Offset due to tax incl. in price

NF_COFINS_PAUTA_RATE Result of tax calc.: COFINS Pauta rate

NF_ISS_AMOUNT_PROV Result of tax calc.: ISS amount at location of provider

NF_ISS_AMOUNT_SERV Result of tax calc.: ISS amount at location of service

NF_ISS_EBAS_PROV Result of tax calc.: ISS excl. base at location of provider

NF_ISS_EBAS_SERV Result of tax calc.: ISS excl. base at location of service

NF_ISS_LAW Result of tax calc.: ISS Law

NF_ISS_NBAS_PROV Result of tax calc.: ISS normal base at location of pro-vider

NF_ISS_NBAS_SERV Result of tax calc.: ISS normal base at location of service

NF_ISS_OFFSETS Result of tax calc.: ISS Offset due to tax included in price

NF_ISS_WTAMOUNT_PROV Result of tax calc.: ISS WT amount at location of provider

NF_ISS_WTAMOUNT_SERV Result of tax calc.: ISS WT amount at location of service

NF_ISS_WT_EBAS_PROV Result of tax calc.: ISS WT excl. base at loc. of provider

NF_ISS_WT_EBAS_SERV Result of tax calc.: ISS WT excl. base at loc. of service

NF_ISS_WT_NBAS_PROV Result of tax calc.: ISS WT normal base at loc. of provider

NF_ISS_WT_NBAS_SERV Result of tax calc.: ISS WT normal base at loc. of service

NF_PIS_AMOUNT Result of Tax Calculation: PIS Normal Tax Amount

NF_PIS_BASE Result of Tax Calculation: PIS Base Amount

NF_PIS_EBAS Result of Tax Calculation: PIS Exclude Base Amount

NF_PIS_OFFSET Result of tax calc.: PIS Offset due to tax incl. in price

NF_PIS_PAUTA_RATE Result of tax calc.: PIS Pauta rate

PISBASE PIS Tax Base PIS

PISPAUTA PIS Pauta Rate PIS

PISRATE PIS Tax Rate PIS

TXSDCCOFINS Calculate COFINS

TXSDCPIS Calculate PIS

TXSDCWHT Calculate Withholding Taxes

WHTCOLL_COFINS Official Collection Code - COFINS WHT

WHTCOLL_CSLL Official Collection Code - CSLL WHT

WHTCOLL_GEN Official Collection Code - General WHT

WHTCOLL_IR Official Collection Code – IR WHT

WHTCOLL_PIS Official Collection Code – PIS WHT

Condition-Based Tax Calculation in R/3 For Brazil 105

Page 106: Docu Cbt 302

SAP Online Help 5/2/2023

Internal TC Code Description TaxGrp

WHTRATE_COFINS COFINS Withholding Tax Rate WHT

WHTRATE_CSLL CSLL Withholding Tax Rate WHT

WHTRATE_GEN General Withholding Tax Rate WHT

WHTRATE_IR IR Withholding Tax Rate WHT

WHTRATE_PIS PIS Withholding Tax Rate WHT

10.9 Assignment of Internal Codes to Condition Types Table 10-80: Assignment of condition types to internal codesInternal TC Code Ap

pCTyp

CALCULATE_INCL_2ND V IBRX

CALCULATE_TAX TX BX01

CALCULATE_TAX V ICMI

CALLER_PO TX BXPO

COFINSBASE TX BCO2

COFINSBASE V BCO2

COFINSPAUTA TX BCOP

COFINSPAUTA V BCOP

COFINSRATE TX BCO1

COFINSRATE V BCO1

ISSBASE_PR TX BIS2

ICMSBASE TX BIC1

ICMSBASE V ICBS

ICMSCOMPBASE TX BCI1

ICMSCOMPBASE V ICCB

ICMSCOMPEXEMPT TX BCI2

ICMSCOMPEXEMPT V ICCX

ICMSCONV100 TX B100

ICMSCONV100 V I100

ICMSCUSTEXEMPT V ICXC

ICMSDISCOUNT TX ICZF

ICMSDISCOUNT V IDZF

ICMSFREIGHT TX BIF0

ICMSFREIGHT V ICFR

ICMSFREIGHT_INTRA TX BIFH

ICMSLAW TX BLIC

ICMSLAW V ICLW

Condition-Based Tax Calculation in R/3 For Brazil 106

Page 107: Docu Cbt 302

SAP Online Help 5/2/2023

ICMSNULLEXEMPT TX BICX

ICMSNULLEXEMPT V IC0X

ICMSOTHER TX BIC2

ICMSOTHER V ICOB

ICMSRATE TX BIC0

ICMSRATE V ICVA

ICMSRATE_INTRA TX BICH

ICMSRATE_INTRA V ISIC

ICMSSUBTRIB TX BICS

ICMSSUBTRIB V ISTD

IPIBASE TX BIP1

IPIBASE V IPBS

IPICUSTEXEMPT V IPXC

IPILAW TX BLIP

IPILAW V IPLW

IPINULLEXEMPT TX BIPX

IPINULLEXEMPT V IP0X

IPIOTHER TX BIP2

IPIOTHER V IPOB

IPIPAUTA TX BIPP

IPIPAUTA V IPIP

IPIRATE TX BIP0

IPIRATE V IPVA

IPIRATE_MM TX IPI3

ISSBASE_PR V ISVC

ISSBASE_SE TX BISB

ISSBASE_SE V ISVO

ISSLAW_PR TX BIS3

ISSLAW_PR V ISVD

ISSLAW_SE TX BISC

ISSLAW_SE V ISVP

ISSMINVALWT_PR TX BIS7

ISSMINVALWT_PR V ISVH

ISSMINVALWT_SE TX BISG

ISSMINVALWT_SE V ISVT

ISSRATE TX BIS0

ISSRATE V ISVA

ISSRATE_PR TX BIS1

Condition-Based Tax Calculation in R/3 For Brazil 107

Page 108: Docu Cbt 302

SAP Online Help 5/2/2023

ISSRATE_PR V ISVB

ISSRATE_SE TX BISA

ISSRATE_SE V ISVN

ISSTAXRELLOC_PR TX BIS5

ISSTAXRELLOC_PR V ISVF

ISSTAXRELLOC_SE TX BISE

ISSTAXRELLOC_SE V ISVR

ISSWITHHOLD_PR TX BIS6

ISSWITHHOLD_PR V ISVG

ISSWITHHOLD_SE TX BISF

ISSWITHHOLD_SE V ISVS

NF_COFINS_AMOUNT TX BX72

NF_COFINS_AMOUNT V BX72

NF_COFINS_BASE TX BX70

NF_COFINS_BASE V BX70

NF_COFINS_EBAS TX BX71

NF_COFINS_EBAS V BX71

NF_COFINS_OFFSET TX BX7O

NF_COFINS_OFFSET V BX7O

NF_COFINS_PAUTA_RATE TX BX7P

NF_COFINS_PAUTA_RATE V BX7P

NF_ICMS_AMOUNT TX BX13

NF_ICMS_AMOUNT V BX13

NF_ICMS_COMP_AMOUNT TX BX31

NF_ICMS_COMP_BASE TX BX30

NF_ICMS_COMP_RATE TX BX32

NF_ICMS_EBAS TX BX11

NF_ICMS_EBAS V BX11

NF_ICMS_FREIGHT_AMOUNT TX BX15

NF_ICMS_FREIGHT_AMOUNT V BX15

NF_ICMS_FREIGHT_BASE TX BX14

NF_ICMS_FREIGHT_BASE V BX14

NF_ICMS_NBAS TX BX10

NF_ICMS_NBAS V BX10

NF_ICMS_OBAS TX BX12

NF_ICMS_OBAS V BX12

NF_ICMS_RATE TX BX16

NF_ICMS_RATE V BX16

Condition-Based Tax Calculation in R/3 For Brazil 108

Page 109: Docu Cbt 302

SAP Online Help 5/2/2023

NF_ICMS_ZONAFRANCA V BXZF

NF_IPI_AMOUNT TX BX23

NF_IPI_AMOUNT V BX23

NF_IPI_EBAS TX BX21

NF_IPI_EBAS V BX21

NF_IPI_NBAS TX BX20

NF_IPI_NBAS V BX20

NF_IPI_OBAS TX BX22

NF_IPI_OBAS V BX22

NF_IPI_OFFSET_AMOUNT TX BX25

NF_IPI_OFFSET_BASE TX BX24

NF_IPI_PAUTA_RATE TX BXPA

NF_IPI_PAUTA_RATE V BXPA

NF_ISS_AMOUNT TX BX51

NF_ISS_AMOUNT V BX51

NF_ISS_AMOUNT_PROV TX BX62

NF_ISS_AMOUNT_PROV V BX62

NF_ISS_AMOUNT_SERV TX BX6C

NF_ISS_AMOUNT_SERV V BX6C

NF_ISS_BASE TX BX50

NF_ISS_BASE V BX50

NF_ISS_EBAS_PROV TX BX61

NF_ISS_EBAS_PROV V BX61

NF_ISS_EBAS_SERV TX BX6B

NF_ISS_EBAS_SERV V BX6B

NF_ISS_NBAS_PROV TX BX60

NF_ISS_NBAS_PROV V BX60

NF_ISS_NBAS_SERV TX BX6A

NF_ISS_NBAS_SERV V BX6A

NF_ISS_OFFSETS TX BX6O

NF_ISS_OFFSETS V BX6O

NF_ISS_WTAMOUNT_PROV TX BX63

NF_ISS_WTAMOUNT_PROV V BX63

NF_ISS_WTAMOUNT_SERV TX BX6D

NF_ISS_WTAMOUNT_SERV V BX6D

NF_ISS_WT_EBAS_PROV TX BX65

NF_ISS_WT_EBAS_PROV V BX65

NF_ISS_WT_EBAS_SERV TX BX6F

Condition-Based Tax Calculation in R/3 For Brazil 109

Page 110: Docu Cbt 302

SAP Online Help 5/2/2023

NF_ISS_WT_EBAS_SERV V BX6F

NF_ISS_WT_NBAS_PROV TX BX64

NF_ISS_WT_NBAS_PROV V BX64

NF_ISS_WT_NBAS_SERV TX BX6E

NF_ISS_WT_NBAS_SERV V BX6E

NF_PIS_AMOUNT TX BX82

NF_PIS_AMOUNT V BX82

NF_PIS_BASE TX BX80

NF_PIS_BASE V BX80

NF_PIS_EBAS TX BX81

NF_PIS_EBAS V BX81

NF_PIS_OFFSET TX BX8O

NF_PIS_OFFSET V BX8O

NF_PIS_PAUTA_RATE TX BX8P

NF_PIS_PAUTA_RATE V BX8P

NF_SUBTRIB_AMOUNT TX BX41

NF_SUBTRIB_AMOUNT V BX41

NF_SUBTRIB_BASE TX BX40

NF_SUBTRIB_BASE V BX40

NF_SUBTRIB_BASERED1 TX BX45

NF_SUBTRIB_BASERED1 V BX45

NF_SUBTRIB_BASERED2 TX BX46

NF_SUBTRIB_BASERED2 V BX46

NF_SUBTRIB_NFRATE TX BX44

NF_SUBTRIB_NFRATE V BX44

NF_SUB_FREIGHT_AMOUNT TX BX43

NF_SUB_FREIGHT_AMOUNT V BX43

NF_SUB_FREIGHT_BASE TX BX42

NF_SUB_FREIGHT_BASE V BX42

PISBASE TX BPI2

PISBASE V BPI2

PISPAUTA TX BPIP

PISPAUTA V BPIP

PISRATE TX BPI1

PISRATE V BPI1

PO_DISCOUNT TX BDIS

PO_FREIGHT TX BFRE

PO_SUBTRIBBASE TX BSUB

Condition-Based Tax Calculation in R/3 For Brazil 110

Page 111: Docu Cbt 302

SAP Online Help 5/2/2023

SUBTRIBBASE1 TX BST6

SUBTRIBBASE1 V ISTB

SUBTRIBBASE2 TX BST7

SUBTRIBBASE2 V IST2

SUBTRIBFIXPRICE TX BST3

SUBTRIBFIXPRICE V ISTF

SUBTRIBICMS TX BST8

SUBTRIBICMS V ISTC

SUBTRIBMINFACTOR TX BSTF

SUBTRIBMINFACTOR V ISTN

SUBTRIBMINPRICE TX BST2

SUBTRIBMINPRICE V ISTM

SUBTRIBSURCHARGE TX BST0

SUBTRIBSURCHARGE V ISTS

SUBTRIBSURCHIN TX BSTI

SUBTRIBSURCHIN V ISTI

SUBTRIBSURTYPE TX BST1

SUBTRIBSURTYPE V ISTT

TAXFREEREGION TX BIZF

TAXFREEREGION V DIZF

TXSDCICMS V DICM

TXSDCICMSFREIGHT V DICF

TXSDCINDUS V DISI

TXSDCIPI V DIPI

TXSDCISS V DISS

TXSDCCOFINS V DCOF

TXSDCPIS V DPIS

TXSDCSUBTRIB V DSUB

TXSDCSUBTRIBFREIGHT V DSUF

TXSDCWHT V DWHT

WHTCOLL_COFINS TX BW21

WHTCOLL_COFINS V BW21

WHTCOLL_CSLL TX BW31

WHTCOLL_CSLL V BW31

WHTCOLL_GEN TX BW01

WHTCOLL_GEN V BW01

WHTCOLL_IR TX BW41

WHTCOLL_IR V BW41

Condition-Based Tax Calculation in R/3 For Brazil 111

Page 112: Docu Cbt 302

SAP Online Help 5/2/2023

WHTCOLL_PIS TX BW11

WHTCOLL_PIS V BW11

WHTRATE_COFINS TX BW22

WHTRATE_COFINS V BW22

WHTRATE_CSLL TX BW32

WHTRATE_CSLL V BW32

WHTRATE_GEN TX BW02

WHTRATE_GEN V BW02

WHTRATE_IR TX BW42

WHTRATE_IR V BW42

WHTRATE_PIS TX BW12

10.10 Assignment of Tax Rate Tables to Condition Ta-bles

Table10-81: Assignment of Brazilian tax tables to condition tablesTable Name Tax Group Condition TableJ_1BTAXCODEV 3J_1BTREGX 394J_1BTXCI1 349J_1BTXDEF 392J_1BTXIC1 382 jetzt 905J_1BTXIC2 382 909J_1BTXIC3 any * 382J_1BTXCOF Any 346J_1BTXIP1 346 362J_1BTXIP2 346 121

J_1BTXIP3anyError: Ref-erence sourcenot found

346

J_1BTXISSAny except country default ( this is table 392)

601

J_1BTXIS1 121

J_1BTXIS3anyError: Ref-erence sourcenot found

347

J_1BTXPIS Any 346J_1BTXSDC 291J_1BTXST1 348 912J_1BTXST2 348 911

J_1BTXST3anyError: Ref-erence sourcenot found

348

J_1BTXWITH anyError: Ref- 346

* SAP does not deliver standard Customizing of dynamic tax exeptions. If you create new tax groups you have to specify a new entry for each group you use. In SAP’s standard concept, the condition table is the same for all tax groups (see section 5.5). However, should you need to follow a different concept of Customizing access sequences you can specify different condition tables per tax group. We recommend to stay with the standard concept of one tax group per table.

Condition-Based Tax Calculation in R/3 For Brazil 112

Page 113: Docu Cbt 302

SAP Online Help 5/2/2023

Table Name Tax Group Condition Table

10.11 Definition of Tax TypesTable 10-815: Definition of Brazilian tax typesTxTy TxGr Description LPPIC1C ICMS ICMS ClearingIC1O ICMS ICMS Ind. Clear. Off.ICM0 ICMS ICMS NF zero lineICM1 ICMS ICMS DeductibleICM2 ICMS ICMS Non-deductibleICM3 ICMS ICMS from SD IndustralizationICM4 ICMS ICMS from SD ConsumptionICMF ICMS ICMS on freight offsetICOP ICOP Complement of ICMSICOT ICOP Complement of ICMSICOX ICMS Complement offsetICS1 ICST ICMS Sub.Trib.ICS2 ICST ICMS Sub.Trib. Non-deductibleICS3 ICST ICMS Sub.Trib. from SDICZF ICMS ICMS Discount Zona FrancaIFR1 ICFR ICMS on freightIFR3 ICFR ICMS on freight from SDIFS1 ICFS ICMS Sub.Trib. on freightIFS3 ICFS ICMS Sub.Trib. on freight SDIP1C IPI IPI clearingIP1O IPI IPI Ind.Clear.Off.IPI0 IPI IPI NF zero lineIPI1 IPI IPI DeductibleIPI2 IPI IPI Non-deductibleIPI3 IPI IPI from SD IndustralizationIPI4 IPI IPI from SD ConsumptionIRD1 RBIC ICMS Reimbursement XIRD2 RBIC ICMS Reimbur. offset XIRD3 RBST SUBT Reimbursement XIRD4 RBST SUBT Reimbur. offset XIRD5 RBIC ICMS Reim.offset NVV XIRD6 RBST SUBT Reim.offset NVV XISS2 ISS ISS from MMISS3 ISS ISS from SDISSO ISS ISS from MM Offset

Create Entries in J_1BAJ ---- im QPT 005 nicht enthalten

Table 10-83:Tax Type Tax Group Description WHT Offset

ICN3 COFI COFINS Normal Tax

ICOA COFI COFINS Normal PO/GR

ICOF COFI COFINS Deductible

ICON COFI COFINS Normal Tax

ICOO COFI COFINS Offset Tax Included X

ICOS COFI COFINS Normal PO/GR

ICOU COFI COFINS COFINS Normal IV NVV

ICOV COFI COFINSOffset ICOS/ICOU X

Condition-Based Tax Calculation in R/3 For Brazil 113

Page 114: Docu Cbt 302

SAP Online Help 5/2/2023

ICOW WHCO COFINS WHT X

ICOZ COFINS WHT Offset

ICSW WHCS CSLL WHT X

ICSZ CSLL WHT Offset

ICW3 WHCO COFINS Withholding TaxSD X

IGEW WHT General WHT X

IGEZ General WHT Offset

IGW3 WHT General WHT SD X

IIRW WHIR IR WHT X

IIRZ IR WHT Offset

IPIS PIS PIS Deductible

IPS3 PIS PIS Normal Tax

IPSA PIS PIS Normal PO/GR

IPSN PIS PIS Normal Tax

IPSO PIS PIS Offset Tax Included X

IPSS PIS PIS Normal PO/GR

IPSU PIS PIS Normal IV NVV

IPSV PIS PIS Offset IPSS / IPSU X

IPSW WHPI PIS WHT X

IPSZ PIS WHT Offset

IPW3 WHPI PIS WHT SD X

IRW3 WHIR IR Withholding TaxSD X

ISA3 ISSP ISS at Provider SD

ISB3 ISSP ISS WHT at Provider SD X

ISE3 ISSS ISS at Service Loc SD

ISF3 ISSS ISS WHT at Service Loc SD X

ISSA ISSP ISS at Provider

ISSB ISSP ISS WHT at Provider X

ISSE ISSS ISS at Service Loc

ISSF ISSS ISS WHT at Service Loc X

ISSG ISSP ISS Offset X

ISW3 WHCS CSLL Withholding Tax SD X

10.12 Nota Fiscal MappingTable10-84: Mapping of nota fiscal values (all)TxTy Tax

RateMap-ping

Pauta Rate

Map-ping

Tax Amount

Map-ping

Tax Base

Map-ping

Ex. Base

Map-ping

Other Base

Map-ping

Wht code

IC1C BX16 Value Value IC1C Value BX10 Value BX11 Value BX12 Value

Condition-Based Tax Calculation in R/3 For Brazil 114

Page 115: Docu Cbt 302

SAP Online Help 5/2/2023

ICM0 Value Value Value Value BX11 Value BX12 Value

ICM1 BX16 Value Value ICM1 Value BX10 Value BX11 Value BX12 Value

ICM2 BX16 Value Value ICM2 Value BX10 Value BX11 Value BX12 Value

ICM3 BX16 Value Value ICM3 Value BX10 Value BX11 Value BX12 Value

ICM4 BX16 Value Value ICM4 Value BX10 Value BX11 Value BX12 Value

ICMF BX16 Value Value ICMF Value Value Value Value

ICOF BCO1 1 BCOP 0 ICOF 0 BX70 0 BX71 0 0

ICON BCO1 1 BCOP 0 ICON 0 BX70 0 BX71 0 0

ICOP BX32 Value Value ICOP Value BX30 Value Value Value

ICOW BW22 1 0 ICOW 0 BXWT 0 0 0 BW21

ICS1 BX44 Value Value ICS1 Value Value Value BX40 Value

ICS2 BX44 Value Value ICS2 Value Value Value BX40 Value

ICS3 BX44 Value Value ICS3 Value Value Value BX40 Value

ICSW BW32 1 0 ICSW 0 BXWT 0 0 0 BW31

ICZF BX16 Value Value ICZF Value Value Value Value

IFR1 BIF0 Rate Value IFR1 Value Value Value BX14 Value

IFR3 BIF0 Rate Value IFR3 Value Value Value BX14 Value

IFS1 BICH Rate Value IFS1 Value Value Value BX42 Value

IFS3 BICH Rate Value IFS3 Value Value Value BX42 Value

IGEW BW02 1 0 IGEW 0 BXWT 0 0 0 BW01

IIRW BW42 1 0 IIRW 0 BXWT 0 0 0 BW41

IPIS BPI1 1 BPIP 0 IPIS 0 BX80 0 BX81 0 0

IPSN BPI1 1 BPIP 0 IPSN 0 BX80 0 BX81 0 0

IPSW BW12 1 0 IPSW 0 BXWT 0 0 0 BW11

IP1C BIP0 Rate BXPA Rate IP1C Value BX20 Value BX21 Value BX22 Value

IPI0 Value Value Value Value BX21 Value BX22 Value

IPI1 BIP0 Rate BXPA Rate IPI1 Value BX20 Value BX21 Value BX22 Value

IPI2 BIP0 Rate BXPA Rate IPI2 Value BX20 Value BX21 Value BX22 Value

IPI3 BIP0 Rate BXPA Rate IPI3 Value BX20 Value BX21 Value BX22 Value

IPI4 BIP0 Rate BXPA Rate IPI4 Value Value BX21 Value BX24 Value

ISSA BIS1 1 0 ISSA 0 BX60 0 BX61 0 0

ISSB BIS1 1 0 ISSB 0 BX64 0 BX65 0 0

ISSE BISA 1 0 ISSE 0 BX6A 0 BX6B 0 0 Nicht in QPT einpfelgbar

!!!

ISSF BISA 1 0 ISSF 0 BX6E 0 BX6F 0 0

ISS2 BIS0 Rate Value ISS2 Value BX50 Value Value Value

ISS3 BIS0 Rate Value ISS3 Value BX50 Value Value Value

(SD only)

Condition-Based Tax Calculation in R/3 For Brazil 115

Page 116: Docu Cbt 302

SAP Online Help 5/2/2023

TxTy Tax Rate

Map Pauta Rate

Map Tax Amount

Map Total Base

Map Tax Base

Map Ex. Base

Map Other Base

Map WHT Code

ICON BCO1 1 BX7P 0 BX72 0 BX70 0 BX70 0 0 0

ICOW BW22 1 0 BW22 0 BXWT 0 BXWT 0 0 0 BW21

ICSW BW32 1 0 BW32 0 BXWT 0 BXWT 0 0 0 BW31

IGEW BW02 1 0 BW02 0 BXWT 0 BXWT 0 0 0 BW01

IIRW BW42 1 0 BW42 0 BXWT 0 BXWT 0 0 0 BW41

IPSN BPI1 1 BX8P 0 BX82 0 BX80 0 BX80 0 0 0

IPSW BW12 1 0 BW12 0 BXWT 0 BXWT 0 0 0 BW11

ISSA ISVB 1 0 BX62 0 BX60 0 BX60 0 BX61 0 0

ISSB ISVB 1 0 BX63 0 BX64 0 BX64 0 BX65 0 0

ISSE ISVN 1 0 BX6C 0 BX6A 0 BX6A 0 BX6B 0 0

ISSF ISVN 1 0 BX6D 0 BX6E 0 BX6E 0 BX6F 0 0

Table10-87: Mapping of nota fiscal tax lawsTxGr CTyp

ICMS BLIC

IPI BLIP

ISSP BIS3

ISSS BISC

10.13 Tax Codes

10.13.1 Standard Tax Codes

In the Brazilian localization tax codes are used to determine- which type of taxes are calculated for a line item, - the usage of the material on the incoming side (MM), - and how the taxes are posted in FI (separate line items or not).

To simplify the documentation only the active lines per tax codes are listed.

Note: The tax codes described here refer to the condition-based tax calculation procedure TAXBRA. Therefore, some tax codes have a different definition than the former tax codes used for TAXBRJ. In case it is required to use both CBT and the classic tax calculation in the same system, it might be nec-essary to clone the existing tax codes and apply the modification to the cloned tax codes. In this case it is also necessary to make sure that the correct set of tax codes is being applied in the respective transactions.

Table 10- shows the Customizing of the view J_1BTAXCODEV (see also section 5.14) for all standard tax codes. In the following sections, the condition records of these tax codes are listed.

Table 10-88: Overview of standard tax codesTax Code Description Typ Usage Servi

ceICMS Text IPI Text ICMS

ex. IPI ex. TC at GR

SD TC

A0 Out. Indust.: No tax Outp. Tax Prod./Sales   IC4 IP1     I0 I0A1 Out. Indust.: ICMS Outp. Tax Prod./Sales   IC0 IP1     I1 I1A3 Out. Indust.: ICMS + IPI Outp. Tax Prod./Sales   IC0 IP0     I3 I3

Condition-Based Tax Calculation in R/3 For Brazil 116

Page 117: Docu Cbt 302

SAP Online Help 5/2/2023

Tax Code Description Typ Usage Servi

ceICMS Text IPI Text ICMS

ex. IPI ex. TC at GR

SD TC

B0 Out. Cons.: No tax Outp. Tax Consumpt.   IC4 IP1     C0 C0B1 Out. Cons.: ICMS Outp. Tax Consumpt.   IC0 IP1     C1 C1B3 Out. Cons.: ICMS + IPI Outp. Tax Consumpt.   IC0 IP0     C3 C3C0 In. Cons.: No tax Inp. Tax Consumpt.   IC4 IP1        C1 In. Cons.: ICMS + CompICMS Inp. Tax Consumpt.   IC0 IP1        

C2 In. Consumption: ICMS + CompICMS + S.T. Inp. Tax Consumpt.   IC0 IP1        

C3 In. Cons.: ICMS + CompICMS + IPI Inp. Tax Consumpt.   IC0 IP0        

C4 In. Cons.: ICMS + CompICMS + S.T. + IPI Inp. Tax Consumpt.   IC0 IP0        

C5 In. Cons.: IPI Inp. Tax Consumpt.   IC4 IP2        

CF In. Cons.: ICMS (S.T. on freight) Inp. Tax Consumpt.   IC0 IP1        

I0 In. Indust.: No tax Inp. Tax Prod./Sales   IC4 IP1        I1 In. Indust.: ICMS Inp. Tax Prod./Sales   IC0 IP1        I2 In. Indust.: ICMS + S.T. Inp. Tax Prod./Sales   IC1 IP1        I3 In. Indust.: ICMS + IPI Inp. Tax Prod./Sales   IC0 IP0        I4 In. Indust.: ICMS + S.T. + IPI Inp. Tax Prod./Sales   IC1 IP1        I5 In. Indust.: IPI Inp. Tax Prod./Sales   IC4 IP0        

I6 In. Indust.: ICMS + IPI: Reselling Inp. Tax Prod./Sales   IC0 IP0        

I7 In. Indust.: ICMS + S.T. + IPI: Reselling Inp. Tax Prod./Sales   IC0 IP0        

I9 In. ISS Inp. Tax   X ISS ISS        IE Input: Tax exempt transactions Inp. Tax Prod./Sales   IC4 IP1        

IF Inp. Indust.: ICMS (S.T. on freight) Inp. Tax Prod./Sales   IC0 IP1        

IG Inp. Indust.: ICMS + ICMS on Freight Inp. Tax Prod./Sales   IC0 IP1        

IN INSS 15% Inp. Tax   X INS INS        K0 Future delivery purchasing G/R Inp. Tax Prod./Sales   IC0 IP2        K1 Future delivery purchasing I/R Inp. Tax Prod./Sales   IC5 IP0        

K2 Future delivery G/R - Indust. all taxes Inp. Tax Prod./Sales   IC1 IP1        

K3 Future delivery I/R - Indust. all tax Inp. Tax Prod./Sales   IC0 IP0        

K5 Consignment - Shipment G/R Inp. Tax Prod./Sales   IC0 IP0        K6 Consignment - Invoice I/R Inp. Tax Prod./Sales   IC5 IP2        

K8 Future delivery Resale G/R – Indust. all tax Inp. Tax Prod./Sales   IC5 IP2        

K9 Future delivery Resale pur-chasing I/R Inp. Tax Prod./Sales   IC5 IP1        

S0 Output SD tax: No tax Outp. Tax Prod./Sales   IC4 IP1        

SD Output SD tax: ICMS/IPI/Sub-.Trib. Outp. Tax Prod./Sales   IC1 IP0        

SE Output SD: Tax exempt trans-actions Outp. Tax Prod./Sales   IC4 IP1        

SI Output SD tax: ISS Outp. Tax     ISS ISS        

SZ Output SD tax: ICMS Zona Franca Outp. Tax Prod./Sales   IC1 IP0        

10.13.2 Withholding Tax CodesFor withholding tax law change activate the following existing tax codes or create new ones:

Condition-Based Tax Calculation in R/3 For Brazil 117

Page 118: Docu Cbt 302

SAP Online Help 5/2/2023

10.13.2.1 Tax Codes Used in MMTable 10-89: activate COFINS non-deductible:

Active Cond. Type Description Tax Group Acct. Key

X ICON COFINS NVV Normal Tax COFI NVV

X ICOO COFINS NVV Offset Tax Included COFI NVV

Table 10-90: activate PIS non-deductible:

Active Cond. Type Description Tax Group Acct. Key

X IPSN PIS NVV Normal Tax PIS NVV

X IPSO PIS NVV Offset Tax Included PIS NVV

Table 10-91: activate COFINS deductible:

Active Cond. Type Description Tax Group Acct. Key

X ICOF COFINS Deductible COFI VST

X ICOV COFINSOffset ICOS/ICOU COFI CO3

X ICOS COFINS Normal PO/GR COFI CO3

X ICOU COFINS Normal IV NVV COFI NVV

X ICOA COFINS Normal PO/GR COFI CO3

Table 10-92: activate PIS deductible:

Active Cond. Type Description Tax Group Acct. Key

X IPIS PIS Deductible PIS VST

X IPSV PIS Offset IPSS / IPSU PIS PI3

X IPSS PIS Normal PO/GR COFI PI3

X IPSU PIS Normal IV NVV COFI NVV

X IPSA PIS Normal PO/GR COFI PI3

Table 10-92: activate withholding taxes:

Condition-Based Tax Calculation in R/3 For Brazil 118

Page 119: Docu Cbt 302

SAP Online Help 5/2/2023

Active Cond. Type Description Tax Group Acct. Key

X ICOW COFINS WHT WHCO WTC

X ICOZ COFINS WHT Offset NVV

X IPSW PIS WHT WHPI WTP

X IPSZ PIS WHT Offset NVV

X ICSW CSLL WHT WHCS WTS

X ICSZ CSLL WHT Offset NVV

X IIRW IR WHT WHIR WTI

X IIRZ IR WHT Offset NVV

X IGEW General WHT WHT WTG

X IGEZ General WHT Offset NVV

Table 10-93: activate ISS New 2004:

Active Cond. Type Description Tax Group Acct. Key

X ISSA ISS at Provider ISSP NVV

X ISSB ISS WHT at Provider ISSP ISW

X ISSE ISS at Service Loc. ISSS NVV

X ISSF ISS WHT at Service Loc. ISSS ISW

10.13.2.2 Tax Codes used in SD (View J_1BTXSDCV)Activate additional or on newly taxes for SD tax codes by flagging the relevant taxes on the SD tax codes.

10.13.3 Tax Codes for Non-Taxable Transactions

For non-taxable transactions special tax codes have to be defined on company code level. In the prop-erties of these tax codes the field Relevant to tax must be set to 2.

Table1 0-94: Tax code IE: Input: Tax exempt transactions

Active Cond. Type Description Tax Group Acct. Key

X IPI0 IPI NF Zero Line IPI VST

X ICM0 ICMS NF Zero Line ICMS VST

Condition-Based Tax Calculation in R/3 For Brazil 119

Page 120: Docu Cbt 302

SAP Online Help 5/2/2023

Table1 0-95: Tax code SE: Output SD: Tax exempt transactions

Active Cond. Type Description Tax Group Acct. Key

X IPI0 IPI NF Zero Line IPI VST

X ICM0 ICMS NF Zero Line ICMS VST

10.13.4 Tax codes for Incoming Movements - Industrializa-tion

For each of the industrialization tax codes the field Usage of the Brazilian tax code enhancements (see Table 10-) has to be set to Prod./Sales.

Table 10-96: Tax code I0: In. Indust.: No tax

Active Cond. Type Description Tax Group Acct. Key

X IPI0 IPI NF Zero Line IPI VST

X ICM0 ICMS NF Zero Line ICMS VST

Table 10-167: Tax code I1: In. Indust.: ICMS

Active Cond. Type Description Tax Group Acct. Key

X IPI0 IPI NF Zero Line IPI VST

X ICM1 ICMS Deductible ICMS VS2

Table 10-98: Tax code I2: In. Indust.: ICMS + S.T.

Active Cond. Type Description Tax Group Acct. Key

X IPI0 IPI NF Zero Line IPI VST

X ICM1 ICMS Deductible ICMS VS2

X ICS1 ICMS Sub.Trib. ICST VS3

Table 10-99: Tax code I3: In. Indust.: ICMS + IPI

Active Cond. Type Description Tax Group Acct. Key

X IPI1 IPI Deductible IPI VS1

X IPI4 IPI Vendor Split IPI NVV

X ICM1 ICMS Deductible ICMS VS2

Condition-Based Tax Calculation in R/3 For Brazil 120

Page 121: Docu Cbt 302

SAP Online Help 5/2/2023

Table 10-100: Tax code I4: In. Indust.: ICMS + S.T. + IPI

Active Cond. Type Description Tax Group Acct. Key

X IPI1 IPI Deductible IPI VS1

X IPI4 IPI Vendor Split IPI NVV

X ICM1 ICMS Deductible ICMS VS2

X ICS1 ICMS Sub.Trib. ICST VS3

Table 10-101: Tax code I5: In. Indust.: IPI

Active Cond. Type Description Tax Group Acct. Key

X ICM0 ICMS NF Zero Line ICMS VST

X IPI1 IPI Deductible IPI VS1

X IPI4 IPI Vendor Split IPI NVV

Table10-102: Tax code I6: In. Indust.: ICMS + IPI: Reselling

Active Cond. Type Description Tax Group Acct. Key

X ICM1 ICMS Deductible ICMS VS2

X IPI2 IPI Non-deductible IPI NVV

Table 10-103: Tax code I7: In. Indust.: ICMS + S.T. + IPI: Reselling

Active Cond. Type Description Tax Group Acct. Key

X ICM1 ICMS Deductible ICMS VS2

X ICS1 ICMS Sub.Trib. ICST VS3

X IPI2 IPI Non-deductible IPI NVV

10.13.5 Tax Codes for Incoming Movements - Consumption

For each of the industrialization tax codes the field Usage of the Brazilian tax code enhancements has to be set to Consumption.

Table 10-104: Tax code C0: In. Cons.: No tax

Active Cond. Type Description Tax Group Acct. Key

X IPI0 IPI NF Zero Line IPI VST

X ICM0 ICMS NF Zero Line ICMS VST

Condition-Based Tax Calculation in R/3 For Brazil 121

Page 122: Docu Cbt 302

SAP Online Help 5/2/2023

Table 10-105: Tax code C1: In. Cons.: ICMS + CompICMS

Active Cond. Type Description Tax Group Acct. Key

X IPI0 IPI NF Zero Line IPI VST

X ICM2 ICMS Non-deductible ICMS NVV

X ICOP Complement of ICMS ICOP ICP

X ICOX Complement of ICMS ICX

Table 10-106: Tax code C2: In. Consumption: ICMS + CompICMS + S.T.

Active Cond. Type Description Tax Group Acct. Key

X IPI0 IPI NF Zero Line IPI VST

X ICM2 ICMS Non-deductible ICMS NVV

X ICS2 ICMS Sub.Trib. Non-deductible ICST NVV

X ICOP Complement of ICMS ICOP ICP

X ICOX Complement of ICMS ICX

Table 10-107: Tax code C3: In. Cons.: ICMS + CompICMS + IPI

Active Cond. Type Description Tax Group Acct. Key

X IPI2 IPI Non-deductible IPI NVV

X ICM2 ICMS Non-deductible ICMS NVV

X ICOP Complement of ICMS ICOP ICP

X ICOX Complement of ICMS ICX

Table 10-108: Tax code C4: In. Cons.: ICMS + CompICMS + S.T. + IPI

Active Cond. Type Description Tax Group Acct. Key

X IPI2 IPI Non-deductible IPI NVV

X ICM2 ICMS Non-deductible ICMS NVV

X ICS2 ICMS Sub.Trib. Non-deductible ICST NVV

X ICOP Complement of ICMS ICOP ICP

X ICOX Complement of ICMS ICX

Table 10-109: Tax code C5: In. Cons.: IPI

Active Cond. Type Description Tax Group Acct. Key

X ICM0 ICMS NF Zero Line ICMS VST

X IPI2 IPI Non-deductible IPI NVV

Condition-Based Tax Calculation in R/3 For Brazil 122

Page 123: Docu Cbt 302

SAP Online Help 5/2/2023

10.13.6 Tax Codes for Incoming Movements - ICMS Sub-.Trib. on Freight

For the processing of ICMS Sub.Trib. on freight special tax codes are necessary to support the re-quired posting logic. Depending on the usage of the respective material, a different tax code must be used (industrialization / consumption). The calculation and posting of the tax is the same for both tax codes.

Table 10-110: Tax code IF: Inp. Indust.: ICMS (S.T. on freight)

Active Cond. Type Description Tax Group Acct. Key

X IPI0 IPI NF Zero Line IPI VST

X ICM1 ICMS Deductible ICMS VS2

X ICMF ICMS on freight offset ICMS IC1

Table 10-111: Tax code IG: Inp. Indust.: ICMS + ICMS on Freight

Active Cond. Type Description Tax Group Acct. Key

X IPI0 IPI NF Zero Line IPI VST

X ICM1 ICMS Deductible ICMS VS2

X IFR1 ICMS on freight ICFR VS3

Table 10-112: Tax code CF: Inp. Cons.: ICMS (S.T. on freight)

Active Cond. Type Description Tax Group Acct. Key

X IPI0 IPI NF Zero Line IPI VST

X ICM1 ICMS Deductible ICMS VS2

X ICMF ICMS on freight offset ICMS IC1

10.13.7 Tax Codes for Incoming Movements - Future Deliv-ery Purchasing / Consignment

Table 10-113: Tax code K0: Future delivery purchasing G/R

Active Cond. Type Description Tax Group Acct. Key

X IPI0 IPI NF Zero Line IPI VST

X ICM1 ICMS Deductible ICMS VS2

X IC1O ICMS Ind. Clear. Off. ICMS ICC

Table 10-114: Tax code K1: Future delivery purchasing I/R

Active Cond. Type Description Tax Group Acct. Key

X IPI1 IPI Deductible IPI VS1

X IC1C ICMS Clearing ICMS ICC

Condition-Based Tax Calculation in R/3 For Brazil 123

Page 124: Docu Cbt 302

SAP Online Help 5/2/2023

Table 10-115: Tax code K2: Future delivery G/R - Indust. all taxes

Active Cond. Type Description Tax Group Acct. Key

X IPI1 IPI Deductible IPI VS1

X ICM1 ICMS Deductible ICMS VS2

X IP1O IPI Ind.Clear.Off. IPI IPC

X IC1O ICMS Ind. Clear. Off. ICMS ICC

Table 10-116: Tax code K3: Future delivery I/R - Indust. all tax

Active Cond. Type Description Tax Group Acct. Key

X IP1C IPI clearing IPI IPC

X IC1C ICMS Clearing ICMS ICC

Table 10-117: Tax code K5: Consignment - Shipment G/R

Active Cond. Type Description Tax Group Acct. Key

X IPI1 IPI Deductible IPI VS1

X ICM1 ICMS Deductible ICMS VS2

X IP1O IPI Ind.Clear.Off. IPI IPC

X IC1O ICMS Ind. Clear. Off. ICMS ICC

Table 10-118: Tax code K6: Consignment - Invoice I/R

Active Cond. Type Description Tax Group Acct. Key

X IP1C IPI clearing IPI IPC

X IC1C ICMS Clearing ICMS ICC

Table 10-119: Tax code K8: Future delivery Resale G/R - Indust. all tax

Active Cond. Type Description Tax Group Acct. Key

X ICM1 ICMS Deductible ICMS VS2

X IC1O ICMS Ind. Clear. Off. ICMS ICC

X IPI2 IPI Non-deductible IPI NVV

Table 10-120: Tax code K9: Future delivery Resale purchasing I/R

Active Cond. Type Description Tax Group Acct. Key

X IC1C ICMS Clearing ICMS ICC

X IPI2 IPI Non-deductible IPI NVV

Condition-Based Tax Calculation in R/3 For Brazil 124

Page 125: Docu Cbt 302

SAP Online Help 5/2/2023

10.13.8 Tax Codes for Incoming Movements - Services - ISS and INSS

For the incoming services tax code the field ‘Service’ of the Brazilian tax code enhancements has to be marked.

Table10-121: Tax code I9: In. ISS

Active Cond. Type Description Tax Group Acct. Key

X ISS3 ISS from SD ISS MW4

For INSS the tax code must contain the proper tax rate (here: 15% INSS). Since the tax code mainte-nance in transaction J1BTAX only allows activating or deactivating conditions, which means creating a record with rate 100% or deleting a record, the condition records for INSS have to be created with transaction FV11. In this transaction, FI condition records can be maintained. To change condition records, use transaction FV12, to display FV13.

Also a record of 100% for the INSS offset condition INSX must be created manually.

Table 10- 122: Tax code IN: INSS 15%

Rate Cond. Type Description Tax Group Acct. Key

15% INSS INSS Incoming VST

100% INSX INSS offset INX

10.13.9 Tax Codes for Outgoing Movements - Ind. + Cons. Posted in SD

For each of these tax codes the field Usage of the Brazilian tax code enhancements has to be set to Production/Sales as a default. In SD the usage of the product by the customer is always taken from the Brazil-specific SD tax code in the sales order item.

Table 10-123: Tax code SD: Output SD tax: ICMS/IPI/Sub.Trib.

Active Cond. Type Description Tax Group Acct. Key

X IPI3 IPI from SD Industralization IPI MW1

X ICM3 ICMS from SD Industralization ICMS MW2

X ICS3 ICMS Sub.Trib. from SD ICST MW3

Table 10-124: Tax code SZ: Output SD tax: ICMS Zona Franca

Active Cond. Type Description Tax Group Acct. Key

X ICM3 ICMS from SD Industralization ICMS MW2

X ICS3 ICMS Sub.Trib. from SD ICST MW3

X ICZF ICMS Discount Zona Franca ICMS ICZ

Condition-Based Tax Calculation in R/3 For Brazil 125

Page 126: Docu Cbt 302

SAP Online Help 5/2/2023

Table10-17: Tax code S0: Output SD tax: No tax

Active Cond. Type Description Tax Group Acct. Key

X IPI0 IPI NF Zero Line IPI VST

X ICM0 ICMS NF Zero Line ICMS VST

For the outgoing services tax code the field ‘Service’ of the brazilian tax code enhancements has to be marked.

Table 0-18: Tax code SI: Output SD tax: ISS

Active Cond. Type Description Tax Group Acct. Key

X ISS3 ISS from SD ISS MW4

10.13.10 Tax Codes for Transfer Postings - Outgoing Move-ments - Ind. + Cons.

For the MM-IM transfer postings the following tax codes can be used for outgoing movements. For in-coming movements the normal codes ‘I*’ and ‘C*’ can be used.

Table 0-19: Tax code A0: Out. Indust.: No tax

Active Cond. Type Description Tax Group Acct. Key

X IPI0 IPI NF Zero Line IPI VST

X ICM0 ICMS NF Zero Line ICMS VST

Table 0-20: Tax code A1: Out. Indust.: ICMS

Active Cond. Type Description Tax Group Acct. Key

X IPI0 IPI NF Zero Line IPI VST

X ICM3 ICMS from SD Industralization ICMS MW2

Table 0-21: Tax code A3: Out. Indust.: ICMS + IPI

Active Cond. Type Description Tax Group Acct. Key

X IPI3 IPI from SD Industralization IPI MW1

X ICM3 ICMS from SD Industralization ICMS MW2

Table 0-22: Tax code B0: Out. Cons.: No tax

Active Cond. Type Description Tax Group Acct. Key

X IPI0 IPI NF Zero Line IPI VST

X ICM0 ICMS NF Zero Line ICMS VST

Condition-Based Tax Calculation in R/3 For Brazil 126

Page 127: Docu Cbt 302

SAP Online Help 5/2/2023

Table 0-23: Tax code B1: Out. Cons.: ICMS

Active Cond. Type Description Tax Group Acct. Key

X IPI0 IPI NF Zero Line IPI VST

X ICM3 ICMS from SD Industralization ICMS MW2

Table 0-24: Tax code B3: Out. Cons.: ICMS + IPI

Active Cond. Type Description Tax Group Acct. Key

X IPI3 IPI from SD Industralization IPI MW1

X ICM3 ICMS from SD Industralization ICMS MW2

10.14 Customizing of Extended Withholding Tax

---- ev own document as attachment ????

10.14.1 Withholing Tax Types at PaymentBase amount = Modified Tax AmountRounding rule = W/tax comm roundCash Discount = C/disc pre W/txPost w/tax amount = XNo accumulationW/tax base manual = XManual w/tax amount = XNo cert numbering = XBase amount = W/tax code levelWithholding tax amount = W/tax code levelNo central invoiceMinimum Check at item level

W/Tax Type Description

CP COFINS at Payment

GP General WHT (PIS/COF/CSLL/IR) at Payment

PP PIS at Payment

RP IR at Payment

SP CSLL at Payment

10.14.2 WHT Types at InvoiceBase amount = Modified Tax Amount

Condition-Based Tax Calculation in R/3 For Brazil 127

Page 128: Docu Cbt 302

SAP Online Help 5/2/2023

Rounding rule = W/tax comm roundPost w/tax amount = XNo accumulationW/tax base manual = XManual w/tax amount = XNo cert numbering = XBase amount = W/tax code levelWithholding tax amount = W/tax code level

W/Tax Type Description

IW ISS WHT

10.14.3 Withholding Tax CodesPercentage subject to tax: 100,00%With/tax rate: 100,00%

W/Tax Type W/Tax Code Description

CP CP COFINS 100% WHT Amount

GP CP General 100% WHT Amount

IW IW ISS 100% WHT Amount

PP PP PIS 100% WHT Amount

RP RP IR 100% WHT Amount

SP SP CSLL 100% WHT Amount

10.14.4 Define Processing Key For Modified Tax Amount

WHT Type Processing Key

IW IW

IW IW

CP CP

CP CP

PP PP

PP PP

SP SP

SP SP

RP RP

RP RP

GP GP

GP GP

Base amnt

Condition-Based Tax Calculation in R/3 For Brazil 128

Page 129: Docu Cbt 302

SAP Online Help 5/2/2023

for w/tax type IW was not defined with modified tax amount.

10.14.5 Assign WHT Types to Company CodesIn IMG, assign all relevant WHT types to all Brazilian company codes that are subject to them.

To activate for MM, flag With/tax agent in vendor data and assign validity.

To activate for SD, flag Subject to w/tax in customer data.

10.14.6 Define Accounts For Withholding Tax to Be Paid Over

Assign G/L accounts for WHT to WHT types.

10.14.7 Define Official Collection CodesThe official WHT codes cannot be used to specify collection codes. Instead, define them in view V_T059Z_WITHCD2 Assign Condition Types to Withholding Tax Types

WHT Type Condition Type

IW IKW4

CP ICW4

PP IPW4

SP ISW4

RP IRW4

GP IGW4

10.14.8 Maintain Tax Relevant ClassificationArgentina Customizing: view V_1ATXREL, according to Note 178824

Tax rel. Text

IW ISS WHT Invoice

CP Cofins Payment

GP General WHT payment

PP PIS WHT Payment

RP IR WHT Payment

SP CSLL WHT payment

10.14.9 Maintain Withholding Tax SD ConditionsTransaction VK11.

Country BR. Maintain for all conditions a rate of 100%, assign validity.

Condition Tax Rel. Class. W/tax code

IKW4 IW IW

ICW4 CP CP

IPW4 PP PP

Condition-Based Tax Calculation in R/3 For Brazil 129

Page 130: Docu Cbt 302

SAP Online Help 5/2/2023

ISW4 SP SP

IRW4 RP RP

IGW4 GP GP

10.15 Maintain Settings For External Tax Calculation

10.15.1 Structure for Tax Jurisdiction Code (View V_TTXD)New entry for TAXBRA. Level1 = 3, level2 = 4.

10.15.2 Activate External Tax CalculationFor calculation procedure TAXBRA, specify ext. system C.

10.15.3 Define Logical DestinationFor ext. system C, specify:

C JUR J_1BTAXJUR_DETERMINE_NEW

C TAX J_1BCALCULATE_TAXES --- nicht CBT

10.16 Define Tax Jurisdiction CodesFor new ISS calculation, two-level jurisdiction codes should be maintained.

The proposal is to use the first three digits for the state (e.g. ‘SP ‘ for Sao Paulo) and the last four di-gits to define the municipio. A suggestion is to use the digits 4 through 7 of the IBGE code for this. As an example, ‘SP 0308’ would be the municipio of SAO PAULO, ‘SP 4850’ the municipio of SANTOS, etc.)

10.17 Assign Jurisdiction Codes to Ranges of Postal Codes

For proper tax jurisdiction code validation and value help, assign valid ranges of postal codes to the newly created tax jurisdiction codes.

10.18 Master Data ChangesThere are changes to master data necessary in order to correctly effectuate the new tax calculation.

10.18.1 Vendors (Transaction XK02)

Assign all WHT types and codes that are applicable.

Update address with new tax jurisdiction code for correct ISS calculation.

10.18.2 Customers (Transaction XD02)

Assign all WHT types and codes that are applicable.

Update address with new tax jurisdiction code for correct ISS calculation.

Condition-Based Tax Calculation in R/3 For Brazil 130

Page 131: Docu Cbt 302

SAP Online Help 5/2/2023

10.19 Other Address Changes: Organizational Struc-tureIn order to allow correct calculation of ISS, all relevant adresses must be updated with the new Juris-diction codes. This is necessary for:

Company Codes

Plants

Business Places (Filial)

General addresses of central address management that are used as delivery addresses

10.20 ISS CustomizingDetails about the ISS Customizing logic can be found in the ISS documentation. Here, only an over-view of the necessary Customizing steps is given.

10.20.1 Tax LawsView: J_1BATL3V. Maintain definitions for ISS tax laws.

10.20.2 Official Service Types

Define official service types for purchasing (view J_1BSERVTYPES1V) and sales (view J_1BSERV-TYPES2V) processes.

10.20.3 Generic Service Types

Define generic service types in view J_1BGENSERVTV.

10.20.4 Assign Official Service TypesAssign official service types as needed:

to generic service types (table J_1BSERVASSIGN1) to material numbers (J_1BSERVASSIGN2)

10.21 Tax Rates

10.21.1 COFINSMaintain entries in transaction J1BTAX (view J_1BTXCOFV). Use the tax groups of dynamic excep-tions you created.

10.21.2 PISMaintain entries in transaction J1BTAX (view J_1BTXPISV). Use the tax groups of dynamic excep-tions you created.

10.21.3 ISSMaintain entries in transaction J1BTAX (view J_1BTXISSV). Use the tax groups of dynamic excep-tions you created.

Condition-Based Tax Calculation in R/3 For Brazil 131

Page 132: Docu Cbt 302

SAP Online Help 5/2/2023

10.21.4 Withholding TaxesMaintain entries in transaction J1BTAX (view J_1BTXWITHV). Use the tax groups of dynamic excep-tions you created.

You define either a general WHT collection code and a combined rate or the four individual withhold-ing taxes separately.

10.22 Reserved Tax Groups of Dynamic ExceptionsTable 11-25: Tax groups of dynamic exceptions reserved for SAPTax Group Usage

1MM: ICMS base reduction carrierSD: ICMS base reduction customerISS rates (material-dependent)

5 ICMS, IPI, S.T. material-dependent exceptionsMM: ISS exceptions (dependent on ship-from, ship-to, material)

97 SD: IPI tax laws (based on NCM code)

98

IPI standard taxes (based on NCM code)SD: IPI tax laws (based on country)ICMS standard tax rates (based on ship-from and ship-to)S.T. standard tax rates (based on ship-from, ship-to, S.T. group)

99 Default taxes (based on country)SD: IPI tax laws (based on tax code)

10.23 NF-relevant SD-Conditions for RVABRAIn order to allow the correct recalculation of the taxes on the amount including tax during the second step of the SD pricing, this customizing indicates how the modification conditions should be taken into account, i.e. if they are included or not in the IPI base, if they affect the Sub.Trib. base amount or if they are relevant for Sub.Trib. on freight. The following settings are delivered for pricing procedure RV-ABRA:

Table 11-26: NF-relevant SD conditionsCond Type NF Value IPI excl ST Mod. ST freight

BXZF 1 Discount

ICMI 5 Value and Price

K004 1 Discount X

K005 1 Discount X

K007 1 Discount X

KF00 2 Freight X + ST base X

Condition-Based Tax Calculation in R/3 For Brazil 132

Page 133: Docu Cbt 302

SAP Online Help 5/2/2023

11 Maintain Settings For External Tax Calcula-tion

11.1Structure for Tax Jurisdiction Code (View V_TTXD)New entry for TAXBRA. Level1 = 3, level2 = 4.

11.2Activate External Tax CalculationFor calculation procedure TAXBRA, specify ext. system C.

11.3Define Logical DestinationFor ext. system C, specify:

C JUR J_1BTAXJUR_DETERMINE_NEW

C TAX J_1BCALCULATE_TAXES

12 Define Tax Jurisdiction CodesFor new ISS calculation, two-level jurisdiction codes should be maintained.

The proposal is to use the first three digits for the state (e.g. ‘SP ‘ for Sao Paulo) and the last four di-gits to define the municipio. A suggestion is to use the digits 4 through 7 of the IBGE code for this. As an example, ‘SP 0308’ would be the municipio of SAO PAULO, ‘SP 4850’ the municipio of SANTOS, etc.)

13 Assign Jurisdiction Codes to Ranges of Postal CodesFor proper tax jurisdiction code validation and value help, assign valid ranges of postal codes to the newly created tax jurisdiction codes.

14 Master Data ChangesThere are changes to master data necessary in order to correctly effectuate the new tax calculation.

14.1Vendors (Transaction XK02)

Assign all WHT types and codes that are applicable.

Update address with new tax jurisdiction code for correct ISS calculation.

14.2Customers (Transaction XD02)

Assign all WHT types and codes that are applicable.

Update address with new tax jurisdiction code for correct ISS calculation.

14.3Other Address Changes: Organizational StructureIn order to allow correct calculation of ISS, all relevant adresses must be updated with the new Juris-diction codes. This is necessary for:

Company Codes

Condition-Based Tax Calculation in R/3 For Brazil 133

Page 134: Docu Cbt 302

SAP Online Help 5/2/2023

Plants

Business Places (Filial)

General addresses of central address management that are used as delivery addresses

15 ISS CustomizingDetails about the ISS Customizing logic can be found in the ISS documentation. Here, only an over-view of the necessary Customizing steps is given.

15.1Tax LawsView: J_1BATL3V. Maintain definitions for ISS tax laws.

15.2Official Service TypesDefine official service types for purchasing (view J_1BSERVTYPES1V) and sales (view J_1BSERV-TYPES2V) processes.

15.3Generic Service TypesDefine generic service types in view J_1BGENSERVTV.

15.4Assign Official Service TypesAssign official service types as needed:

to generic service types (table J_1BSERVASSIGN1) to material numbers (J_1BSERVASSIGN2)

16 Tax Rates

16.1COFINSMaintain entries in transaction J1BTAX (view J_1BTXCOFV). Use the tax groups of dynamic excep-tions you created.

16.2PISMaintain entries in transaction J1BTAX (view J_1BTXPISV). Use the tax groups of dynamic excep-tions you created.

16.3ISSMaintain entries in transaction J1BTAX (view J_1BTXISSV). Use the tax groups of dynamic excep-tions you created.

16.4Withholding TaxesMaintain entries in transaction J1BTAX (view J_1BTXWITHV). Use the tax groups of dynamic excep-tions you created.

You define either a general WHT collection code and a combined rate or the four individual withhold-ing taxes separately.

Condition-Based Tax Calculation in R/3 For Brazil 134

Page 135: Docu Cbt 302

SAP Online Help 5/2/2023

17 Customizing Settings and Master Data for the Stock Transport Order Process using SD Processing

Pricing procedure RVABRE/G ?

17.1 Settings – One-Step or Two-Step ProcedureIn Customizing, you can specify whether the process should be carried out using a one-step or a two-step procedure.

IMG -> Materials Management -> Purchasing -> Purchase Order -> Set Up Stock Transport Or-der (OMGN)Button Purchasing document type:

If you are working with the one-step procedure, the system should display the relevant indicator for the combination of Issuing Plant/Receiving Plant.

Example:

Issuing plant 1000/ Issuing plant 1200 UB √ or blank

Issuing plant 1000/ Issuing plant 0001 NB √ or blank

17.2 Stock Transport Order using SD Delivery (In-traCompany-Code)

17.2.1 Customizing Settings and Master Data for Issuing Plant 1000

IMG -> Enterprise Structure -> Assignment -> Logistics - General -> Assign plant to company code (OX18)

Issuing plant 1000 and receiving plant 1200 have the same company code (company code 1000).

IMG -> Materials Management-> Purchasing -> Purchase Order -> Set Up Stock Transport Order (OMGN)

Button Plant:

Set sales area (sales area = sales org. + distribution channel + division)

The division of a material must not be the same as the division of the found sales area.

Example:

For Plant 1000:

Sales organization 1000

Distribution channel 10

Division: Any

Button Assign delivery type/checking:

Condition-Based Tax Calculation in R/3 For Brazil 135

Page 136: Docu Cbt 302

SAP Online Help 5/2/2023

For UB (Stock transport order) set the delivery type NL (Replenishment delivery). Specify the checking rule according to your settings in ATP (not relevant for other processes).

IMG -> Enterprise Structure-> Assignment-> Sales and Distribution -> Assign sales organiza-tion – distribution channel – plant (OVX6)

You have to assign the plant to the sales org./distribution channel (so that the issuing plant function is possible).

Example:

For Plant 1000:

Sales organization 1000

Distribution channel 10

IMG -> Enterprise Structure-> Assignment–> Logistics Execution -> Assign shipping point to plant (OVXC)Assign the shipping point to the plant.

Example:

Plant 1000

Shipping point 1000

IMG -> Logistics Execution -> Shipping -> Basic Shipping Functions -> Shipping Point and Goods Receiving Point Determination -> Assign Shipping Points (trans. OVL2)

The shipping point is assigned to the issuing plant. Here the Shipping Conditions of the Customers (Sold-to / Ordering party) and the Loading Group from the Material Master (Sales: General/Plant Data view) can also be taken into account to determine the shipping points.

Example:

Plant 1000

Shipping conditions 01

Loading group 0001

Shipping point 1000

Stock has to be available in the storage location of the issuing plant, at the latest by the time the goods are received.

17.2.2 Customizing Settings and Master Data for Receiving Plant 1200

Condition-Based Tax Calculation in R/3 For Brazil 136

Page 137: Docu Cbt 302

SAP Online Help 5/2/2023

Logistics -> Sales and Distribution -> Master Data -> Business partners -> Customer -> Create -> Complete (XD01)Create customers for the company code 1000.

Under Sales area-> All sales areas you can see which sales areas are authorized for customers.

You must maintain the Shipping Condition s in the Shipping view (on Sales area data screen). These are important for determining the Shipping points

Example:

Company code 1000

Sales organization 1000

Distribution channel 10

Division: Any

Shipping conditions: 01

IMG -> Enterprise Structure-> Assignment-> Logistics - General -> Assign plant to company code (OX18) The issuing plant and receiving plant have the same company code (company code 1000).

IMG -> Materials Management-> Purchasing -> Purchase Order -> Set Up Stock Transport Order -> Define Shipping Data for Plants

Button Plant:

Set sales area (sales area = sales org. + distribution channel + division)

You have to assign a customer to a plant here. The customer must maintain the relevant sales area.

Example:

For Plant 1200:

Insert customer number

Sales org. 1000

Distribution channel 10

Division: any

IMG –> Enterprise Structure-> Assignment-> Materials Management–> Assign purchasing orga-nization to company code (OX01)

You have to assign the receiving plant to a purchasing organization. This purchasing organization must either have the same company code as the receiving plant, or not have a company code at all (in the case of cross-company-code Purchasing).

Example:

Company code 1000

Purchasing org. 1000

Condition-Based Tax Calculation in R/3 For Brazil 137

Page 138: Docu Cbt 302

SAP Online Help 5/2/2023

17.2.3 Material Master

You have to maintain the material for the issuing plant and receiving plant.

Logistics –> Materials Management–> Material Master -> ... (trans. MM01)

Issuing Plant 1000:1. Basic Data

2. Sales: Sales Org. Data 1

3. Sales: Sales Org. Data 2

You have to enter NORM in the Item category group field, under Grouping Terms .

4. Sales: General/Plant Data

Under General data you can set the availability check, however this is not compulsory.

Under Shipping data you can maintain data specific to the shipping, including the

Loading Group , which may be used for Shipping point determination

Transport group is optional (necessary for route determination).

5. Accounting

Example:

Plant 1000

Sales org. 1000

Distribution channel 10

Loading group 0001

Receiving Plant:1. Basic Data

2. Purchasing Data

3. Accounting

Example:

Plant 1200

17.2.4 Vendor Data

When creating a plant for stock transfer, the vendor needs to be assigned to the plant as well.

To be able to assign the vendor to a plant you might need to change the following settings in custom-izing:

Omsg -> account group vom vendor: Details -> purchasing data -> additional purchasing data -> plant: optional entry (+) 

Assign the vendor to the plant: 

Condition-Based Tax Calculation in R/3 For Brazil 138

Page 139: Docu Cbt 302

SAP Online Help 5/2/2023

xk03 ->Purchasing data -> extras -> additional purchasing data-> plant assignment

17.2.5 Process Flow

17.2.5.1 Create Stock Transport Order

Logistics –> Materials Management-> Purchasing -> Purchase Order -> Create -> Stock Trans-fer (ME27)Example:

Issuing plant 1000

Pur.org. 1000

Plant 1200

Create Delivery

Logistics -> Sales and Distribution -> Shipping and Transportation -> Outbound Delivery -> Create -> Collective Processing of Documents Due for Delivery-> Purchase Orders (VL10B)

Specify the shipping point (you can find this in the customers‘ settings, Shipping Conditions - Material Master – Loading Group, and you can view this in OVL2)

Set the date in the future (end of the year is always a good choice)

For selected documents : Choose Purchase orders

Range of documents: Enter purchase order number (before 4.5B you should choose Other Selection Screen and enter the purchase order number) -> Execute.

Select the purchase order and choose Save. The system creates the delivery.

Choose Delivery to display the delivery.

Example:

Shipping point 1000

Condition-Based Tax Calculation in R/3 For Brazil 139

Page 140: Docu Cbt 302

SAP Online Help 5/2/2023

17.2.5.2 Pick Delivery and Post Goods Issue

Logistics -> Sales and Distribution -> Shipping and Transportation -> Outbound Delivery -> Change (VL02) since 4.6 (VL02N)Enter delivery, choose button Picking, and post GI.

If the one-step procedure is selected, the GR is posted at the same time as the GI.

In the two-step procedure, the GR must be posted

17.2.5.3 Post Goods Receipt

Logistics –> Materials Management-> Inventory Management-> Goods Movement-> Goods Re-ceipt-> For Purchase Order -> PO Number Unknown (MB0A) as of 4.6 (MIGO)

Transaction MB01 cannot be used, since the delivery will then not be updated.

The goods receipt should be carried out using transaction VL07 (up to and including Release 3.1I) or with MB0A (as of Release 4.0).

Movement type 101. Enter receiving plant, storage location, and delivery number.

17.3 Stock Transport Order using SD Delivery

17.3.1 Customizing Settings and Master Data for Issuing Plant 1000

IMG -> Enterprise Structure-> Assignment-> Logistics - General -> Assign plant to company code (OX18)

Issuing plant and receiving plant belong to different company codes.

Issuing plant 1000 to code1000; receiving plant 0001 to code 0001

IMG -> Materials Management-> Purchasing -> Purchase Order -> Set Up Stock Transport Order (TA OMGN)

Button Plant:

Set up sales area (sales area = sales org. + distribution channel + division)

The division of a material does not have to be the same as the division of the sales area that has been found.

Button Assign delivery type/checking:

Condition-Based Tax Calculation in R/3 For Brazil 140

Page 141: Docu Cbt 302

SAP Online Help 5/2/2023

For NB (standard purchase order), set the delivery type NLCC (Replenishment delivery cross-com-pany). Specify the checking rule according to your settings in ATP (not relevant for other processes).

Example:

For Plant 1000:

Sales org. 1000

Distribution channel 10

Division: Any

IMG -> Enterprise Structure-> Assignment-> Sales and Distribution -> Assign sales organiza-tion - distribution channel – plant (TA OVX6)

You have to assign the plant to sales org./distribution channel (so that you can use the issuing plant function).

Example:

For Plant 1000:

Sales org. 1000

Distribution channel 10

IMG -> Enterprise Structure-> Assignment–> Logistics Execution -> Assign shipping point to plant (TA OVXC)Assign the shipping point to the plant.

Example:

Plant 1000

Shipping point 1000

IMG -> Logistics Execution -> Shipping -> Basic Shipping Functions -> Shipping Point and Goods Receiving Point Determination -> Assign shipping points (TA OVL2)

You must assign the shipping point to the issuing plant. Here the Shipping Conditions with the Cus-tomers (ordering party) and the Loading Group from the Material Master (Sales: General/Plant Data view) are included in shipping point determination.

Example:

Plant 1000

Shipping conditions 01

Loading group 0001

Shipping point 1000

Logistics -> Materials Management-> Purchasing -> Master Data -> Vendor -> Central -> Create (XK01)

Condition-Based Tax Calculation in R/3 For Brazil 141

Page 142: Docu Cbt 302

SAP Online Help 5/2/2023

You must create the vendor for the company code and the purchasing organization of the receiving plant.

In the Purchasing data, choose Extras -> Additional Data Purchasing, then enter the issuing plant.

Stock must be available in the storage location of the issuing plant, at the latest when the goods are is-sued.

Example:

CoCd. 0001

Pur. org. 0001

Assign issuing plant 1000

Condition-Based Tax Calculation in R/3 For Brazil 142

Page 143: Docu Cbt 302

SAP Online Help 5/2/2023

17.3.2 Customizing Settings and Master Data for Receiving Plant 0001

Logistics -> Sales and Distribution -> Master Data -> Business partners -> Customer Either create the customers by choosing Create -> Sales and Distribution (VD01) and do not as-sign a company code,

Or choose Create -> Complete (XD01) where you can create the customers for the company code of the issuing plant.

Choose Extras -> Sales Areas -> All Sales Areas to find out which sales areas are permissible for customers.

Maintain the shipping conditions in the shipping view. These are important for the Shipping point de-termination

Example:

CoCd 1000

Sales org. 1000

Distribution channel 10

Division: Any

Shipping conditions 01

IMG -> Enterprise Structure-> Assignment-> Logistics - General -> Assign plant to company code (OX18)

The issuing plant and the receiving plant belong to different company codes.

Receiving plant 0001 to code 0001 and issuing plant 1000 to code 1000.

IMG -> Materials Management-> Purchasing -> Purchase Order -> Set Up Stock Transport Order (TA OMGN)

Button Plant:

You must assign a customer to the plant.

In order for a stock transfer process to work using a delivery and an SD billing document, you must simply assign sales org., distribution channel, and division for intercompany billing to the issuing plant. For the receiving plant, you do not need to assign these organizational units, as the plant appears as a customer in this process. The plant must, however, be available for the appropriate customer master record in the relevant sales area.

Condition-Based Tax Calculation in R/3 For Brazil 143

Page 144: Docu Cbt 302

SAP Online Help 5/2/2023

Example:

For Plant 0001:

Enter customer no: not necessary

Sales org. 1000

Distribution channel 10

Division: Any

IMG –> Enterprise Structure-> Assignment-> Materials Management–> Assign purchasing orga-nization to company code (OX01)

Assign the receiving plant to a purchasing organization. This purchasing organization must either have the same company code as the receiving plant, or not have one at all (when working with cross-com-pany-code Purchasing).

Example:

CoCd. 0001

Pur. org. 0001

17.3.3 Material Master

You must maintain the material for the issuing plant and receiving plant.

Logistics –> Materials Management–> Material Master (trans. MM01)

Issuing Plant:1. Basic Data

2. Sales: Sales Org. Data 1

3. Sales: Sales Org. Data 2

You have to enter NORM in the Item category group field, under Grouping Terms .

4. Sales: General/Plant Data

Under General data you can set the availability check, however this is not compulsory.

Under Shipping data you can maintain data specific to the shipping, including the

Loading Group , which may be used for Shipping point determination.

Transport group is optional (necessary for route determination).

5. Accounting

Example:

Plant 1000

Sales org. 1000

Distribution channel 10

Loading group 0001

Condition-Based Tax Calculation in R/3 For Brazil 144

Page 145: Docu Cbt 302

SAP Online Help 5/2/2023

Receiving Plant:1. Basic Data

2. Purchasing Data

3. Accounting

Example:

Plant 0001

17.3.4 Process Flow

17.3.4.1 Create Cross-Company-Code Stock Transport Order

Logistics –> Materials Management-> Purchasing -> Purchase Order -> Create -> Vendor/ Sup-plying Plant Known (ME21)as of 4.6 (ME21N)

You enter the vendor who was assigned to the issuing plant as the vendor, and the purchasing organi-zation of the receiving plant.

Example:

Vendor: Before 3.1, created vendor or vendor plant 1000

Pur. org 0001

Plant 0001

In 4.6, also CoCd. 0001

17.3.4.2 Create DeliveryLogistics -> Sales and Distribution -> Shipping -> Delivery -> Worklist -> Order/Purchase Order -> Direct (VL04)Logistics -> Sales and Distribution -> Shipping and Transportation -> Outbound Delivery -> Create -> Collective Processing of Documents Due for Delivery -> Purchase Orders (VL10B)

Specify the shipping point (you can find this in the customers‘ settings, Shipping Conditions - Material Master – Loading Group, and you can view this in OVL2)

Set the date in the future (end of the year is always a good choice)

For selected documents : Choose Purchase orders

Range of documents: Enter purchase order number (before 4.5B you should choose Other Selection Screen and enter the purchase order number) -> Execute.

Select the purchase order and choose Save. The system creates the delivery.

Condition-Based Tax Calculation in R/3 For Brazil 145

Page 146: Docu Cbt 302

SAP Online Help 5/2/2023

Choose Delivery to display the delivery.

Example:

Shipping point 1000

17.3.4.3 Pick Delivery and Post Goods IssueLogistics -> Sales and Distribution -> Shipping and Transport -> Outbound Delivery -> Change (VL02) since 4.6 (VL02N)

Enter delivery, button Picking, post GI.

If the one-step procedure is selected, the GR is posted at the same time as the GI.

In the two-step procedure, the GR must be posted

17.3.4.4 Post Goods ReceiptLogistics –> Materials Management-> Inventory Management-> Goods Movement-> Goods Re-ceipt-> For Purchase Order -> PO Number Unknown (MB0A) as of 4.6 (MIGO)

Transaction MB01 cannot be used, since the delivery will then not be updated.

The goods receipt should be carried out using transaction VL07 (up to and including Release 3.1I) or with MB0A (as of Release 4.0).

Movement type 101. Enter receiving plant, storage location, and delivery number.

Condition-Based Tax Calculation in R/3 For Brazil 146

Page 147: Docu Cbt 302

SAP Online Help 5/2/2023

17.4 Overview in Table Form

Cross-Company-Code Stock Transfer

Issuing Plant 1000 (trans. OMGN)Sales Org.: 1000

Distribution Channel: 10

Receiving Plant 0001 (trans. OMGN)Customer: XX

Sales Org.: 1000

Distribution Channel: 10

Material (trans. MM01)Plant: 1000

Sales Org.: 1000

Distribution Channel: 10

Material (trans. MM01)Plant 0001

Purchasing: 0001

Customer XX (trans. XD01/ VD01)CoCd. 1000 or no CoCd.

Sales Org.: 1000

Distribution Channel: 10

Vendor (trans. XK01)CoCd 0001

Pur. Org. 0001

Assign Issuing Plant 1000

Intra-Company-Code Stock Transfer

Issuing Plant 1000 (trans. OMGN)Sales Org.: 1000

Distribution Channel: 10

Receiving Plant 1200 (trans. OMGN)Customer: XX

Sales Org.: 1000

Distribution Channel: 10

Material (trans. MM01)Plant: 1000

Sales Org.: 1000

Distribution Channel: 10

Material (trans. MM01)Plant 1200

Purchasing: 1000

Customer XX (trans. XD01)CoCd. 1000

Sales Org.: 1000

Distribution Channel: 10

Vendor (trans. XK01)CoCd 0001

Pur. Org. 0001

Assign Issuing Plant 1000

Condition-Based Tax Calculation in R/3 For Brazil 147

Page 148: Docu Cbt 302

SAP Online Help 5/2/2023

2. Customizing Release 4.7

Follow the steps described in the attached documentation. Basically,

you have to proceed in the following way:

a) Automatic Customizing for Release 4.7: BC Set

Go to transaction SCPR20 and run the BC Set CSC_BR_TAX. This BC

Set is part of the attached transport. After activating the BC

Set, most of the necessary Customizing entries are in your

system. Details are described in the attached documentation.

3. Coding Changes for Release 4.6C

First, transport the attached transport files contained in the

files P9CK425188.zip and AC0K026206.zip to your system. They

contain the new coding objects and the BC-Sets required in the

next step.

Second, append the structure KOMP_BRAZIL to the structure KOMPAZ.

If you have extended the KOMP structure before with the fields

TXREG_SF and TXREG_ST as described in Note 376915, you have to

undo that change in order to activate structure KOMP.

Third, use transaction SE38 to run the report RV80HGEN. This

report will ensure the pricing routines included in the transport

are available during pricing.

Condition-Based Tax Calculation in R/3 For Brazil 148