Tabela DDD

MRP – Agendamento
38camposNome físicoDDD010(empresa 01)

Campos da tabela DDD

38 campos no dicionário de dados do TOTVS Protheus.

38
CampoDescrição
DDD_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
DDD_DATAGE
Data (D)(8)
Data Agendam
Contexto:
Real
DDD_HORAGE
Caractere (C)(4)
Hora Agendam
Máscara:
@R 99:99
Contexto:
Real
DDD_CLIDES
Caractere (C)(6)
Destinatario
Máscara:
@!
Contexto:
Real
Consulta F3:
SA1
DDD_LOJDES
Caractere (C)(2)
Loja Dest.
Máscara:
@!
Contexto:
Real
DDD_SQEDES
Caractere (C)(2)
Seq.End.Dest
Máscara:
@!
Contexto:
Real
Consulta F3:
DLT
DDD_NOMDES
Caractere (C)(40)
Nome Dest.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
DDD_CLIREM
Caractere (C)(6)
Remetente
Máscara:
@!
Contexto:
Real
Consulta F3:
SA1
DDD_LOJREM
Caractere (C)(2)
Loja Remet.
Máscara:
@!
Contexto:
Real
DDD_SQEREM
Caractere (C)(2)
Seq.End.Rem.
Máscara:
@!
Contexto:
Real
DDD_NOMREM
Caractere (C)(40)
Nome Remet.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
DDD_CODSOL
Caractere (C)(9)
Solicitante
Máscara:
@!
Contexto:
Real
Consulta F3:
DUE2
DDD_LOCCOL
Caractere (C)(1)
Local Coleta
Máscara:
@!
Contexto:
Real
Validação:
Vazior() .Or. Pertence("12")
2 valores possíveis
  • 1Solicitante
  • 2Remetente
DDD_FILORI
Caractere (C)(2)
Fil.Origem
Contexto:
Real
Consulta F3:
DLB
DDD_NUMMRP
Caractere (C)(10)
Numero MRP
Máscara:
@!
Contexto:
Real
DDD_TIPTRA
Caractere (C)(1)
Tipo Transp.
Máscara:
@!
Contexto:
Real
Consulta F3:
DLC
Validação:
Vazio() .Or. TMSValField("M->DDD_TIPTRA",.T.,"DDD_DESTPT")
DDD_SELORI
Caractere (C)(1)
Selec.Regiao
Máscara:
@!
Contexto:
Real
3 valores possíveis
  • 1Transportadora
  • 2Cliente Remetente
  • 3Local Coleta
DDD_CDRORI
Caractere (C)(6)
Cod.Reg.Ori.
Máscara:
@!
Contexto:
Real
Validação:
ExistCpo("DUY",,1)
DDD_CDRDES
Caractere (C)(6)
Cod.Reg.Des.
Máscara:
@!
Contexto:
Real
DDD_DATPRC
Data (D)(8)
Dt. Pre Col.
Contexto:
Real
DDD_HORPRC
Caractere (C)(4)
Hora Pre Col
Máscara:
@R 99:99
Contexto:
Real
DDD_DATPRE
Data (D)(8)
Dt Pre Ent
Contexto:
Real
DDD_HORPRE
Caractere (C)(4)
Hor Pre Ent
Máscara:
@R 99:99
Contexto:
Real
DDD_TIPFRE
Caractere (C)(1)
Tipo Frete
Máscara:
@!
Contexto:
Real
Validação:
Vazio() .Or. Pertence('12')
2 valores possíveis
  • 1CIF
  • 2FOB
DDD_CLIDEV
Caractere (C)(6)
Devedor
Máscara:
@!
Contexto:
Real
Consulta F3:
SA1
DDD_LOJDEV
Caractere (C)(2)
Loja Dev.
Máscara:
@!
Contexto:
Real
DDD_NOMDEV
Caractere (C)(40)
Nome Dev.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
DDD_CLICAL
Caractere (C)(6)
Cli.Calculo
Máscara:
@!
Contexto:
Real
Consulta F3:
SA1
DDD_LOJCAL
Caractere (C)(2)
Loja Calculo
Máscara:
@!
Contexto:
Real
DDD_NOMCAL
Caractere (C)(40)
Nome Calc.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
DDD_CODNEG
Caractere (C)(2)
Cod Negociac
Máscara:
@!
Contexto:
Real
Consulta F3:
DDB1
Validação:
(Vazio() .Or. Existcpo("DDB")) .And. TMSA019Vld()
Modo de edição (When):
Tmsa019Whe()
DDD_SERVIC
Caractere (C)(3)
Servico
Máscara:
@!
Contexto:
Real
Consulta F3:
DLR
Validação:
Tmsa019Vld()
Modo de edição (When):
Tmsa019Whe()
DDD_DESSER
Caractere (C)(30)
Desc.Servico
Máscara:
@!
Contexto:
Virtual (não existe no banco)
DDD_NCONTR
Caractere (C)(15)
Num.Contrato
Máscara:
@!
Contexto:
Real
Modo de edição (When):
Tmsa019Whe()
DDD_SRVCOL
Caractere (C)(3)
Serv.Coleta
Máscara:
@!
Contexto:
Real
Consulta F3:
DLJ3
Validação:
Vazio() .Or. TMSAF05Vld()
Modo de edição (When):
Tmsa019Whe()
DDD_ARQUIV
Caractere (C)(40)
Arquivo Imp.
Máscara:
@!
Contexto:
Real
DDD_CODLAY
Caractere (C)(6)
Cod.LayOut
Máscara:
@!
Contexto:
Real
DDD_STATUS
Caractere (C)(1)
Status MRP
Máscara:
@!
Contexto:
Real
Validação:
Pertence("123")
3 valores possíveis
  • 1MRP Importado
  • 2Processado
  • 3Agendamento Gerado

SELECT de exemplo da tabela DDD

No Protheus a tabela física leva o código da empresa (01 → 010) e registros excluídos ficam com D_E_L_E_T_ = '*'.

SQL · SQL Server
SELECT TOP 100
  DDD.DDD_FILIAL,
  DDD.DDD_DATAGE,
  DDD.DDD_HORAGE,
  DDD.DDD_CLIDES,
  DDD.DDD_LOJDES,
  DDD.DDD_SQEDES,
  DDD.DDD_CLIREM,
  DDD.DDD_LOJREM
FROM DDD010 DDD
WHERE DDD.D_E_L_E_T_ = ' '

Tabelas próximas no índice do Protheus

O ERPSeeker é um projeto independente, sem vínculo com a TOTVS. A estrutura pode variar conforme a versão e as customizações do seu ambiente.