Tabela BVS

DIOPS Segr. Mont. Contr. Repas
15camposNome físicoBVS010(empresa 01)

Campos da tabela BVS

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

15
CampoDescrição
BVS_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
BVS_CODOPE
Caractere (C)(6)
Operadora
Máscara:
999999
Contexto:
Real
BVS_CODOBR
Caractere (C)(3)
Obrigacao
Contexto:
Real
BVS_REFERE
Caractere (C)(2)
Trim Refere
Contexto:
Real
BVS_ANOCMP
Caractere (C)(4)
Ano Compro
Contexto:
Real
BVS_CDCOMP
Caractere (C)(3)
Cod Compro
Contexto:
Real
BVS_CODIGO
Caractere (C)(1)
Cod Oper Adm
Contexto:
Real
Validação:
Pertence('12347')
5 valores possíveis
  • 1Venc <=30 dias
  • 2Venc >30 <=60 dias
  • 3Venc >60 <= 90 dias
  • 4Venc > 90 dias
  • 7A Vencer
BVS_VLMES3
Numérico (N)(16,2)
Vlr Mes 3
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
BVS_VLMES2
Numérico (N)(16,2)
Vlr Mes 2
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
BVS_VLMES1
Numérico (N)(16,2)
Vlr Mes 1
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
BVS_STATUS
Caractere (C)(1)
Status
Contexto:
Real
3 valores possíveis
  • 1Valid Pdte
  • 2Valido
  • 3Invalido
BVS_DTINVL
Data (D)(8)
Dt. Ini. Val
Contexto:
Real
BVS_HRINVL
Caractere (C)(8)
Hr. Ini. Val
Contexto:
Real
BVS_DTTEVL
Data (D)(8)
Dt. Ter. Val
Contexto:
Real
BVS_HRTEVL
Caractere (C)(8)
Hr. Ter. Val
Contexto:
Real

SELECT de exemplo da tabela BVS

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
  BVS.BVS_FILIAL,
  BVS.BVS_CODOPE,
  BVS.BVS_CODOBR,
  BVS.BVS_REFERE,
  BVS.BVS_ANOCMP,
  BVS.BVS_CDCOMP,
  BVS.BVS_CODIGO,
  BVS.BVS_VLMES3
FROM BVS010 BVS
WHERE BVS.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.