Tabela CDH

Apuração de ICMS
36camposNome físicoCDH010(empresa 01)

Campos da tabela CDH

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

36
CampoDescrição
CDH_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
CDH_TIPOIP
Caractere (C)(2)
Tipo Imposto
Contexto:
Real
CDH_TIPOPR
Caractere (C)(1)
Tipo Periodo
Contexto:
Real
5 valores possíveis
  • 1Descendial
  • 2Quinzenal
  • 3Mensal
  • 4Semestral
  • 5Anual
CDH_PERIOD
Caractere (C)(1)
Periodo
Contexto:
Real
4 valores possíveis
  • 11º
  • 22º
  • 33º
  • 41º e 2º
CDH_LIVRO
Caractere (C)(1)
Nr. Livro
Contexto:
Real
CDH_SEQUEN
Caractere (C)(3)
Sequencial
Máscara:
@!
Contexto:
Real
CDH_DTINI
Data (D)(8)
Data Inicial
Contexto:
Real
CDH_DTFIM
Data (D)(8)
Data Final
Contexto:
Real
CDH_CONSO
Numérico (N)(1)
Consolida UF
Máscara:
9
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 2Nao
CDH_FILDE
Caractere (C)(2)
Filial De
Contexto:
Real
CDH_FILATE
Caractere (C)(2)
Filial Ate
Contexto:
Real
CDH_LINHA
Caractere (C)(3)
Linha
Contexto:
Real
CDH_SUBITE
Caractere (C)(10)
SubItem
Contexto:
Real
CDH_CODLAN
Caractere (C)(22)
Codigo Ajust
Contexto:
Real
CDH_DESC
Caractere (C)(50)
Descicao
Contexto:
Real
CDH_VALOR
Numérico (N)(15,2)
Valor Ajuste
Máscara:
@E 999,999,999,999.99
Contexto:
Real
CDH_CLVENC
Caractere (C)(6)
Class Venc
Contexto:
Real
CDH_ESTGNR
Caractere (C)(2)
Estado GNRE
Máscara:
@!
Contexto:
Real
CDH_GNRE
Caractere (C)(12)
GNRE
Contexto:
Real
CDH_PRETIT
Caractere (C)(3)
Prefixo Tit
Contexto:
Real
CDH_NUMTIT
Caractere (C)(9)
Titulo
Máscara:
@!
Contexto:
Real
CDH_PARTIT
Caractere (C)(2)
Parcela
Contexto:
Real
CDH_TPTIT
Caractere (C)(3)
Tipo Titulo
Contexto:
Real
CDH_FORTIT
Caractere (C)(6)
Fornecedor
Máscara:
@!
Contexto:
Real
CDH_LOJTIT
Caractere (C)(2)
Loja
Máscara:
@!
Contexto:
Real
CDH_GNREF3
Caractere (C)(8)
GNRE F3
Máscara:
@!
Contexto:
Real
CDH_TPLANC
Caractere (C)(38)
Tipo Lanc.
Máscara:
@!
CDH_DOC
Caractere (C)(9)
Num. Doc.
Máscara:
@!
Contexto:
Real
CDH_SERIE
Caractere (C)(3)
Serie Doc.
Máscara:
@!
Contexto:
Real
CDH_CLIFOR
Caractere (C)(6)
Cli. For.
Máscara:
@!
Contexto:
Real
CDH_LOJA
Caractere (C)(2)
Loja
Máscara:
@!
Contexto:
Real
CDH_TPMOVI
Caractere (C)(1)
Tp Movimento
Máscara:
@!
Contexto:
Real
CDH_PROCES
Caractere (C)(10)
Num processo
Máscara:
@!
Contexto:
Real
CDH_ITPROC
Caractere (C)(8)
Item Process
Máscara:
@!
Contexto:
Real
CDH_PROCTP
Caractere (C)(1)
Tp. processo
Máscara:
9
Contexto:
Real
CDH_PROIND
Caractere (C)(1)
Aut Acao Jud
Máscara:
@!
Contexto:
Real

SELECT de exemplo da tabela CDH

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
  CDH.CDH_FILIAL,
  CDH.CDH_TIPOIP,
  CDH.CDH_TIPOPR,
  CDH.CDH_PERIOD,
  CDH.CDH_LIVRO,
  CDH.CDH_SEQUEN,
  CDH.CDH_DTINI,
  CDH.CDH_DTFIM
FROM CDH010 CDH
WHERE CDH.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.