Interesses Pecas Oficina
A tabela VDI faz parte do sistema ERP Protheus da TOTVS e é utilizada para interesses pecas oficina.
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 VDI 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 VDI, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | VDI |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | VDI990 |
| X2_NOME | Interesses Pecas Oficina |
| X2_NOMESPA | Intereses piezas taller |
| X2_NOMEENG | Workship Serv. Interest |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | VDI_FILIAL+VDI_CODOPO+VDI_CODINT |
| 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_ | 10353 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| VDI | 01 | VDI_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 | xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 168299 | 0 |
| VDI | 02 | VDI_CODOPO | C | 6 | 0 | Cod.Oportun. | Cód.Oportun. | Opp.Code | Codigo da Oportunidade | Código de oportunidad | Opportunity code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 168300 | 0 |
| VDI | 03 | VDI_CODINT | C | 6 | 0 | Cod.Interes. | Cód.Interés. | Inter.Cd. | Codigo do Interesse | Código de interés | Interest Code | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 168301 | 0 |
| VDI | 04 | VDI_CAMPOP | C | 6 | 0 | Campanha | Campaña | Campaign | Campanha | Campaña | Campaign | @! | vazio().or.ExistCpo("VX5","026"+M->VDI_CAMPOP) | x x x x x x x x x x x x x x x x | - | VX5 | 1 | xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 168302 | 0 |
| VDI | 05 | VDI_DESITE | C | 100 | 0 | Desc.Item | Desc.Ítem | Item Desc | Descricao do Item | Descripción de ítem | Item Description | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 168303 | 0 |
| VDI | 06 | VDI_DATINT | D | 8 | 0 | Dt.Interesse | Fch.Interés | Interest Dt. | Data do Interesse | Fecha del interés | Interest Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | dDataBase | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 168304 | 0 |
| VDI | 07 | VDI_DATLIM | D | 8 | 0 | Dt.Lim.Inter | Fch.Lím.Inte | Inter.Lim.Dt | Data Limite do Interesse | Fecha límite del interés | Interest Limit Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | dDataBase | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 168305 | 0 |
| VDI | 08 | VDI_CODFAS | C | 6 | 0 | Fase Interes | Etapa Interé | Inter. Phase | Codigo Fase do Interesse | Código etapa de interés | Interest Phase | @! | - | x x x x x x x x x x x x x x x x | - | VDKFA3 | 1 | xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 168306 | 0 |
| VDI | 09 | VDI_DATFAS | D | 8 | 0 | Dt.Fase Int. | Fch.Etapa In | Inter.Phase | Data da Fase do Interesse | Fecha de la etapa del int | Interest Phase Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 168307 | 0 |
| VDI | 10 | VDI_HORFAS | C | 4 | 0 | Hr.Fase Int. | Hr.Etap.Int. | Inter.Phase | Hora da Fase do Interesse | Hora de etapa del interés | Interest Phase Time | @R 99:99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 168308 | 0 |
| VDI | 11 | VDI_OBSERV | M | 47 | 0 | Obs.Interess | Obs.Interés | Inter.Note | Observacao do Interesse | Observación de interés | Interest Note | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 168309 | 0 |
| VDI | 12 | VDI_CODVEN | C | 6 | 0 | Cod.Vendedor | Cód.Vendedor | Sal.Rep.Cd. | Codigo do Vendedor | Código del vendedor | Sales representative code | @! | vazio() .or. ExistCpo("SA3",M->VDI_CODVEN) | x x x x x x x x x x x x x x x x | - | SA3 | 1 | xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 168310 | 0 |
| VDI | 13 | VDI_TIPCON | C | 1 | 0 | Tipo Contato | Tipo contact | Contact Type | Tipo de Contato | Tipo de contacto | Contact Type | @! | Pertence("12") | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | A | R | - | - | 1=Ativo;2=Passivo | 1=Activo;2=Pasivo | 1=Asset; 2=Liability | - | - | "1" | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 168311 | 0 |
| VDI | 14 | VDI_TIPMID | C | 6 | 0 | Tipo Midia | Tipo Medios | Media Type | Tipo de Midia | Tipo de medios | Media Type | @! | ExistCpo("VX5","027"+M->VDI_TIPMID) | x x x x x x x x x x x x x x x x | - | VX5 | 1 | xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 168312 | 0 |
| VDI | 15 | VDI_FILORC | C | 2 | 0 | Fil.Orcament | Suc.Presup. | Budg.Bran. | Filial do Orcamento | Sucursal del presupuesto | Budget Branch | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 168313 | 0 |
| VDI | 16 | VDI_NUMORC | C | 8 | 0 | Nro.Orcament | Nº Presup. | Budget No. | Numero do Orcamento | Número de presupuesto | Budget Number | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 168314 | 0 |
| VDI | 17 | VDI_MOTCAN | C | 6 | 0 | Mot.Cancelam | Mot.Anulac. | Canc.Reas. | Motivo do Cancelamento | Motivo de anulación | Reason to Cancel | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 168315 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| VDI | 1 | VDI_FILIAL+VDI_CODOPO+VDI_CODINT | Cod.Oportun. + Cod.Interes. | Cód.Oportun. + Cód.Interés. | Opp.Code + Inter.Cd. | S | - | - | S | 2 | 3 | - | 24477 | 0 |
| VDI | 2 | VDI_FILIAL+VDI_CODINT | Cod.Interes. | Cód.Interés. | Inter.Cd. | S | - | - | S | 2 | 3 | - | 24478 | 0 |
| VDI | 3 | VDI_FILIAL+VDI_FILORC+VDI_NUMORC | Fil.Orcament + Nro.Orcament | Suc.Presup. + Nº Presup. | Budg.Bran. + Budget No. | S | - | - | S | 2 | 3 | - | 24479 | 0 |
Ela é utilizada para interesses pecas oficina 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
VDI_FILIAL,
VDI_CODOPO,
VDI_CODINT,
VDI_CAMPOP,
VDI_DESITE,
VDI_DATINT,
VDI_DATLIM,
VDI_CODFAS,
VDI_DATFAS,
VDI_HORFAS,
VDI_OBSERV,
VDI_CODVEN,
VDI_TIPCON,
VDI_TIPMID,
VDI_FILORC,
VDI_NUMORC,
VDI_MOTCAN
FROM VDI
WHERE
D_E_L_E_T_ = ' '
AND VDI_FILIAL = 'VALOR'
AND VDI_CODOPO = 'VALOR'
AND VDI_CODINT = 'VALOR'
AND VDI_CAMPOP = 'VALOR'
AND VDI_DESITE = 'VALOR'
AND VDI_DATINT BETWEEN '20260501' AND '20260531'
AND VDI_DATLIM BETWEEN '20260501' AND '20260531'
AND VDI_CODFAS = 'VALOR'
AND VDI_DATFAS BETWEEN '20260501' AND '20260531'
AND VDI_HORFAS = 'VALOR'
AND VDI_CODVEN = 'VALOR'
AND VDI_TIPCON = 'VALOR'
AND VDI_TIPMID = 'VALOR'
AND VDI_FILORC = 'VALOR'
AND VDI_NUMORC = 'VALOR'
AND VDI_MOTCAN = 'VALOR'