Tabela DH1

TODOS
35camposNome físicoDH1010(empresa 01)

Campos da tabela DH1

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

35
CampoDescrição
DH1_FILIAL
Caractere (C)(2)
Filial
DH1_DOC
Caractere (C)(9)
Documento
Máscara:
@!
Contexto:
Real
DH1_EMISAO
Data (D)(8)
Dt Emissao
Contexto:
Real
DH1_SERVIC
Caractere (C)(3)
Cod.Servico
Máscara:
@!
Contexto:
Real
DH1_TM
Caractere (C)(3)
Tp Movimento
Máscara:
@!
Contexto:
Real
DH1_LOCAL
Caractere (C)(2)
Armazem
Máscara:
@!
Contexto:
Real
DH1_PRODUT
Caractere (C)(15)
Produto
Máscara:
@!
Contexto:
Real
DH1_LOTECT
Caractere (C)(10)
Lote
Contexto:
Real
DH1_LOCALI
Caractere (C)(15)
Endereco
Máscara:
@!
Contexto:
Real
DH1_QUANT
Numérico (N)(12,2)
Quantidade
Máscara:
@E 999,999,999.99
Contexto:
Real
DH1_QTSEGU
Numérico (N)(12,2)
Qtd 2 Uni
Máscara:
@E 999,999,999.99
Contexto:
Real
DH1_OP
Caractere (C)(13)
Ord Producao
Máscara:
@!
Contexto:
Real
DH1_NUMSA
Caractere (C)(6)
Nr.S.A.
Máscara:
@!
Contexto:
Real
DH1_ITEMSA
Caractere (C)(2)
Item S.A.
Máscara:
@!
Contexto:
Real
DH1_NUMLOT
Caractere (C)(6)
Sub-Lote
Máscara:
@!
Contexto:
Real
DH1_NUMSER
Caractere (C)(20)
@!
Máscara:
Num de Serie
Contexto:
Real
DH1_DTVALI
Data (D)(8)
Valid. Lote
Contexto:
Real
DH1_ROTINA
Caractere (C)(30)
Rotina
Máscara:
@!
Contexto:
Real
DH1_TRT
Caractere (C)(2)
Sequencia
Máscara:
@!
Contexto:
Real
DH1_PROJPM
Caractere (C)(20)
Cod.Projeto
Máscara:
@!
Contexto:
Real
DH1_TASKPM
Caractere (C)(12)
Cod. Tarefa
Máscara:
@!
Contexto:
Real
DH1_CLVL
Caractere (C)(9)
Classe Valor
Máscara:
@!
Contexto:
Real
DH1_CC
Caractere (C)(9)
Centro Custo
Máscara:
@!
Contexto:
Real
DH1_CONTA
Caractere (C)(20)
C Contabil
Máscara:
@!
Contexto:
Real
DH1_ITEMCT
Caractere (C)(9)
Item Contab
Máscara:
@!
Contexto:
Real
DH1_STATUS
Caractere (C)(1)
Status
Máscara:
@!
Contexto:
Real
DH1_NUMSEQ
Caractere (C)(6)
Sequencial
Contexto:
Real
DH1_IDDCF
Caractere (C)(6)
ID DCF
Máscara:
@!
Contexto:
Real
DH1_CF
Caractere (C)(3)
Tipo RE/DE
Máscara:
@!
Contexto:
Real
DH1_CUSTO1
Numérico (N)(14,2)
Custo
Máscara:
@E 99,999,999,999.99
Contexto:
Real
DH1_CUSTO2
Numérico (N)(14,2)
Custo moeda2
Máscara:
@E 99,999,999,999.99
Contexto:
Real
DH1_CUSTO3
Numérico (N)(14,2)
Custo moeda3
Máscara:
@E 99,999,999,999.99
Contexto:
Real
DH1_CUSTO4
Numérico (N)(14,2)
Custo moeda4
Máscara:
@E 99,999,999,999.99
Contexto:
Real
DH1_CUSTO5
Numérico (N)(14,2)
Custo moeda5
Máscara:
@E 99,999,999,999.99
Contexto:
Real
DH1_POTENC
Numérico (N)(6,2)
Potencia Lot
Máscara:
@E 999.99
Contexto:
Real

SELECT de exemplo da tabela DH1

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
  DH1.DH1_FILIAL,
  DH1.DH1_DOC,
  DH1.DH1_EMISAO,
  DH1.DH1_SERVIC,
  DH1.DH1_TM,
  DH1.DH1_LOCAL,
  DH1.DH1_PRODUT,
  DH1.DH1_LOTECT
FROM DH1010 DH1
WHERE DH1.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.