Tabela CHD

Parâmetros de Abertura ECF
78camposNome físicoCHD010(empresa 01)

Campos da tabela CHD

78 campos no dicionário de dados do TOTVS Protheus.

78
CampoDescrição
CHD_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
CHD_ID
Caractere (C)(36)
ID
Contexto:
Real
CHD_PERINI
Data (D)(8)
Per. Inicial
Contexto:
Real
Validação:
xFunVldUni("CHD",2,DToS(M->CHD_PERINI)+DToS(FwFldGet("CHD_PERFIN")),.F.) .and. xFunVldDt(,"CHD_PERFIN")
CHD_PERFIN
Data (D)(8)
Per. Final
Contexto:
Real
Validação:
xFunVldUni("CHD",2,DToS(FwFldGet("CHD_PERINI"))+DToS(M->CHD_PERFIN),.F.) .and. xFunVldDt("CHD_PERINI")
CHD_INDINI
Caractere (C)(1)
Ind Ini Per
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 01234')
5 valores possíveis
  • 0Regular
  • 1Abertura
  • 2Resultante de cisao/fusao
  • 3Resultante de Transformacao
  • 4Inicio de obrigatoriedade
CHD_IRETID
Caractere (C)(1)
Reg.Ind.Dfsa
Contexto:
Real
Validação:
pertence(" 12")
2 valores possíveis
  • 1SIM
  • 2NAO
CHD_INDESP
Caractere (C)(1)
Ind Sit Esp
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 0123456789')
10 valores possíveis
  • 0Normal
  • 1Extincao
  • 2Fusao
  • 3Incorporada
  • 4Incorporadora
  • 5Cis.Total
  • 6Cis.Parcial
  • 7Transform.
  • 8Des.Imun/Isen
  • 9Incl.Simp.Nac
CHD_PATCIS
Numérico (N)(6,2)
Pat Cisao
Máscara:
@E 999.99
Contexto:
Real
CHD_DTSIT
Data (D)(8)
Dt Sit Esp
Contexto:
Real
CHD_TPECF
Caractere (C)(1)
Ind Tp ECF
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 012')
3 valores possíveis
  • 0ECF de empresa nao participante SCP como socio ostensivo
  • 1ECF de empresa participante SCP como socio ostensivo
  • 2ECF da SCP
CHD_CODSCP
Caractere (C)(14)
Ident. SCP
Máscara:
@!
Contexto:
Virtual (não existe no banco)
Consulta F3:
CUW
CHD_OPTREF
Caractere (C)(1)
Optante Refi
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_OPTPAE
Caractere (C)(1)
Optante Paes
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12")
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_FORTRB
Caractere (C)(1)
Forma Trib
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 123456789')
9 valores possíveis
  • 1Luc Real
  • 2Luc Real/Arb
  • 3Luc Pres/Real
  • 4Luc Pres/Real/Arb
  • 5Luc Pres
  • 6Luc Arb
  • 7Luc Pres/Arb
  • 8Imune IRPJ
  • 9Isento IRPJ
CHD_APIRCS
Caractere (C)(1)
Apur IRPJ/CS
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Trimestral
  • 2Anual
CHD_CODQUA
Caractere (C)(2)
Qualif. PJ
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' |01|02|03')
3 valores possíveis
  • 01PJ em Geral
  • 02PJ Financeiro
  • 03Sociedades Seguradoras ou Entidade Aberta de Previdencia Complementar
CHD_TRBPER
Caractere (C)(4)
Trib Per
Máscara:
@!
Contexto:
Real
CHD_APUEST
Caractere (C)(12)
Apur Est
Máscara:
@!
Contexto:
Real
CHD_TIPESC
Caractere (C)(1)
Tp Escrit
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Livro Caixa ou Sem Escrituracao ou Nao obrigadas a entregar a ECD
  • 2Contabil
