Dicionário Protheus
Início

Tabela DT5 no Protheus

Solicitação de Coleta

O que é a tabela DT5 no Protheus?

A tabela DT5 faz parte do sistema ERP Protheus da TOTVS e é utilizada para solicitação de coleta.

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

Propriedades da Tabela

Propriedade Valor
X2_CHAVE DT5
X2_PATH \DATA\
X2_ARQUIVO DT5990
X2_NOME Solicitação de Coleta
X2_NOMESPA Solicitud recolección
X2_NOMEENG Pickup Request
X2_ROTINA -
X2_MODO E
X2_MODOUN E
X2_MODOEMP E
X2_DELET 0
X2_TTS -
X2_UNICO DT5_FILIAL+DT5_NUMSOL
X2_PYME N
X2_MODULO 43
X2_DISPLAY -
X2_SYSOBJ TMSA460
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_ 3484
R_E_C_D_E_L_ 0

Campos da Tabela DT5 (81 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_
DT5 01 DT5_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 - - - - - - - - - - - - - - 033 1 N - - N N N - - - 1 2 - - - 53724 0
DT5 02 DT5_FILORI C 2 0 Fil.Origem Suc.Origen Orig.Branch Filial de Origem Sucursal de Origen Origin Branch - TMSValidEmp(cEmpAnt+M->DT5_FILORI) x x x x x x x x x x x x x x x xx cFilAnt DLB 1 xxx - S - S A - - - - - - - - - 033 1 N - - N N N - - - 1 1 - - - 53725 0
DT5 03 DT5_NUMSOL C 9 0 No.Sl.Coleta Nº Sol.Rec. CollecReqNo No.Sol.Coleta Nº Sol.Recoleccion Collec.Req.No. @! ExistChav("DT5",M->DT5_FILORI+M->DT5_NUMSOL) x x x x x x x x x x x x x x x xx GetSx8Num("DT5","DT5_NUMSOL",,3) - 1 xxx - - - S V - - - - - - - - - 018 1 N - - N N N - - - 1 1 - - - 53726 0
DT5 04 DT5_DATSOL D 8 0 Data Fecha Date Data da Solicitacao Fecha de Solicitud Request Date - M->DT5_DATSOL >= dDataBase x x x x x x x x x x x x x x x x x dDataBase - 1 xxx - - - S V - - - - - - - - - - 1 N - - N N N - - - 1 1 - - - 53727 0
DT5 05 DT5_HORSOL C 4 0 Hora Hora Time Hora da Solicitacao Hora de Solicitud Request Time @R 99:99 - x x x x x x x x x x x x x x x x StrTran(Left(Time(),5),":","") - 1 xxx - - - S V - - - - - - - - - - 1 N - - N N N - - - 1 1 - - - 53728 0
DT5 06 DT5_TIPCOL C 1 0 Tipo Coleta Tipo Recol. Collect.Type Tipo de Coleta Tipo de Recoleccion Collection type @! Pertence("12") x x x x x x x x x x x x x x x x "1" - 1 xxx - - - - V - - - 1=Digitada;2=Automatica 1=Digitada;2=Automatica 1=Entered;2=Automatic - - - - 1 N - - N N N - - - 1 1 - - - 53729 0
DT5 07 DT5_CODSOL C 9 0 Cod. Solicit Cod.Solicit. Request Code Codigo do Solicitante Codigo del solicitante Requester Code @! ExistCpo("DUE",M->DT5_CODSOL) .And. TMSA460Val() x x x x x x x x x x x x x x x x - DL92 1 x xxx - S - S A R - - - - - - - - 076 1 S - - N - N - - - 1 1 - - - 53730 0
DT5 08 DT5_DDD C 3 0 DDD DDD Long-distanc DDD DDD DDD (Area Code) @! - x x x x x x x x x x x x x x x x x - - 1 xx - - - S - - - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53731 0
DT5 09 DT5_TEL C 15 0 Telefone Telefono Phone No. Telefone Telefono Telephone No. @! - x x x x x x x x x x x x x x x x x - - 1 xx - - - S - - - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53732 0
DT5 10 DT5_SEQEND C 9 0 Seq.Endereco Sec.Direcc. Address Seq Seq.Endereco Sec.Direccion Address Seq. @! Vazio() .Or. TMSA460Val() x x x x x x xx x x x x x x x x - DLA1 1 x - S - - - - - - - - - - - - 077 1 N - - N N N - - - 1 2 - - - 53733 0
DT5 11 DT5_NOME C 50 0 Solicitante Solicitante Requestor Nome Nombre Name @! - x x x x x x xx x x x x x x x x IF(!INCLUI,POSICIONE("DUE",1,XFILIAL('DUE')+DT5->DT5_CODSOL,"DUE_NOME"),'') - 1 x xx - - - S V V - - - - - - - Posicione("DUE",1,xFilial("DUE")+DT5->DT5_CODSOL,"DUE_NOME") 175 1 N - - N N N - - - 1 2 - - - 53734 0
DT5 12 DT5_END C 40 0 Endereco Direccion Address Endereco Direccion Address @! - x x x x x x x x x x x x x x x x IF(!INCLUI,TMSA460VER('M->DT5_END'),'') - 1 x xx x - - - - V V - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53735 0
DT5 13 DT5_BAIRRO C 30 0 Bairro Barrio Neighborhood Bairro Barrio Neighborhood @! - x x x x x x x x x x x x x x x x IF(!INCLUI,TMSA460VER('M->DT5_BAIRRO'),'') - 1 x xx x - - - - V V - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53736 0
DT5 14 DT5_MUN C 15 0 Municipio Municipio City Municipio Municipio City @! - x x x x x x xx x x x x x x x x IF(!INCLUI,TMSA460VER('M->DT5_MUN'),'') - 1 x x x - - - - V V - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53737 0
DT5 15 DT5_EST C 2 0 Estado Estado State Estado Estado State @! Vazio() .Or. ExistCpo("SX5","12"+M->DUE_EST) x x x x x x xx x x x x x x x x IF(!INCLUI,TMSA460VER('M->DT5_EST'),'') 12 1 x x x - - - - V V - - - - - - - - 010 1 N - - N N N - - - 1 2 - - - 53738 0
DT5 16 DT5_CEP C 8 0 CEP CP Postal Cd. CEP CP Postal Code @R 99999-999 - x x x x x x xx x x x x x x x x IF(!INCLUI,TMSA460VER('M->DT5_CEP'),'') - 1 x x x - - - - V V - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53739 0
DT5 17 DT5_CONTAT C 15 0 Contato Contacto Contact Contato Contacto Contact @! - x x x x x x x x x x x x x x x x IF(!INCLUI,POSICIONE("DUE",1,XFILIAL("DUE")+M->DT5_CODSOL,"DUE_CONTAT"),'') - 1 x xx x - - - - V V - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53740 0
DT5 18 DT5_HORCOI C 4 0 Hora Ini.Col Hora Ini.Rec Col.St. Time Hora Inicio Coleta Hora Inicio Recoleccion Collection Start Time @R 99:99 - x x x x x x xx x x x x x x x x IF(!INCLUI,TMSA460VER('M->DT5_HORCOI'),'') - 1 x x x - - - - V V - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53741 0
DT5 19 DT5_HORCOF C 4 0 Hora Fim Col Hora Fin. Re Col End Time Hora Fim da Coleta Hora Final de Recoleccion Collection Final Hour @R 99:99 - x x x x x x x x x x x x x x x x IF(!INCLUI,TMSA460VER('M->DT5_HORCOF'),'') - 1 x xx x - - - - V V - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53742 0
DT5 20 DT5_CDRORI C 6 0 Cod.Reg.Ori. Cod.Reg.Ori. Orig.Reg.Cd. Codigo da Regiao Origem Codigo de Region Origen Origem Region Code @! ExistCpo("DUY",M->DT5_CDRORI,1) .And. TMSA460Val() x x x x x x xx x x x x x x x x GetMv("MV_CDRORI") DUY 1 xx - S - S - - - - - - - - - - - 1 N - - N N N - - - 1 1 - - - 53743 0
DT5 21 DT5_REGORI C 30 0 Reg.Origem Reg.Origen Origin Reg. Reg. Origem Reg. Origen Origin Region @! - x x x x x x xx x x x x x x x x Posicione("DUY",1,xFilial("DUY")+M->DT5_CDRORI,"DUY_DESCRI") - 1 xx - - - S V V - - - - - - - Posicione("DUY",1,xFilial("DUY")+DT5->DT5_CDRORI,"DUY_DESCRI") - 1 N - - N N N - - - 1 2 - - - 53744 0
DT5 22 DT5_CLIDES C 6 0 Destinatario Destinatario Recipient Destinatario Destinatario Recipient @! Tmsa460Val() x x x x x x x x x x x x x x x x - SA1 1 xx - S - - - - - - - - - - - - 001 1 N - - N N N - - - 1 1 - - - 53745 0
DT5 23 DT5_LOJDES C 2 0 Loja Dest. Tda Dest. Unit Recip. Loja do Destinatario Tienda de Destinatario Recipient Unit @! Tmsa460Val() x x x x x x x x x x x x x x x x - - 1 xx - S - - - - - - - - - - - - 002 1 N - - N N N - - - 1 1 - - - 53746 0
DT5 24 DT5_NOMDES C 50 0 Nome Dest. Nomb Dest. Recipient Nm Nome do Destinatario Nomb del Destinatario Recipient Name @! - x x x x x x xx x x x x x x x x Tmsa460Ver('M->DT5_NOMDES') - 1 x - - - - V V - - - - - - - TMSA510Cli(DT5->DT5_CLIDES,DT5->DT5_LOJDES,"A1_NOME") 175 1 N - - N N N - - - 1 2 - - - 53747 0
DT5 25 DT5_SQEDES C 9 0 Seq.End.Des. Sec.Dir.Des. Seq.Add.Rec. Seq. End. do Destinatario Sec. Dir. de Destinatario Seq. Address of Recipient @! Vazio() .Or. Tmsa460Val() x x x x x x xx x x x x x x x x - DLV 1 xx - S - - - - - - - - - - - - 077 1 N - - N N N - - - 1 2 - - - 53748 0
DT5 26 DT5_ENDDES C 40 0 End. Dest. Dir. Dest. Recip. Addr. Endereco Destinatario Direccion Destinatario Recipient Address @! - x x x x x x xx x x x x x x x x Tmsa460Ver('M->DT5_ENDDES') - 1 xx - - - - V V - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53749 0
DT5 27 DT5_BAIDES C 30 0 Bairro Dest. Barrio Dest. Dest. Neighb Bairro Destinatario Barrio Destinatario Destiny Neighborhood @! - x x x x x x xx x x x x x x x x Tmsa460Ver('M->DT5_BAIDES') - 1 xx - - - - V V - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53750 0
DT5 28 DT5_MUNDES C 15 0 Mun. Dest. Mun. Dest. Recip. City Municipio Destinatario Municipio Destinatario Recipient City @! - x x x x x x xx x x x x x x x x Tmsa460Ver('M->DT5_MUNDES') - 1 xx - - - - V V - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53751 0
DT5 29 DT5_ESTDES C 2 0 Estado Dest. Estado Dest. Dest. State Estado Destinatario Estado Destinatario Destinee State @! - x x x x x x xx x x x x x x x x Tmsa460Ver('M->DT5_ESTDES') - 1 xx - - - - V V - - - - - - - - 010 1 N - - N N N - - - 1 2 - - - 53752 0
DT5 30 DT5_CEPDES C 8 0 CEP Dest. CP Dest. Rec.Post.Cd. CEP Destinatario CP Destinatario Recipient Postal Code @! - x x x x x x xx x x x x x x x x Tmsa460Ver('M->DT5_CEPDES') - 1 xx - - - - V V - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53753 0
DT5 31 DT5_TIPTRA C 1 0 Tipo Transp. Tipo Transp. Transp. Type Tipo Transporte Tipo Transporte Transport Type @! TMSValField("M->DT5_TIPTRA",.T.,"DT5_DESTPT") x x x x x x xx x x x x x x x x - DLC 1 xx - - - - - - - - - - - - - - - 1 N - - N N N - - - 1 1 - - - 53754 0
DT5 32 DT5_DESTPT C 30 0 Desc.Tp.Tran Desc.Tp.Tran TranTp.Desc Desc.Tipo Transporte Desc.Tipo Transporte Transport Type Desc. @! - x x x x x x xx x x x x x x x x If(Inclui,"",TMSValField("DT5->DT5_TIPTRA",.F.)) - 1 x x - - - - V V - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53755 0
DT5 33 DT5_CDRDCA C 6 0 Cod.Reg.Carg Cod.Reg.Carg Carg. Dest. Regiao Destino da Carga Region Destino de Carga Cargo Destination Region @! ExistCpo('DUY',M->DT5_CDRDCA,1) .And. TMSA460Val() x x x x x x xx x x x x x x x x - DUY 1 xx - S - S - - - - - - - - Tmsa460Whe() - - 1 N - - N N N - - - 1 2 - - - 53756 0
DT5 34 DT5_REGDCA C 30 0 Destino Carg Destino Carg Carg Dest Reg. Destino Carga Reg. Destino Carga Cargo Destination Region @! - x x x x x x xx x x x x x x x x IIf(Inclui,"",Posicione("DUY",1,xFilial("DUY")+DT5->DT5_CDRDCA,"DUY_DESCRI")) - 1 x xx - - - S V V - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53757 0
DT5 35 DT5_FILDES C 2 0 Fil. Destino Suc. Destino Dest. branch Filial de Destino Sucursal de Destino Destination Branch - - x x x x x x xx x x x x x x x x IIf(Inclui,"",Posicione("DUY",1,xFilial("DUY")+DT5->DT5_CDRDCA,"DUY_FILDES")) - 1 xx - - - - V V - - - - - - - - 033 1 N - - N N N - - - 1 2 - - - 53758 0
DT5 36 DT5_NUMCOT C 6 0 No.Cotacao Nº Cotiz. Quot. No. Numero da Cotacao Numero de Cotizacion Quotation No. @! Vazio() .Or. TMSA460Val() x x x x x x xx x x x x x x x x - DVN 1 x - - - - - - - - - - - - Inclui - - 1 N - - N N N - - - 1 2 - - - 53759 0
DT5 37 DT5_USER C 6 0 Cod.Usuario Cod.Usuario User Code Cod.Usuario Cod.Usuario User Code @! - x x x x x x xx x x x x x x x x RetCodUsr() - 1 x x - - - - V - - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53760 0
DT5 38 DT5_DATPRV D 8 0 Dta. Pre Col Fch. Pre Rec Est Col Date Data Previsao de Coleta Fecha Prevision de Recole Estimate Collection date - M->DT5_DATPRV >= dDataBase x x x x x x x x x x x x x x x x dDataBase - 1 x xx - - - S - - - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53761 0
DT5 39 DT5_HORPRV C 4 0 Hora Pre Col Hora Pre Rec Col Est.Time Hora Previsao de Coleta Hora Previs. de Recolecci Estimate collection time @R 99:99 AtVldHora(M->DT5_HORPRV) x x x x x x x x x x x x x x x x StrTran(Left(Time(),5),":","") - 1 x xx - - - S - - - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53762 0
DT5 40 DT5_DATENT D 8 0 Dta. Pre Ent Fca. Pre Ent Est Deliv Dt Data de Entrega Fecha de Entrega Delivery Date - Vazio() .Or. M->DT5_DATENT >= dDataBase x x x x x x xx x x x x x x x x dDataBase - 1 xx - - - - - - - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53763 0
DT5 41 DT5_HORENT C 4 0 Hora Pre Ent Hora Pre Ent Est Del Time Hora da Entrega Hora de Entrega Delivery Time @R 99:99 Vazio() .Or. AtVldHora(M->DT5_HORENT) x x x x x x xx x x x x x x x x StrTran(Left(Time(),5),":","") - 1 xx - - - - - - - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53764 0
DT5 42 DT5_CODOBS C 6 0 Codigo Obs. Codigo Obs. Obs. Code Codigo da Observacao Codigo de Observacion Note Code 999999 - x x x x x x x x x x x x x x x - - 1 x - - - - V - - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53765 0
DT5 43 DT5_OBS M 80 0 Observacao Observacion Note Observacao Observacion Note - - x x x x x x xx x x x x x x x x Iif(Inclui,"",E_MSMM(DT5->DT5_CODOBS,80)) - 1 x xx - - - - - V - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53766 0
DT5 44 DT5_DATCAN D 8 0 Data Cancela Fecha Anul. Canc. Date Data Cancelamento Fecha Anulacion Canceling Date - (M->DT5_DATCAN >= M->DT5_DATSOL) x x x x x x xx x x x x x x x x - - 1 xx - - - - - - - - - - - - - - - 2 N - - N N N - - - 1 1 - - - 53767 0
DT5 45 DT5_CODOBC C 6 0 Cod.Obs.Canc Cod.Obs.Anul Can.Obs.Code Cod. Obs.Cancelamento Cod. Obs.Anulacion Cd. Canceling Note 999999 - x x x x x x x x x x x x x x x x - - 1 xx - - - - V - - - - - - - - - - 2 N - - N N N - - - 1 2 - - - 53768 0
DT5 46 DT5_OBSCAN M 80 0 Obs.Cancelam Obs.Anul. Cancel. Nt Obs. Cancelamento Obs. Anulacion Note: Canceling - - x x x x x x x x x x x x x x x x Iif(Inclui,"",E_MSMM(DT5->DT5_CODOBC,80)) - 1 x xxx - - - - - V - - - - - - - - - 2 N - - N N N - - - 1 1 - - - 53769 0
DT5 47 DT5_FILDOC C 2 0 Fil.Docto. Suc.Docto. Doc Branch Filial do Documento Sucursal del Documento Document Branch - - x x x x x x x x x x x x x x x xx - - 1 xxx - - - S V - - - - - - - - - 033 1 N - - N N N - - - 1 1 - - - 53770 0
DT5 48 DT5_DOC C 9 0 No.Docto. Nº Docto. Doc. No. Numero do Documento Numero de Documento Document Number @! - x x x x x x x x x x x x x x x xx - - 1 xxx - - - S V - - - - - - - - - 018 1 N - - N N N - - - 1 1 - - - 53771 0
DT5 49 DT5_SERIE C 3 0 Serie Docto. Serie Docto. Doc. Series Serie do Documento Serie de Documento Document Series !!! - x x x x x x x x x x x x x x x xx - - 1 xxx - - - S V - - - - - - - - - 094 1 N - - N N N - - - 1 1 - - - 53772 0
DT5 50 DT5_ROTPRE C 6 0 Rot.Prevista Rut.Prevista Estimate Rou Rota Prevista de Coleta Ruta Prevista de Recolecc Estimate collection route @! - x x x x x x xx x x x x x x x x - - 1 xx - - - - V - - - - - - - - - 041 1 N - - N N N - - - 1 2 - - - 53773 0
DT5 51 DT5_STATUS C 1 0 Status Estatus Status Status Estatus Status @! Pertence("12345679") x x x x x x xx x x x x x x x x "1" - 1 x xx - - - - V - - - 1=Em Aberto;2=Indicada para Coleta;3=Em Transito;4=Encerrada;5=Documento Informado;6=Bloqueada;7=Em Conferencia;9=Cancelada 1=Pendiente;2=Indicada para Recol;3=En Transito;4=Finalizada;5=Documento Informado;6=Bloqueada;7=En Verificacion;9=Anulada 1=Open;2=Indicated for collection;3=In transit;4=Closed;5=Document entered ;6=Blocked;7=In Conference;9=Cancelled - - - - 1 N - - N N N - - - 1 2 - - - 53774 0
DT5 52 DT5_USRLIB C 6 0 Usr.Liberac. Usr.Liberac. Release Usr. Usuario da Liberacao Usuario de Liberacion Release User @! - x x x x x x xx x x x x x x x x - - 1 xx - - - - V - - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53775 0
DT5 53 DT5_DATLIB D 8 0 Data Liberac Fecha Libera Relea. Dt Data da Liberacao Fecha de Liberacion Release Date - - x x x x x x x x x x x x x x x x - - 1 xx - - - - V - - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53776 0
DT5 54 DT5_HORLIB C 4 0 Hora Liberac Hora Liberac Relea. Time Hora da Liberacao Hora de Liberacion Release Time @R 99:99 - x x x x x x x x x x x x x x x x - - 1 xx - - - - V - - - - - - - - - - 1 N - - N N N - - - 1 2 - - - 53777 0
DT5 55 DT5_CLIDEV C 6 0 Devedor Deudor Debtor Devedor Deudor Debtor @! Tmsa460Val() x x x x x x x x x x x x x x x x - SA1 1 x xx - S - S A R - - - - - - - - 001 1 N - - N N N - - - 1 1 - - - 53778 0
DT5 56 DT5_LOJDEV C 2 0 Loja Devedor Tda Deudor Unit Devedor Loja Devedor Tienda Deudor Debtor Unit @! Tmsa460Val() x x x x x x x x x x x x x x x x - - 1 xx - S - S A R - - - - - - - - 002 1 N - - N N N - - - 1 1 - - - 53779 0
DT5 57 DT5_NOMDEV C 50 0 Nome devedor Nomb deudor Debtor Name Nome Devedor Nombre Deudor Debtor Name @! - x x x x x x x x x x x x x x x x Tmsa460Ver('M->DT5_NOMDEV') - 1 x xx x - - - S V V - - - - - - - TMSA510Cli(DT5->DT5_CLIDEV,DT5->DT5_LOJDEV,"A1_NOME") 175 1 N - - N N N - - - 1 2 - - - 53780 0
DT5 58 DT5_CADPOR C 1 0 Cad.Portal Reg.Portal Reg.Portal Cadastrado via portal Registro por el portal Registered via Portal - Pertence("12") x x x x x x x x x x x x x x x x "2" - 1 x - - - N V R - - 1=Sim;2=Nao 1=Si;2=No 1=Yes;2=No - - - - 1 N - - N N N - - - 1 2 - - - 53781 0
DT5 59 DT5_NUMATD C 6 0 Atendimento Atencion Service Codigo do Atendimento Codigo de Atencion Service Code @! - x x x x x x x x x x x x x x x x - - 1 x - - - S V R - - - - - - - - - - N - - N - N - - - 1 2 - - - 53782 0
DT5 60 DT5_ITEATD C 3 0 Item Atend. Item Atenc. Service Item Item do Atendimento Item de Atencion Service Item @! - x x x x x x x x x x x x x x x x - - 1 x - - - S V R - - - - - - - - - - N - - N - N - - - 1 2 - - - 53783 0
DT5 61 DT5_OLDSEQ C 2 0 Old.Seq.End. Old.Sec.Dir. Old.Seq.Add. Old.Seq.Endereco Old.Sec.Direccion Old Seq.Address @! - x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - - N - - N - N - - - 1 2 - - - 53784 0
DT5 62 DT5_OLDSQD C 2 0 Old.Sq.End.D Old.Sc.Dir.D Old.Seq.AddD Old.Seq.End.Destinatario Old.Sec.Dir.Destinatario Old Seq.Address Target @! - x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - - N - - N - N - - - 1 2 - - - 53785 0
DT5 63 DT5_NCONTR C 15 0 Contrato Contrato Contract Número do Contrato Numero del contrato Contract Number @! - x x x x x x x x x x x x x x x x - - 1 x - - - N V R - - - - - - - - - 1 S - - N - N - - - 1 2 - - - 53786 0
DT5 64 DT5_CODNEG C 2 0 Cod Negociac Cod Negociac Negot. Code Código da Negociação Codigo de negociacion Negotiation Code @! (Vazio() .Or. Existcpo("DDB")) .And. TMSA460Val() x x x x x x x x x x x x x x x x - DDB1 1 x - S - N A R - - - - - - TMSA460Whe() - 119 1 S - - N - N - - - 1 2 - - - 53787 0
DT5 65 DT5_DESNEG C 30 0 Desc Neg Ctr Desc Neg Con Ctr Neg Desc Descr Negociação Contrato Descr Negociac. Contrato Contract Negotiation Desc @! - x x x x x x x x x x x x x x x x Iif(Inclui,"",Posicione("DDB",1,xFilial("DDB") + DT5->DT5_CODNEG,"DDB_DESCRI")) - 1 x - - - N V V - - - - - - - - - 1 S - - N - N - - - 1 2 - - - 53788 0
DT5 66 DT5_SERVIC C 3 0 Serviço Servicio Service Serviço de Negociação Servicio de negociacion Negotiation Service @! (Vazio() .Or. ExistCpo("DC5",,1)) .And. TMSA460VAL() x x x x x x x x x x x x x x x x - DLJ1 1 x - S - N A R - - - - - - TMSA460Whe() - 012 1 S - - N - N - - - 1 2 - - - 53789 0
DT5 67 DT5_DESSER C 30 0 Descr Servic Descr Servic Service Desc Descrição do Serviço Descripcion del servicio Service Description @! - x x x x x x x x x x x x x x x x Iif(Inclui,"",Tabela("L4",DT5->DT5_SERVIC,.F.)) - 1 x - - - N V V - - - - - - - - - 1 S - - N - N - - - 1 2 - - - 53790 0
DT5 68 DT5_TIPFRE C 1 0 Tipo Frete Tipo flete Type Freight Tipo do Frete Tipo de flete Freight Type @! Pertence("12") .And. TMSA460VAL() x x x x x x x x x x x x x x x x - - 1 x - - - N A R - - 1=CIF;2=FOB 1=CIF;2=FOB 1=CIF;2=FOB - TMSA460Whe() - - 1 S - - N - N - - - 1 1 - - - 53791 0
DT5 69 DT5_LOTE C 6 0 Lote Coleta Lote Recolec Collec Lot Lote Coleta Lote Recolección Collection Lot @! - x x x x x x x x x x x x x x x - DTP 1 x xx - - - S V R - - - - - - - - - - N - - N - N - - - 2 2 - - - 53792 0
DT5 70 DT5_CLIREM C 6 0 Remetente Remitente Sender Cliente Remetente Cliente remitente Sender Customer @! Tmsa460Val() x x x x x x x x x x x x x x x x - SA1 1 x - S - N A R - - - - - - - - 001 1 S - - N - N - - - 1 1 - - - 53793 0
DT5 71 DT5_KM N 7 1 KM KM KM KM KM KM @E 99,999.9 Positivo() x x x x x x x x x x x x x x x x - - 1 x xx - - - N A R - - - - - - - - - - N - - N - N - - - 2 2 - - - 53794 0
DT5 72 DT5_LOJREM C 2 0 Loja Remet Tda Remit Sender Store Loja do Remetente Tienda del remitente Sender Store @! Tmsa460Val() x x x x x x x x x x x x x x x x - - 1 x - S - S A R - - - - - - - - 002 1 S - - N - N - - - 1 1 - - - 53795 0
DT5 73 DT5_SQEREM C 9 0 Seq.End.Rem Sec.Dir.Rem Sen.Add.Seq. Sequencia de End. Remet. Secuencia Direc. Remit. Sender Addr. Sequence @! Vazio() .Or. Tmsa460Val() x x x x x x x x x x x x x x x x - DLA 1 x - - - N A R - - - - - - - - 077 1 S - - N - N - - - 1 2 - - - 53796 0
DT5 74 DT5_LOCCOL C 1 0 Local Coleta Local Recol. Collec Loc Local de Coleta Local de recolección Collection Location @! Pertence('12') .And. TMSA460Val() x x x x x x x x x x x x x x x x '1' - 1 xx - S - S A R - - 1=Solicitante;2=Remetente 1=Solicitante;2=Remitente 1=Requestor;2=Sender - - - - - N - - N - N - - - 2 2 - - - 53797 0
DT5 75 DT5_NOMREM C 50 0 Nome Remet. Nombre Remit Sender Name Nome do Remetente Nombre del remitente Sender Name @! - x x x x x x x x x x x x x x x x Tmsa460Ver('M->DT5_NOMREM') - 1 x - - - N V V - - - - - - - TMSA510Cli(DT5->DT5_CLIREM,DT5->DT5_LOJREM,"A1_NOME") 175 1 S - - N - N - - - 1 2 - - - 53798 0
DT5 76 DT5_SRVENT C 3 0 Serv.Entrega Serv.Entrega DeliveryServ Serviço de Entrega Servicio de entrega Delivery Service @! (Vazio() .Or. ExistCpo("DC5",,1)) .And. TMSA460VAL() x x x x x x x x x x x x x x x x - DLJ1 1 x - S - S A R - - - - - - TMSA460Whe() - 012 1 S - - N - N - - - 1 1 - - - 53799 0
DT5 77 DT5_DESENT C 30 0 Desc.Srv.Ent Desc.Srv.Ent DelivrySrvDs Desc.Serv.Entrega Desc.Serv.Entrega Delivery Service Descript @! - x x x x x x x x x x x x x x x x Iif(Inclui,"",Tabela("L4",DT5->DT5_SRVENT,.F.)) - 1 x - - - S V V - - - - - - - - - 1 S - - N - N - - - 1 2 - - - 53800 0
DT5 78 DT5_CODDMD C 8 0 Cod. Demanda Cód. Demanda Demand cd Código da demanda Código de la demanda Demand code @! - x x x x x x x x x x x x x x x x - - 1 x x xx - - - S V R - - - - - - - - - - S - - N - N - - - 1 1 - - - 53801 0
DT5 79 DT5_SEQDMD C 2 0 Seq. Demanda Sec. Demanda Demand Seq Sequência da Demanda Secuencia de la demanda Demand Sequence @! - x x x x x x x x x x x x x x x x - - 1 x x xx - - - S V R - - - - - - - - - - S - - N - N - - - 1 1 - - - 53802 0
DT5 80 DT5_ORIDMD C 1 0 Origem Deman Origen Deman Orig Deman Origem da demanda Origen de la demanda Origin of demand @! - x x x x x x x x x x x x x x x x '2' - 1 x x xx - - - S V R - - 1=Demanda; 2=TMS 1=Demanda; 2=TMS 1=Demand; 2=TMS - - - - - S - - N - N - - - 1 2 - - - 53803 0
DT5 81 DT5_SDOC C 3 0 Série Doc. Serie Doc. Inv.Series Série do Documento Fiscal Serie de Documento Fiscal Invoice Series !!! - x x x x x x x x x x x x x x x - - 1 xx x - - - N V R - - - - - - - - 095 - S - - N - N - - - 1 2 - - - 53804 0

Índices da Tabela DT5 (8 í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_
DT5 1 DT5_FILIAL+DT5_FILORI+DT5_NUMSOL Fil.Origem + No.Sl.Coleta Suc.Origen + Nº Sol.Rec. Orig.Branch + CollecReqNo S XXX+XXX - S 2 3 - 8231 0
DT5 2 DT5_FILIAL+DT5_CODSOL+DTOS(DT5_DATSOL)+DT5_CODNEG+DT5_SERVIC Cod. Solicit + Data + Cod Negociac + Serviço Cod.Solicit. + Fecha + Cod Negociac + Servicio Request Code + Date + Negot. Code + Service S DUE+XXX+XXX - S 2 3 - 8232 0
DT5 3 DT5_FILIAL+DT5_NUMSOL No.Sl.Coleta Nº Sol.Rec. CollecReqNo S XXX - S 2 3 - 8233 0
DT5 4 DT5_FILIAL+DT5_FILDOC+DT5_DOC+DT5_SERIE Fil.Docto. + No.Docto. + Serie Docto. Suc.Docto. + Nº Docto. + Serie Docto. Doc Branch + Doc. No. + Doc. Series S XXX+XXX+XXX - S 2 3 - 8234 0
DT5 5 DT5_FILIAL+DT5_FILORI+DT5_NUMCOT Fil.Origem + No.Cotacao Suc.Origen + Nº Cotiz. Orig.Branch + Quot. No. S XXX - S 2 3 - 8235 0
DT5 6 DT5_FILIAL+DT5_NUMATD+DT5_ITEATD Atendimento + Item Atend. Atencion + Item Atenc. Service + Service Item S - - S 2 3 - 8236 0
DT5 7 DT5_FILIAL+DT5_NCONTR+DT5_CODNEG+DT5_SERVIC Contrato + Cod Negociac + Serviço Contrato + Cod Negociac + Servicio Contract + Negot. Code + Service S - - S 2 3 - 8237 0
DT5 8 DT5_FILIAL+DT5_FILORI+DT5_LOTE Fil.Origem + Lote Coleta Suc.Origen + Lote Recolec Orig.Branch + Collec Lot S - - S 2 3 - 8238 0

Perguntas frequentes

Para que serve a tabela DT5 no Protheus?

Ela é utilizada para solicitação de coleta dentro do sistema ERP Protheus.

Como consultar os campos da tabela DT5?

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

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

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

Exemplo de consulta SQL da tabela DT5

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

SELECT
    DT5_FILIAL,
    DT5_FILORI,
    DT5_NUMSOL,
    DT5_DATSOL,
    DT5_HORSOL,
    DT5_TIPCOL,
    DT5_CODSOL,
    DT5_DDD,
    DT5_TEL,
    DT5_SEQEND,
    DT5_NOME,
    DT5_END,
    DT5_BAIRRO,
    DT5_MUN,
    DT5_EST,
    DT5_CEP,
    DT5_CONTAT,
    DT5_HORCOI,
    DT5_HORCOF,
    DT5_CDRORI,
    DT5_REGORI,
    DT5_CLIDES,
    DT5_LOJDES,
    DT5_NOMDES,
    DT5_SQEDES,
    DT5_ENDDES,
    DT5_BAIDES,
    DT5_MUNDES,
    DT5_ESTDES,
    DT5_CEPDES,
    DT5_TIPTRA,
    DT5_DESTPT,
    DT5_CDRDCA,
    DT5_REGDCA,
    DT5_FILDES,
    DT5_NUMCOT,
    DT5_USER,
    DT5_DATPRV,
    DT5_HORPRV,
    DT5_DATENT,
    DT5_HORENT,
    DT5_CODOBS,
    DT5_OBS,
    DT5_DATCAN,
    DT5_CODOBC,
    DT5_OBSCAN,
    DT5_FILDOC,
    DT5_DOC,
    DT5_SERIE,
    DT5_ROTPRE,
    DT5_STATUS,
    DT5_USRLIB,
    DT5_DATLIB,
    DT5_HORLIB,
    DT5_CLIDEV,
    DT5_LOJDEV,
    DT5_NOMDEV,
    DT5_CADPOR,
    DT5_NUMATD,
    DT5_ITEATD,
    DT5_OLDSEQ,
    DT5_OLDSQD,
    DT5_NCONTR,
    DT5_CODNEG,
    DT5_DESNEG,
    DT5_SERVIC,
    DT5_DESSER,
    DT5_TIPFRE,
    DT5_LOTE,
    DT5_CLIREM,
    DT5_KM,
    DT5_LOJREM,
    DT5_SQEREM,
    DT5_LOCCOL,
    DT5_NOMREM,
    DT5_SRVENT,
    DT5_DESENT,
    DT5_CODDMD,
    DT5_SEQDMD,
    DT5_ORIDMD,
    DT5_SDOC
FROM DT5
WHERE
    D_E_L_E_T_ = ' '
    AND DT5_FILIAL = 'VALOR'
    AND DT5_FILORI = 'VALOR'
    AND DT5_NUMSOL = 'VALOR'
    AND DT5_DATSOL BETWEEN '20260501' AND '20260531'
    AND DT5_HORSOL = 'VALOR'
    AND DT5_TIPCOL = 'VALOR'
    AND DT5_CODSOL = 'VALOR'
    AND DT5_DDD = 'VALOR'
    AND DT5_TEL = 'VALOR'
    AND DT5_SEQEND = 'VALOR'
    AND DT5_NOME = 'VALOR'
    AND DT5_END = 'VALOR'
    AND DT5_BAIRRO = 'VALOR'
    AND DT5_MUN = 'VALOR'
    AND DT5_EST = 'VALOR'
    AND DT5_CEP = 'VALOR'
    AND DT5_CONTAT = 'VALOR'
    AND DT5_HORCOI = 'VALOR'
    AND DT5_HORCOF = 'VALOR'
    AND DT5_CDRORI = 'VALOR'
    AND DT5_REGORI = 'VALOR'
    AND DT5_CLIDES = 'VALOR'
    AND DT5_LOJDES = 'VALOR'
    AND DT5_NOMDES = 'VALOR'
    AND DT5_SQEDES = 'VALOR'
    AND DT5_ENDDES = 'VALOR'
    AND DT5_BAIDES = 'VALOR'
    AND DT5_MUNDES = 'VALOR'
    AND DT5_ESTDES = 'VALOR'
    AND DT5_CEPDES = 'VALOR'
    AND DT5_TIPTRA = 'VALOR'
    AND DT5_DESTPT = 'VALOR'
    AND DT5_CDRDCA = 'VALOR'
    AND DT5_REGDCA = 'VALOR'
    AND DT5_FILDES = 'VALOR'
    AND DT5_NUMCOT = 'VALOR'
    AND DT5_USER = 'VALOR'
    AND DT5_DATPRV BETWEEN '20260501' AND '20260531'
    AND DT5_HORPRV = 'VALOR'
    AND DT5_DATENT BETWEEN '20260501' AND '20260531'
    AND DT5_HORENT = 'VALOR'
    AND DT5_CODOBS = 'VALOR'
    AND DT5_DATCAN BETWEEN '20260501' AND '20260531'
    AND DT5_CODOBC = 'VALOR'
    AND DT5_FILDOC = 'VALOR'
    AND DT5_DOC = 'VALOR'
    AND DT5_SERIE = 'VALOR'
    AND DT5_ROTPRE = 'VALOR'
    AND DT5_STATUS = 'VALOR'
    AND DT5_USRLIB = 'VALOR'
    AND DT5_DATLIB BETWEEN '20260501' AND '20260531'
    AND DT5_HORLIB = 'VALOR'
    AND DT5_CLIDEV = 'VALOR'
    AND DT5_LOJDEV = 'VALOR'
    AND DT5_NOMDEV = 'VALOR'
    AND DT5_CADPOR = 'VALOR'
    AND DT5_NUMATD = 'VALOR'
    AND DT5_ITEATD = 'VALOR'
    AND DT5_OLDSEQ = 'VALOR'
    AND DT5_OLDSQD = 'VALOR'
    AND DT5_NCONTR = 'VALOR'
    AND DT5_CODNEG = 'VALOR'
    AND DT5_DESNEG = 'VALOR'
    AND DT5_SERVIC = 'VALOR'
    AND DT5_DESSER = 'VALOR'
    AND DT5_TIPFRE = 'VALOR'
    AND DT5_LOTE = 'VALOR'
    AND DT5_CLIREM = 'VALOR'
    AND DT5_KM = 0
    AND DT5_LOJREM = 'VALOR'
    AND DT5_SQEREM = 'VALOR'
    AND DT5_LOCCOL = 'VALOR'
    AND DT5_NOMREM = 'VALOR'
    AND DT5_SRVENT = 'VALOR'
    AND DT5_DESENT = 'VALOR'
    AND DT5_CODDMD = 'VALOR'
    AND DT5_SEQDMD = 'VALOR'
    AND DT5_ORIDMD = 'VALOR'
    AND DT5_SDOC = 'VALOR'