Tabela CDV

INFORMACOES ADICIONAIS DA APUR
19camposNome físicoCDV010(empresa 01)

Campos da tabela CDV

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

19
CampoDescrição
CDV_FILIAL
Caractere (C)(2)
Filial
CDV_PERIOD
Caractere (C)(6)
Per(AAAAMM)
Máscara:
@!
Validação:
PerValido(M->CDV_PERIOD)
CDV_CODAJU
Caractere (C)(8)
Cod.Ajuste
Máscara:
@!
Consulta F3:
CDY
Validação:
existcpo('CDY')
CDV_DESCR
Caractere (C)(254)
Descricao
Máscara:
@!
CDV_DOC
Caractere (C)(9)
Numero NF
Máscara:
@!
CDV_VALOR
Numérico (N)(14,2)
Valor
Máscara:
@E 99,999,999,999.99
Validação:
Positivo()
CDV_SERIE
Caractere (C)(3)
Serie
Máscara:
!!!
CDV_CLIFOR
Caractere (C)(6)
Cli/For
Máscara:
@!
CDV_LOJA
Caractere (C)(2)
Loja
Máscara:
@!
CDV_LIVRO
Caractere (C)(1)
Nr. Livro
Máscara:
@!
Contexto:
Real
CDV_AUTO
Caractere (C)(1)
Apur.Auto
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12S")
3 valores possíveis
  • 1Calc.Sistema
  • 2Calc. Usuario
  • SApuracao
CDV_CFOP
Caractere (C)(5)
CFOP
Máscara:
@!
Contexto:
Real
Consulta F3:
13
Validação:
ExistCpo('SX5','13'+M->CDV_CFOP)
CDV_NUMITE
Caractere (C)(4)
Num. Item
Máscara:
@!
Contexto:
Real
CDV_SEQ
Caractere (C)(3)
Seq. Manut
Máscara:
@!
Contexto:
Real
CDV_SDOC
Caractere (C)(3)
Serie Doc.
Máscara:
!!!
Contexto:
Real
CDV_TPMOVI
Caractere (C)(1)
Tp movimento
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" ES")
2 valores possíveis
  • EEntrada
  • SSaida
CDV_ESPECI
Caractere (C)(5)
Espec. Doc.
Máscara:
@!
Contexto:
Real
Consulta F3:
42
Validação:
EXISTCPO("SX5","42"+M->CDV_ESPECI)
CDV_FORMUL
Caractere (C)(1)
Formul. Prop
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" SN")
2 valores possíveis
  • SSim
  • NNao
CDV_ID
Caractere (C)(36)
Chave
Máscara:
@!
Contexto:
Real
Validação:
FWUUID("FISA140")

SELECT de exemplo da tabela CDV

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
  CDV.CDV_FILIAL,
  CDV.CDV_PERIOD,
  CDV.CDV_CODAJU,
  CDV.CDV_DESCR,
  CDV.CDV_DOC,
  CDV.CDV_VALOR,
  CDV.CDV_SERIE,
  CDV.CDV_CLIFOR
FROM CDV010 CDV
WHERE CDV.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.