CHD_TIPENT
Caractere (C)(2)
Tp Entidade
Máscara:
@!
Contexto:
Virtual (não existe no banco)
Consulta F3:
CH0
Validação:
xFunVldCmp("CH0",2)
CHD_DTIPEN
Caractere (C)(220)
Descr Ent
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CHD_IDTIPE
Caractere (C)(36)
ID Tp Ent
Máscara:
@!
Contexto:
Real
CHD_ATTRBI
Caractere (C)(1)
At Trib Im/I
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 123')
3 valores possíveis
  • 1Anual
  • 2Trimestral
  • 3Desobrigada
CHD_APCSLI
Caractere (C)(1)
Apur CSLL Im
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 123')
3 valores possíveis
  • 1Anual
  • 2Trimestral
  • 3Desobrigada
CHD_OPTRTT
Caractere (C)(1)
Op Ext RTT
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_DIFFCO
Caractere (C)(1)
Dif FCONT
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_IDCSLL
Caractere (C)(1)
Ind Aliq CSL
Máscara:
@!
Contexto:
Real
3 valores possíveis
  • 19%
  • 217%
  • 320%
CHD_QTDSCP
Numérico (N)(3)
Qtd SCP
Máscara:
999
Contexto:
Real
CHD_INDADM
Caractere (C)(1)
Adm Clubes
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDPAC
Caractere (C)(1)
Part Consor
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDOPE
Caractere (C)(1)
Op Exterior
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDOPV
Caractere (C)(1)
Op Pes Vinc
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDPJE
Caractere (C)(1)
PJ Art 48/49
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDPAE
Caractere (C)(1)
Part Exter
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDATV
Caractere (C)(1)
Atv. Rural
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDLUC
Caractere (C)(1)
Lucro Exp
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDRED
Caractere (C)(1)
Red Impostos
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDFIN
Caractere (C)(1)
Ind FINOR
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDDOA
Caractere (C)(1)
Ind Doacoes
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDPAG
Caractere (C)(1)
Part Colig
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDVEN
Caractere (C)(1)
Venda Export
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDREC
Caractere (C)(1)
Rend Exter
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDEXT
Caractere (C)(1)
Ativos Exter
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDEXP
Caractere (C)(1)
PJ Export
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDPGE
Caractere (C)(1)
Pag Exterior
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12")
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDECO
Caractere (C)(1)
Com Eletron
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12")
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDROY
Caractere (C)(1)
Royalties Re
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDROP
Caractere (C)(1)
Royalties Pg
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDREN
Caractere (C)(1)
Ind Rendim.
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDREM
Caractere (C)(1)
Ind Remessa
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDINO
Caractere (C)(1)
Ind Inovacao
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDCAP
Caractere (C)(1)
Inc Digital
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDPJH
Caractere (C)(1)
PJ Habilitad
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDPOL
Caractere (C)(1)
Polo Manaus
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDZON
Caractere (C)(1)
Zona Proc
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_INDARE
Caractere (C)(1)
Area Com
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_STATUS
Caractere (C)(1)
Status Reg.
Contexto:
Real
CHD_IDCODS
Caractere (C)(20)
ID SCP
Contexto:
Real
CHD_DCODSC
Caractere (C)(220)
Desc. SCP
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CHD_INDALQ
Caractere (C)(1)
Ind Aliq CSL
Máscara:
@!
Contexto:
Real
Validação:
Pertence(' 12')
2 valores possíveis
  • 1Sim
  • 2Nao
CHD_RECREC
Caractere (C)(1)
Ind.Rec.Rec
Contexto:
Real
Validação:
pertence(" 12")
2 valores possíveis
  • 1Regime de caixa
  • 2Regime de competencia
CHD_INDPAP
Caractere (C)(1)
Ind. Pais
Máscara:
@!
Contexto:
Real
Validação:
pertence(" 12")
2 valores possíveis
  • 1SIM
  • 2NAO
