Tabela B3L

SIP EVENTOS X DESPESAS
40camposNome físicoB3L010(empresa 01)

Campos da tabela B3L

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

40
CampoDescrição
B3L_FILIAL
Caractere (C)(2)
Filial
B3L_CODOPE
Caractere (C)(6)
Operadora
Máscara:
@!
Contexto:
Real
B3L_CODOBR
Caractere (C)(3)
Obrigacao
Máscara:
@!
Contexto:
Real
B3L_ANOCMP
Caractere (C)(4)
Ano Compro.
Máscara:
@!
Contexto:
Real
B3L_CDCOMP
Caractere (C)(3)
Cod. Compro.
Máscara:
@!
Contexto:
Real
B3L_MATRIC
Caractere (C)(18)
Matricula
Máscara:
@!
Contexto:
Real
B3L_EVEDES
Caractere (C)(46)
Chv. Eve Des
Máscara:
@!
Contexto:
Real
B3L_TRIREC
Caractere (C)(6)
Trim. Recon.
Máscara:
999999
Contexto:
Real
B3L_TRIOCO
Caractere (C)(6)
Trim. Ocorr.
Máscara:
999999
Contexto:
Real
B3L_UF
Caractere (C)(2)
Estado
Máscara:
@!
Contexto:
Real
B3L_CDTPTB
Caractere (C)(2)
Cd.Tp.Tabela
Máscara:
99
Contexto:
Real
B3L_CODEVE
Caractere (C)(16)
Cod. Evento
Máscara:
@!
Contexto:
Real
B3L_DATEVE
Data (D)(8)
Dt. Evento
Contexto:
Real
B3L_QTDEVE
Numérico (N)(12,4)
Qtde. Realiz
Máscara:
@E 9,999,999.9999
Contexto:
Real
B3L_VLREVE
Numérico (N)(16,2)
Vlr. Evento
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
B3L_CLAAMB
Caractere (C)(7)
Clas. Ambul.
Contexto:
Real
B3L_CLAINT
Caractere (C)(7)
Clas. Inter.
Contexto:
Real
B3L_GRPINT
Caractere (C)(1)
Grp. Intern.
Máscara:
@!
Contexto:
Real
5 valores possíveis
  • 1Clinica
  • 2Cirurgica
  • 3Obstetrica
  • 4Pediatrica
  • 5Pisquiatrica
B3L_REGINT
Caractere (C)(1)
Reg. Intern.
Máscara:
@!
Contexto:
Real
B3L_CID
Caractere (C)(8)
CID
Máscara:
@!
Contexto:
Real
B3L_STATUS
Caractere (C)(1)
Status
Máscara:
@!
Contexto:
Real
3 valores possíveis
  • 1Valid Pdte
  • 2Valido
  • 3Invalido
B3L_DTINVL
Data (D)(8)
Dt. Ini. Val
Contexto:
Real
B3L_HRINVL
Caractere (C)(8)
Hr. Ini. Val
Máscara:
@!
Contexto:
Real
B3L_DTTEVL
Data (D)(8)
Dt. Ter. Val
Contexto:
Real
B3L_HRTEVL
Caractere (C)(8)
Hr. Ter. Val
Máscara:
@!
Contexto:
Real
B3L_DTINSI
Data (D)(8)
Dt. Ini. Sin
Contexto:
Real
B3L_HRINSI
Caractere (C)(8)
Hr. Ini. Sin
Máscara:
@!
Contexto:
Real
B3L_DTTESI
Data (D)(8)
Dt. Ter. Sin
Contexto:
Real
B3L_HRTESI
Caractere (C)(8)
Hr. Ter. Sin
Máscara:
@!
Contexto:
Real
B3L_DATINT
Data (D)(8)
Dt. Interma.
Contexto:
Real
B3L_HORINT
Caractere (C)(8)
Hr. interna.
Máscara:
@!
Contexto:
Real
B3L_DATALT
Data (D)(8)
Dt. alta
Contexto:
Real
B3L_HORALT
Caractere (C)(8)
Hr. alta
Contexto:
Real
B3L_DENREG
Caractere (C)(4)
Den. Reg.
Contexto:
Real
B3L_FORCON
Caractere (C)(1)
For. Con.
Contexto:
Real
3 valores possíveis
  • 1Individual/Familiar
  • 2Coletivo Empresarial
  • 3Coletivo por Adesao
B3L_SEGMEN
Caractere (C)(1)
Segmentacao
Máscara:
@!
Contexto:
Real
4 valores possíveis
  • 1Ambulatorial
  • 2Hospitalar
  • 3Hospitalar obstetrico
  • 4Odontologico
B3L_EVDEIN
Caractere (C)(46)
Chv. Interna
Contexto:
Real
B3L_NASVIV
Numérico (N)(2)
Qtd Nas Vivo
Máscara:
99
Contexto:
Real
B3L_LOGIN
Caractere (C)(25)
Login Usuari
Máscara:
@!
Contexto:
Real
B3L_EVDRES
Caractere (C)(24)
Chv. Resumo
Máscara:
@!
Contexto:
Real

SELECT de exemplo da tabela B3L

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
  B3L.B3L_FILIAL,
  B3L.B3L_CODOPE,
  B3L.B3L_CODOBR,
  B3L.B3L_ANOCMP,
  B3L.B3L_CDCOMP,
  B3L.B3L_MATRIC,
  B3L.B3L_EVEDES,
  B3L.B3L_TRIREC
FROM B3L010 B3L
WHERE B3L.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.