Ocorrencias do veiculo
A tabela VFB faz parte do sistema ERP Protheus da TOTVS e é utilizada para ocorrencias do veiculo.
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 VFB 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 VFB, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | VFB |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | VFB990 |
| X2_NOME | Ocorrencias do veiculo |
| X2_NOMESPA | Ocurrencias del vehiculo |
| X2_NOMEENG | Vehicle occurrences |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | - |
| X2_PYME | S |
| X2_MODULO | 14 |
| 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_ | 10412 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| VFB | 01 | VFB_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 | - | - | - | - | N | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169465 | 0 |
| VFB | 02 | VFB_CODCLI | C | 6 | 0 | Cod Cliente | Cod Cliente | Custom. Code | Codigo do Cliente | Codigo de Cliente | Customer Code | @! | FG_Seek("SA1","M->VFB_CODCLI",1,.f.) | x x x xx x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | 001 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169466 | 0 |
| VFB | 03 | VFB_LOJA | C | 2 | 0 | Loja | Tienda | Unit | Loja do Cliente | Negocio del Ciente | Customer Unit | @! | FG_Seek("SA1","M->VFB_CODCLI+M->VFB_LOJA",1,.f.,"VFB_NOMCLI","A1_NREDUZ") | x x x xx x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | 002 | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 169467 | 0 |
| VFB | 04 | VFB_NOMCLI | C | 20 | 0 | Nome | Nombre | Name | Nome Cliente | Nombre Cliente | Customer Name | @!S20 | - | x x x xx x x x x x x x x x x x x x | if(!Inclui,Posicione("SA1",1,xFilial("SA1")+VFB->VFB_CODCLI+VFB->VFB_LOJA,"A1_NREDUZ"),"") | - | 1 | x x x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("SA1",1,xFilial("SA1")+VFB->VFB_CODCLI+VFB->VFB_LOJA,"A1_NREDUZ") | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169468 | 0 |
| VFB | 05 | VFB_CHAINT | C | 6 | 0 | Chassi Inter | Chasis Inter | Intern Chass | Numero Interno do Chassi | Numero Interno de Chasis | Internal Number of Chassi | @!S6 | - | x x x xx x x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169469 | 0 |
| VFB | 06 | VFB_SERPEC | C | 1 | 0 | Serv / Peca | Serv / Pieza | Serv/Part | Servico / Peca | Servicio / Pieza | Service /Part | ! | - | x x x xx x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | S | V | - | - | - | S=Servico;P=Peca | S=Servicio;P=Pieza | S=Service;P=Part | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169470 | 0 |
| VFB | 07 | VFB_GRUITE | C | 4 | 0 | Grupo Item | Grupo Item | Item Group | Grupo do Item | Grupo de Item | Item Group | @! | FG_StrZero("M->VFB_GRUITE",3) .and. FG_Seek("SBM","M->VFB_GRUITE",1,.f.,"VFB_DESGRU","BM_DESC") | x x x xx x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | 162 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169471 | 0 |
| VFB | 08 | VFB_DESGRU | C | 30 | 0 | Descricao | Descripcion | Description | Descricao do Grupo | Descripcion del Grupo | Description of Group | @!S30 | - | x x x xx x x x x x x x x x x x x x | if(!Inclui,Posicione("SBM",1,xFilial("SBM")+VFB->VFB_GRUITE,"BM_DESC"),"") | - | 1 | x x x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("SBM",1,xFilial("SBM")+VFB->VFB_GRUITE,"BM_DESC") | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169472 | 0 |
| VFB | 09 | VFB_CODITE | C | 27 | 0 | Codigo Item | Cod Item | Item Code | Codigo do Item | Codigo de Item | Item Code | @!S27 | FG_Seek("SB1","M->VFB_GRUITE+M->VFB_CODITE",7,.f.,"VFB_DESITE","B1_DESC") | x x x xx x x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169473 | 0 |
| VFB | 10 | VFB_DESITE | C | 50 | 0 | Descricao | Descripcion | Description | Descricao do Item | Descripcion del Item | Description of Item | @! | - | x x x xx x x x x x x x x x x x x x | if(!Inclui,Posicione("SB1",7,xFilial("SB1")+VFB->VFB_GRUITE+VFB->VFB_CODITE,"B1_DESC"),"") | - | 1 | x x x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("SB1",7,xFilial("SB1")+VFB->VFB_GRUITE+VFB->VFB_CODITE,"B1_DESC") | 171 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169474 | 0 |
| VFB | 11 | VFB_CODSER | C | 15 | 0 | Cod Servico | Cod Servicio | Service Code | Codigo de Servico | Codigo de Servicio | Code of Service | @!S15 | - | x x x xx x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169475 | 0 |
| VFB | 12 | VFB_DESSER | C | 20 | 0 | Descricao | Descripcion | Description | Descricao do Servico | Descripcion del Servicio | Description of Service | @!S20 | - | x x x xx x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | S | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169476 | 0 |
| VFB | 13 | VFB_QTDAPL | N | 6 | 0 | Qtd Aplicada | Ctd Aplicada | Qty Applied | Quantidade Aplicada | Cantidad Aplicada | Quantity Applied | @E 999,999 | - | x x x xx x x x x x x x x x x x x x | - | - | 1 | xx x x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169477 | 0 |
| VFB | 14 | VFB_NUMOSV | C | 8 | 0 | Nro OS | NºOS | SO Number | Numero da OS | Numero de OS | Number of Service Order | @E 99999999 | - | x x x xx x x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169478 | 0 |
| VFB | 15 | VFB_TIPTEM | C | 4 | 0 | Tipo Tempo | Tipo Tiempo | Type Time | Tipo de Tempo | Tipo de Tiempo | Type of Time | @! | FG_Seek("VOI","M->VFB_TIPTEM",1,.f.,"VFB_DESTTE","VOI_DESTTE") | x x x xx x x x x x x x x x x x x x x | - | VOI | 1 | x xx x | - | - | - | S | - | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169479 | 0 |
| VFB | 16 | VFB_DESTEM | C | 20 | 0 | Descricao | Descripcion | Description | Descricao Tipo de Tempo | Descripc. Tipo de Tiempo | Descript.Type of Service | @!S20 | - | x x x xx x x x x x x x x x x x x x | if(!Inclui,Posicione("VOI",1,xFilial("VOI")+VFB->VFB_TIPTEM,"VOI_DESTTE"),"") | - | 1 | x x x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("VOI",1,xFilial("VOI")+VFB->VFB_TIPTEM,"VOI_DESTTE") | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169480 | 0 |
| VFB | 17 | VFB_KILOME | N | 8 | 0 | Km | Km | Miles | Kilometragem | Kilometraje | Mileage | @E 99,999,999 | - | x x x xx x x x x x x x x x x x x x | - | - | 1 | xx x x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169481 | 0 |
| VFB | 18 | VFB_DATAPL | D | 8 | 0 | Dt Aplicacao | Fc.Aplicac. | Applic.Date | Data de Aplicacao | Fecha de Aplicacion | Date of Application | - | - | x x x xx x x x x x x x x x x x x x x | Ddatabase | - | 1 | x x x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169482 | 0 |
| VFB | 19 | VFB_DATFEC | D | 8 | 0 | Dt Fechamto | Fc.Cierre | Closing Date | Data de Fechamento | Fecha de Cierre | Closing DAte | - | - | x x x xx x x x x x x x x x x x x x x | Ddatabase | - | 1 | x x x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169483 | 0 |
| VFB | 20 | VFB_NUMREQ | C | 8 | 0 | Nro Req P/S | Nº Req P/S | Req Numb P/S | Nro Req Peca / Servico | Nº Req Pieza / Servicio | Number Part Request/Serv. | @E 99999999 | - | x x x xx x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169484 | 0 |
| VFB | 21 | VFB_ORDCRO | C | 6 | 0 | Ord Cronolog | Ord Cronolog | Time Order | Ordem Cronologica | Orden Cronologica | Time Order | @E 999999 | - | x x x xx x x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | N | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169485 | 0 |
| VFB | 22 | VFB_TIPREV | C | 1 | 0 | Tipo Revisao | Tip.Revision | Type Revisio | Tipo de Revisao | Tipo de Revision | Type of Revision | ! | - | x x x xx x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169486 | 0 |
| VFB | 23 | VFB_TIPSER | C | 1 | 0 | Tipo Servico | Tipo Servic. | Serv Typ | Tipo de Servico | Tipo de Servicio | Service Type | ! | FG_Seek("VOK","M->VFB_TIPSER",1,.f.,"VFB_DESTSR","VOK_DESSER") | x x x xx x x x x x x x x x x x x x x | - | VOK | 1 | x x x | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169487 | 0 |
| VFB | 24 | VFB_DESTSR | C | 20 | 0 | Descricao | Descripcion | Description | Descricao Tipo de Servico | Descripcion Tipo de Serv. | Service type description | @!S20 | - | x x x xx x x x x x x x x x x x x x | if(!Inclui,Posicione("VOK",1,xFilial("VOK")+VFB->VFB_TIPSER,"VOK_DESSER"),"") | - | 1 | x x x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("VOK",1,xFilial("VOK")+VFB->VFB_TIPSER,"VOK_DESSER") | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 169488 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| VFB | 1 | VFB_FILIAL+VFB_CODCLI+VFB_LOJA+VFB_CHAINT+VFB_SERPEC+VFB_GRUITE+VFB_CODITE+DTOS(VFB_DATAPL)+VFB_NUMOSV | Cod Cliente + Loja + Chassi Inter + Serv / Peca + Grupo Item + Codigo | Cod Cliente + Tienda + Chasis Inter + Serv / Pieza + Grupo Item + Cod | Custom. Code + Unit + Intern Chass + Serv/Part + Item Group + Item Cod | S | - | - | S | 2 | 3 | - | 24620 | 0 |
| VFB | 2 | VFB_FILIAL+VFB_CODCLI+VFB_LOJA+VFB_CHAINT+VFB_SERPEC+VFB_GRUITE+VFB_CODITE+DTOS(VFB_DATFEC)+VFB_NUMOSV | Cod Cliente + Loja + Chassi Inter + Serv / Peca + Grupo Item + Codigo | Cod Cliente + Tienda + Chasis Inter + Serv / Pieza + Grupo Item + Cod | Custom. Code + Unit + Intern Chass + Serv/Part + Item Group + Item Cod | S | - | - | S | 2 | 3 | - | 24621 | 0 |
| VFB | 3 | VFB_FILIAL+VFB_CODCLI+VFB_LOJA+VFB_CHAINT+VFB_NUMOSV+VFB_SERPEC | Cod Cliente + Loja + Chassi Inter + Nro OS + Serv / Peca | Cod Cliente + Tienda + Chasis Inter + NºOS + Serv / Pieza | Custom. Code + Unit + Intern Chass + SO Number + Serv/Part | S | - | - | S | 2 | 3 | - | 24622 | 0 |
| VFB | 4 | VFB_FILIAL+VFB_CODCLI+VFB_LOJA+VFB_CHAINT+VFB_SERPEC+VFB_CODSER+DTOS(VFB_DATAPL)+VFB_NUMOSV | Cod Cliente + Loja + Chassi Inter + Serv / Peca + Cod Servico + Dt Apl | Cod Cliente + Tienda + Chasis Inter + Serv / Pieza + Cod Servicio + Fc | Custom. Code + Unit + Intern Chass + Serv/Part + Service Code + Applic | S | - | - | S | 2 | 3 | - | 24623 | 0 |
| VFB | 5 | VFB_FILIAL+VFB_CODCLI+VFB_LOJA+VFB_CHAINT+VFB_SERPEC+VFB_CODSER+DTOS(VFB_DATFEC)+VFB_NUMOSV | Cod Cliente + Loja + Chassi Inter + Serv / Peca + Cod Servico + Dt Fec | Cod Cliente + Tienda + Chasis Inter + Serv / Pieza + Cod Servicio + Fc | Custom. Code + Unit + Intern Chass + Serv/Part + Service Code + Closin | S | - | - | S | 2 | 3 | - | 24624 | 0 |
| VFB | 6 | VFB_FILIAL+VFB_CODCLI+VFB_LOJA+VFB_CHAINT+VFB_SERPEC+DTOS(VFB_DATAPL)+VFB_CODSER+VFB_NUMOSV | Cod Cliente + Loja + Chassi Inter + Serv / Peca + Dt Aplicacao + Cod S | Cod Cliente + Tienda + Chasis Inter + Serv / Pieza + Fc.Aplicac. + Cod | Custom. Code + Unit + Intern Chass + Serv/Part + Applic.Date + Service | S | - | - | S | 2 | 3 | - | 24625 | 0 |
| VFB | 7 | VFB_FILIAL+VFB_CODCLI+VFB_LOJA+VFB_CHAINT+VFB_SERPEC+VFB_ORDCRO+VFB_CODSER | Cod Cliente + Loja + Chassi Inter + Serv / Peca + Ord Cronolog + Cod S | Cod Cliente + Tienda + Chasis Inter + Serv / Pieza + Ord Cronolog + Co | Custom. Code + Unit + Intern Chass + Serv/Part + Time Order + Service | S | - | - | S | 2 | 3 | - | 24626 | 0 |
| VFB | 8 | VFB_FILIAL+VFB_CHAINT+STR(VFB_KILOME) | Chassi Inter + Km | Chasis Inter + Km | Intern Chass + Miles | S | - | - | S | 2 | 3 | - | 24627 | 0 |
| VFB | 9 | VFB_FILIAL+VFB_CHAINT+DTOS(VFB_DATAPL) | Chassi Inter + Dt Aplicacao | Chasis Inter + Fc.Aplicac. | Intern Chass + Applic.Date | S | - | - | S | 2 | 3 | - | 24628 | 0 |
| VFB | A | VFB_FILIAL+VFB_GRUITE+VFB_CODITE | Grupo Item + Codigo Item | Grupo Item + Cod Item | Item Group + Item Code | S | - | - | S | 2 | 3 | - | 24629 | 0 |
Ela é utilizada para ocorrencias do veiculo 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
VFB_FILIAL,
VFB_CODCLI,
VFB_LOJA,
VFB_NOMCLI,
VFB_CHAINT,
VFB_SERPEC,
VFB_GRUITE,
VFB_DESGRU,
VFB_CODITE,
VFB_DESITE,
VFB_CODSER,
VFB_DESSER,
VFB_QTDAPL,
VFB_NUMOSV,
VFB_TIPTEM,
VFB_DESTEM,
VFB_KILOME,
VFB_DATAPL,
VFB_DATFEC,
VFB_NUMREQ,
VFB_ORDCRO,
VFB_TIPREV,
VFB_TIPSER,
VFB_DESTSR
FROM VFB
WHERE
D_E_L_E_T_ = ' '
AND VFB_FILIAL = 'VALOR'
AND VFB_CODCLI = 'VALOR'
AND VFB_LOJA = 'VALOR'
AND VFB_NOMCLI = 'VALOR'
AND VFB_CHAINT = 'VALOR'
AND VFB_SERPEC = 'VALOR'
AND VFB_GRUITE = 'VALOR'
AND VFB_DESGRU = 'VALOR'
AND VFB_CODITE = 'VALOR'
AND VFB_DESITE = 'VALOR'
AND VFB_CODSER = 'VALOR'
AND VFB_DESSER = 'VALOR'
AND VFB_QTDAPL = 0
AND VFB_NUMOSV = 'VALOR'
AND VFB_TIPTEM = 'VALOR'
AND VFB_DESTEM = 'VALOR'
AND VFB_KILOME = 0
AND VFB_DATAPL BETWEEN '20260501' AND '20260531'
AND VFB_DATFEC BETWEEN '20260501' AND '20260531'
AND VFB_NUMREQ = 'VALOR'
AND VFB_ORDCRO = 'VALOR'
AND VFB_TIPREV = 'VALOR'
AND VFB_TIPSER = 'VALOR'
AND VFB_DESTSR = 'VALOR'