Interesses Servicos Oficina
A tabela VDJ faz parte do sistema ERP Protheus da TOTVS e é utilizada para interesses servicos 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 VDJ 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 VDJ, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | VDJ |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | VDJ990 |
| X2_NOME | Interesses Servicos Oficina |
| X2_NOMESPA | Intereses Serv. Taller |
| X2_NOMEENG | Workshop Serv. Interest |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | VDJ_FILIAL+VDJ_CODOPO+VDJ_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_ | 10354 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| VDJ | 01 | VDJ_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 | - | - | - | 168316 | 0 |
| VDJ | 02 | VDJ_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 | - | - | - | 168317 | 0 |
| VDJ | 03 | VDJ_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 | - | - | - | 168318 | 0 |
| VDJ | 04 | VDJ_CAMPOP | C | 6 | 0 | Campanha | Campaña | Campaign | Campanha | Campaña | Campaign | @! | vazio().or.ExistCpo("VX5","026"+M->VDJ_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 | - | - | - | 168319 | 0 |
| VDJ | 05 | VDJ_DESSER | C | 100 | 0 | Desc.Servico | Desc.Serv. | Service Desc | Descricao do Servico | Descripción del servicio | Service 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 | - | - | - | 168320 | 0 |
| VDJ | 06 | VDJ_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 | - | - | - | 168321 | 0 |
| VDJ | 07 | VDJ_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 | - | - | - | 168322 | 0 |
| VDJ | 08 | VDJ_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 | - | - | - | 168323 | 0 |
| VDJ | 09 | VDJ_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 | - | - | - | 168324 | 0 |
| VDJ | 10 | VDJ_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 | - | - | - | 168325 | 0 |
| VDJ | 11 | VDJ_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 | - | - | - | 168326 | 0 |
| VDJ | 12 | VDJ_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->VDJ_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 | - | - | - | 168327 | 0 |
| VDJ | 13 | VDJ_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 | - | - | - | 168328 | 0 |
| VDJ | 14 | VDJ_TIPMID | C | 6 | 0 | Tipo Midia | Tipo Medios | Media Type | Tipo de Midia | Tipo de medios | Media Type | @! | ExistCpo("VX5","027"+M->VDJ_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 | - | - | - | 168329 | 0 |
| VDJ | 15 | VDJ_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 | - | - | - | 168330 | 0 |
| VDJ | 16 | VDJ_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 | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 168331 | 0 |
| VDJ | 17 | VDJ_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 | - | - | - | 168332 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| VDJ | 1 | VDJ_FILIAL+VDJ_CODOPO+VDJ_CODINT | Cod.Oportun. + Cod.Interes. | Cód.Oportun. + Cód.Interés. | Opp.Code + Inter.Cd. | S | - | - | S | 2 | 3 | - | 24480 | 0 |
| VDJ | 2 | VDJ_FILIAL+VDJ_CODINT | Cod.Interes. | Cód.Interés. | Inter.Cd. | S | - | - | S | 2 | 3 | - | 24481 | 0 |
| VDJ | 3 | VDJ_FILIAL+VDJ_FILORC+VDJ_NUMORC | Fil.Orcament + Nro.Orcament | Suc.Presup. + Nº Presup. | Budg.Bran. + Budget No. | S | - | - | S | 2 | 3 | - | 24482 | 0 |
Ela é utilizada para interesses servicos 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
VDJ_FILIAL,
VDJ_CODOPO,
VDJ_CODINT,
VDJ_CAMPOP,
VDJ_DESSER,
VDJ_DATINT,
VDJ_DATLIM,
VDJ_CODFAS,
VDJ_DATFAS,
VDJ_HORFAS,
VDJ_OBSERV,
VDJ_CODVEN,
VDJ_TIPCON,
VDJ_TIPMID,
VDJ_FILORC,
VDJ_NUMORC,
VDJ_MOTCAN
FROM VDJ
WHERE
D_E_L_E_T_ = ' '
AND VDJ_FILIAL = 'VALOR'
AND VDJ_CODOPO = 'VALOR'
AND VDJ_CODINT = 'VALOR'
AND VDJ_CAMPOP = 'VALOR'
AND VDJ_DESSER = 'VALOR'
AND VDJ_DATINT BETWEEN '20260501' AND '20260531'
AND VDJ_DATLIM BETWEEN '20260501' AND '20260531'
AND VDJ_CODFAS = 'VALOR'
AND VDJ_DATFAS BETWEEN '20260501' AND '20260531'
AND VDJ_HORFAS = 'VALOR'
AND VDJ_CODVEN = 'VALOR'
AND VDJ_TIPCON = 'VALOR'
AND VDJ_TIPMID = 'VALOR'
AND VDJ_FILORC = 'VALOR'
AND VDJ_NUMORC = 'VALOR'
AND VDJ_MOTCAN = 'VALOR'