Tabela HKU

Tabela Custo Padrão por Item
32camposNome físicoHKU010(empresa 01)

Campos da tabela HKU

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

32
CampoDescrição
HKU_LINPRO
Caractere (C)(2)
Linh Produto
Máscara:
@!
Contexto:
Real
HKU_ISTCIA
Caractere (C)(2)
Instancia
Máscara:
@!
Contexto:
Real
HKU_EMPRES
Caractere (C)(32)
Empresa
Máscara:
@!
Contexto:
Real
HKU_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
HKU_ESTABL
Caractere (C)(32)
Estabelecim.
Máscara:
@!
Contexto:
Real
HKU_ITEM
Caractere (C)(32)
Item
Máscara:
@!
Contexto:
Real
HKU_FAMMAT
Caractere (C)(32)
Famil. Mat.
Máscara:
@!
Contexto:
Real
HKU_FAMCOM
Caractere (C)(32)
Famil Comerc
Máscara:
@!
Contexto:
Real
HKU_GRPEST
Caractere (C)(32)
Grp. Estoque
Máscara:
@!
Contexto:
Real
HKU_MOEDA
Caractere (C)(32)
Moeda
Máscara:
@!
Contexto:
Real
HKU_UNDNEG
Caractere (C)(32)
Unidad Negoc
Máscara:
@!
Contexto:
Real
HKU_DATA
Data (D)(8)
Dt Csto Item
Contexto:
Real
HKU_VCSPDR
Numérico (N)(16,2)
Custo Padrao
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
HKU_VCSPDM
Numérico (N)(16,2)
Cst Padr Mat
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
HKU_VCSPMO
Numérico (N)(16,2)
Cst Pad MOB
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
HKU_VCSPGF
Numérico (N)(16,2)
Cst Padr GGF
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
HKU_DTEXTR
Data (D)(8)
Data Ext.
HKU_REFER
Caractere (C)(32)
Referencia
HKU_TIPITM
Caractere (C)(32)
Tipo Item
HKU_LINHAP
Caractere (C)(32)
Linha Produc
HKU_CNCUST
Numérico (N)(4)
Cenario Cust
Máscara:
@E 9,999
HKU_LIVRE0
Numérico (N)(16,4)
Livre 0
HKU_LIVRE1
Numérico (N)(16,4)
Livre 1
HKU_LIVRE2
Numérico (N)(16,4)
Livre 2
HKU_LIVRE3
Numérico (N)(16,4)
Livre 3
HKU_LIVRE4
Numérico (N)(16,4)
Livre 4
HKU_LIVRE5
Data (D)(8)
Livre 5
HKU_LIVRE6
Data (D)(8)
Livre 6
HKU_LIVRE7
Data (D)(8)
Livre 7
HKU_LIVRE8
Caractere (C)(50)
Livre 8
HKU_LIVRE9
Caractere (C)(50)
Livre 9
HKU_UNITEM
Caractere (C)(32)
Und Med Item

SELECT de exemplo da tabela HKU

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
  HKU.HKU_LINPRO,
  HKU.HKU_ISTCIA,
  HKU.HKU_EMPRES,
  HKU.HKU_FILIAL,
  HKU.HKU_ESTABL,
  HKU.HKU_ITEM,
  HKU.HKU_FAMMAT,
  HKU.HKU_FAMCOM
FROM HKU010 HKU
WHERE HKU.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.