Tabela DY4

Doc. Transporte x Doc. Cliente
19camposNome físicoDY4010(empresa 01)

Campos da tabela DY4

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

19
CampoDescrição
DY4_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
DY4_FILORI
Caractere (C)(2)
Fil.Origem
Contexto:
Real
DY4_LOTNFC
Caractere (C)(6)
No.Lote
Máscara:
@!
Contexto:
Real
DY4_NUMNFC
Caractere (C)(9)
Doc.Cliente
Máscara:
@!
Contexto:
Real
DY4_SERNFC
Caractere (C)(3)
Serie Dc.Cli
Máscara:
!!!
Contexto:
Real
DY4_CODPRO
Caractere (C)(15)
Cod. Produto
Máscara:
@!
Contexto:
Real
DY4_QTDVOL
Numérico (N)(5)
Qtd.Volumes
Máscara:
99999
Contexto:
Real
DY4_CLIREM
Caractere (C)(6)
Remetente
Máscara:
@!
Contexto:
Real
DY4_LOJREM
Caractere (C)(2)
Loja Remet.
Máscara:
@!
Contexto:
Real
DY4_FILDOC
Caractere (C)(2)
Fil.Docto.
Contexto:
Real
DY4_DOC
Caractere (C)(9)
No.Docto.
Máscara:
@!
Contexto:
Real
DY4_SERIE
Caractere (C)(3)
Serie Docto.
Máscara:
!!!
Contexto:
Real
DY4_SDOC
Caractere (C)(3)
Serie Doc.
Máscara:
!!!
Contexto:
Real
DY4_SDOCC
Caractere (C)(3)
Serie Dc.Cli
Máscara:
!!!
Contexto:
Real
DY4_FILOCO
Caractere (C)(2)
Fil.Ocorre.
Contexto:
Real
DY4_NUMOCO
Caractere (C)(6)
No. Ocorre.
Máscara:
@!
Contexto:
Real
DY4_FILVIA
Caractere (C)(2)
Fil.Viagem
Contexto:
Real
DY4_VIAGEM
Caractere (C)(6)
Viagem
Contexto:
Real
DY4_SEQOCO
Caractere (C)(4)
Sequencia
Máscara:
@!
Contexto:
Real

SELECT de exemplo da tabela DY4

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
  DY4.DY4_FILIAL,
  DY4.DY4_FILORI,
  DY4.DY4_LOTNFC,
  DY4.DY4_NUMNFC,
  DY4.DY4_SERNFC,
  DY4.DY4_CODPRO,
  DY4.DY4_QTDVOL,
  DY4.DY4_CLIREM
FROM DY4010 DY4
WHERE DY4.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.