Cte Configuration Guide

download Cte Configuration Guide

of 13

Transcript of Cte Configuration Guide

  • CT-e: Legal Change

    Configuration Guide

    Version Date Modified Chapters Details

    2 15-10-2013

    2.2 Document Items New chapter explaining restrictions regarding number of items per document.

    3.1.2 Purchasing Tax Code Determination

    New chapter regarding the use of condition type NAVS.

    1 08-02-2012 - First Version.

  • CT-E CONFIGURATION GUIDE FOR MM AND SD

    2

    TABLE OF CONTENT

    1 INTRODUCTION ............................................................................................................................... 3

    2 GENERAL NOTES ............................................................................................................................ 3 2.1 Activation of the solution ................................................................................................................ 3 2.2 Document Items ............................................................................................................................... 3

    3 INCOMING CT-E SCENARIO ........................................................................................................... 3 3.1 Basic Configuration ......................................................................................................................... 3 3.1.1 Configuring Tax Code MM ................................................................................................................. 3 3.1.2 Purchasing Tax Code Determination ................................................................................................. 4 3.1.3 Configuring Conhecimento Determination ......................................................................................... 4 3.2 Creating a Purchase Order ............................................................................................................. 4 3.3 Creating a Service Entry Sheet ...................................................................................................... 5 3.4 Creating an Invoice .......................................................................................................................... 5 3.5 Filling CT-e ....................................................................................................................................... 5 3.6 Tax Group 6: Service Item Level .................................................................................................... 6 3.7 Complementary ICMS - DIFAL ........................................................................................................ 7

    4 OUTGOING CT-E SCENARIO .......................................................................................................... 8 4.1 Basic Configuration ......................................................................................................................... 8 4.1.1 Configuring Tax Code SD .................................................................................................................. 8 4.2 Creating a Sales Order .................................................................................................................... 8 4.3 Creating a Billing Document........................................................................................................... 8 4.4 Ship-from location for SD ............................................................................................................... 8

    5 MM ICMS EXEMPT ........................................................................................................................... 9 5.1 MM ICMS EXEMPT ........................................................................................................................... 9 5.2 SD ICMS EXEMPT ............................................................................................................................ 9

    6 NEW FIELD FOR JURISDICTION CODE ........................................................................................ 9

    7 BRCC ACCESS SEQUENCE MIGRATION ..................................................................................... 9

    8 BADI ................................................................................................................................................ 10 8.1 CT-e Incoming (MM) ...................................................................................................................... 10 8.2 Service Item Selection (MM) ......................................................................................................... 10 8.3 CT-e Outgoing (SD) ...................................................................................................................... 10

    9 BAPI ................................................................................................................................................ 10

    10 SCREEN CONTROLS ..................................................................................................................... 11 10.1 Screen Control for Group Assignment ........................................................................................ 11 10.1.1 Screen Control for Group Assignment ............................................................................................. 11

  • CT-E CONFIGURATION GUIDE FOR MM AND SD

    3

    1 INTRODUCTION

    The purpose of this guide is to provide general orientation regarding Conhecimento Eletrnico (CT-e) implementation and usage. In chapter 2 it is described how to activate the CT-e solution in the system. The remaining chapters describe examples of usage of the solution. The execution of the steps of the chapter 2 is mandatory, however the execution of the steps of the examples in the remaining chapters is not mandatory, since there might be variations of the customizing in order to cover different scenarios. 2 GENERAL NOTES

    2.1 Activation of the solution The solution is encapsulated in a soft switch handled in the source code. To activate the logic in the code, and therefore the solution itself, follow the steps as below:

    - Execute transaction SE16 or SE16N; - Select the J_1BSWITCH table; - Create a new row with CTE_2012 in the FUNCTIONALITY column.

    2.2 Document Items In SAP ERP System, CT-e documents must contain only one item. Processes with more than one item in the CT-e are not supported. In Incoming Scenarios, the Purchase Order and the Service Entry Sheet created must also have only one item. The same is valid for Outgoing Scenarios: Sales Order documents and Billing documents created for CT-e documents must contain only one item. 3 INCOMING CT-E SCENARIO

    In the system, freight is considered a service and it does not require a goods receipt. Therefore, the incoming CT-e process is based on External Service Management (SRV-MM-BR, see note 947670). 3.1 Basic Configuration 3.1.1 Configuring Tax Code MM New condition types were created to calculate ICMS on CT-e. They are different from ICMS on freight in nota fiscal and from ICMS on goods. The same also applies to ICMS ST. Other two conditions have been created to calculate the ICMS Complementary DIFAL (available via Note 1792935). As ICMS DIFAL is only relevant in case of consumption/asset material transportation, then it is necessary to set the usage of the tax code as Consumption. To use these new condition types it is necessary to create a new Tax Code MM (or customize an existent one) activating the related condition types, as the following:

    Tax Conditions

    ICMS *

    CIC1 ICMS on Conhecimento, CIC2 ICMS Non-Deductible on Conhecimento, CST1 Sub. Trib. on Conhecimento CST2 Sub. Trib. Non-Deductible on Conhecimento CCOP ICMS Conh Complement CCOX ICMS Conh Compl 100

  • CT-E CONFIGURATION GUIDE FOR MM AND SD

    4

    PIS Activate the already existent condition types

    COFINS Activate the already existent condition types

    * It is not necessary to activate all conditions. Activate only the conditions related to your tax classification. 3.1.2 Purchasing Tax Code Determination For PO tax code determination you can use NAVS technique, see SAP FAQ Note 501054 for more details.

    REMARK: The NAVS technique will not work if your pricing procedure has requirement 60 in the NAVS

    condition. In this case, you can either remove it or create another pricing procedure depending on your

    business need

    3.1.3 Configuring Conhecimento Determination The Conhecimento determination is used to differentiate a normal service purchase order from a purchase order intended to be used as base document for the creation of a CT-e. In addition to the new condition types the purchase order for CT-e is also different in other aspects:

    For CT-e the taxes are calculated in the Purchase Order item level. For ISS the taxes can be calculated at service item level.

    The ICMS and ICMS ST rates are different from goods documents to CT-e. For CT-e the rate is indicated in the column ICMS on Freight when it exists on Tax Rate Tables. This column is maintained in the Tax Managers Workplace Brazil (transaction J1BTAX), Maintain ICMS Values (table J_1BTXIC1). For others Tax Rate Tables the ICMS Base and ICMS Rate are used.

    In a standard Nota Fiscal (e.g. 1A) the freight value is just a part of the Net Amount. For CT-e, however, the Net Amount represents the freight value itself.

    The system determines that a document is a CT-e when the condition type CONH (or another condition type assigned to the internal code CONHECIMENTO) is found in the pricing procedure. The condition CONH can be activated in the pricing procedure either manually or via a correspondent condition record retrieved by an access sequence. An access sequence is not provided to determine CONH as different customers will have different requirements to determine if a process corresponds to a freight. 3.2 Creating a Purchase Order Start the Purchase Order creation. In the Vendor field select the company that executes the freight. Inform the Purchasing Organization, Purchasing Group and Company Code. Enter a Goods Supplier business partner to determine the starting point (Ship-From for tax determination). To determine the Ship-To location, fill the tax jurcode field in the Invoice tab. Create a new item with Item Category D Service. The Item Category selected indicates that the item of the document is a service. Enter the Short Text, Material Group and other relevant information. Fill the Service tab adding new lines and entering Short Text (or Service Number from Service Master) and Gross Price.

  • CT-E CONFIGURATION GUIDE FOR MM AND SD

    5

    Activate the condition type CONH or another condition assigned to the internal code CONHECIMENTO. The system can be configured to allow the manual addition of this condition or to use an access sequence to automatically activate the condition according to the vendor, the order type or other information available in the PO. In the Invoice tab the Service-Based Invoice Verification checkbox should not be checked. If checked, it will generate one line for each service item. In the same tab, enter a Tax Code with CT-e conditions (CIC1, CIC2, CST1 ) and choose the Taxes pushbutton to verify the calculated taxes. Save the Purchase Order. 3.3 Creating a Service Entry Sheet Start the Service Entry Sheet creation. The Service Entry Sheet creation does not require any specific procedures other than the standard process. However, it is necessary to perform the invoice verification. 3.4 Creating an Invoice Create an Invoice referring to the Purchase Order created before. Since Note 1766209, tax calculation does not take NF Type into consideration when executing an invoice, only condition CONH as described in chapter 3.1.3. 3.5 Filling CT-e To open CT-e execute J1B2N transaction or choose the pushbutton Nota Fiscal in transaction MIRO. When the nota fiscal document had attribute model 57 the new CT-e tab is displayed. It contains the specific information for CT-e such as references and resources (as below).

  • CT-E CONFIGURATION GUIDE FOR MM AND SD

    6

    3.6 Tax Group 6: Service Item Level A new tax group 6 (available via Note 1714749) was created especially for CT-e. This tax group makes use of dynamic exception tax table (J_1BTXIC3) and takes Service Item Level as key for retrieving tax data (e.g. rate, base).

  • CT-E CONFIGURATION GUIDE FOR MM AND SD

    7

    For tax calculation purposes in case that are more than one Service Item in Purchase Order, the one with higher Net value will be used for retrieving tax data. In other words, the selected service will determine the condition records to be retrieved.

    In the example above, the second service will be used for this purpose. This selection can be overridden using BAdI J_1BCTE_SELECT_SRVPOS. Check chapter 8.2 for more details. 3.7 Complementary ICMS - DIFAL When doing a consumption/asset material transportation, if the intrastate ICMS Tax is bigger than the interstate Tax, it is necessary to collect the difference between them, i.e., the Complementary ICMS. For example, if a transport from RS to SP has 5% of ICMS and the Intra State tax for SP is 12% it is necessary to evaluate the taxes difference.

    In the standard pricing procedure, the DIFAL base amount will be stored in the condition type BX30 and in the BX31 the tax amount.

  • CT-E CONFIGURATION GUIDE FOR MM AND SD

    8

    At the CT-e document, tax type CCOP highlights the DIFAL tax value calculated. The CCOX condition type (in the pricing procedure) stores the offset (minus CCOP) so that this value is not added in the total taxes of the Nota Fiscal. 4 OUTGOING CT-E SCENARIO

    In general, the outgoing CT-e process follows the steps of a normal sales process: the creation of a Sales Order, the creation of a Billing Document and the correspondent CT-e document. 4.1 Basic Configuration Create a material for freight service with Material Type DIEN Service. Create a new sales order type (or use an existent one) and assign it to a nota fiscal type with model 57. 4.1.1 Configuring Tax Code SD Create a new Tax Code SD (or use an existent one) activating the options Calculate ICMS (or Calculate Sub. Trib.), Calculate PIS and Calculate COFINS depending on the tributary classification of the freight. In order to calculate freight taxes in SD, the customer usage must be Industrialization. 4.2 Creating a Sales Order Create a new sales order using the sales order type assigned to a CT-e nota fiscal type. Enter the Sold-To Party, Ship-To Party and the PO Number. Add a new line for a material that will represent the freight service. Enter Quantity, Plant and Amount. Inform a Tax Code, CFOP and texts for the related taxes in the Country tab. In the Item Condition tab activate the condition type CONH or another condition assigned to the internal code CONHECIMENTO. 4.3 Creating a Billing Document Since freight is a service the Outbound Delivery is not necessary. Therefore, create a Billing Document using the Sales Order number as a reference and save it. Execute J1B3N transaction to display the created CT-e. 4.4 Ship-from location for SD The determination of the ship-from location for outgoing CT-e was extended. To determine the ship-from it is necessary to customize the Map CT-e Partner to NF Partner Function (J_1BCTE_PAR_MAPV) view. The Partner Function assigned to the 0 Goods Sender CT-e Partner will determine the ship-from. For example, when the RE Bill-to Party is mapped, the Bill-to Party business partner address of the Sales Order is the ship-from.

    Item Description

    Ship-From Address of Business Partner mapped as Goods Sender in the view

    Ship-To Address of WE Ship-to Party business partner (no mapping)

  • CT-E CONFIGURATION GUIDE FOR MM AND SD

    9

    This ship-from location affects tax rates, CFOP determination and the determination of new fields for Jurisdiction Code in CT-e. 5 MM ICMS EXEMPT

    In some Brazilian processes the ICMS is exempt, and therefore it should not be charged. Usually it is the source and end locations of the service and the product being transported that makes the ICMS exempt. For instance:

    - PLS 274/04 for law 87/96 - Exemption of ICMS for transportation of paper for book or newspapers in all states in Brazil.

    - ICMS Law at RS 38/2012 - Exemption of ICMS for transportation of vehicles for disabled people - law specific for Rio Grande do Sul.

    Even without the calculation of ICMS, the ICMS base value should be visible in the CT-e and the ICMS should be reported in legal reports. The ICMS base for ICMS Exempt must be calculated and displayed as excluded base. The law that makes the ICMS exempt must be printed in the CT-e. 5.1 MM ICMS EXEMPT In the system, MM scenarios with the ICMS exempt are done by the use of a proper tax code. There are other customizations that also have to be carried out to report the ICMS exempt correctly.

    - Create a new Tax Code (or use an existent one) making sure that the option ICMS-ex. is marked.

    - A tax type for exempt must be active. In order to move the base values to the CT-e document, the tax type for exempt must have Ex. Base Cond. and Other Base Con. filled with the proper conditions.

    With this customizing the condition record that identifies the ICMS exempt is generated. In SAP default customizing this condition is BICX, related to the internal code ICMSNULLEXEMPT - application TX. 5.2 SD ICMS EXEMPT For SD, the tax code should have Industrialization as Customer usage and ICM-exempt must be checked. The Tax Type use must have its Ex. Base Cond correctly filled. With this customizing the condition record that identifies the ICMS exempt is generated. In SAP default customizing this condition is BICX, related to the internal code ICMSNULLEXEMPT - application V. 6 NEW FIELD FOR JURISDICTION CODE

    News fields for Origin Jurisdiction Code (J_1BNFDOC-CTE_STRT_LCT) and Final Jurisdiction Code (J_1BNFDOC-CTE_END_LCT) were created to support the CT-e. These new fields are automatically filled according to the ship-from and to the ship-to defined in the Purchase Order or in the Sales Order. In the CT-e tab of the CT-e/NF-e Writer whenever a Jurisdiction Code is informed the name of the city is presented beside the field. 7 BRCC ACCESS SEQUENCE MIGRATION

    The access sequence BRCC was created especially for ICMS Conhecimento (released via Note 1714749) taxes. As standard, the related internal codes for ICMS Base and Rate are customized using this access sequence.

  • CT-E CONFIGURATION GUIDE FOR MM AND SD

    10

    Please, notice that no tax group (tax group assigned to internal code of tax conditions) should be customized for Conhecimento ICMS base and rate internal codes.

    Because of this, customer tax groups (Tax Group for Dynamic Tax Exceptions, between 10 and 89) will never be inserted in BRCC when executing a migration. If needed, instead of using migration tool, the customer tax groups should be customized manually in access sequence BRCC via view VV_T682_TX. ATTENTION: If a tax group (tax group assigned to internal code of tax conditions) is customized for Conhecimento ICMS Base and Rate internal codes, you could then use the migration tool. Then all access sequences assigned to conditions (and those assigned to internal codes CONH_ICMS_BASE and CONH_ICMS_RATE) will be updated. However this may work for migration, SAP standard functionality does not support collateral effects of this procedure (e.g. fiscal books, several entries for unwanted conditions migrated). 8 BADI

    8.1 CT-e Incoming (MM) A new BAdI J_1BCTE_IV was created to fill data regarding incoming CT-e. It is called during the invoice verification when the CT-e document is generated. The BAdI imports the data of the Purchase Order and exports the new CT-e data to be stored in the database. 8.2 Service Item Selection (MM) A new BAdI J_1BCTE_SELECT_SRVPOS Fill Service Master Used by Dynamic Exceptions was created (available via Note 1714749) to be used for overwrite the selection of the default service to be used as key to search the exception in Tax Group 6 (Dynamic Exceptions table) when executing a purchasing process. 8.3 CT-e Outgoing (SD) A new BAdI J_1BCTE_SD (available via Note 1761307) was created to fill data regarding outgoing CT-e and is called during the billing when the CT-e document is generated. The BAdI imports the data from the Billing and exports the new CT-e data to be stored in the database. 9 BAPI

    A Business Application Programming Interface (BAPI) BAPI_CTE_J_1B_NF_CREATFROMDATA was released (available via Note 1714749) as an interface to generate a CT-e in the system.

  • CT-E CONFIGURATION GUIDE FOR MM AND SD

    11

    10 SCREEN CONTROLS

    It is necessary to assign NF Types to the screen controls for handling CT-e incoming and outgoing documents. ATTENTION: The NF Types and mentioned bellow were not delivered. You should use your own NF Types for Incoming and Outgoing as described in the following section. 10.1 Screen Control for Group Assignment As mentioned in the introduction, the steps below should be considered examples, please adapt them to

    your existing NF Types accordingly.

    - Execute transaction SM30;

    - Enter J_1BALV in the field Table/View;

    - Choose the Maintain pushbutton;

    - Choose the New Entries pushbutton;

    - Enter the information as follows:

    NF Type Description Manual Mode Scr.cnt.rf Screen control reference

    description

    Conhecimento outgoing Change 28 Change application generated CT-e (via MM-IV)

    Conhecimento outgoing Create 241 Create Outgoing CT-e manualy

    Conhecimento outgoing Display 21 Display application generated CT-e

    Conhecimento outgoing X Change 29 Change manually entered CT-e

    Conhecimento outgoing X Create 24 Create outgoing CT-e manually

    Conhecimento outgoing X Display 22 Display manually entered CT-e

    - Save the changes;

    10.1.1 Screen Control for Group Assignment

    - Execute transaction SM30;

    - Enter J_1BALV in the field Table/View;

    - Choose the Maintain pushbutton;

    - Choose the New Entries pushbutton;

    - Enter the information as follows:

    NF Type Description Manual Mode Scr.cnt.rf Screen control reference

    description

    Conhecimento Incoming Change 28 Change application generated CT-e (via MM-IV)

    Conhecimento Incoming Create 23 Create application generated CT-e (via MM-IV)

    1 Screen Control Group created in Note 1714749

  • CT-E CONFIGURATION GUIDE FOR MM AND SD

    12

    Conhecimento Incoming Display 21 Display application generated CT-e

    Conhecimento Incoming X Change 29 Change manually entered CT-e

    Conhecimento Incoming X Create 25 Create incoming CT-e manually

    Conhecimento Incoming X Display 22 Display manually entered CT-e

    - Save the changes;

  • CT-E CONFIGURATION GUIDE FOR MM AND SD

    13

    2011 SAP AG. All rights reserved.

    SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP BusinessObjects Explorer, StreamWork, SAP HANA, 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 other countries. Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects Software Ltd. Business Objects is an SAP company. Sybase and Adaptive Server, iAnywhere, Sybase 365, SQL Anywhere, and other Sybase products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Sybase, Inc. Sybase is an SAP company. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional

    warranty.