Tabela B9Y

CADASTRO PROSPECT
31camposNome físicoB9Y010(empresa 01)

Campos da tabela B9Y

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

31
CampoDescrição
B9Y_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
B9Y_CODIGO
Caractere (C)(6)
Codigo
Máscara:
@!
Contexto:
Real
B9Y_CARTEI
Caractere (C)(21)
Carteirinha
Máscara:
@R 9999.9999.999999.99-9
Contexto:
Real
Validação:
PLSA809CAR(M->B9Y_CARTEI)
B9Y_NOMBEN
Caractere (C)(50)
Nome Benef.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
B9Y_NOME
Caractere (C)(50)
Nome
Máscara:
@!
Contexto:
Real
B9Y_CPFCGC
Caractere (C)(14)
CPF/CNPJ
Máscara:
@!
Contexto:
Real
B9Y_EMAIL
Caractere (C)(50)
E-mail
Máscara:
@!
Contexto:
Real
Validação:
ISEMAIL(ALLTRIM(M->B9Y_EMAIL))
B9Y_TEL
Caractere (C)(11)
Telefone
Máscara:
@R (99) 99999-9999
Contexto:
Real
B9Y_CRMNUM
Caractere (C)(15)
Numero CRM
Máscara:
999999999999999
Contexto:
Real
B9Y_CRMEST
Caractere (C)(2)
Estado CRM
Máscara:
@!
Contexto:
Real
Consulta F3:
12
Validação:
ExistCpo("SX5","12"+M->B9Y_CRMEST)
B9Y_TIPOAT
Caractere (C)(1)
Tipo Atend.
Máscara:
@!
Contexto:
Real
3 valores possíveis
  • 1Saude Ocupacional
  • 2Assistencial
  • 3Ambos
B9Y_RAZSOC
Caractere (C)(30)
Razao Social
Máscara:
@!
Contexto:
Real
B9Y_NASCTO
Data (D)(8)
Data Nasc.
Contexto:
Real
Validação:
M->B9Y_NASCTO < dDataBase
B9Y_NATU
Caractere (C)(7)
Naturalidade
Máscara:
@!
Contexto:
Real
Consulta F3:
B57PLS
Validação:
ExistCpo("BID",M->B9Y_NATU)
B9Y_ECIVIL
Caractere (C)(1)
Est. Civil
Máscara:
@!
Contexto:
Real
Consulta F3:
33
Validação:
ExistCpo("SX5","33"+M->B9Y_ECIVIL)
B9Y_OBS
Memo (M)(10)
Observacao
Contexto:
Real
B9Y_FCAPTA
Caractere (C)(1)
Captacao
Máscara:
@!
Contexto:
Real
4 valores possíveis
  • 1Prestador Portal
  • 2Indicacao CallCenter
  • 3Indicacao Portal
  • 4Operadora
B9Y_STCRED
Caractere (C)(1)
Status
Máscara:
@!
Contexto:
Real
4 valores possíveis
  • 1Pendente com a Operadora
  • 2Pendente com o Prestador
  • 3Credenciado
  • 4Indeferido
B9Y_PCRED
Caractere (C)(55)
Passo Atual
Máscara:
@!
Contexto:
Real
B9Y_NROPRO
Caractere (C)(12)
Num Protocol
Máscara:
@R 9999-999999
Contexto:
Real
B9Y_CODINT
Caractere (C)(4)
Cd Operadora
Máscara:
@!
Contexto:
Real
B9Y_DATAIN
Data (D)(8)
Dt Insercao
Contexto:
Real
B9Y_DESINT
Caractere (C)(15)
Desc Ope
Máscara:
@!
Contexto:
Virtual (não existe no banco)
B9Y_ROTINA
Caractere (C)(1)
Flag Rotina
Máscara:
@!
Contexto:
Real
B9Y_CODRDA
Caractere (C)(6)
Cod RDA
Máscara:
@!
Contexto:
Real
B9Y_SOINDI
Lógico (L)(1)
So indicacao
Contexto:
Real
B9Y_PREREF
Caractere (C)(1)
Prest Refer?
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 0Nao
  • 1Sim
B9Y_SEXO
Caractere (C)(1)
Sexo
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 1Feminino
  • 2Masculino
B9Y_LOGIN
Caractere (C)(20)
Login
Contexto:
Real
B9Y_SENHA
Caractere (C)(20)
Senha
Contexto:
Real
B9Y_CODOBS
Caractere (C)(3)
Cod.Obs.
Máscara:
@!
Contexto:
Real
Consulta F3:
B9PB9N

SELECT de exemplo da tabela B9Y

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
  B9Y.B9Y_FILIAL,
  B9Y.B9Y_CODIGO,
  B9Y.B9Y_CARTEI,
  B9Y.B9Y_NOME,
  B9Y.B9Y_CPFCGC,
  B9Y.B9Y_EMAIL,
  B9Y.B9Y_TEL,
  B9Y.B9Y_CRMNUM
FROM B9Y010 B9Y
WHERE B9Y.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.