Dicionário Protheus
Início
O Poder da Hiperautomação

Tabela DYD no Protheus

Agendamento de Entrega

O que é a tabela DYD no Protheus?

A tabela DYD faz parte do sistema ERP Protheus da TOTVS e é utilizada para agendamento de entrega.

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 DYD 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 DYD, incluindo todos os campos e índices relacionados.

Propriedades da Tabela

Propriedade Valor
X2_CHAVE DYD
X2_PATH \DATA\
X2_ARQUIVO DYD990
X2_NOME Agendamento de Entrega
X2_NOMESPA Program. Agenda de entrega
X2_NOMEENG Delivery Schedule
X2_ROTINA -
X2_MODO C
X2_MODOUN E
X2_MODOEMP E
X2_DELET 0
X2_TTS -
X2_UNICO DYD_FILIAL+DYD_NUMAGD+DYD_ITEAGD
X2_PYME S
X2_MODULO 43
X2_DISPLAY DYD_FILIAL+DYD_NUMAGD+DYD_ITEAGD
X2_SYSOBJ TMSA018
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_ 3664
R_E_C_D_E_L_ 0

Campos da Tabela DYD (29 campos)

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_
DYD 01 DYD_FILIAL C 2 0 Filial Sucursal Branch Filial do Sistema Suc. 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 - S - - N - N - - - 1 2 - - - 57389 0
DYD 02 DYD_NUMAGD C 6 0 Agendamento Programacion Scheduling Agendamento de Entrega Programacion de Entrega Delivery Scheduling - ExistChav("DYD") x x x x x x xx x x x x x x x x GetSX8Num('DYD','DYD_NUMAGD') - 1 xx - - - S V R - - - - - - - - - - S - - N - N - - - 1 2 - - - 57390 0
DYD 03 DYD_ITEAGD C 3 0 Item Item Item Item do Agendamento Item de Prog en Agenda Scheduling Item - - x x x x x x x x x x x x x x x - - 1 xx - - - S V R - - - - - - - - - - N - - N - N - - - 1 2 - - - 57391 0
DYD 04 DYD_TIPAGD C 1 0 Tipo Agd. Tipo Agd. Sched. Type Tipo do Agendamento Tipo de la Prog en Agenda Scheduling Type - A018VldTipo() x x x x x x x x x x x x x x x x - - 1 xxx - - - S A R - - 0=Prioridade Cliente;1=Prioridade Transportador;2=Cliente;3=Transportador;4=Aguardando Agendamento 0=Prioridad Cliente;1=Prioridad Transportista;2=Cliente;3=Transportista;4=Esperando Programacion 0=Customer Priority;1=Carrier Priority;2=Customer;3=Carrier;4=Waiting Schedule - - - - - N - - N - N - - - 1 1 - - - 57392 0
DYD 05 DYD_DATAGD D 8 0 Data Agend. Fch. Pr. Ag. Sched. Date Data do Agendamento Entr. Fch de Prog en Agenda Ent Entr. Scheduling Date - - x x x x x x xx x x x x x x x x - - 1 xx - - - S A R - - - - - - M->DYD_TIPAGD != '4' - - - N - - N - N - - - 1 2 - - - 57393 0
DYD 06 DYD_PRDAGD C 1 0 Periodo Agd. Per. Pr. Ag. Sch.Period Periodo de Entr. Periodo de Entr. Entr. Period - - x x x x x x xx x x x x x x x x - - 1 xx - - - S A R - - 1=A partir de;2=Ate;3=De / Ate;4=Na hora 1=A partir de;2=A;3=De / A;4=De inmediato 1=From;2=To;3=From / To;4=On time - M->DYD_TIPAGD != '4' - - - N - - N - N - - - 1 2 - - - 57394 0
DYD 07 DYD_INIAGD C 4 0 Hr.Ini. Agd. Hr.Ini. P Ag Sch.St. Tm. Hora Inicial Agd. de Entr Hr Inicial P. Ag. de Entr Entry Sched. Start Time @R 99:99 ATVLDHORA(M->DYD_INIAGD) .And. TMSA018Vld() x x x x x x xx x x x x x x x x - - 1 xx - - - S A R - - - - - - M->DYD_PRDAGD $ '134' .AND. M->DYD_TIPAGD != '4' - - - N - - N - N - - - 1 2 - - - 57395 0
DYD 08 DYD_FIMAGD C 4 0 Hr.Fim Agd. Hr.Fin P Ag. Sch.End Tm. Hora Final Agend. de Entr Hora Final Pr. Ag de Entr Entry Sched. End Time @R 99:99 ATVLDHORA(M->DYD_FIMAGD) .And. TMSA018Vld() x x x x x x xx x x x x x x x x - - 1 xx - - - S A R - - - - - - M->DYD_PRDAGD $ '23' .AND. M->DYD_TIPAGD != '4' - - - N - - N - N - - - 1 2 - - - 57396 0
DYD 09 DYD_FILDOC C 2 0 Fil. Docto Suc. Docto Bill Brch Filial Documento Sucursal Documento Bill Branch - - x x x x x x x x x x x x x x x x x - DT61 1 x x - S - S A R - - - - - - INCLUI - 033 - S - - N - N - - - 1 1 - - - 57397 0
DYD 10 DYD_DOC C 9 0 No.Docto. Num.Docto. Bill Nr. Numero do Documento Numero del Documento Bill Number @! - x x x x x x x x x x x x x x x x x - - 1 x x - S - S V R - - - - - - INCLUI - 018 - S - - N - N - - - 1 1 - - - 57398 0
DYD 11 DYD_SERIE C 3 0 Serie Docto. Serie Docto. Bill Serial Serie do Documento Serie del Documento Bill Serial !!! - x x x x x x x x x x x x x x x x - - 1 xxx - S - S V R - - - - - - INCLUI - 094 - S - - N - N - - - 1 1 - - - 57399 0
DYD 12 DYD_CLIREM C 6 0 Remetente Remitente Sender Remetente Remitente Sender @! - x x x x x x xx x x x x x x x x - - 1 x - - - S V R - - - - - - - - 001 - S - - N - N - - - 1 2 - - - 57400 0
DYD 13 DYD_LOJREM C 2 0 Loja Remet. Tienda Remit Sender Shop Loja Remetente Tienda Remitente Sender's Shop @! - x x x x x x xx x x x x x x x x - - 1 xx - - - S V R - - - - - - - - 002 - S - - N - N - - - 1 2 - - - 57401 0
DYD 14 DYD_NOMREM C 50 0 Nome Remet. Nombre Remit Recip Name Nome Remetente Nombre Remitente Sender's Name @! - x x x x x x xx x x x x x x x x Iif(Inclui,"",POSICIONE("SA1",1,XFILIAL("SA1")+DYD->DYD_CLIREM+DYD->DYD_LOJREM,"A1_NOME")) - 1 xx - - - S V V - - - - - - - Posicione("SA1",1,xFilial("SA1")+DYD->DYD_CLIREM+DYD->DYD_LOJREM,"A1_NOME") 175 - S - - N - N - - - 1 2 - - - 57402 0
DYD 15 DYD_CLIDES C 6 0 Destinatario Destinatario Recipient Destinatário Destinatario Recipient @! - x x x x x x xx x x x x x x x x - - 1 xx - - - S V R - - - - - - - - 001 - S - - N - N - - - 1 2 - - - 57403 0
DYD 16 DYD_LOJDES C 2 0 Loja Dest. Tienda Dest. Recip Shop Loja Destinatário Tienda Destinatario Recipient's Shop @! - x x x x x x xx x x x x x x x x - - 1 xx - - - S V R - - - - - - - - 002 - S - - N - N - - - 1 2 - - - 57404 0
DYD 17 DYD_NOMDES C 50 0 Nome Dest. Nombre Dest. Recip Name Nome Destinatário Nombre Destinatario Recipient's Name @! - x x x x x x xx x x x x x x x x Iif(Inclui,"",POSICIONE("SA1",1,XFILIAL("SA1")+DYD->DYD_CLIDES+DYD->DYD_LOJDES,"A1_NOME")) - 1 xx - - - S V V - - - - - - - Posicione("SA1",1,xFilial("SA1")+DYD->DYD_CLIDES+DYD->DYD_LOJDES,"A1_NOME") 175 - S - - N - N - - - 1 2 - - - 57405 0
DYD 18 DYD_CDRORI C 6 0 Cod.Reg.Ori. Cod.Reg.Ori. Srce Rec Cod Cod.Reg.Ori. Cod.Reg.Ori. Srce Reg Code @! - x x x x x x xx x x x x x x x x x - - 1 x - - - S V R - - - - - - - - - - S - - N - N - - - 1 2 - - - 57406 0
DYD 19 DYD_CDRDES C 6 0 Cod.Reg.Des. Cod.Reg.Des. Des Rec Code Cod.Reg.Des. Cod.Reg.Des. Des Reg Code @! - x x x x x x xx x x x x x x x x x - - 1 x - - - S V R - - - - - - - - - - S - - N - N - - - 1 2 - - - 57407 0
DYD 20 DYD_FILORI C 2 0 Fil Origem Suc Origen Org Branch Filial de Origem Sucursal de Origen Branch Origin - - x x x x x x xx x x x x x x x x - - 1 x xx - - - N V R - - - - - - - - 033 - N - - N - N - - - 2 2 - - - 57408 0
DYD 21 DYD_USUAGD C 6 0 Cod. Usuário Cod. Usuari User Code Código do Usuário Codigo del usuario User Code - - x x x x x x x x x x x x x x x x RETCODUSR() - 1 xx - - - S V R - - - - - - - - - - N - - N - N - - - 1 2 - - - 57409 0
DYD 22 DYD_NOMUSR C 30 0 Nome Usuario Nomb Usuario Username Nome do usuario Nombre del usuario Username @! - x x x x x x xx x x x x x x x x IF(INCLUI,USRRETNAME(__CUSERID),USRRETNAME(DYD->DYD_USUAGD)) - 1 xx - - - S V V - - - - - - - USRRETNAME(DYD->DYD_USUAGD) - - N - - N - N - - - 1 2 - - - 57410 0
DYD 23 DYD_DATEMI D 8 0 Data Emissao Fecha Emisio Issue Date Data Emissao Agend. Fecha Emision Agend. Sched. Issue Date - - x x x x x x xx x x x x x x x x x DDATABASE - 1 x - - - S V R - - - - - - - - - - S - - N - N - - - 1 2 - - - 57411 0
DYD 24 DYD_MOTAGD M 10 0 Motivo Agd. Motivo P Ag Sch. Reason Motivo do Agendamento Motivo de la Prog. en Ag. Scheduling Reason - - x x x x x x xx x x x x x x x x - - 1 xx - - - N A R - - - - - - - - - - N - - N - N - - - 1 2 - - - 57412 0
DYD 25 DYD_DTCAGD D 8 0 Data Canc. Fch. Anulac. Canc. Date Data do Cancelamento Fecha de la Anulacion Cancelation Date - - x x x x x x xx x x x x x x x x - - 1 xx - - - S V R - - - - - - - - - - N - - N - N - - - 1 2 - - - 57413 0
DYD 26 DYD_STATUS C 1 0 Status Agd. Estatus P Ag Sched Status Status Agd. Entrega Estatus P Agd. Entrega Delivery Sched. Status @! Pertence("1234567") x x x x x x xx x x x x x x x x x "1" - 1 x - - - N V R - - 1=Em Aberto;2=Realizado;3=Realizado com Atraso;4=Nao Atendido;5=Aguard. Agendamento;6=Cancelado 1=Pendiente;2=Realizado;3=Realizado con atraso;4=No atendido;5=Esperando P Agend;6=Anulado 1=Pending;2=Executed;3=Executed Late;4=Not Serviced;5=To Be Scheduled;6=Canceled - - - - - S - - N - N - - - 1 2 - - - 57414 0
DYD 27 DYD_FILDES C 2 0 Fil Destino Suc Destino Target Branc Filial de Destino Sucursal de destino Target Branch - - x x x x x x xx x x x x x x x x - - 1 xx - - - N V R - - - - - - - - 033 - S - - N - N - - - 2 2 - - - 57415 0
DYD 28 DYD_DIAATR N 3 0 Dias Atraso Dias Atraso Delay Days Dias de Atraso Dias de atraso Days of Delay @E 999 - x x x x x x xx x x x x x x x x - - 1 xx - - - N V R - - - - - - - - - - N - - N - N - - - 2 2 - - - 57416 0
DYD 29 DYD_DATREF D 8 0 Data Referen Fch Referen Ref Dt Data de Referencia Fecha de referencia Reference Date - - x x x x x x xx x x x x x x x x - - 1 xx - - - N V R - - - - - - - - - - N - - N - N - - - 2 2 - - - 57417 0

