Folder Opcionais
A tabela BF1 faz parte do sistema ERP Protheus da TOTVS e é utilizada para folder opcionais.
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 BF1 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 BF1, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | BF1 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | BF1990 |
| X2_NOME | Folder Opcionais |
| X2_NOMESPA | Folder Opcional |
| X2_NOMEENG | Optional Folder |
| 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_ | 1110 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BF1 | 01 | BF1_FILIAL | C | 2 | 0 | Filial | Sucursal | Branch | Filial | Sucursal | Branch | - | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18597 | 0 |
| BF1 | 02 | BF1_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 | M->BA3_CODINT | - | 1 | x | - | - | - | - | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18598 | 0 |
| BF1 | 03 | BF1_CODEMP | C | 4 | 0 | Cod. Empresa | Cod. Empresa | Company Code | Codigo Empresa | Codigo Empresa | Company Code | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18599 | 0 |
| BF1 | 04 | BF1_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 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18600 | 0 |
| BF1 | 05 | BF1_CODPRO | C | 4 | 0 | Cd. Opcional | Cod Opcional | Option code | Codigo Opcional | Codigo Opcional | Option code | @! !!!! | PLSA260Val(M->BF1_CODPRO) .And. PLSVLDCOL({"BF1_CODPRO","BF1_VERSAO"}) | x x x x x x x x x x x x x x x x | - | BFTPLS | 1 | xxxxxx x | - | S | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18601 | 0 |
| BF1 | 06 | BF1_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 | - | - | - | 18602 | 0 |
| BF1 | 07 | BF1_DESPRO | C | 30 | 0 | Ds. Opcional | Ds. Opcional | Opt.Desc. | Descricao Opcional | Descripcion Opcional | Optional Descript. | @C | - | x x x x x x x x x x x x x x x x | If(Inclui,"",Posicione("BI3",1,xFilial("BI3")+BF1->BF1_CODINT+BF1->BF1_CODPRO+BF1->BF1_VERSAO,"BI3_DESCRI")) | - | 1 | xxxxxx x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("BI3",1,xFilial("BI3")+BF1->BF1_CODINT+BF1->BF1_CODPRO,"BI3_DESCRI") | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18603 | 0 |
| BF1 | 08 | BF1_DATBAS | D | 8 | 0 | Data Base | Fecha Base | Base date | Data Base | Fecha Base | Base date | - | PLSVLDCOL({"BF1_CODPRO","BF1_VERSAO"}) .AND. PL260ChkOpc(1) | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18604 | 0 |
| BF1 | 09 | BF1_MOTBLO | C | 3 | 0 | Cod.Bloqueio | Cod.Bloqueo | Block code | Codigo Bloqueio | Codigo Bloqueo | Block code | @! | ExistCpo("BG1",M->BF1_MOTBLO,1) .And. PLSBLOAUT(M->BF1_MOTBLO,2) .And. PLSA260BFA() | x x x x x x x x x x x x x x x x | - | BG3PLS | 1 | xxxxxx x | - | S | - | - | - | R | - | - | - | - | - | - | oBrwOpc:nOpcx == 4 | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18605 | 0 |
| BF1 | 10 | BF1_DESBLO | C | 30 | 0 | Mot.Bloqueio | Mot.Bloqueo | Lock Reason | Descricao do Codigo do Bl | Descripcion Codigo de BI | BI Code Description | @! | - | x x x x x x x x x x x x x x x x | If(Inclui,"",Posicione("BG1",1,xFilial("BG1")+BF1->BF1_MOTBLO,"BG1_DESBLO")) | - | 1 | xxxxxx x | - | - | - | - | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18606 | 0 |
| BF1 | 11 | BF1_DATBLO | D | 8 | 0 | Dt. Bloqueio | Fch.Bloqueo | Block Date | Data Bloqueio | Fecha de Bloqueo | Block Date | @D | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | - | - | - | - | - | - | - | - | - | oBrwOpc:nOpcx == 4 | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18607 | 0 |
| BF1 | 12 | BF1_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 | - | - | - | 18608 | 0 |
| BF1 | 13 | BF1_A300 | C | 1 | 0 | Cons. EDI | Cons. EDI | Cons.EDI | Considera Exportacao EDI | Considera Exportacion EDI | Consider EDI Export | @! | Pertence("01") | x x x x x x x x x x x x x x x x | "0" | - | 1 | xxxxxx x | - | - | - | S | A | R | - | - | 1=Sim;0=Nao | 1=Sí;0=No | 1=Yes;0=No | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 18609 | 0 |
| BF1 | 14 | BF1_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 | - | - | - | 18610 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BF1 | 1 | BF1_FILIAL+BF1_CODINT+BF1_CODEMP+BF1_MATRIC+BF1_CODPRO | Operadora + Cod. Empresa + Matricula + Cd. Opcional | Operadora + Cod. Empresa + Matricula + Cod Opcional | Operator + Company Code + Registration + Option code | S | - | - | S | 2 | 3 | - | 2706 | 0 |
Ela é utilizada para folder opcionais 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
BF1_FILIAL,
BF1_CODINT,
BF1_CODEMP,
BF1_MATRIC,
BF1_CODPRO,
BF1_VERSAO,
BF1_DESPRO,
BF1_DATBAS,
BF1_MOTBLO,
BF1_DESBLO,
BF1_DATBLO,
BF1_RGIMP,
BF1_A300,
BF1_TIPVIN
FROM BF1
WHERE
D_E_L_E_T_ = ' '
AND BF1_FILIAL = 'VALOR'
AND BF1_CODINT = 'VALOR'
AND BF1_CODEMP = 'VALOR'
AND BF1_MATRIC = 'VALOR'
AND BF1_CODPRO = 'VALOR'
AND BF1_VERSAO = 'VALOR'
AND BF1_DESPRO = 'VALOR'
AND BF1_DATBAS BETWEEN '20260501' AND '20260531'
AND BF1_MOTBLO = 'VALOR'
AND BF1_DESBLO = 'VALOR'
AND BF1_DATBLO BETWEEN '20260501' AND '20260531'
AND BF1_RGIMP = 'VALOR'
AND BF1_A300 = 'VALOR'
AND BF1_TIPVIN = 'VALOR'