Sunteți pe pagina 1din 11
CT - e: Legal Change Configuration Guide

CT-e: Legal Change

Configuration Guide

CT - e: Legal Change Configuration Guide

CT-E CONFIGURATION GUIDE FOR MM AND SD

TABLE OF CONTENT

1

INTRODUCTION

3

2

ACTIVATION OF THE SOLUTION

3

3

INCOMING CT-E SCENARIO

3

3.1

Basic Configuration

3

3.1.1

Configuring Tax Code MM

3

3.1.2

Configuring Conhecimento Determination

3

3.2

Creating a Purchase Order

4

3.3

Creating a Service Entry Sheet

4

3.4

Creating an Invoice

4

3.5

Filling CT-e

4

3.6

Tax Group 6: Service Item Level

5

4

OUTGOING CT-E SCENARIO

6

4.1

Basic Configuration

6

4.1.1

Configuring Tax Code SD

6

4.2

Creating a Sales Order

6

4.3

Creating a Billing Document

7

4.4

Ship-from location for SD

7

5

NEW FIELD FOR JURISDICTION CODE

7

6

BRCC ACCESS SEQUENCE MIGRATION

7

7

BADI

8

7.1

CT-e Incoming (MM)

8

7.2

Service Item Selection (MM)

8

7.3

CT-e Outgoing (SD)

8

8

BAPI

8

9

SCREEN CONTROLS

8

9.1

Screen Control for Group Assignment

9

9.1.1

Screen Control for Group Assignment

9

CT-E CONFIGURATION GUIDE FOR MM AND SD

1 INTRODUCTION

The purpose of this guide is to provide general orientation regarding Conhecimento Eletrônico (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 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_1BSWITCHtable;

-

Create a new row with “CTE_2012” in the “FUNCTIONALITY” column.

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.

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

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

CT-E CONFIGURATION GUIDE FOR MM AND SD

maintained in the “Tax Manager’s 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.

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.

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

3.5 Filling CT-e

To open CT-e execute J1B2N transaction or choose the pushbutton Nota Fiscal in transaction MIRO.

CT-E CONFIGURATION GUIDE FOR MM AND SD

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

for CT-e such as references and resources (as below). 3.6 Tax Group 6: Service Item Level

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

CT-E CONFIGURATION GUIDE FOR MM AND SD For tax calculation purposes in case that are more

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.

will determine the condition records to be retrieved. In the example above, the second service will

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 7.2 for more details.

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.

CT-E CONFIGURATION GUIDE FOR MM AND SD

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 SenderCT-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)

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

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

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

CT-E CONFIGURATION GUIDE FOR MM AND SD

CT-E CONFIGURATION GUIDE FOR MM AND SD Because of this, customer tax groups (Tax Group for

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

7

BADI

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

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

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

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

9 SCREEN CONTROLS

CT-E CONFIGURATION GUIDE FOR MM AND SD

It is necessary to assign NF Types to the screen controls for handling CT-e incoming and outgoing documents.

ATTENTION: The NF Types <CO> and <C1> mentioned bellow were not delivered. You should use your own NF Types for Incoming and Outgoing as described in the following section.

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

<CO>

Conhecimento outgoing

 

Change

28

Change application generated CT-e (via MM-IV)

<CO>

Conhecimento outgoing

 

Create

24

1

Create Outgoing CT-e manualy

<CO>

Conhecimento outgoing

 

Display

21

Display application generated CT-e

<CO>

Conhecimento outgoing

X

Change

29

Change manually entered CT-e

<CO>

Conhecimento outgoing

X

Create

24

Create outgoing CT-e manually

<CO>

Conhecimento outgoing

X

Display

22

Display manually entered CT-e

- Save the changes;

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

<C1>

Conhecimento Incoming

 

Change

28

Change application generated CT-e (via MM-IV)

<C1>

Conhecimento Incoming

 

Create

23

Create application generated CT-e (via MM-IV)

<C1>

Conhecimento Incoming

 

Display

21

Display application generated CT-e

<C1>

Conhecimento Incoming

X

Change

29

Change manually entered CT-e

1 Screen Control Group created in Note 1714749

Incoming X Change 29 Change manually entered CT-e 1 Screen Control Group created in Note 1714749

9

CT-E CONFIGURATION GUIDE FOR MM AND SD

<C1>

Conhecimento Incoming

X

Create

25

Create incoming CT-e manually

<C1>

Conhecimento Incoming

X

Display

22

Display manually entered CT-e

- Save the changes;

CT-E CONFIGURATION GUIDE FOR MM AND SD

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