Operação por Documento
A tabela DLT faz parte do sistema ERP Protheus da TOTVS e é utilizada para operação por documento.
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 DLT 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 DLT, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | DLT |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | DLT990 |
| X2_NOME | Operação por Documento |
| X2_NOMESPA | Operación por documento |
| X2_NOMEENG | Operation per Document |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | DLT_FILIAL+DLT_FILORI+DLT_VIAGEM+DLT_IDDTW+DLT_FILDOC+DLT_DOC+DLT_SERIE |
| X2_PYME | N |
| X2_MODULO | 43 |
| X2_DISPLAY | - |
| X2_SYSOBJ | - |
| X2_USROBJ | - |
| X2_POSLGT | 2 |
| 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_ | 3409 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DLT | 01 | DLT_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 | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 033 | - | N | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52546 | 0 |
| DLT | 02 | DLT_FILORI | C | 2 | 0 | Fil.Origem | Suc.Origen | Orig branch | Filial de Origem | Sucursal de origen | Origin Branch | - | - | x x x x x x x x x x x x x x x xx | - | - | 1 | x x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 033 | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 52547 | 0 |
| DLT | 03 | DLT_VIAGEM | C | 6 | 0 | Viagem | Viaje | Trip | Numero da Viagem | Número del viaje | Trip Number | - | - | x x x x x x x x x x x x x x x xx | - | - | 1 | x x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 143 | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 52548 | 0 |
| DLT | 04 | DLT_IDDTW | C | 6 | 0 | Id.DTW | Id.DTW | DTW Id | Identificação do Reg. DTW | Identificación del Reg. D | DTW Rec Identification | @! | - | x x x x x x x x x x x x x x x xx | - | - | 1 | x x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 52549 | 0 |
| DLT | 05 | DLT_FILDOC | C | 2 | 0 | Fil.Docto | Suc.Docum. | Doct. Br. | 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 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 033 | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 52550 | 0 |
| DLT | 06 | DLT_DOC | C | 9 | 0 | No.Docto. | Nº Docto. | Doc No | Numero 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 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 018 | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 52551 | 0 |
| DLT | 07 | DLT_SERIE | C | 3 | 0 | Serie Docto. | Serie Docto. | Doc Series | Serie do Documento | Serie del documento | Document Series | !!! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 094 | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 52552 | 0 |
| DLT | 08 | DLT_ORIGEM | C | 1 | 0 | Origem | Origen | Origin | Origem | Origen | Origin | @! | Pertence('12') | x x x x x x x x x x x x x x x x | '1' | - | 1 | x x | - | - | - | S | V | R | - | - | 1=Fechamento;2=Viagem em Transito | 1=Cierre;2=Viaje en Tránsito | 1=Closing;2=Trip in Transit | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 52553 | 0 |
| DLT | 09 | DLT_OPEDOC | C | 1 | 0 | Oper.Docto | Oper.Docum. | Doc Oper | Operação do Doc. no Ponto | Operación del Doc. en el | Document Operation in the | @! | Pertence('123') | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | S | V | R | - | - | 1=Entrega;2=Emissão;3=Coleta | 1=Entrega;2=Emisión;3=Recolec | 1=Delivery;2=Issue;3=Collection | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 52554 | 0 |
| DLT | 10 | DLT_DATGER | D | 8 | 0 | Data Geração | Fecha Genera | Generation D | Data da Geração | Fch de generación | Date of Generation | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 52555 | 0 |
| DLT | 11 | DLT_HORGER | C | 4 | 0 | Hora Geração | Hora generac | Generation T | Hora da Geração | Hora de la generación | Generation Time | @R 99:99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 52556 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DLT | 1 | DLT_FILIAL+DLT_FILORI+DLT_VIAGEM+DLT_IDDTW+DLT_FILDOC+DLT_DOC+DLT_SERIE | Fil.Origem + Viagem + Id.DTW + Fil.Docto + No.Docto. + Serie Docto. | Suc.Origen + Viaje + Id.DTW + Suc.Docum. + Nº Docto. + Serie Docto. | Orig branch + Trip + DTW Id + Doct. Br. + Doc No + Doc Series | S | - | - | S | 2 | 3 | - | 8094 | 0 |
| DLT | 2 | DLT_FILIAL+DLT_FILDOC+DLT_DOC+DLT_SERIE+DLT_FILORI+DLT_VIAGEM+DLT_IDDTW | Fil.Docto + No.Docto. + Serie Docto. + Fil.Origem + Viagem + Id.DTW | Suc.Docum. + Nº Docto. + Serie Docto. + Suc.Origen + Viaje + Id.DTW | Doct. Br. + Doc No + Doc Series + Orig branch + Trip + DTW Id | S | - | - | S | 2 | 3 | - | 8095 | 0 |
Ela é utilizada para operação por documento 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
DLT_FILIAL,
DLT_FILORI,
DLT_VIAGEM,
DLT_IDDTW,
DLT_FILDOC,
DLT_DOC,
DLT_SERIE,
DLT_ORIGEM,
DLT_OPEDOC,
DLT_DATGER,
DLT_HORGER
FROM DLT
WHERE
D_E_L_E_T_ = ' '
AND DLT_FILIAL = 'VALOR'
AND DLT_FILORI = 'VALOR'
AND DLT_VIAGEM = 'VALOR'
AND DLT_IDDTW = 'VALOR'
AND DLT_FILDOC = 'VALOR'
AND DLT_DOC = 'VALOR'
AND DLT_SERIE = 'VALOR'
AND DLT_ORIGEM = 'VALOR'
AND DLT_OPEDOC = 'VALOR'
AND DLT_DATGER BETWEEN '20261001' AND '20261031'
AND DLT_HORGER = 'VALOR'