Cte Configuration Guide

Embed Size (px)

Citation preview

  • 5/24/2018 Cte Configuration Guide

    1/13

    CT-e: Legal Change

    Configuration Guide

    Version Date Modified Chapters Details

    2 15-10-2013

    2.2 Document ItemsNew chapter explaining restrictionsregarding number of items perdocument.

    3.1.2 Purchasing Tax CodeDetermination

    New chapter regarding the use ofcondition type NAVS.

    1 08-02-2012 - First Version.

  • 5/24/2018 Cte Configuration Guide

    2/13

    CT-E CONFIGURATION GUIDE FOR MM AND SD

    2

    TABLE OF CONTENT

    1 INTRODUCTION ............................................................................................................................... 32 GENERAL NOTES ............................................................................................................................ 32.1 Activation of the solution ................................................................................................................ 32.2 Document Items ............................................................................................................................... 33 INCOMING CT-E SCENARIO ........................................................................................................... 33.1 Basic Configuration ......................................................................................................................... 33.1.1 Configuring Tax Code MM ................................................................................................................. 33.1.2 Purchasing Tax Code Determination ................................................................................................. 43.1.3 Configuring Conhecimento Determination ......................................................................................... 43.2 Creating a Purchase Order ............................................................................................................. 43.3 Creating a Service Entry Sheet ...................................................................................................... 53.4 Creating an Invoice .......................................................................................................................... 53.5 Filling CT-e ....................................................................................................................................... 53.6 Tax Group 6: Service Item Level .................................................................................................... 63.7 Complementary ICMS - DIFAL ........................................................................................................ 74 OUTGOING CT-E SCENARIO .......................................................................................................... 84.1 Basic Configuration ......................................................................................................................... 84.1.1 Configuring Tax Code SD .................................................................................................................. 84.2 Creating a Sales Order .................................................................................................................... 84.3 Creating a Billing Document........................................................................................................... 84.4 Ship-from location for SD ............................................................................................................... 85 MM ICMS EXEMPT ........................................................................................................................... 95.1 MM ICMS EXEMPT ........................................................................................................................... 95.2 SD ICMS EXEMPT ............................................................................................................................ 96 NEW FIELD FOR JURISDICTION CODE ........................................................................................ 97 BRCC ACCESS SEQUENCE MIGRATION ..................................................................................... 98 BADI ................................................................................................................................................ 108.1 CT-e Incoming (MM) ...................................................................................................................... 108.2 Service Item Selection (MM) ......................................................................................................... 108.3 CT-e Outgoing (SD) ...................................................................................................................... 109 BAPI ................................................................................................................................................ 1010 SCREEN CONTROLS ..................................................................................................................... 1110.1 Screen Control for Group Assignment ........................................................................................ 1110.1.1 Screen Control for Group Assignment ............................................................................................. 11

  • 5/24/2018 Cte Configuration Guide

    3/13

    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 describeexamples of usage of the solution. The execution of the steps of the chapter 2 is mandatory, however theexecution of the steps of the examples in the remaining chapters is not mandatory, since there might bevariations 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 theCT-e are not supported.

    In Incoming Scenarios, the Purchase Order and the Service Entry Sheet created must also have only oneitem. The same is valid for Outgoing Scenarios: Sales Order documents and Billing documents created forCT-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, theincoming CT-e process is based on External Service Management (SRV-MM-BR, see note 947670).

    3.1 Basic Configuration

    3.1.1 Config uring Tax Code MM

    New condition types were created to calculate ICMS on CT-e. They are different from ICMS on freight in notafiscal and from ICMS on goods. The same also applies to ICMS ST.Other two conditions have been created to calculate the ICMS ComplementaryDIFAL (available via Note1792935). 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 existentone) activating the related condition types, as the following:

    Tax Conditions

    ICMS *

    CIC1ICMS on Conhecimento,CIC2ICMS Non-Deductible on Conhecimento,CST1Sub. Trib. on ConhecimentoCST2Sub. Trib. Non-Deductible on ConhecimentoCCOPICMS Conh ComplementCCOXICMS Conh Compl 100

  • 5/24/2018 Cte Configuration Guide

    4/13

    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 Purchasin g 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 Conf igur ing Conhecimento Determinat ion

    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 becalculated at service item level.

    The ICMS and ICMS ST rates are different from goods documents to CT-e. For CT-e the rate isindicated in the column ICMS on Freightwhen it exists on Tax Rate Tables. This column ismaintained 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 typeassigned to the internal code CONHECIMENTO) is found in the pricing procedure. The conditionCONHcan be activated in the pricing procedure either manually or via a correspondent condition record retrievedby an access sequence. An access sequence is not provided to determine CONHas 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 Vendorfield 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 CategoryD Service. The Item Categoryselected indicates that the item ofthe document is a service.

    Enter the Short Text, Material Groupand other relevant information.

    Fill the Servicetab adding new lines and entering Short Text(or Service Numberfrom Service Master) andGross Price.

  • 5/24/2018 Cte Configuration Guide

    5/13

    CT-E CONFIGURATION GUIDE FOR MM AND SD

    5

    Activate the condition type CONHor another condition assigned to the internal code CONHECIMENTO. Thesystem can be configured to allow the manual addition of this condition or to use an access sequence toautomatically activate the condition according to the vendor, the order type or other information available inthe PO.

    In the Invoicetab 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 Codewith CT-e conditions (CIC1,CIC2, CST1 ) and choose the Taxespushbutton 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 chapter3.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-etab is displayed. It contains the specificinformation for CT-e such as references and resources (as below).

  • 5/24/2018 Cte Configuration Guide

    6/13

    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 useof dynamic exception tax table (J_1BTXIC3) and takes Service Item Level as key for retrieving tax data (e.g.rate, base).

  • 5/24/2018 Cte Configuration Guide

    7/13

    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 withhigher 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 chapter8.2 for moredetails.

    3.7 Complementary ICMS - DIFAL

    When doing a consumption/asset material transportation, if the intrastate ICMS Tax is bigger than theinterstate 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 isnecessary to evaluate the taxes difference.

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

  • 5/24/2018 Cte Configuration Guide

    8/13

    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 ofthe 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 SalesOrder, the creation of a Billing Document and the correspondent CT-e document.

    4.1 Basic Configuration

    Create a material for freight service with Material TypeDIENService.

    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 Config uring Tax Code SD

    Create a new Tax Code SD (or use an existent one) activating the options Calculate ICMS (or CalculateSub. Trib.), Calculate PIS and Calculate COFINS depending on the tributary classification of the fre ight.In order to calculate freight taxes in SD, the customerusagemust 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, PlantandAmount. Informa Tax Code, CFOPand texts for the related taxes in the Countrytab.

    In the Item Conditiontab activate the condition type CONHor 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 usingthe 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 Functionassigned to the 0 Goods Sender CT-e Partnerwill determine the ship-from. Forexample, when the RE Bill-to Party is mapped, the Bill-to Party business partneraddress of the SalesOrder 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)

  • 5/24/2018 Cte Configuration Guide

    9/13

    CT-E CONFIGURATION GUIDE FOR MM AND SD

    9

    This ship-from location affects tax rates, CFOP determination and the determination of new fields forJurisdiction 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 theICMS exempt. For instance:

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

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

    Even without the calculation of ICMS, the ICMS base value should be visible in the CT-e and the ICMSshould be reported in legal reports. The ICMS base for ICMS Exempt must be calculated and displayed asexcluded 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 areother 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 taxtype 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 defaultcustomizing 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 usageand ICM-exemptmust 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 defaultcustomizing 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 thePurchase 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 ispresented 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.

  • 5/24/2018 Cte Configuration Guide

    10/13

    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 customizedfor 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 accesssequence BRCC via view VV_T682_TX.

    ATTENTION: If a tax group (tax group assigned to internal code of tax conditions) is customized forConhecimento ICMS Base and Rate internal codes, you could then use the migration tool. Then all accesssequences assigned to conditions (and those assigned to internal codes CONH_ICMS_BASE andCONH_ICMS_RATE) will be updated. However this may work for migration, SAP standard functionality doesnot support collateral effects of this procedure (e.g. fiscal books, several entries for unwanted conditionsmigrated).

    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 invoiceverification 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 thedatabase.

    8.2 Service Item Selection (MM)

    A new BAdI J_1BCTE_SELECT_SRVPOS Fill Service Master Used by Dynamic Exceptionswas created

    (available via Note 1714749) to be used for overwritethe selection of the default serviceto be used as key tosearch 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 andis 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 wasreleased (available via Note 1714749) as an interface to generate a CT-e in the system.

  • 5/24/2018 Cte Configuration Guide

    11/13

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

    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 fieldTable/View;

    - Choose the Maintain pushbutton;

    - Choose the New Entries pushbutton;

    - Enter the information as follows:

    NF Type DescriptionManual Mode Scr.cnt.rf Screen control reference

    description

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

    Conhecimento outgoing Create 24 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 Assignm ent

    - 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 DescriptionManual Mode Scr.cnt.rf Screen control reference

    description

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

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

    1

    Screen Control Group created in Note 1714749

  • 5/24/2018 Cte Configuration Guide

    12/13

    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;

  • 5/24/2018 Cte Configuration Guide

    13/13

    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 otherSAP products and services mentioned herein as well as theirrespective logos are trademarks or registered trademarks of SAP AGin Germany and other countries.

    Business Objects and the Business Objects logo, BusinessObjects,Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, andother Business Objects products and services mentioned herein aswell as their respective logos are trademarks or registered trademarksof Business Objects Software Ltd. Business Objects is an SAPcompany.

    Sybase and Adaptive Server, iAnywhere, Sybase 365, SQLAnywhere, and other Sybase products and services mentioned hereinas well as their respective logos are trademarks or registeredtrademarks of Sybase, Inc. Sybase is an SAP company.

    All other product and service names mentioned are the trademarks oftheir respective companies. Data contained in this document servesinformational purposes only. National product specifications may vary.

    These materials are subject to change without notice. These materialsare provided by SAP AG and its affiliated companies ("SAP Group")for informational purposes only, without representation or warranty ofany kind, and SAP Group shall not be li able for errors or omissionswith respect to the materials. The only warranties for SAP Groupproducts and services are those that are set forth in the expresswarranty statements accompanying such products and services, ifany. Nothing herein should be construed as constituting an additional

    warranty.