Itens MRP
A tabela DDE faz parte do sistema ERP Protheus da TOTVS e é utilizada para itens mrp.
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 DDE 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 DDE, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | DDE |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | DDE990 |
| X2_NOME | Itens MRP |
| X2_NOMESPA | Ítems MRP |
| X2_NOMEENG | Items MRP |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | C |
| X2_MODOEMP | C |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | DDE_FILIAL+DTOS(DDE_DATAGE)+DDE_HORAGE+DDE_CLIDES+DDE_LOJDES+DDE_SQEDES+DDE_CLIREM+DDE_LOJREM+DDE_SQEREM+DDE_CODPRO |
| X2_PYME | N |
| X2_MODULO | 43 |
| X2_DISPLAY | - |
| X2_SYSOBJ | TMSAF74 |
| X2_USROBJ | - |
| X2_POSLGT | 2 |
| 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_ | 3153 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DDE | 01 | DDE_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 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 033 | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 48882 | 0 |
| DDE | 02 | DDE_NUMMRP | C | 10 | 0 | Numero MRP | Número MRP | MRP Number | Numero do MRP | Número del MRP | MRP Number | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 48883 | 0 |
| DDE | 03 | DDE_CODPRO | C | 15 | 0 | Produto | Producto | Product | Produto | Producto | Product | @! | ExistCpo("SB1",M->DDE_CODPRO,1) | x x x x x x x x x x x x x x x xx | - | - | 1 | x xxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 030 | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 48884 | 0 |
| DDE | 04 | DDE_DESPRO | C | 50 | 0 | Desc.Produto | Desc. Prod. | Prod Descr | Descricao do Produto | Descripción del producto | Product Description | @! | - | x x x x x x xx x x x x x x x x | Iif(Inclui,"",Posicione("SB1",1,xFilial("SB1")+DDE->DDE_CODPRO,"B1_DESC")) | - | 1 | x xx x | - | - | - | N | V | V | - | - | - | - | - | - | - | - | 171 | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 48885 | 0 |
| DDE | 05 | DDE_CODEMB | C | 3 | 0 | Embalagem | Envase | Package | Codigo da Embalagem | Código del envase | Package Code | @! | ExistCpo("SX5","MG"+M->DDE_CODEMB) | x x x x x x xx x x x x x x x x | - | MG | 1 | x xx | - | S | - | N | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 48886 | 0 |
| DDE | 06 | DDE_DESEMB | C | 30 | 0 | Des.Embalag. | Des. envase | Package Desc | Descricao da Embalagem | Descripción del envase | Package Description | @! | - | x x x x x x xx x x x x x x x x | IIf(Inclui,"",Tabela("MG",DDE->DDE_CODEMB,.F.)) | - | 1 | x xx x | - | - | - | N | V | V | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 48887 | 0 |
| DDE | 07 | DDE_QTDVOL | N | 5 | 0 | Quantidade | Cantidad | Quantity | Quantidade de Volume | Cantidad de volumen | Volume Quantity | 99999 | Positivo() | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 48888 | 0 |
| DDE | 08 | DDE_QTDUNI | N | 5 | 0 | Qtd.Unitiz. | Ctd.Unitiz. | Unit Qty | Qtde. de Unitizadores | Ctd. de unitizadores | Unitizers Quantity | 99999 | Positivo() | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 48889 | 0 |
| DDE | 09 | DDE_PESO | N | 11 | 4 | Peso Real | Peso real | Real Weight | Peso Real | Peso real | Real Weight | @E 999,999.9999 | Positivo() | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 48890 | 0 |
| DDE | 10 | DDE_VALMER | N | 14 | 2 | Valor Merc. | Valor Merc. | Goods Vl | Valor da Mercadoria | Valor de la mercadería | Goods Value | @E 99,999,999,999.99 | Positivo() | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 48891 | 0 |
| DDE | 11 | DDE_BASSEG | N | 14 | 2 | Base RR | Base RTC | Base RR | Base Risco Rodoviario | Base riesgo transp.carret | Road Risk Base | @E 99,999,999,999.99 | Positivo() | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 48892 | 0 |
| DDE | 12 | DDE_METRO3 | N | 11 | 4 | M3 | M3 | M3 | M3 | M3 | M3 | @E 999,999.9999 | Positivo() | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 48893 | 0 |
| DDE | 13 | DDE_PESOM3 | N | 11 | 4 | Peso Cubado | Peso cubicad | Cubed Weight | Peso Cubado | Peso cubicado | Cubed Weight | @E 999,999.9999 | Positivo() | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 48894 | 0 |
| DDE | 14 | DDE_DATAGE | D | 8 | 0 | Data Agendam | Fch Prog Age | Sched Date | Data Agendamento | Data Agendamento | Schedule Date | - | - | x x x x x x x x x x x x x x x xx | dDataBase | - | 1 | x xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 48895 | 0 |
| DDE | 15 | DDE_HORAGE | C | 4 | 0 | Hora Agendam | Hora Prog Ag | Sched Time | Hora Agendamento | Fecha Programación en Age | Schedule Time | @R 99:99 | - | x x x x x x x x x x x x x x x xx | - | - | 1 | x xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 48896 | 0 |
| DDE | 16 | DDE_CLIDES | C | 6 | 0 | Destinatário | Destinatario | Recipient | Destinatário | Destinatario | Recipient | @! | - | x x x x x x x x x x x x x x x xx | - | SA1 | 1 | x xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 001 | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 48897 | 0 |
| DDE | 17 | DDE_LOJDES | C | 2 | 0 | Loja Dest. | Tienda Dest. | Rec Store | Loja Destinatário | Tienda destinatario | Recipient Store | @! | - | x x x x x x x x x x x x x x x xx | - | - | 1 | x xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 002 | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 48898 | 0 |
| DDE | 18 | DDE_SQEDES | C | 9 | 0 | Seq.End.Dest | Sec.Dir.Dest | Rec Add Seq | Seq.Endereço Destinatário | Sec.Dirección Destinatar | Recipient Address Sequenc | @! | - | x x x x x x x x x x x x x x x xx | - | DLT | 1 | x x xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 077 | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 48899 | 0 |
| DDE | 19 | DDE_CLIREM | C | 6 | 0 | Remetente | Remetinte | Sender | Remetente | Remitente | Sender | @! | - | x x x x x x x x x x x x x x x xx | - | SA1 | 1 | x xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 001 | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 48900 | 0 |
| DDE | 20 | DDE_LOJREM | C | 2 | 0 | Loja Remet. | Tienda Remit | Sender Store | Loja Do Remetente | Tienda del remitente | Sender Store | @! | - | x x x x x x x x x x x x x x x xx | - | - | 1 | x xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 002 | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 48901 | 0 |
| DDE | 21 | DDE_SQEREM | C | 9 | 0 | Seq.End.Rem. | Sec.Dir.Rem. | Send Add Seq | Seq.Endereço Remetente | Sec.Dirección Remitente | Sender Address Sequence | @! | - | x x x x x x x x x x x x x x x xx | - | - | 1 | x x xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 077 | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 48902 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DDE | 1 | DDE_FILIAL+DTOS(DDE_DATAGE)+DDE_HORAGE+DDE_CLIDES+DDE_LOJDES+DDE_SQEDES+DDE_CLIREM+DDE_LOJREM+DDE_SQEREM+DDE_CODPRO | Data Agendam + Hora Agendam + Destinatário + Loja Dest. + Seq.End.Dest | Fch Prog Age + Hora Prog Ag + Destinatario + Tienda Dest. + Sec.Dir.De | Sched Date + Sched Time + Recipient + Rec Store + Rec Add Seq + Sender | S | - | - | S | 2 | 3 | - | 7586 | 0 |
Ela é utilizada para itens mrp 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
DDE_FILIAL,
DDE_NUMMRP,
DDE_CODPRO,
DDE_DESPRO,
DDE_CODEMB,
DDE_DESEMB,
DDE_QTDVOL,
DDE_QTDUNI,
DDE_PESO,
DDE_VALMER,
DDE_BASSEG,
DDE_METRO3,
DDE_PESOM3,
DDE_DATAGE,
DDE_HORAGE,
DDE_CLIDES,
DDE_LOJDES,
DDE_SQEDES,
DDE_CLIREM,
DDE_LOJREM,
DDE_SQEREM
FROM DDE
WHERE
D_E_L_E_T_ = ' '
AND DDE_FILIAL = 'VALOR'
AND DDE_NUMMRP = 'VALOR'
AND DDE_CODPRO = 'VALOR'
AND DDE_DESPRO = 'VALOR'
AND DDE_CODEMB = 'VALOR'
AND DDE_DESEMB = 'VALOR'
AND DDE_QTDVOL = 0
AND DDE_QTDUNI = 0
AND DDE_PESO = 0
AND DDE_VALMER = 0
AND DDE_BASSEG = 0
AND DDE_METRO3 = 0
AND DDE_PESOM3 = 0
AND DDE_DATAGE BETWEEN '20261001' AND '20261031'
AND DDE_HORAGE = 'VALOR'
AND DDE_CLIDES = 'VALOR'
AND DDE_LOJDES = 'VALOR'
AND DDE_SQEDES = 'VALOR'
AND DDE_CLIREM = 'VALOR'
AND DDE_LOJREM = 'VALOR'
AND DDE_SQEREM = 'VALOR'