CHD_IREPES
Caractere (C)(1)
Reg.Esp.Trib
Contexto:
Real
Validação:
pertence(" 12")
2 valores possíveis
  • 1SIM
  • 2NAO
CHD_IRECAP
Caractere (C)(1)
Reg.Esp.ABCE
Contexto:
Real
Validação:
pertence(" 12")
2 valores possíveis
  • 1SIM
  • 2NAO
CHD_IPADIS
Caractere (C)(1)
Prg.Apo.Des.
Contexto:
Real
Validação:
pertence(" 12")
2 valores possíveis
  • 1SIM
  • 2NAO
CHD_IPATVD
Caractere (C)(1)
Prg.PATVD
Contexto:
Real
Validação:
pertence(" 12")
2 valores possíveis
  • 1SIM
  • 2NAO
CHD_IREIDI
Caractere (C)(1)
Reg.Esp.Infr
Contexto:
Real
Validação:
pertence(" 12")
2 valores possíveis
  • 1SIM
  • 2NAO
CHD_IREPEC
Caractere (C)(1)
Reg.REPENEC
Contexto:
Real
Validação:
pertence(" 12")
2 valores possíveis
  • 1SIM
  • 2NAO
CHD_REICMP
Caractere (C)(1)
R.Esp.Cmp.Ed
Contexto:
Real
Validação:
pertence(" 12")
2 valores possíveis
  • 1SIM
  • 2NAO
CHD_REAERO
Caractere (C)(1)
Reg.Esp.Aero
Contexto:
Real
Validação:
pertence(" 12")
2 valores possíveis
  • 1SIM
  • 2NAO
CHD_RECINE
Caractere (C)(1)
Reg.Esp.Cine
Contexto:
Real
Validação:
pertence(" 12")
2 valores possíveis
  • 1SIM
  • 2NAO
CHD_RESSOL
Caractere (C)(1)
Reg.Res.Soli
Contexto:
Real
Validação:
pertence(" 12")
2 valores possíveis
  • 1SIM
  • 2NAO
CHD_RECOPA
Caractere (C)(1)
R.E.RECOPA
Contexto:
Real
Validação:
pertence(" 12")
2 valores possíveis
  • 1SIM
  • 2NAO
CHD_HBFIFA
Caractere (C)(1)
Hab.Copa.Mud
Contexto:
Real
Validação:
pertence(" 12")
2 valores possíveis
  • 1SIM
  • 2NAO
CHD_RPNLBI
Caractere (C)(1)
R.E.PNBLIRT
Contexto:
Real
Validação:
pertence(" 12")
2 valores possíveis
  • 1SIM
  • 2NAO
CHD_IDREIF
Caractere (C)(1)
Ind. Reif
Contexto:
Real
Validação:
pertence(" 12")
2 valores possíveis
  • 1SIM
  • 2NAO
CHD_OLIMPI
Caractere (C)(1)
Hab.Jog.Olmp
Contexto:
Real
Validação:
pertence(" 12")
2 valores possíveis
  • 1SIM
  • 2NAO
CHD_DEREX
Caractere (C)(1)
Derex
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12")
2 valores possíveis
  • 1Sim
  • 2Nao

SELECT de exemplo da tabela CHD

No Protheus a tabela física leva o código da empresa (01 → 010) e registros excluídos ficam com D_E_L_E_T_ = '*'.

SQL · SQL Server
SELECT TOP 100
  CHD.CHD_FILIAL,
  CHD.CHD_ID,
  CHD.CHD_PERINI,
  CHD.CHD_PERFIN,
  CHD.CHD_INDINI,
  CHD.CHD_IRETID,
  CHD.CHD_INDESP,
  CHD.CHD_PATCIS
FROM CHD010 CHD
WHERE CHD.D_E_L_E_T_ = ' '

Tabelas próximas no índice do Protheus

O ERPSeeker é um projeto independente, sem vínculo com a TOTVS. A estrutura pode variar conforme a versão e as customizações do seu ambiente.