Tabela HJ5

Centro Custo
22camposNome físicoHJ5010(empresa 01)

Campos da tabela HJ5

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

22
CampoDescrição
HJ5_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
HJ5_CCUSTO
Caractere (C)(32)
Centro Custo
Máscara:
@!
Contexto:
Real
HJ5_ISTCIA
Caractere (C)(2)
Instancia
Contexto:
Real
HJ5_LINPRO
Caractere (C)(2)
Linha Prod.
Contexto:
Real
HJ5_GRPEMP
Caractere (C)(10)
Cod Grp Emp
Contexto:
Real
HJ5_CDUNEG
Caractere (C)(10)
Un Negocio
Contexto:
Real
HJ5_CDEMPR
Caractere (C)(10)
Empresa
Contexto:
Real
HJ5_PLCUST
Caractere (C)(8)
Plano Centro
Contexto:
Real
HJ5_CODIGO
Caractere (C)(25)
Cod Centro C
Contexto:
Real
HJ5_DESC
Caractere (C)(60)
Centro Custo
Contexto:
Real
HJ5_CCPAI
Caractere (C)(32)
C. C. Pai
HJ5_CODPAI
Caractere (C)(25)
C. C. Pai
HJ5_LIVRE0
Caractere (C)(50)
Livre 0
HJ5_LIVRE1
Caractere (C)(50)
Livre 1
HJ5_LIVRE2
Caractere (C)(50)
Livre 2
HJ5_LIVRE3
Caractere (C)(50)
Livre 3
HJ5_LIVRE4
Caractere (C)(50)
Livre 4
HJ5_LIVRE5
Caractere (C)(50)
Livre 5
HJ5_LIVRE6
Caractere (C)(50)
Livre 6
HJ5_LIVRE7
Caractere (C)(50)
Livre 7
HJ5_LIVRE8
Caractere (C)(50)
Livre 8
HJ5_LIVRE9
Caractere (C)(50)
Livre 9

SELECT de exemplo da tabela HJ5

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
  HJ5.HJ5_FILIAL,
  HJ5.HJ5_CCUSTO,
  HJ5.HJ5_ISTCIA,
  HJ5.HJ5_LINPRO,
  HJ5.HJ5_GRPEMP,
  HJ5.HJ5_CDUNEG,
  HJ5.HJ5_CDEMPR,
  HJ5.HJ5_PLCUST
FROM HJ5010 HJ5
WHERE HJ5.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.