Índices da Tabela DYD (2 índices)

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_
DYD 1 DYD_FILIAL+DYD_NUMAGD+DYD_ITEAGD Agendamento + Item Programacion + Item Scheduling + Item S - - S 2 3 - 8740 0
DYD 2 DYD_FILIAL+DYD_FILDOC+DYD_DOC+DYD_SERIE+DYD_NUMAGD Fil. Docto + No.Docto. + Serie Docto. + Agendamento Suc. Docto + Num.Docto. + Serie Docto. + Programacion Bill Brch + Bill Nr. + Bill Serial + Scheduling S - - S 2 3 - 8741 0

Perguntas frequentes

Para que serve a tabela DYD no Protheus?

Ela é utilizada para agendamento de entrega dentro do sistema ERP Protheus.

Como consultar os campos da tabela DYD?

Nesta página você pode visualizar todos os campos, incluindo tipo, tamanho e validações.

O que são os índices da tabela DYD?

Os índices são estruturas que melhoram a performance de busca e acesso aos dados dentro do Protheus.

Exemplo de consulta SQL da tabela DYD

Modelo de query gerado automaticamente com base na estrutura da tabela.

SELECT
    DYD_FILIAL,
    DYD_NUMAGD,
    DYD_ITEAGD,
    DYD_TIPAGD,
    DYD_DATAGD,
    DYD_PRDAGD,
    DYD_INIAGD,
    DYD_FIMAGD,
    DYD_FILDOC,
    DYD_DOC,
    DYD_SERIE,
    DYD_CLIREM,
    DYD_LOJREM,
    DYD_NOMREM,
    DYD_CLIDES,
    DYD_LOJDES,
    DYD_NOMDES,
    DYD_CDRORI,
    DYD_CDRDES,
    DYD_FILORI,
    DYD_USUAGD,
    DYD_NOMUSR,
    DYD_DATEMI,
    DYD_MOTAGD,
    DYD_DTCAGD,
    DYD_STATUS,
    DYD_FILDES,
    DYD_DIAATR,
    DYD_DATREF
