Dicionário Protheus
Início

Tabela DUB no Protheus

Registros de Indenizações

O que é a tabela DUB no Protheus?

A tabela DUB faz parte do sistema ERP Protheus da TOTVS e é utilizada para registros de indenizações.

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

Propriedades da Tabela

Propriedade Valor
X2_CHAVE DUB
X2_PATH \DATA\
X2_ARQUIVO DUB990
X2_NOME Registros de Indenizações
X2_NOMESPA Registros de indemnizaciones
X2_NOMEENG Compensation Records
X2_ROTINA -
X2_MODO C
X2_MODOUN E
X2_MODOEMP E
X2_DELET 0
X2_TTS -
X2_UNICO -
X2_PYME S
X2_MODULO 43
X2_DISPLAY DUB_FILIAL+DUB_NUMRID+DUB_ITEM+DUB_FILRID+DUB_FILDOC+DUB_DOC+DUB_SERIE+DUB_STATUS
X2_SYSOBJ TMSA370
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_ 3526
R_E_C_D_E_L_ 0

Campos da Tabela DUB (46 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_
DUB 01 DUB_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 - - - - - - - - - - - - - - - 033 - N - - N N N - - - 1 2 - - - 55006 0
DUB 02 DUB_ITEM C 2 0 Item Item Item Item Item Item @9 - x x x x x x xx x x x x x x x x - - 1 x x - - - - V - - - - - - - - - - - N - - N N N - - - 1 2 - - - 55007 0
DUB 03 DUB_ESTORN C 1 0 Estorna Dvuelve Reverse Estorna Devuelve Reverse @! - x x x x x x xx x x x x x x x x "2" - 1 x - - - - - V - - 1=Sim;2=Nao 1=Si;2=No 1=Yes;2=No - - - - - N - - N N N - - - 1 2 - - - 55008 0
DUB 04 DUB_FILRID C 2 0 Fil.Registro Suc.Registro Reg.Branch Filial do Registro Sucursal del Registro Regist.Branch - - x x x x x x xx x x x x x x x x cFilAnt - 1 xx - - - S V - - - - - - - - - 033 - N - - N N N - - - 1 1 - - - 55009 0
DUB 05 DUB_NUMRID C 6 0 No.Registro Nº Registro Indemn.No. No.Reg.Indenizacao Nº Reg. Indemnizacion Indemn.Reg.Number @! ExistChav("DUB",M->DUB_NUMRID) x x x x x x xx x x x x x x x x GetSx8Num("DUB","DUB_NUMRID") - 1 xx - - - S V - - - - - - - - - - - N - - N N N - - - 1 1 - - - 55010 0
DUB 06 DUB_DATRID D 8 0 Data Fecha Date Data Reg.Indenizacao Fecha Reg. Indemnizacion Indemnity Reg. Date - M->DUB_DATRID <= dDataBase x x x x x x xx x x x x x x x x x dDataBase - 1 xxx - - - S - - - - - - - - - - - - N - - N N N - - - 1 1 - - - 55011 0
DUB 07 DUB_HORRID C 4 0 Hora Hora Time Hora Reg.Indenizacao Hora Reg.Indemnizacion Indemnity reg. time @R 99:99 AtVldHora(M->DUB_HORRID) x x x x x x xx x x x x x x x x x Left(StrTran(Time(),":",""),4) - 1 xxx - - - S - - - - - - - - - - - - N - - N N N - - - 1 1 - - - 55012 0
DUB 08 DUB_COMSEG C 2 0 Ramo Seguro Ramo Seguro Insur.Branch Ramo de Seguro Ramo de Seguro Insurance branch @! ExistCpo("DU3",M->DUB_COMSEG) x x x x x x xx x x x x x x x x - DU3 1 xx - S - - - - - - - - - - - - - - N - - N N N - - - 1 1 - - - 55013 0
DUB 09 DUB_DESSEG C 20 0 Des.Ramo Seg Des.Ramo Seg Ins.Act.Desc Descricao Ramo de Seguro Descripc. Ramo de Seguro Insr.Actv.Area Desc. @! - x x x x x x xx x x x x x x x x If(Inclui,"",Posicione("DU3",1,xFilial("DU3")+DUB->DUB_COMSEG,"DU3_DESCRI")) - 1 x x x - - - - V V - - - - - - - Posicione("DU3",1,xFilial("DU3")+DUB->DUB_COMSEG,"DU3_DESCRI") - - N - - N N N - - - 1 2 - - - 55014 0
DUB 10 DUB_FILORI C 2 0 Fil.Origem Suc.Origen Store Origin Filial de Origem Sucursal de Origen Store of Origin - - x x x x x x xx x x x x x x x x - - 1 xx - - - - V - - - - - - - - - 033 - N - - N N N - - - 1 2 - - - 55015 0
DUB 11 DUB_VIAGEM C 6 0 Viagem Viaje Trip Numero da Viagem Numero del Viaje Trip Number - - x x x x x x xx x x x x x x x x - - 1 xx - - - - V - - - - - - - - - 143 - N - - N N N - - - 1 2 - - - 55016 0
DUB 12 DUB_CODOCO C 4 0 Cod. Ocorre. Cod. Ocurre. Occurr. Code Codigo da Ocorrencia Codigo de la Ocurrencia Occurrence code @! ExistCpo("DT2",M->DUB_CODOCO) x x x x x x xx x x x x x x x x x - DT2 1 x xxx - S - S - - - - - - - - - - - - N - - N N N - - - 1 1 - - - 55017 0
DUB 13 DUB_DESOCO C 30 0 Desc.Ocorre. Desc.Ocurr. Occurr.Desc. Descricao da Ocorrencia Descrip. de la Ocurrencia Occurrence Description @! - x x x x x x xx x x x x x x x x If(Inclui,"",Posicione("DT2",1,xFilial("DT2")+DUB->DUB_CODOCO,"DT2_DESCRI")) - 1 x x - - - S V V - - - - - - - Posicione("DT2",1,xFilial("DT2")+DUB->DUB_CODOCO,"DT2_DESCRI") - - N - - N N N - - - 1 2 - - - 55018 0
DUB 14 DUB_CODMTV C 6 0 Cod.Motivo Cod. Motivo Reason Code Codigo Motivo Codigo Motivo Reason code @! - x x x x x x x x x x x x x x x - - 1 x x - - - - - - - - - - - - - - - - N - - N N N - - - 1 2 - - - 55019 0
DUB 15 DUB_MOTIVO M 80 0 Motivo Motivo Reason Motivo Motivo Reason @! - x x x x x x xx x x x x x x x x If(Inclui,"",MSMM(DUB->DUB_CODMTV)) - 1 x xx - - - - - V - - - - - - - - - - N - - N N N - - - 1 2 - - - 55020 0
DUB 16 DUB_STATUS C 1 0 Status Ind. Estatus Ind. Comp. Status Status da Indenizacao Estatus de la Indemnizac. Compensation status @! - x x x x x x xx x x x x x x x x "1" - 1 x x - - - - V - - - 1=Em Aberto;2=Autorizado Pagto;3=Encerrado 1=Pendiente;2=Autorizado Pagto;3=Encerrado 1=Pending;2=Authorized Payment;3=Closed - - - - - N - - N N N - - - 1 2 - - - 55021 0
DUB 17 DUB_STAREB C 1 0 Status Reemb Estatus Reem Reimb.Status Status do Reembolso Estatus del Reembolso Reimbursement status @! - x x x x x x xx x x x x x x x x "1" - 1 x x - - - - V - - - 1=Em Aberto;2=Solicitado;3=Reembolsado;4=Sem Reembolso 1=Pendiente;2=Solicitado;3=Reembolsado;4=Sem Reembolso 1=Pending;2=Requested;3=Reimbursed;4=No reimbursement - - - - - N - - N N N - - - 1 2 - - - 55022 0
DUB 18 DUB_AUTPAG C 1 0 Autoriza Pag Autoriza Pag Author.pymnt Autoriza Pagto Autoriza Pago Authorize payment @! TMSA370Vld() x x x x x x xx x x x x x x x x "2" - 1 x - - - - - V - - 1=Sim;2=Nao 1=Si;2=No 1=Yes;2=No - - - - - N - - N N N - - - 1 2 - - - 55023 0
DUB 19 DUB_FILDOC C 2 0 Fil.Docto. Suc. Dcto. Document Br. Filial do Documento Sucursal del Documento Document Branch - TMSA370Vld() x x x x x x xx x x x x x x x x - DL4 1 xx - - - S - - - - - - - - TMSA370Whe() - 033 - N - - N N N - - - 1 1 - - - 55024 0
DUB 20 DUB_DOC C 9 0 No.Docto. No. Dcto. Doc.Numb. Numero do Documento Numero del Documento Document Number @! TMSA370Vld() x x x x x x xx x x x x x x x x - - 1 x - - - S - - - - - - - - TMSA370Whe() - 018 - N - - N N N - - - 1 2 - - - 55025 0
DUB 21 DUB_SERIE C 3 0 Serie Docto. Serie Docto. Docum.Series Serie do Documento Serie Documento Document series !!! TMSA370Vld() x x x x x x xx x x x x x x x x - - 1 xx - - - S - - - - - - - - TMSA370Whe() - 094 - N - - N N N - - - 1 1 - - - 55026 0
DUB 22 DUB_CODCLI C 6 0 Cliente Cliente Customer Cod. Cliente Cod. Cliente Customer Code @! TMSA370Vld() x x x x x x xx x x x x x x x x - SA1 1 x xx - - - S - - - - - - - - INCLUI .or. ALTERA - 001 - N - - N N N - - - 1 2 - - - 55027 0
DUB 23 DUB_LOJCLI C 2 0 Loja Cliente Tienda Clien Cust.Unit Loja Cliente Tienda Cliente Customer Unit @! TMSA370Vld() x x x x x x xx x x x x x x x x - - 1 x xx - - - S - - - - - - - - INCLUI .or. ALTERA - 002 - N - - N N N - - - 1 2 - - - 55028 0
DUB 24 DUB_NOMCLI C 50 0 Nome Cliente Nombre Clien Custm. Name Nome Cliente Nombre Cliente Customer Name @! - x x x x x x xx x x x x x x x x If(Inclui,"",Posicione("SA1",1,xFilial("SA1")+DUB->(DUB_CODCLI+DUB_LOJCLI),"A1_NOME")) - 1 x x x - - - S V V - - - - - - - TMSA510Cli(DUB->DUB_CODCLI,DUB->DUB_LOJCLI,"A1_NOME") 175 - N - - N N N - - - 1 2 - - - 55029 0
DUB 25 DUB_TIPFRE C 1 0 Tipo Frete Tipo Flete Freight type Tipo do Frete Tipo del Flete Freight type @! Pertence("12") x x x x x x x x x x x x x x x x Iif(Inclui,0,Posicione("DT6",1,xFilial("DT6")+DUB->(DUB_FILDOC+DUB_DOC+DUB_SERIE),"DT6_TIPFRE")) - 1 xx - - - - V V - - 1=CIF;2=FOB 1=CIF;2=FOB 1=CIF;2=FOB - - - - - N - - N N N - - - 1 1 - - - 55030 0
DUB 26 DUB_QTDVOL N 5 0 Qtd.Volumes Cant. Bultos Qty Volumes Qtd.Volumes Cantidad de Bultos Quantity of Volumes @E 99,999 - x x x x x x xx x x x x x x x x If(Inclui,0,Posicione("DT6",1,xFilial("DT6")+DUB->(DUB_FILDOC+DUB_DOC+DUB_SERIE),"DT6_VOLORI")) - 1 xxxx - - - - V V - - - - - - - - - - N - - N N N - - - 1 1 - - - 55031 0
DUB 27 DUB_QTDOCO N 5 0 Qtd.Vol.Oco. Cant.Bul.Ocu Nbr.Vol.Occ. Qtd.Volumes na Ocorrencia Cant. Bultos en la Ocurr. Nbr. of volumes in occurr @E 99,999 TMSA370Vld() x x x x x x xx x x x x x x x x - - 1 xx xx - - - - - - - - - - - - INCLUI .or. ALTERA - - - N - - N N N - - - 1 1 - - - 55032 0
DUB 28 DUB_SEGCLI N 6 2 Seg.Cliente Seg.Cliente Customer Seg Seg.Cliente Seg.Cliente Customer Seg. @E 999.99% - x x x x x x xx x x x x x x x x If(Inclui,0,Posicione("DU7",1,xFilial("DU7")+DUB->(DUB_FILDOC+DUB_DOC+DUB_SERIE),"DU7_SEGCLI")) - 1 x x - - - - V V - - - - - - - - - - N - - N N N - - - 1 2 - - - 55033 0
DUB 29 DUB_VALCAR N 14 2 Valor Carga Valor Carga Cargo Value Valor da Carga Valor de Carga Cargo Value @E 99,999,999,999.99 - x x x x x x xx x x x x x x x x If(Inclui,0,Posicione("DT6",1,xFilial("DT6")+DUB->(DUB_FILDOC+DUB_DOC+DUB_SERIE),"DT6_VALMER")) - 1 x x - - - - V V - - - - - - - - - - N - - N N N - - - 1 2 - - - 55034 0
DUB 30 DUB_VALPRE N 14 2 Vl.Prejuizo Vl.Perjuicio Val. of Loss Valor do Prejuizo Valor Perjuicio Value of Loss @E 99,999,999,999.99 TMSA370Vld() x x x x x x xx x x x x x x x x - - 1 x xx - S - - - - - - - - - - - - - - N - - N N N - - - 1 2 - - - 55035 0
DUB 31 DUB_VALIND N 14 2 Vl.Indenizar Vl. Indemniz Vl. Indemnif Valor da Indenizacao Valor de Indemnizacion Value of Indemnification @E 99,999,999,999.99 - x x x x x x xx x x x x x x x x - - 1 x xx - - - - V - - - - - - - - - - - N - - N N N - - - 1 2 - - - 55036 0
DUB 32 DUB_CERVIS C 6 0 Certif.Vist. Certif.Visit Audit Certif Certificado Vistoria Certificado Visitoria Audit certificate @! - x x x x x x xx x x x x x x x x - - 1 x x - - - S - - - - - - - - - - - - N - - N N N - - - 1 2 - - - 55037 0
DUB 33 DUB_DATVEN D 8 0 Data Vencto Fecha Vencto Due Date Data Vencto Indenizacao Fecha Vencto. Indemnizac. Indemnity Due Date - M->DUB_DATVEN >= M->DUB_DATRID .And. M->DUB_DATVEN >= dDataBase x x x x x x xx x x x x x x x x - - 1 x - - - - - - - - - - - - TMSA370Whe() - - - N - - N N N - - - 1 2 - - - 55038 0
DUB 34 DUB_PREIND C 3 0 Pref.Tit.Ind Pref.Tit.Ind Comp.BillPrf Pref.Tit.Indenizacao Pref. Tit. Indemnizacion Compensation bill prefix @! - x x x x x x xx x x x x x x x x - - 1 x xx - - - - - - - - - - - - - - - - N - - N N N - - - 1 1 - - - 55039 0
DUB 35 DUB_NUMIND C 9 0 No.Tit.Ind Nº Tit.Ind Comp.BillNbr Num. Tit.Indenizacao Nº Tit. Indemnizacion Compensation bill number @! - x x x x x x xx x x x x x x x x - - 1 xx - - - - - - - - - - - - - - 018 - N - - N N N - - - 1 1 - - - 55040 0
DUB 36 DUB_TIPIND C 3 0 Tipo Tit.Ind Tipo Tit.Ind Comp.BillTyp Tipo Tit.Indenizacao Tipo Tit. Indemnizacion Compensation bill type @! - x x x x x x xx x x x x x x x x - - 1 x xx - - - - - - - - - - - - - - - - N - - N N N - - - 1 1 - - - 55041 0
DUB 37 DUB_CODFOR C 6 0 Fornecedor Proveedor Supplier Codigo do Fornecedor Codigo del Proveedor Supplier Code @! - x x x x x x xx x x x x x x x x - - 1 x xx - - - - - - - - - - - - - - 001 - N - - N N N - - - 1 1 - - - 55042 0
DUB 38 DUB_NUMLRB C 6 0 No.Lot.Reemb Nº Lot.Reemb Reimb.Lot N No.Lote Reembolso Nº Lote Reembolso Reimb.Lot Number @! - x x x x x x xx x x x x x x x x - - 1 x xx - - - S - R - - - - - - - - - - N - - N N N - - - 1 1 - - - 55043 0
DUB 39 DUB_DATLRB D 8 0 Dt.Lot.Reemb Fc.Lot.Reemb Reimb.Lot Dt Data de Reembolso Fecha de Reembolso Reimbursement Date @! - x x x x x x xx x x x x x x x x - - 1 x xx - - - - - R - - - - - - - - - - N - - N N N - - - 1 1 - - - 55044 0
DUB 40 DUB_DATREB D 8 0 Dt.Reembolso FchReembolso Reimbur.Date Data de Reembolso Fecha de Reembolso Reimbursement Date @! - x x x x x x xx x x x x x x x x - - 1 x x - - - - - - - - - - - - - - - - N - - N N N - - - 1 2 - - - 55045 0
DUB 41 DUB_VALREB N 14 2 Vl.Reembolso Vl.Reembolso Reimburse Vl Valor do Reembolso Valor del Reembolso Reimbursement Value @E 99,999,999,999.99 TMSA550Vld() x x x x x x xx x x x x x x x x - - 1 x x - - - - - - - - - - - - - - - - N - - N N N - - - 1 2 - - - 55046 0
DUB 42 DUB_NUMPRO C 6 0 No.Processo Nº Proceso Proc.Number Numero do Processo Numero del Proceso Process Number @! - x x x x x x xx x x x x x x x x - - 1 x xx - - - S - - - - - - - - - - - - N - - N N N - - - 1 2 - - - 55047 0
DUB 43 DUB_OK C 2 0 Ok OK Ok Ok OK Ok @! - x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - N - - N N N - - - 1 2 - - - 55048 0
DUB 44 DUB_DATENC D 8 0 Data Encerr. Fcha Cierre Closing date Data de Encerramento Fecha de Cierre Closing date @D - x x x x x x xx x x x x x x x x CtoD(Space(08)) - 1 x xx - - - N V R - - - - - - - - - - N - - N N N - - - 1 2 - - - 55049 0
DUB 45 DUB_RESPON C 15 0 Responsavel Responsable Responsible Resp. pelo Encerramento Resp. por Cierre Resp. for closing @! - x x x x x x xx x x x x x x x x - - 1 x xx - - - N V R - - - - - - - - - - N - - N N N - - - 1 2 - - - 55050 0
DUB 46 DUB_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 - - - 55051 0

Índices da Tabela DUB (9 í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_
DUB 1 DUB_FILIAL+DUB_NUMRID+DUB_ITEM No.Registro + Item Nº Registro + Item Indemn.No. + Item S XXX+XXX - S 2 3 - 8418 0
DUB 2 DUB_FILIAL+DUB_FILRID+DUB_NUMRID+DUB_ITEM Fil.Registro + No.Registro + Item Suc.Registro + Nº Registro + Item Reg.Branch + Indemn.No. + Item S XXX+XXX+XXX - S 2 3 - 8419 0
DUB 3 DUB_FILIAL+DUB_FILDOC+DUB_DOC+DUB_SERIE+DUB_STATUS Fil.Docto. + No.Docto. + Serie Docto. + Status Ind. Suc. Dcto. + No. Dcto. + Serie Docto. + Estatus Ind. Document Br. + Doc.Numb. + Docum.Series + Comp. Status S XXX+XXX+XXX - S 2 3 - 8420 0
DUB 4 DUB_FILIAL+DTOS(DUB_DATRID)+DUB_HORRID+DUB_NUMRID Data + Hora + No.Registro Fecha + Hora + Nº Registro Date + Time + Indemn.No. S XXX+XXX+XXX - S 2 3 - 8421 0
DUB 5 DUB_FILIAL+DUB_CERVIS Certif.Vist. Certif.Visit Audit Certif S XXX - S 2 3 - 8422 0
DUB 6 DUB_FILIAL+DUB_NUMPRO No.Processo Nº Proceso Proc.Number S XXX - S 2 3 - 8423 0
DUB 7 DUB_FILIAL+DUB_NUMLRB No.Lot.Reemb Nº Lot.Reemb Reimb.Lot N S XXX - S 2 3 - 8424 0
DUB 8 DUB_FILIAL+DUB_CODCLI+DUB_LOJCLI Cliente + Loja Cliente Cliente + Tienda Clien Customer + Cust.Unit S SA1+XXX - S 2 3 - 8425 0
DUB 9 DUB_FILIAL+DUB_FILDOC+DUB_DOC+DUB_SDOC+DUB_STATUS Fil.Docto. + No.Docto. + Série Doc. + Status Ind. Suc. Dcto. + No. Dcto. + Serie Doc. + Estatus Ind. Document Br. + Doc.Numb. + Inv. Series + Comp. Status S XXX+XXX+XXX - N 2 3 - 8426 0

Perguntas frequentes

Para que serve a tabela DUB no Protheus?

Ela é utilizada para registros de indenizações dentro do sistema ERP Protheus.

Como consultar os campos da tabela DUB?

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

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

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