Páginas filhas
  • CADSPED - Registration of Statement Value Codes - Table 5.2

CONTENTS

01. OVERVIEW

Routine of registration of Code of Statement Values in Table 5.2 of the Federal Revenue provided by the Revenue Service.
 

02. EXAMPLE OF USE

In the Configuration Tool (SIGACFG), access Environment/Files/Menus and add, to the menu of module Tax Records (SIGAFIS), as specified below:
 

Menu NameSubmenuRoutine NameProgramTables
UpdatesSPEDStatement Value CodesFISA156CDY

SIX - Updates of the compatibility tool indexes

TABLE CDY– ADDIT. CALC. INFO CODE

IndexCDY
Order1
KeyCDY_FILIAL + CDY_CODAJU + DTOS(CDY_DTINI)
DescriptionBranch+Adjustment Code+Start Date
Display SearchYes

SX3 – Fields

 

FieldCDY_FILIAL
TypeCharacter
Size2
Decimal0
TitleBranch
DescriptionSystem Branch
UsedNo
MandatoryNo
BrowserNo
ContextReal
Field Group033 - Branch Size
Order01

  

FieldCDY_CODAJU
TypeCharacter
Size8
Decimal0
Format@!
TitleAdjustment Code
DescriptionAdjustment Code
UsedYes
MandatoryYes
BrowserYes
Order02

 

FieldCDY_DESCR
TypeCharacter
Size254
Decimal0
Format@!
TitleComplem. Desc.
DescriptionCompl. Desc.of Adjustment
UsedYes
MandatoryNo
BrowserYes
Order03

  

FieldCDY_VERSAO
TypeCharacter
Size5
Decimal0
Format@!
TitleVersion
DescriptionVersion
UsedYes
MandatoryYes
BrowserYes
ContextReal
OwnershipView
Order04

  

FieldCDY_DTINI
TypeDate
Size8
Decimal0
TitleStart Date
DescriptionStart Date
UsedYes
MandatoryNo
BrowserYes
ContextReal
OwnershipEdit
Order05

  

FieldCDY_DTFIM
TypeDate
Size8
Decimal0
TitleEnd Date
DescriptionEnd Date
UsedYes
MandatoryNo
BrowserYes
ContextReal
OwnershipEdit
Order06
FieldCDY_NFE
TypeCharacter
Size1
Decimal0
Format@!
TitleGenerate Invoice:
DescriptionConsider code for e-Invoice
UsedYes
MandatoryNo
BrowserYes
Options1=YES, 2=No
Val. Systempertence(" 12")
ContextReal
OwnershipEdit
Order07
FieldCDY_ZERAVL
TypeCharacter
Size1
Decimal0
Format@!
TitleZero value?
DescriptionZero value?
UsedYes
MandatoryNo
BrowserNo
Options1=YES, 2=No
Val. Systempertence(" 12")
ContextReal
OwnershipEdit
Order08

SXB - Standard Query

 
Query: CDY - Addit. Calc. Info
 

AliasCDY
Type1 - Query
Sequence01
ColumnDB
DescriptionAdditional Calculation Info
ContainsCDY

  

AliasCDY
Type2 - Orders
Sequence01
Column01
DescriptionCODE

  

AliasCDY
Type3 - Reg. New
Sequence01
Column01
DescriptionRegister New
Contains01

  

AliasCDY
Type4 - Columns
Sequence01
Column01
DescriptionCODE
ContainsCDY_CODAJU

  

AliasCDY
Type4 - Columns
Sequence01
Column02
DescriptionDESCRIPTION
ContainsCDY_DESCR

  

AliasCDY
Type5 - Return
Sequence01
ContainsCDY->CDY_CODAJU

 

03. SETUP PROCEDURE

The codes which refer to additional calculation information - Statement Values are automatically imported from the CDY - Additional Calculation Information Code table when the IMPSPED routine is executed.

When running the U_IMPSPED compatibility tool as the initial program, you will need to enter the directory containing the files with code from Table 5.2 made available by the state (in .*txt format) so that the system can import them automatically.

Therefore, first download these files from the SPED website and copy them to a folder on the server. 

Note that some states have not published the tables yet. Thus, for these states, you must wait for the release and process IMPSPED again to perform the import. 

To check the full list of releases and the states that have already published the codes, go to the Code Tables section on the SPED website. 

  • CDY – published on the SPED website as Statement Values. 


Important

For correct import in the CDY table, you must rename the downloaded TXT file from the SPED website for table 5.2 to TABELA52.txt


After importing these codes, to correctly generate the record, you should declare the amounts using the Additional Calculation Information routine.

Add them to the menu and register the amounts to be sent to Block E - ICMS and IPI Tax Calculation Records, in Record type E115 - Additional Calculation Information - Statement Values.

This record is generated for Additional ICMS Calculation Information linked to the Additional Calculation Information routine.

In the Additional Calculation Information routine, you must manually enter the additional calculation data, and you are required to add the period to which such additional information refers and its respective adjustment code. After you add the adjustment code, the system releases the adjustment description trigger.
 

Record E115 deals with statement values related to the ICMS according to the definition of the relevant state legislation.

These values are merely declaratory and are not computed in the calculation of the ICMS.

Therefore, they should be informed in the system using the Addit. Calc. Info routine (MATA017).
 

After the calculation of ICMS (MATA953), in the Additional Calculation Information (MATA017) routine, add the information according to state legislation, respecting the calculation codes provided by SEFAZ, by state, using table 5.2 - Additional Calculation Information.


04. ADDITIONAL INFORMATION