FROM DYD
WHERE
    D_E_L_E_T_ = ' '
    AND DYD_FILIAL = 'VALOR'
    AND DYD_NUMAGD = 'VALOR'
    AND DYD_ITEAGD = 'VALOR'
    AND DYD_TIPAGD = 'VALOR'
    AND DYD_DATAGD BETWEEN '20261001' AND '20261031'
    AND DYD_PRDAGD = 'VALOR'
    AND DYD_INIAGD = 'VALOR'
    AND DYD_FIMAGD = 'VALOR'
    AND DYD_FILDOC = 'VALOR'
    AND DYD_DOC = 'VALOR'
    AND DYD_SERIE = 'VALOR'
    AND DYD_CLIREM = 'VALOR'
    AND DYD_LOJREM = 'VALOR'
    AND DYD_NOMREM = 'VALOR'
    AND DYD_CLIDES = 'VALOR'
    AND DYD_LOJDES = 'VALOR'
    AND DYD_NOMDES = 'VALOR'
    AND DYD_CDRORI = 'VALOR'
    AND DYD_CDRDES = 'VALOR'
    AND DYD_FILORI = 'VALOR'
    AND DYD_USUAGD = 'VALOR'
    AND DYD_NOMUSR = 'VALOR'
    AND DYD_DATEMI BETWEEN '20261001' AND '20261031'
    AND DYD_DTCAGD BETWEEN '20261001' AND '20261031'
    AND DYD_STATUS = 'VALOR'
    AND DYD_FILDES = 'VALOR'
    AND DYD_DIAATR = 0
    AND DYD_DATREF BETWEEN '20261001' AND '20261031'