Tabela BYL

SistDent x Período/Qtd
23camposNome físicoBYL010(empresa 01)

Campos da tabela BYL

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

23
CampoDescrição
BYL_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
BYL_CODIGO
Caractere (C)(4)
Codigo
Máscara:
@!
Contexto:
Real
Validação:
PLSVLDCOL({"BYL_CODIGO"})
BYL_TIPO
Caractere (C)(1)
Tipo
Máscara:
@!
Contexto:
Real
5 valores possíveis
  • 1Dente
  • 2Segmento
  • 3M-Arco
  • 4Supranumerario
  • 5Demais Areas
BYL_CODPAD
Caractere (C)(2)
Tp.Pad.Saude
Máscara:
@!
Contexto:
Real
BYL_CODPSA
Caractere (C)(16)
Cod.Tab.Pad.
Máscara:
@!
Contexto:
Real
BYL_QTD
Numérico (N)(4)
Qtd
Máscara:
9999
BYL_UNCA
Caractere (C)(1)
Unidade
Máscara:
@!
6 valores possíveis
  • 1por Hora
  • 2por Dia
  • 3por Mes
  • 4por Ano
  • 5por Vida
  • 6por Semana
BYL_PERIOD
Numérico (N)(4)
Periodo
Máscara:
9999
BYL_UNPERI
Caractere (C)(1)
Unidade
Máscara:
@!
5 valores possíveis
  • 1Horas
  • 2Dias
  • 3Meses
  • 4Anos
  • 5Vida
BYL_FACE
Caractere (C)(5)
Face
Máscara:
@!
Contexto:
Real
Consulta F3:
B09PLS
Validação:
PLS940FAC()
BYL_FACDE
Caractere (C)(1)
Face de
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12345") .AND. If(!Empty(M->BYL_FACATE),M->BYL_FACATE >= M->BYL_FACDE,.T.)
5 valores possíveis
  • 11 Face
  • 22 Faces
  • 33 Faces
  • 44 Faces
  • 55 Faces
BYL_FACATE
Caractere (C)(1)
Face Ate
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12345") .and. If(!Empty(M->BYL_FACDE),M->BYL_FACATE >= M->BYL_FACDE,.T.)
5 valores possíveis
  • 11 Face
  • 22 Faces
  • 33 Faces
  • 44 Faces
  • 55 Faces
BYL_QTDESP
Caractere (C)(1)
Especialid.
Máscara:
9999
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 0Nao
BYL_QTDMED
Caractere (C)(1)
Prestador
Máscara:
9999
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 0Nao
BYL_QTDPAT
Caractere (C)(1)
Patologia
Máscara:
9999
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 0Nao
BYL_PTRESP
Caractere (C)(1)
Especialid.
Máscara:
9999
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 0Nao
BYL_PTRMED
Caractere (C)(1)
Prestador
Máscara:
9999
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 0Nao
BYL_PTRPAT
Caractere (C)(1)
Patologia
Máscara:
9999
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 0Nao
BYL_DESFAC
Caractere (C)(50)
Descricao
Máscara:
@!
Contexto:
Real
BYL_INFORM
Caractere (C)(50)
Observacao
Máscara:
@!
Contexto:
Real
BYL_CONPER
Caractere (C)(1)
Cons. Perio?
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 0Nao
  • 1Sim
BYL_AUTORI
Caractere (C)(1)
Autorizacao
Máscara:
@!
Contexto:
Real
7 valores possíveis
  • 0Dispensa Autorizacao
  • 1Automatica
  • 2Guia Operadora
  • 3Auditoria
  • 4Guia Empresa
  • 5Guia Empresa/Operadora
  • 6Avalicao Contratual
BYL_DIFIDA
Caractere (C)(1)
Per Dif Idad
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 2Nao

SELECT de exemplo da tabela BYL

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
  BYL.BYL_FILIAL,
  BYL.BYL_CODIGO,
  BYL.BYL_TIPO,
  BYL.BYL_CODPAD,
  BYL.BYL_CODPSA,
  BYL.BYL_QTD,
  BYL.BYL_UNCA,
  BYL.BYL_PERIOD
FROM BYL010 BYL
WHERE BYL.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.