Tabela B8N

DIOPS REPRESENTANTES
21camposNome físicoB8N010(empresa 01)

Campos da tabela B8N

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

21
CampoDescrição
B8N_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
B8N_CODOPE
Caractere (C)(6)
N. Reg. ANS
Máscara:
@!
Contexto:
Real
Consulta F3:
BA0ANS
B8N_CPFREP
Caractere (C)(11)
CPF
Máscara:
@R 999.999.999-99
Contexto:
Real
B8N_NOMEDE
Caractere (C)(60)
Nome
Máscara:
@!
Contexto:
Real
B8N_NUMERG
Caractere (C)(12)
RG
Máscara:
@!
Contexto:
Real
B8N_DTEXRG
Data (D)(8)
Dt.Expedicao
Contexto:
Real
B8N_ORGEXP
Caractere (C)(20)
Org. Expedid
Máscara:
@!
Contexto:
Real
B8N_PAIS
Caractere (C)(3)
Pais
Máscara:
@!
Contexto:
Real
Consulta F3:
CENPAI
B8N_CARGO
Caractere (C)(3)
Cargo
Máscara:
@!
Contexto:
Real
Consulta F3:
CENCAR
B8N_DCARGO
Caractere (C)(50)
Desc. Cargo
Máscara:
@!
Contexto:
Virtual (não existe no banco)
B8N_CODDDI
Caractere (C)(2)
DDI
Máscara:
@!
Contexto:
Real
B8N_CODDDD
Caractere (C)(2)
DDD
Máscara:
99
Contexto:
Real
B8N_TELEFO
Caractere (C)(9)
Telefone
Máscara:
999999999
Contexto:
Real
B8N_RAMAL
Caractere (C)(9)
Ramal
Máscara:
999999999
B8N_NMLOGR
Caractere (C)(80)
Logradouro
Máscara:
@!
Contexto:
Real
B8N_NUMLOG
Caractere (C)(20)
Nº Logradour
Máscara:
@!
Contexto:
Real
B8N_COMPEN
Caractere (C)(20)
Complemento
Máscara:
@!
Contexto:
Real
B8N_BAIRRO
Caractere (C)(20)
Bairro
Máscara:
@!
Contexto:
Real
B8N_CDIBGE
Caractere (C)(6)
Cod. IBGE
Máscara:
999999
Contexto:
Real
B8N_SIGLUF
Caractere (C)(2)
Sigla UF
Máscara:
@!
Contexto:
Real
Consulta F3:
CENUF
B8N_CODCEP
Caractere (C)(9)
CEP
Máscara:
@R !!!!!-!!!
Contexto:
Real

SELECT de exemplo da tabela B8N

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
  B8N.B8N_FILIAL,
  B8N.B8N_CODOPE,
  B8N.B8N_CPFREP,
  B8N.B8N_NOMEDE,
  B8N.B8N_NUMERG,
  B8N.B8N_DTEXRG,
  B8N.B8N_ORGEXP,
  B8N.B8N_PAIS
FROM B8N010 B8N
WHERE B8N.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.