Averbação eletrônica
A tabela DL5 faz parte do sistema ERP Protheus da TOTVS e é utilizada para averbação eletrônica.
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 DL5 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 DL5, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | DL5 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | DL5990 |
| X2_NOME | Averbação eletrônica |
| X2_NOMESPA | Declaración electrónica |
| X2_NOMEENG | Electronic registration |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | C |
| X2_MODOEMP | C |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | DL5_FILIAL+DL5_FILDOC+DL5_DOC+DL5_SERIE+DL5_CODSEG+DL5_SEQ |
| X2_PYME | S |
| X2_MODULO | 43 |
| X2_DISPLAY | - |
| X2_SYSOBJ | - |
| 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_ | 3387 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DL5 | 01 | DL5_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 | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52237 | 0 |
| DL5 | 02 | DL5_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 x | - | - | 1 | xxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 52238 | 0 |
| DL5 | 03 | DL5_DOC | C | 9 | 0 | No.Docto. | Nº Docto. | Doc no. | Número do Documento | Número del documento | Document number | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 018 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 52239 | 0 |
| DL5 | 04 | DL5_SERIE | C | 3 | 0 | Serie Docto. | Serie Docto. | Doc series | Série do Documento | Serie del documento | Document series | !!! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 094 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 52240 | 0 |
| DL5 | 05 | DL5_CODSEG | C | 3 | 0 | Cod. Seg. | Cód. Aseg. | Ins Co code | Código da Seguradora | Código de la aseguradora | Insure company code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 52241 | 0 |
| DL5 | 06 | DL5_SEQ | C | 2 | 0 | Sequência | Secuencia | Sequence | Número de sequência | Número de secuencia | Sequence number | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 52242 | 0 |
| DL5 | 07 | DL5_DATEMI | D | 8 | 0 | Data Emissao | Fch Emisión | Issue date | Data de Emissão | Fecha de emisión | Issue date | - | - | x x x x x x xx x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52243 | 0 |
| DL5 | 08 | DL5_HOREMI | C | 4 | 0 | Hora Emissao | Hora Emisión | Issue time | Hora de Emissão | Hora de emisión | Issue time | @R 99:99 | - | x x x x x x xx x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52244 | 0 |
| DL5 | 09 | DL5_STATUS | C | 1 | 0 | Status | Estatus | Status | Status da averbação | Estatus de la declaración | Registration status | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | 0=Aguard. Averb.;1=Falha Comunic.;2=Averb.;3=Recus.;4=Aguard. Can.;5=Falha Comunic. can.;6=Can.;7=Can. Recus.;8=Can. Ant. Averb. | 0=Esper. Declar.;1=Falla Comunic.;2=Declar.;3=Recus.;4=Espera Anul.;5=Falla Comunic. anul.;6=Anul.;7=Anula. Recus.;8=Can. Ant. A | 0=Waiting reg.;1=Communic.failure;2=Reg.;3=Rejec.;4=Waiting can.;5=Can. communic failure;6=Can.;7=Can. Rejec.;8=Can. prev. reg. | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52245 | 0 |
| DL5 | 10 | DL5_DATAVB | D | 8 | 0 | Data Averb. | Fch Declara. | Reg date | Data da Averbação | Fecha de la declaración | Registration date | - | - | x x x x x x xx x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52246 | 0 |
| DL5 | 11 | DL5_HORAVB | C | 4 | 0 | Hora Averb. | Hora Declar. | Reg time | Hora da Averbação | Hora de la declaración | Registration time | @R 99:99 | - | x x x x x x xx x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52247 | 0 |
| DL5 | 12 | DL5_PROTOC | C | 50 | 0 | Protocolo | Protocolo | Protocol | Número do protocolo | Número del protocolo | Protocol number | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52248 | 0 |
| DL5 | 13 | DL5_NUMAVB | C | 50 | 0 | Nr. Averb. | Nº.Declarac. | Reg no. | Numero da averbação | Número de la declaración | Registration number? | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52249 | 0 |
| DL5 | 14 | DL5_CNPJSE | C | 14 | 0 | CNPJ Segur. | RCPJ Asegur. | Ins Co CNPJ | CNPJ da seguradora | RCPJ de la aseguradora | Insurance company CNPJ | @R! NN.NNN.NNN/NNNN-99 | Vazio() .Or. CGC(M->DL5_CNPJSE) | x x x x x x xx x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52250 | 0 |
| DL5 | 15 | DL5_NOMESE | C | 40 | 0 | Nome Segur. | Nom. Asegur. | Ins co name | Nome da seguradora | Nombre de la aseguradora | Insurance company name | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52251 | 0 |
| DL5 | 16 | DL5_NUMAPO | C | 40 | 0 | Nr. Apolice | Nº Póliza | Policy no. | Número da apolice | Nº de póliza | Policy number | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52252 | 0 |
| DL5 | 17 | DL5_RAMO | C | 15 | 0 | Ramo Averb. | Área Declar. | Reg segm | Ramo averbado | Área declarada | Registered segment | - | - | x x x x x x xx x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52253 | 0 |
| DL5 | 18 | DL5_VALAVB | N | 14 | 2 | Valor Averb. | Valor Declar | Value reg | Valor averbado | Valor declarado | Value registered | @E 99,999,999,999.99 | - | x x x x x x xx x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52254 | 0 |
| DL5 | 19 | DL5_VALMER | N | 14 | 2 | Vlr.Mercad. | Val.Mercad. | Goods Vl. | Valor da Mercadoria | Valor de mercadería | Value of Goods | @E 99,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52255 | 0 |
| DL5 | 20 | DL5_TPDDR | C | 1 | 0 | Tipo DDR | Tipo DDR | DDR type | Tipo da DDR | Tipo de la DDR | DDR type | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | 1=Parcial;2=Com participacao;3=DDR estipulada;4=Averbacao por estipulacao | 1=Parcial;2=Con participación;3=DDR estipulada;4=Declaración por estipulación | 1=Partial;2=With participation;3=Stipulated DDR;4=Registration by stipulation | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52256 | 0 |
| DL5 | 21 | DL5_TPMOV | C | 1 | 0 | Tipo Mov. | Tipo Mov. | Trans type | Tipo movimento averb. | Tipo movimiento declarado | Reg transactiont type | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | S | V | R | - | - | 1=Normal;2=Cancelado;3=Cortesia;4=Resp. de Terceiros;5=CTe complementar | 1=Normal;2=Anulado;3=Cortesía;4=Resp. de terceros;5=CTe complementario | 1=Normal;2=Canceled;3=Complimentary;4=Third pty reply;5=Complementary CTe | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52257 | 0 |
| DL5 | 22 | DL5_MSERRO | C | 254 | 0 | Msg. Erro | Msj. Error | Error msg | Mensagem de erro | Mensaje de error | Error message | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52258 | 0 |
| DL5 | 23 | DL5_MARK | C | 1 | 0 | Marca | Marca | Brand | Marca | Marca | Brand | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 52259 | 0 |
| DL5 | 24 | DL5_DOCTMS | C | 1 | 0 | Docto.Transp | Docum.Transp | Transp Doc | Documento de Transporte | Documento de transporte | Transport Document | @! | TMSValField("M->DL5_DOCTMS",.T.,"DL5_DESDOC") | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52260 | 0 |
| DL5 | 25 | DL5_DESDOC | C | 30 | 0 | Desc.Docto | Desc.Docum | Doc Descr | Desc. Docto de Transporte | Desc. Docum. de transport | Descr. Transport Doc. | @! | - | x x x x x x x x x x x x x x x x | TMSVALFIELD("DL5->DL5_DOCTMS",.F.,"DL5_DESDOC") | - | 1 | x x xx x | - | - | - | S | V | V | - | - | - | - | - | - | - | TMSVALFIELD("DL5->DL5_DOCTMS",.F.) | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52261 | 0 |
| DL5 | 26 | DL5_NFAVBE | C | 20 | 0 | NF Averbada | Fact. declar | Regist Inv | NF Averbada | Fact. declarada | Registered Invoice | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 124 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52262 | 0 |
| DL5 | 27 | DL5_CLIDEV | C | 6 | 0 | Devedor | Deudor | Debtor | Devedor | Deudor | Debtor | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 001 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 52263 | 0 |
| DL5 | 28 | DL5_LOJDEV | C | 2 | 0 | Loja Devedor | Tienda deudo | Debtor store | Loja Devedor | Tienda deudor | Debtor store | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 002 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 52264 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DL5 | 1 | DL5_FILIAL+DL5_FILDOC+DL5_DOC+DL5_SERIE+DL5_CODSEG | Fil.Docto. + No.Docto. + Serie Docto. + Cod. Seg. | Suc. Docto. + Nº Docto. + Serie Docto. + Cód. Aseg. | Doc branch + Doc no. + Doc series + Ins Co code | S | - | - | S | 2 | 3 | - | 8048 | 0 |
| DL5 | 2 | DL5_FILIAL+DL5_STATUS | Status | Estatus | Status | S | - | - | S | 2 | 3 | - | 8049 | 0 |
| DL5 | 3 | DL5_FILIAL+DL5_CODSEG | Cod. Seg. | Cód. Aseg. | Ins Co code | S | - | - | S | 2 | 3 | - | 8050 | 0 |
Ela é utilizada para averbação eletrônica 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
DL5_FILIAL,
DL5_FILDOC,
DL5_DOC,
DL5_SERIE,
DL5_CODSEG,
DL5_SEQ,
DL5_DATEMI,
DL5_HOREMI,
DL5_STATUS,
DL5_DATAVB,
DL5_HORAVB,
DL5_PROTOC,
DL5_NUMAVB,
DL5_CNPJSE,
DL5_NOMESE,
DL5_NUMAPO,
DL5_RAMO,
DL5_VALAVB,
DL5_VALMER,
DL5_TPDDR,
DL5_TPMOV,
DL5_MSERRO,
DL5_MARK,
DL5_DOCTMS,
DL5_DESDOC,
DL5_NFAVBE,
DL5_CLIDEV,
DL5_LOJDEV
FROM DL5
WHERE
D_E_L_E_T_ = ' '
AND DL5_FILIAL = 'VALOR'
AND DL5_FILDOC = 'VALOR'
AND DL5_DOC = 'VALOR'
AND DL5_SERIE = 'VALOR'
AND DL5_CODSEG = 'VALOR'
AND DL5_SEQ = 'VALOR'
AND DL5_DATEMI BETWEEN '20261001' AND '20261031'
AND DL5_HOREMI = 'VALOR'
AND DL5_STATUS = 'VALOR'
AND DL5_DATAVB BETWEEN '20261001' AND '20261031'
AND DL5_HORAVB = 'VALOR'
AND DL5_PROTOC = 'VALOR'
AND DL5_NUMAVB = 'VALOR'
AND DL5_CNPJSE = 'VALOR'
AND DL5_NOMESE = 'VALOR'
AND DL5_NUMAPO = 'VALOR'
AND DL5_RAMO = 'VALOR'
AND DL5_VALAVB = 0
AND DL5_VALMER = 0
AND DL5_TPDDR = 'VALOR'
AND DL5_TPMOV = 'VALOR'
AND DL5_MSERRO = 'VALOR'
AND DL5_MARK = 'VALOR'
AND DL5_DOCTMS = 'VALOR'
AND DL5_DESDOC = 'VALOR'
AND DL5_NFAVBE = 'VALOR'
AND DL5_CLIDEV = 'VALOR'
AND DL5_LOJDEV = 'VALOR'