Tabela B8K

DIOPS – AGRUPAMENTO CONTRATOS
16camposNome físicoB8K010(empresa 01)

Campos da tabela B8K

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

16
CampoDescrição
B8K_FILIAL
Caractere (C)(2)
Filial
B8K_CODOPE
Caractere (C)(6)
Operadora
Contexto:
Real
B8K_CODOBR
Caractere (C)(3)
Obrigacao
Contexto:
Real
B8K_REFERE
Caractere (C)(2)
Trim Refere
Contexto:
Real
B8K_ANOCMP
Caractere (C)(4)
Ano Compro
Contexto:
Real
B8K_CDCOMP
Caractere (C)(3)
Cod Comprom
Contexto:
Real
B8K_TIPO
Caractere (C)(1)
Pool de Risc
Máscara:
@!
Contexto:
Real
Validação:
Pertence('12')
2 valores possíveis
  • 1Pool de Risco
  • 2Demais Contratos
B8K_PLACE
Numérico (N)(16,2)
Cont.Emi.PLA
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
B8K_PLAEV
Numérico (N)(16,2)
Eve.Con.PLA
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
B8K_PCECE
Numérico (N)(16,2)
Cont.Em.PCE
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
B8K_PCEEV
Numérico (N)(16,2)
Ev.Conh.PCE
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
B8K_DTINVL
Data (D)(8)
Dt. Ini. Val
Contexto:
Real
B8K_HRINVL
Caractere (C)(8)
Hr. Ini. Val
Contexto:
Real
B8K_DTTEVL
Data (D)(8)
Dt. Ter. Val
Contexto:
Real
B8K_HRTEVL
Caractere (C)(8)
Hr. Ter. Val
Contexto:
Real
B8K_STATUS
Caractere (C)(1)
Status
Contexto:
Real
3 valores possíveis
  • 1Valid Pdte
  • 2Valido
  • 3Invalido

SELECT de exemplo da tabela B8K

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
  B8K.B8K_FILIAL,
  B8K.B8K_CODOPE,
  B8K.B8K_CODOBR,
  B8K.B8K_REFERE,
  B8K.B8K_ANOCMP,
  B8K.B8K_CDCOMP,
  B8K.B8K_TIPO,
  B8K.B8K_PLACE
FROM B8K010 B8K
WHERE B8K.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.