Tabela V0C

Inf. Bases e Trib. consolidado
20camposNome físicoV0C010(empresa 01)

Campos da tabela V0C

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

20
CampoDescrição
V0C_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
V0C_ID
Caractere (C)(36)
ID
Máscara:
@!
Contexto:
Real
V0C_VERSAO
Caractere (C)(14)
Id Ver Reg
Máscara:
@!
Contexto:
Real
V0C_PERAPU
Caractere (C)(6)
Per Apuracao
Máscara:
@R 99-9999
Contexto:
Real
Validação:
XFUNVldUni("V0C",2,M->V0C_PERAPU+FWFLDGET("V0C_CODRET")+ '1')
V0C_CODRET
Caractere (C)(6)
Codigo Ret
Máscara:
@!
Contexto:
Real
Validação:
XFUNVldUni("V0C",2,FWFLDGET("V0C_PERAPU")+M->V0C_CODRET+ '1')
V0C_DESCRE
Memo (M)(10)
Desc Retorno
Máscara:
@!
Contexto:
Real
V0C_DSCRET
Caractere (C)(254)
Desc Retorno
Máscara:
@!
Contexto:
Virtual (não existe no banco)
V0C_PROTEN
Caractere (C)(49)
Prot Entrega
Máscara:
@!
Contexto:
Real
V0C_DTPROC
Data (D)(8)
Data Proc
Contexto:
Real
V0C_HRPROC
Caractere (C)(4)
Hora Proc
Máscara:
@R 99:99
Contexto:
Real
V0C_TPEVT
Caractere (C)(6)
Tipo Evento
Máscara:
@!
Contexto:
Real
V0C_IDEVT
Caractere (C)(36)
Id Evento
Máscara:
@!
Contexto:
Real
V0C_HASH
Caractere (C)(60)
Hash
Máscara:
@!
Contexto:
Real
V0C_VERANT
Caractere (C)(14)
Ver Ant Reg
Máscara:
@!
Contexto:
Real
V0C_STATUS
Caractere (C)(1)
Status Reg
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 0123467")
7 valores possíveis
  • 0Reg Valido
  • 1Reg Invalido
  • 2Reg Trans
  • 3Reg Trans Inconsistencia
  • 4Reg Trans Sucesso
  • 6Exclusao Trans
  • 7Exclusao Trans Sucesso
V0C_PROTUL
Caractere (C)(52)
Recibo
Máscara:
@!
Contexto:
Real
V0C_PROTPN
Caractere (C)(52)
Recibo Ant
Máscara:
@!
Contexto:
Real
V0C_EVENTO
Caractere (C)(1)
Id Evento
Máscara:
@!
Contexto:
Real
Validação:
Pertence("IAE")
3 valores possíveis
  • IInclusao
  • AAlteracao
  • EExclusao
V0C_ATIVO
Caractere (C)(1)
Reg Ativo
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
V0C_LEIAUT
Caractere (C)(8)
Versao Reinf
Máscara:
@!
Contexto:
Real

SELECT de exemplo da tabela V0C

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
  V0C.V0C_FILIAL,
  V0C.V0C_ID,
  V0C.V0C_VERSAO,
  V0C.V0C_PERAPU,
  V0C.V0C_CODRET,
  V0C.V0C_DESCRE,
  V0C.V0C_PROTEN,
  V0C.V0C_DTPROC
FROM V0C010 V0C
WHERE V0C.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.