Tabela B87

Procedimentos Incomp. X Face
23camposNome físicoB87010(empresa 01)

Campos da tabela B87

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

23
CampoDescrição
B87_CHVPAD
Caractere (C)(2)
Tp.Tab.
Máscara:
@!
Contexto:
Real
B87_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
B87_CHVREG
Caractere (C)(4)
Dente/Reg.
Máscara:
@!
Contexto:
Real
B87_FACE
Caractere (C)(5)
Face
Máscara:
@!
Contexto:
Real
B87_CHVPSA
Caractere (C)(16)
Cod.Tab.Pad.
Máscara:
@!
Contexto:
Real
B87_CODPAD
Caractere (C)(2)
Tp.Tab.
Máscara:
@!
Contexto:
Real
Consulta F3:
B41PLS
Validação:
PLSvld940()
B87_DESPAD
Caractere (C)(40)
Desc.Tipo
Máscara:
@!
Contexto:
Virtual (não existe no banco)
B87_CODPSA
Caractere (C)(16)
Cod. Proced.
Máscara:
@!
Contexto:
Real
Consulta F3:
B07PLS
Validação:
PLSVLD940()
B87_DESCRI
Caractere (C)(40)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
B87_DENREG
Caractere (C)(4)
Dente/Reg.
Máscara:
@!
Contexto:
Real
Consulta F3:
B05PLS
Validação:
PLSVLD940()
Modo de edição (When):
.F.
B87_DESREG
Caractere (C)(50)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
B87_FACINC
Caractere (C)(5)
Face Incomp.
Máscara:
@!
Contexto:
Real
Consulta F3:
B06PLS
Validação:
PLS940FAC()
B87_DESFCI
Caractere (C)(50)
Desc. Face
Máscara:
@!
Contexto:
Virtual (não existe no banco)
B87_QUANTI
Numérico (N)(3)
Quantidade
Máscara:
999
Contexto:
Real
Validação:
Positivo()
B87_UNIDAD
Caractere (C)(1)
Unidade
Máscara:
@!
Contexto:
Real
3 valores possíveis
  • 1Dias
  • 2Meses
  • 3Anos
B87_CONRDA
Caractere (C)(1)
Consid. RDA?
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 0Nao
  • 1Sim
B87_NIVEL
Caractere (C)(1)
Nivel
Máscara:
@!
Contexto:
Real
B87_CDNV01
Caractere (C)(6)
Cd.Niv.01
Máscara:
@!
Contexto:
Real
B87_CDNV02
Caractere (C)(6)
Cd.Niv.02
Máscara:
@!
Contexto:
Real
B87_CDNV03
Caractere (C)(6)
Cd.Niv.03
Máscara:
@!
Contexto:
Real
B87_CDNV04
Caractere (C)(6)
Cd.Niv.04
Máscara:
@!
Contexto:
Real
B87_EXCETO
Numérico (N)(4)
Exceto
Máscara:
@E 9,999
Contexto:
Real
B87_PERIOD
Caractere (C)(1)
Periodo
Máscara:
@!
Contexto:
Real
Validação:
Pertence('012')
3 valores possíveis
  • 0Dia(s)
  • 1Mes(es)
  • 2Ano(s)

SELECT de exemplo da tabela B87

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
  B87.B87_CHVPAD,
  B87.B87_FILIAL,
  B87.B87_CHVREG,
  B87.B87_FACE,
  B87.B87_CHVPSA,
  B87.B87_CODPAD,
  B87.B87_CODPSA,
  B87.B87_DENREG
FROM B87010 B87
WHERE B87.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.