Procedimentos Não Autorizados
A tabela BBN faz parte do sistema ERP Protheus da TOTVS e é utilizada para procedimentos não autorizados.
Ela pertence ao dicionário de dados do Protheus (SX2) e armazena informações essenciais utilizadas em processos como cadastros, movimentações e integrações do sistema.
A tabela BBN possui diversos campos (SX3), cada um com regras específicas como tipo, tamanho e validações, além de índices (SIX) que otimizam a performance das consultas.
Nesta página você pode consultar a estrutura completa da tabela BBN, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | BBN |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | BBN990 |
| X2_NOME | Procedimentos Não Autorizados |
| X2_NOMESPA | Procedimientos No Autorizados |
| X2_NOMEENG | Unauthorized procedures |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | - |
| X2_PYME | N |
| X2_MODULO | 33 |
| X2_DISPLAY | - |
| X2_SYSOBJ | - |
| X2_USROBJ | - |
| X2_POSLGT | 1 |
| X2_CLOB | 2 |
| X2_AUTREC | 2 |
| X2_TAMFIL | 2 |
| X2_TAMUN | 0 |
| X2_TAMEMP | 0 |
| X2_STAMP | 2 |
| X2_INSDT | 2 |
| D_E_L_E_T_ | - |
| R_E_C_N_O_ | 991 |
| R_E_C_D_E_L_ | 0 |
| X3_ARQUIVO | X3_ORDEM | X3_CAMPO | X3_TIPO | X3_TAMANHO | X3_DECIMAL | X3_TITULO | X3_TITSPA | X3_TITENG | X3_DESCRIC | X3_DESCSPA | X3_DESCENG | X3_PICTURE | X3_VALID | X3_USADO | X3_RELACAO | X3_F3 | X3_NIVEL | X3_RESERV | X3_CHECK | X3_TRIGGER | X3_PROPRI | X3_BROWSE | X3_VISUAL | X3_CONTEXT | X3_OBRIGAT | X3_VLDUSER | X3_CBOX | X3_CBOXSPA | X3_CBOXENG | X3_PICTVAR | X3_WHEN | X3_INIBRW | X3_GRPSXG | X3_FOLDER | X3_PYME | X3_CONDSQL | X3_CHKSQL | X3_IDXSRV | X3_ORTOGRA | X3_IDXFLD | X3_TELA | X3_PICBRV | X3_AGRUP | X3_POSLGT | X3_MODAL | X3_CHKSUM | X3_ADDSUM | D_E_L_E_T_ | R_E_C_N_O_ | R_E_C_D_E_L_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BBN | 01 | BBN_FILIAL | C | 2 | 0 | Filial | Sucursal | Branch | Filial do Sistema | Sucursal del Sistema | System Branch | - | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 15124 | 0 |
| BBN | 02 | BBN_CODIGO | C | 6 | 0 | Codigo | Codigo | Code | Codigo do Credenciado | Codigo del Autorizado | Accredited provider code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 15125 | 0 |
| BBN | 03 | BBN_CODPSA | C | 16 | 0 | Cod Tab Pad. | Cod Tab Est. | StndrTbCode | Cod. Tabela Padrao | Cod. Tabla Estandar | Standard table code | @! | PLSVldBBN() | x x x x x x x x x x x x x x x x | - | B80PLS | 1 | xxx | - | S | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 15126 | 0 |
| BBN | 04 | BBN_DESPSA | C | 40 | 0 | Descr.Tb.Pad | Descr.Tb.Est | StndrdTbDscr | Des. Tabela Padrao | Des.Tabla Estandar | Descr. of Standard Table | @! | - | x x x x x x x x x x x x x x x x | If(Inclui .Or. Empty(BBN->BBN_CODPAD),"",Posicione("BR8",1,xFilial("BR8")+BBN->BBN_CODPAD+BBN->BBN_CODPSA,"BR8_DESCRI")) | - | 1 | xx x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("BR8",1,xFilial("BR8")+BBN->BBN_CODPAD+BBN->BBN_CODPSA,"BR8_DESCRI") | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 15127 | 0 |
| BBN | 05 | BBN_CODPAD | C | 2 | 0 | Cod Tipo Tab | Cod Tipo Tab | TableTpCode | Cod. Tipo Tabela | Cod. Tipo Tabela | Table type code | @! | ExistCpo("BR4") | x x x x x x x x x x x x x x x x | GETMV("MV_PLSTBPD") | B41PLS | 1 | xxx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 15128 | 0 |
| BBN | 06 | BBN_NIVEL | C | 1 | 0 | Nivel | Nivel | Level | Nivel | Nivel | Level | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | - | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 15129 | 0 |
| BBN | 07 | BBN_CODINT | C | 4 | 0 | Operadora | Operadora | Operator | Operadora | Operadora | Operator | @R !.!!! | - | x x x x x x x x x x x x x x x x | cCodInt | - | 1 | xxx | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 15130 | 0 |
| BBN | 08 | BBN_CODLOC | C | 3 | 0 | Localidade | Localidad | Location | Localidade | Localidad | Location | - | - | x x x x x x x x x x x x x x x x | cCodLoc | - | 1 | xxx | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 15131 | 0 |
| BBN | 09 | BBN_CODESP | C | 3 | 0 | Cod. Espec. | Cod. Espec. | Special.Code | Codigo Especialidade | Codigo Especialidad | Specialty code | @! | - | x x x x x x x x x x x x x x x x | cCodEsp | - | 1 | xxx | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 15132 | 0 |
| BBN | 10 | BBN_CDNV01 | C | 6 | 0 | Cd Niv 01 | Cd Niv 01 | Cd Lev 01 | Cd Nivel 01 | Cd Nivel 01 | Cd Level 01 | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | - | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 15133 | 0 |
| BBN | 11 | BBN_CDNV02 | C | 6 | 0 | Cd Niv 02 | Cd Niv 02 | Cd Lev 02 | Cd Nivel 02 | Cd Nivel 02 | Cd Level 02 | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | - | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 15134 | 0 |
| BBN | 12 | BBN_CDNV03 | C | 6 | 0 | Cd Niv 03 | Cd Niv 03 | Cd Lev 03 | Cd Nivel 03 | Cd Nivel 03 | Cd Level 03 | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | - | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 15135 | 0 |
| BBN | 13 | BBN_CDNV04 | C | 6 | 0 | Cd Niv 04 | Cd Niv 04 | Cd Lev 04 | Cd Nivel 04 | Cd Nivel 04 | Cd Level 04 | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | - | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 15136 | 0 |
| BBN | 14 | BBN_CODSUB | C | 3 | 0 | Cod.Sub-Esp. | Cod.Subesp. | Sub-sp. Code | Codigo Sub-Especialidade | Codigo Subespecialidad | Sub-specialization code | @! | - | x x x x x x x x x x x x x x x x | cCodSub | - | 1 | xxxxxx x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 15137 | 0 |
| BBN | 15 | BBN_AOINT | C | 1 | 0 | Integrado ? | Integrado | Integrated ? | Integrado com GRC? | Integrado con GRC | Integrated with GRC? | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 15138 | 0 |
| BBN | 16 | BBN_ACAO | C | 1 | 0 | Acao integra | Accion integ | Integ.Action | Acao realizada na integ | Accion realizada integr. | Action executed in integ. | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 15139 | 0 |
| BBN | 17 | BBN_DTINT | C | 20 | 0 | Dt Integra | Fc Integra | Integ. Dt | Data da integracao | Fecha de Integracion | Integration date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 15140 | 0 |
| INDICE | ORDEM | CHAVE | DESCRICAO | DESCSPA | DESCENG | PROPRI | F3 | NICKNAME | SHOWPESQ | IX_VIRTUAL | IX_VIRCUST | D_E_L_E_T_ | R_E_C_N_O_ | R_E_C_D_E_L_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BBN | 1 | BBN_FILIAL+BBN_CODIGO+BBN_CODINT+BBN_CODLOC+BBN_CODESP+BBN_CODPAD+BBN_CODPSA+BBN_NIVEL | Codigo + Operadora + Localidade + Cod. Espec. + Cod Tipo Tab + Cod Tab | Codigo + Operadora + Localidad + Cod. Espec. + Cod Tipo Tab + Cod Tab | Code + Operator + Location + Special.Code + TableTpCode + StndrTbCode | S | - | - | S | 2 | 3 | - | 2286 | 0 |
| BBN | 2 | BBN_FILIAL+BBN_CODIGO+BBN_CODINT+BBN_CODLOC+BBN_CODESP+BBN_CDNV01+BBN_NIVEL | Codigo + Operadora + Localidade + Cod. Espec. + Cd Niv 01 + Nivel | Codigo + Operadora + Localidad + Cod. Espec. + Cd Niv 01 + Nivel | Code + Operator + Location + Special.Code + Cd Lev 01 + Level | S | - | - | S | 2 | 3 | - | 2287 | 0 |
| BBN | 3 | BBN_FILIAL+BBN_CODIGO+BBN_CODINT+BBN_CODLOC+BBN_CODESP+BBN_CDNV02+BBN_NIVEL | Codigo + Operadora + Localidade + Cod. Espec. + Cd Niv 02 + Nivel | Codigo + Operadora + Localidad + Cod. Espec. + Cd Niv 02 + Nivel | Code + Operator + Location + Special.Code + Cd Lev 02 + Level | S | - | - | S | 2 | 3 | - | 2288 | 0 |
| BBN | 4 | BBN_FILIAL+BBN_CODIGO+BBN_CODINT+BBN_CODLOC+BBN_CODESP+BBN_CDNV03+BBN_NIVEL | Codigo + Operadora + Localidade + Cod. Espec. + Cd Niv 03 + Nivel | Codigo + Operadora + Localidad + Cod. Espec. + Cd Niv 03 + Nivel | Code + Operator + Location + Special.Code + Cd Lev 03 + Level | S | - | - | S | 2 | 3 | - | 2289 | 0 |
| BBN | 5 | BBN_FILIAL+BBN_CODIGO+BBN_CODINT+BBN_CODLOC+BBN_CODESP+BBN_CDNV04+BBN_NIVEL | Codigo + Operadora + Localidade + Cod. Espec. + Cd Niv 04 + Nivel | Codigo + Operadora + Localidad + Cod. Espec. + Cd Niv 04 + Nivel | Code + Operator + Location + Special.Code + Cd Lev 04 + Level | S | - | - | S | 2 | 3 | - | 2290 | 0 |
Ela é utilizada para procedimentos não autorizados dentro do sistema ERP Protheus.
Nesta página você pode visualizar todos os campos, incluindo tipo, tamanho e validações.
Os índices são estruturas que melhoram a performance de busca e acesso aos dados dentro do Protheus.
Modelo de query gerado automaticamente com base na estrutura da tabela.
SELECT
BBN_FILIAL,
BBN_CODIGO,
BBN_CODPSA,
BBN_DESPSA,
BBN_CODPAD,
BBN_NIVEL,
BBN_CODINT,
BBN_CODLOC,
BBN_CODESP,
BBN_CDNV01,
BBN_CDNV02,
BBN_CDNV03,
BBN_CDNV04,
BBN_CODSUB,
BBN_AOINT,
BBN_ACAO,
BBN_DTINT
FROM BBN
WHERE
D_E_L_E_T_ = ' '
AND BBN_FILIAL = 'VALOR'
AND BBN_CODIGO = 'VALOR'
AND BBN_CODPSA = 'VALOR'
AND BBN_DESPSA = 'VALOR'
AND BBN_CODPAD = 'VALOR'
AND BBN_NIVEL = 'VALOR'
AND BBN_CODINT = 'VALOR'
AND BBN_CODLOC = 'VALOR'
AND BBN_CODESP = 'VALOR'
AND BBN_CDNV01 = 'VALOR'
AND BBN_CDNV02 = 'VALOR'
AND BBN_CDNV03 = 'VALOR'
AND BBN_CDNV04 = 'VALOR'
AND BBN_CODSUB = 'VALOR'
AND BBN_AOINT = 'VALOR'
AND BBN_ACAO = 'VALOR'
AND BBN_DTINT = 'VALOR'