(BRA) CFOP code (upgrade)

Important

This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.

Applies To: Microsoft Dynamics AX 2012 R3, Microsoft Dynamics AX 2012 R2

In releases prior to Microsoft Dynamics AX 2012 R2, you could create multiple records for the same Código Fiscal de Operações e Prestações (CFOP) code by specifying different locations or types of transaction. In Microsoft Dynamics AX 2012 R2 and R3, you must create unique CFOP codes based on the location and direction of movement of the items. During upgrade preprocessing, if multiple records are available with the same CFOP code for different locations and types of transaction on the source system, you must select a unique CFOP code to add to the target system. The default location and direction for the CFOP code are updated in the Location and Direction fields in the CFOP codes form, based on the first digit of the CFOP code. The following table contains the first digits of CFOP codes and the default locations and directions they signify.

First digit of CFOP code

Location

Direction

1

Same state – The customer or vendor is located in the same state as the fiscal establishment.

Incoming – Items are entering the fiscal establishment.

2

Other state – The customer or vendor is located in the same country/region as the fiscal establishment but in another state.

3

Outside country – The customer or vendor is located in a different country/region from the fiscal establishment.

5

Same state – The customer or vendor is located in the same state as the fiscal establishment.

Outgoing – Items are leaving the fiscal establishment.

6

Other state – The customer or vendor is located in the same country as the fiscal establishment but in another state.

7

Outside country – The customer or vendor is located in a different country from the fiscal establishment.

Note

If the CFOP code starts with 0, 4, 8, 9, or any alphanumeric character other than 1, 2, 3, 5, 6, or 7, the default location is updated as Same state. However, you can enter a different location in the Location field in the CFOP codes form. You can also select the direction of the movement of items as Incoming or Outgoing in the Direction field .

Use the following procedure to select unique CFOP codes to upgrade when multiple legacy CFOP code records are available with the same CFOP code.

  1. In the Preprocessing upgrade checklist, expand Prepare application data for preprocessing, and then click CFOP code to open the CFOP code form.

  2. Select the Remains in AX 2012 check box to select one CFOP code from multiple records with the same CFOP code, to add to the target system.

  3. Repeat step 2 for each group of multiple records with the same CFOP code.

  4. After you have selected unique CFOP codes for all multiple records with the same CFOP code, click Set to ready for upgrade to mark the checklist task as complete.

See also

(BRA) CFOP code (upgrade) (form)