Tabela DFV

ITENS REDESPACHANTE X DOCTOS.
33camposNome físicoDFV010(empresa 01)

Campos da tabela DFV

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

33
CampoDescrição
DFV_FILIAL
Caractere (C)(2)
Filial
DFV_ITEM
Caractere (C)(2)
Item
Máscara:
@!
DFV_STATUS
Caractere (C)(1)
Status
Máscara:
@!
Contexto:
Real
Validação:
Pertence('1239')
4 valores possíveis
  • 1Aberto
  • 2Indicado p/ Entrega
  • 3Entregue
  • 9Cancelado
DFV_FILDOC
Caractere (C)(2)
Fil.Docto.
Consulta F3:
DL6RDP
Validação:
Tmsar05Vld()
DFV_DOC
Caractere (C)(9)
No.Docto.
Máscara:
@!
Validação:
Tmsar05Vld()
DFV_SERIE
Caractere (C)(3)
Serie Docto.
Máscara:
!!!
Validação:
Tmsar05Vld()
DFV_NOMREM
Caractere (C)(40)
Nome Remet.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
DFV_NOMDES
Caractere (C)(40)
Nome Dest.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
DFV_CODFOR
Caractere (C)(6)
Cod. Fornec.
Máscara:
@!
Contexto:
Real
DFV_LOJFOR
Caractere (C)(2)
Loja Fornec.
Máscara:
@!
Contexto:
Real
DFV_NUMRED
Caractere (C)(6)
Numero
Máscara:
@!
Contexto:
Real
DFV_QTDVOL
Numérico (N)(5)
Qtde. Volume
Máscara:
99999
Contexto:
Real
Validação:
Positivo()
DFV_PESO
Numérico (N)(11,4)
Peso Real
Máscara:
@E 999,999.9999
Contexto:
Real
Validação:
Positivo()
DFV_PESOM3
Numérico (N)(11,4)
Peso Cubado
Máscara:
@E 999,999.9999
Contexto:
Real
Validação:
Positivo()
DFV_VALMER
Numérico (N)(14,2)
Vlr.Mercad.
Máscara:
@E 99,999,999,999.99
Contexto:
Real
DFV_NUMCTC
Caractere (C)(9)
Num Contrato
Máscara:
@!
Contexto:
Real
DFV_DATA
Data (D)(8)
Data Emissao
Máscara:
@!
Contexto:
Real
DFV_HORA
Caractere (C)(4)
Hora Emissao
Máscara:
@R 99:99
Contexto:
Real
DFV_CDTPOP
Caractere (C)(10)
Tipo Oper
Máscara:
@!
Contexto:
Real
Consulta F3:
GV4
Validação:
TMSAR05VLD()
DFV_CDCLFR
Caractere (C)(4)
Class.Frete
Máscara:
@!
Contexto:
Real
Consulta F3:
GUB
Validação:
TMSAR05VLD()
DFV_UFORI
Caractere (C)(2)
UF Origem
Máscara:
@!
Contexto:
Real
Consulta F3:
12
Validação:
Vazio() .Or. ExistCpo("SX5","12"+FwFldGet("DFV_UFORI"))
DFV_CDMUNO
Caractere (C)(5)
Cod.Mun.Ori
Máscara:
@99999
Contexto:
Real
Consulta F3:
CC2
Validação:
Vazio() .Or. ExistCpo("CC2",FwFldGet("DFV_UFORI")+FwFldGet("DFV_CDMUNO"))
DFV_MUNORI
Caractere (C)(15)
Mun.Origem
Máscara:
@!
Contexto:
Virtual (não existe no banco)
DFV_UFDES
Caractere (C)(2)
UF Destino
Máscara:
@!
Contexto:
Real
Consulta F3:
12
Validação:
Vazio() .Or. ExistCpo("SX5","12"+FwFldGet("DFV_UFDES"))
DFV_CDMUND
Caractere (C)(5)
Cod.Mun.Des
Máscara:
@99999
Contexto:
Real
Consulta F3:
CC2
Validação:
Vazio() .Or. ExistCpo("CC2",FwFldGet("DFV_UFDES")+FwFldGet("DFV_CDMUND"))
DFV_MUNDES
Caractere (C)(15)
Mun.Des.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
DFV_CHVEXT
Caractere (C)(30)
Chv.Ext.
Máscara:
@!
Contexto:
Real
DFV_SDOC
Caractere (C)(3)
Serie Doc.
Máscara:
!!!
Contexto:
Real
DFV_FILORI
Caractere (C)(2)
Fil.Orig.Red
Contexto:
Real
DFV_CEPORI
Caractere (C)(8)
CEP Origem
Máscara:
@R 99.999-999
Contexto:
Real
DFV_CEPDES
Caractere (C)(8)
CEP Destino
Máscara:
@R 99.999-999
Contexto:
Real
DFV_TIPVEI
Caractere (C)(2)
Tipo Veiculo
Máscara:
@!
Contexto:
Real
Consulta F3:
DUT
Validação:
Vazio() .or. ExistCpo("DUT",M->DFV_TIPVEI,1)
DFV_DESTPV
Caractere (C)(30)
Des.Tp.Vei
Máscara:
@!
Contexto:
Virtual (não existe no banco)

SELECT de exemplo da tabela DFV

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
  DFV.DFV_FILIAL,
  DFV.DFV_ITEM,
  DFV.DFV_STATUS,
  DFV.DFV_FILDOC,
  DFV.DFV_DOC,
  DFV.DFV_SERIE,
  DFV.DFV_CODFOR,
  DFV.DFV_LOJFOR
FROM DFV010 DFV
WHERE DFV.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.