Opcionais dos Usuários
A tabela BF4 faz parte do sistema ERP Protheus da TOTVS e é utilizada para opcionais dos usuários.
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 BF4 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 BF4, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | BF4 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | BF4990 |
| X2_NOME | Opcionais dos Usuários |
| X2_NOMESPA | Opcionales de Usuarios |
| X2_NOMEENG | Users options |
| 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_ | 1113 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BF4 | 01 | BF4_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 | xxxxxx x | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18631 | 0 |
| BF4 | 02 | BF4_CODINT | C | 4 | 0 | Operadora | Operadora | Operator | Operadora | Operadora | Operator | @! | - | x x x x x x x x x x x x x x x x | Iif(Funname() == "PLSA124",PLSINTPAD(), M->BA3_CODINT) | - | 1 | xxxxxx x | - | - | - | - | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18632 | 0 |
| BF4 | 03 | BF4_MATRIC | C | 6 | 0 | Matricula | Matricula | Registration | Matricula | Matricula | Registration | - | - | x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18633 | 0 |
| BF4 | 04 | BF4_CODEMP | C | 4 | 0 | Grp/Empresa | Grp/Empresa | Grp/Company | Grp/Empresa | Grp/Empresa | Grp/Company | - | - | x x x x x x x x x x x x x x x x | BG9->BG9_CODIGO | - | 1 | xxxxxxxxx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 18634 | 0 |
| BF4 | 05 | BF4_CODPRO | C | 4 | 0 | Cd. Opcional | Cod Opcional | Option. code | Cod.Plano | Codigo del Plan | Plan code | - | PLSA260Val(M->BF4_CODPRO) .And. PLSVLDCOL({"BF4_CODPRO","BF4_VERSAO"}) | x x x x x x x x x x x x x x x x | - | BFTPLS | 1 | xxxxxxxxx | - | S | - | S | - | - | - | - | - | - | - | - | Iif(FUNNAME()== "PLSA174",PLWHENBF4(),PLWHENBF4Mvc()) | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 18635 | 0 |
| BF4 | 06 | BF4_VERSAO | C | 3 | 0 | Versao | Version | Version | Versao | Version | Version | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18636 | 0 |
| BF4 | 07 | BF4_DESPRO | C | 30 | 0 | Ds. Opcional | Ds. Opcional | Opt.Desc. | Descricao | Descripcion | Description | @! | - | x x x x x x x x x x x x x x x x | PL260IPAD("BF4_DESPRO","C") | - | 1 | xxxxxx x | - | - | - | S | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18637 | 0 |
| BF4 | 08 | BF4_TIPREG | C | 2 | 0 | Tp. Registro | Tp. Registro | Record Type | TipReg | TipReg | Record Type | - | - | x x x x x x x x x x x x x x x x | cTipReg | - | 1 | xxxxxx x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18638 | 0 |
| BF4 | 09 | BF4_DATBAS | D | 8 | 0 | Data Base | Fecha Base | Base date | Data Base | Fecha Base | Base date | - | PLSVLDCOL({"BF4_CODPRO","BF4_VERSAO"}) .AND. PL260ChkOpc(2) | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxxxx | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 18639 | 0 |
| BF4 | 10 | BF4_MOTBLO | C | 3 | 0 | Cod.Bloqueio | Cod.Bloqueo | Block code | Codigo Bloqueio | Codigo Bloqueo | Block code | @! | VAZIO() .OR. ExistCpo("BG3",M->BF4_MOTBLO,1) .AND. PLVLBLOPC() | x x x x x x x x x x x x x x x x | - | BG7PLS | 1 | xxxxxx x | - | S | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 18640 | 0 |
| BF4 | 11 | BF4_DESBLO | C | 30 | 0 | Mot.Bloqueio | Mot.Bloqueo | Block.reason | Motivo Bloqueio | Motivo Bloqueo | Reason for blocking | @! | - | x x x x x x x x x x x x x x x x | PL260IPAD("BF4_DESBLO","C") | - | 1 | xxxxxx x | - | - | - | - | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18641 | 0 |
| BF4 | 12 | BF4_DATBLO | D | 8 | 0 | Dt. Bloqueio | Fch.Bloqueo | Block Date | Data Bloqueio | Fecha de Bloqueo | Block Date | - | PLVLDTBLQ() | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | - | - | - | - | - | - | - | - | - | M->BF4_TIPBLO == "0" | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18642 | 0 |
| BF4 | 13 | BF4_RGIMP | C | 1 | 0 | Reg. Import. | Reg. Import. | Imported rec | Registro Importado | Registro Importado | Imported record | @! | - | x x x x x x x x x x x x x x x | "0" | - | 1 | - | - | - | - | - | - | - | - | - | 1=Sim;0=Nao | 1=Si;0=No | 1=Yes;0=No | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18643 | 0 |
| BF4 | 14 | BF4_CLAOPC | C | 1 | 0 | Classe Opc. | Clase Opc. | OptionalClss | Classe de Opcionais... | Clase de Opcionales... | Opcionals class | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | - | - | - | - | - | C=Ambulancia;H=Aero Medico;I=Coracao/P1;N=Farmacia;Z=Garantia Funeral | C=Ambulancia;H=Aero Medico;I=Coracion/P1;N=Farmacia;Z=Garantia Funeral | C=Ambulance;H=Aero doctor;I=Heart/P1;N=Pharmacy;Z=Funeral guarantee | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18644 | 0 |
| BF4 | 15 | BF4_A300 | C | 1 | 0 | Cons. EDI | Cons. EDI | Cons.EDI | Considera Exportacao EDI | Considera Exportacion EDI | Consider EDI Export | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | S | A | R | - | - | 1=Sim;0=Nao | 1=Sí;0=No | 1=Yes;2=No | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18645 | 0 |
| BF4 | 16 | BF4_TIPVIN | C | 1 | 0 | Vinculado? | ¿Vinculado? | Linked | Vinculado ? | ¿Vinculado ? | Linked | @! | - | x x x x x x x x x x x x x x x x | "0" | - | 1 | xxxxxx x | - | - | - | - | V | - | - | - | 1=Sim;0=Nao | 1=Si;0=No | 1=Yes;0=No | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18646 | 0 |
| BF4 | 17 | BF4_TIPBLO | C | 1 | 0 | Tipo Bloq. | Tipo Bloq. | Block.Type | Tipo do bloqueio. | Tipo de Bloqueo | Block. Type | @! | - | x x x x x x x x x x x x x x x x | PL260IPAD("BF4_TIPBLO","C") | - | 1 | xxxxxx x | - | - | - | S | V | V | - | - | 0=Bloqueio;1=Desbloqueio | 0=Bloqueo;1=Desbloqueo | 0=Block;1=Unblock | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18647 | 0 |
| BF4 | 18 | BF4_DATSOL | D | 8 | 0 | Data Solic. | Fecha Solic. | Req Date | Data solicitacao opcional | Fecha Solicitud Opcional | Optional Request Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 18648 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BF4 | 1 | BF4_FILIAL+BF4_CODINT+BF4_CODEMP+BF4_MATRIC+BF4_TIPREG+BF4_CODPRO | Operadora + Grp/Empresa + Matricula + Tp. Registro + Cd. Opcional | Operadora + Grp/Empresa + Matricula + Tp. Registro + Cod Opcional | Operator + Grp/Company + Registration + Record Type + Option. code | S | - | - | S | 2 | 3 | - | 2709 | 0 |
| BF4 | 2 | BF4_FILIAL+BF4_CODINT+BF4_CODEMP+BF4_MATRIC+BF4_CODPRO+BF4_VERSAO+BF4_TIPREG | Operadora + Grp/Empresa + Matricula + Cd. Opcional + Versao + Tp. Regi | Operadora + Grp/Empresa + Matricula + Cod Opcional + Version + Tp. Reg | Operator + Grp/Company + Registration + Option. code + Version + Recor | S | - | - | S | 2 | 3 | - | 2710 | 0 |
Ela é utilizada para opcionais dos usuários 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
BF4_FILIAL,
BF4_CODINT,
BF4_MATRIC,
BF4_CODEMP,
BF4_CODPRO,
BF4_VERSAO,
BF4_DESPRO,
BF4_TIPREG,
BF4_DATBAS,
BF4_MOTBLO,
BF4_DESBLO,
BF4_DATBLO,
BF4_RGIMP,
BF4_CLAOPC,
BF4_A300,
BF4_TIPVIN,
BF4_TIPBLO,
BF4_DATSOL
FROM BF4
WHERE
D_E_L_E_T_ = ' '
AND BF4_FILIAL = 'VALOR'
AND BF4_CODINT = 'VALOR'
AND BF4_MATRIC = 'VALOR'
AND BF4_CODEMP = 'VALOR'
AND BF4_CODPRO = 'VALOR'
AND BF4_VERSAO = 'VALOR'
AND BF4_DESPRO = 'VALOR'
AND BF4_TIPREG = 'VALOR'
AND BF4_DATBAS BETWEEN '20261001' AND '20261031'
AND BF4_MOTBLO = 'VALOR'
AND BF4_DESBLO = 'VALOR'
AND BF4_DATBLO BETWEEN '20261001' AND '20261031'
AND BF4_RGIMP = 'VALOR'
AND BF4_CLAOPC = 'VALOR'
AND BF4_A300 = 'VALOR'
AND BF4_TIPVIN = 'VALOR'
AND BF4_TIPBLO = 'VALOR'
AND BF4_DATSOL BETWEEN '20261001' AND '20261031'