Tabela DYV

Controle de Diárias
9camposNome físicoDYV010(empresa 01)

Campos da tabela DYV

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

9
CampoDescrição
DYV_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
DYV_IDCDIA
Caractere (C)(6)
Codigo
Máscara:
@!
Contexto:
Real
DYV_CODMOT
Caractere (C)(6)
Cd.Motorista
Máscara:
@!
Contexto:
Real
Consulta F3:
DTO
Validação:
ExistCpo("DA4") .AND. AB30ValMot()
DYV_NOMMOT
Caractere (C)(40)
Motorista
Máscara:
@!
Contexto:
Virtual (não existe no banco)
DYV_FILORI
Caractere (C)(2)
Fil.Origem
Contexto:
Real
Consulta F3:
DL5
DYV_VIAGEM
Caractere (C)(6)
Viagem
Máscara:
@!
Contexto:
Real
Validação:
TB30VlViag()
DYV_STATUS
Caractere (C)(1)
Status
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Nao Pendente
  • 2Pendente
DYV_SOLFLG
Numérico (N)(8)
Soli. Fluig
Máscara:
99999999
Contexto:
Real
DYV_FORFLG
Numérico (N)(8)
Form.Fluig
Máscara:
99999999
Contexto:
Real

SELECT de exemplo da tabela DYV

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
  DYV.DYV_FILIAL,
  DYV.DYV_IDCDIA,
  DYV.DYV_CODMOT,
  DYV.DYV_FILORI,
  DYV.DYV_VIAGEM,
  DYV.DYV_STATUS,
  DYV.DYV_SOLFLG,
  DYV.DYV_FORFLG
FROM DYV010 DYV
WHERE DYV.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.