Tabela HL7

Tabela Fato Entregas de Vendas
54camposNome físicoHL7010(empresa 01)

Campos da tabela HL7

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

54
CampoDescrição
HL7_LINPRO
Caractere (C)(2)
Linh Produto
Máscara:
@!
Contexto:
Real
HL7_ISTCIA
Caractere (C)(2)
Instancia
Máscara:
@!
Contexto:
Real
HL7_EMPRES
Caractere (C)(32)
Empresa
Máscara:
@!
Contexto:
Real
HL7_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
HL7_ESTABL
Caractere (C)(32)
Estabelecim.
Máscara:
@!
Contexto:
Real
HL7_ITEM
Caractere (C)(32)
Item
Máscara:
@!
Contexto:
Real
HL7_FAMCOM
Caractere (C)(32)
Famil Comerc
Máscara:
@!
Contexto:
Real
HL7_FAMMAT
Caractere (C)(32)
Famil. Mat.
Máscara:
@!
Contexto:
Real
HL7_GRPEST
Caractere (C)(32)
Grp Estoque
Máscara:
@!
Contexto:
Real
HL7_PRDUTO
Caractere (C)(32)
Produto
Máscara:
@!
Contexto:
Real
HL7_REPRES
Caractere (C)(32)
Representant
Máscara:
@!
Contexto:
Real
HL7_TRANSP
Caractere (C)(32)
Transportad.
Máscara:
@!
Contexto:
Real
HL7_NATOPR
Caractere (C)(32)
Natur Operac
Máscara:
@!
Contexto:
Real
HL7_CFOP
Caractere (C)(32)
CFOP
Máscara:
@!
Contexto:
Real
HL7_CONDPG
Caractere (C)(32)
Condcao Pgto
Máscara:
@!
Contexto:
Real
HL7_GRPCLI
Caractere (C)(32)
Grp Cliente
Máscara:
@!
Contexto:
Real
HL7_CLIENT
Caractere (C)(32)
Cliente
Máscara:
@!
Contexto:
Real
HL7_REGIAO
Caractere (C)(32)
Regiao Geogr
Máscara:
@!
Contexto:
Real
HL7_UNDNEG
Caractere (C)(32)
Unidad Negoc
Máscara:
@!
Contexto:
Real
HL7_MOEDA
Caractere (C)(32)
Moeda
Máscara:
@!
Contexto:
Real
HL7_DATA
Data (D)(8)
Data Entrega
Contexto:
Real
HL7_DTIMPL
Data (D)(8)
Dt Implantac
HL7_DTVEND
Data (D)(8)
Data Venda
HL7_DTFATU
Data (D)(8)
Dt Emis. NF
HL7_QNRENT
Numérico (N)(4)
Nr Entregas
Máscara:
@E 9999
Contexto:
Real
HL7_QLEADT
Numérico (N)(4)
Lead Time En
Máscara:
@E 9999
Contexto:
Real
HL7_QDSATR
Numérico (N)(4)
Dias Atraso
Máscara:
@E 9999
Contexto:
Real
HL7_QDSANT
Numérico (N)(4)
Dias Antecip
Máscara:
@E 9999
Contexto:
Real
HL7_QDEMIP
Numérico (N)(4)
LD TM Emiss
Máscara:
@E 9,999
HL7_PEDIDO
Caractere (C)(12)
Num. Pedido
HL7_SERNF
Caractere (C)(8)
Serie NF
HL7_NUMNF
Caractere (C)(35)
Num. NF
HL7_CANALV
Caractere (C)(32)
Canal de Ven
Máscara:
@!
HL7_REGCOM
Caractere (C)(32)
Regiao Com
Máscara:
@!
HL7_MICREG
Caractere (C)(32)
Microrregiao
Máscara:
@!
HL7_ROTA
Caractere (C)(32)
Rota
Máscara:
@!
HL7_REFER
Caractere (C)(32)
Referencia
Máscara:
@!
HL7_NMITEN
Caractere (C)(10)
Num do Item
Máscara:
@!
HL7_NMPRIO
Numérico (N)(4)
Priorida Ped
Máscara:
@E 9,999
HL7_TRARED
Caractere (C)(32)
Transp Redes
Máscara:
@!
HL7_STPEDV
Caractere (C)(20)
Situacao Ped
Máscara:
@!
HL7_STITPV
Caractere (C)(20)
Sit Item Ped
Máscara:
@!
HL7_TPCPIT
Caractere (C)(20)
Tipo de Item
Máscara:
@!
HL7_LIVRE0
Numérico (N)(16,4)
Livre 0
HL7_LIVRE1
Numérico (N)(16,4)
Livre 1
HL7_LIVRE2
Numérico (N)(16,4)
Livre 2
HL7_LIVRE3
Numérico (N)(16,4)
Livre 3
HL7_LIVRE4
Numérico (N)(16,4)
Livre 4
HL7_LIVRE5
Data (D)(8)
Livre 5
HL7_LIVRE6
Data (D)(8)
Livre 6
HL7_LIVRE7
Data (D)(8)
Livre 7
HL7_LIVRE8
Caractere (C)(50)
Livre 8
HL7_LIVRE9
Caractere (C)(50)
Livre 9
HL7_UNITEM
Caractere (C)(32)
Und Med Item

SELECT de exemplo da tabela HL7

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
  HL7.HL7_LINPRO,
  HL7.HL7_ISTCIA,
  HL7.HL7_EMPRES,
  HL7.HL7_FILIAL,
  HL7.HL7_ESTABL,
  HL7.HL7_ITEM,
  HL7.HL7_FAMCOM,
  HL7.HL7_FAMMAT
FROM HL7010 HL7
WHERE HL7.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.