Registros De Bloqueios TMS
A tabela DDU faz parte do sistema ERP Protheus da TOTVS e é utilizada para registros de bloqueios tms.
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 DDU 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 DDU, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | DDU |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | DDU990 |
| X2_NOME | Registros De Bloqueios TMS |
| X2_NOMESPA | Registros de bloqueos TMS |
| X2_NOMEENG | TMS Block Registrations |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | DDU_FILIAL+DDU_ALIAS+DDU_CHAVE+DDU_TIPBLQ+STR(DDU_NIVBLQ) |
| X2_PYME | N |
| X2_MODULO | 43 |
| X2_DISPLAY | - |
| X2_SYSOBJ | - |
| X2_USROBJ | - |
| X2_POSLGT | 2 |
| X2_CLOB | 1 |
| 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_ | 3166 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DDU | 01 | DDU_FILIAL | C | 2 | 0 | Filial | Sucursal | End | Filial Do Sistema | Sucursal del sistema | System Branch | - | - | x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 033 | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 49080 | 0 |
| DDU | 02 | DDU_FILORI | C | 2 | 0 | Fil.Origem | Suc.Origen | SourceBranch | Filial Origem | Sucursal origen | Source Branch | - | - | x 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 | - | - | - | 49081 | 0 |
| DDU | 03 | DDU_SEQ | C | 3 | 0 | Sequencia | Secuencia | Sequence | Sequencia Exibicao | Secuencia exibicion | Display Sequence | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 49082 | 0 |
| DDU | 04 | DDU_ROTINA | C | 10 | 0 | Rotina Gerac | Rutina Gener | Rtne Gnrtd | Rotina Que Gerou Bloqueio | Rutina que genero bloqueo | Routine Generating Blocka | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 49083 | 0 |
| DDU | 05 | DDU_CODIGO | C | 10 | 0 | Código | Codigo | Code | Código Da Ent. Bloqueada | Codigo de Ent. Bloqueada | Blocked Entry Code | @! | - | x x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 49084 | 0 |
| DDU | 06 | DDU_STATUS | C | 1 | 0 | Status | Estatus | Status | Status Do Registro | Estatus del registro | Registration Status | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 49085 | 0 |
| DDU | 07 | DDU_TIPBLQ | C | 2 | 0 | Tipo Bloq. | Tipo Bloq. | Blck Type | Tipo Bloqueio | Tipo Bloqueo | Blockage Type | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 49086 | 0 |
| DDU | 08 | DDU_NIVBLQ | N | 1 | 0 | Nivel Bloq. | Nivel Bloq. | BlockLevel | Nível Bloqueio | Nivel Bloqueo | Block Level | 9 | - | x x x x x x x x x x x x x x x xxx | - | - | 1 | x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 49087 | 0 |
| DDU | 09 | DDU_USRBLQ | C | 6 | 0 | ID Usuario | ID Usuario | User ID | ID Usuario Gerou Bloqueio | ID Usuario genero bloqueo | ID User Generated Blockag | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 49088 | 0 |
| DDU | 10 | DDU_NOMBLQ | C | 30 | 0 | Nome Usuario | Nomb Usuario | User Name | Nome Usuario Bloqueio | Nombre Usuario Bloqueo | Blockage User Name | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xx x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 49089 | 0 |
| DDU | 11 | DDU_DATBLQ | D | 8 | 0 | Data Blq | Fecha Blq | Blck Dt | Data Bloqueio | Fecha Bloqueo | Blockage Date | - | - | x x x x x x xx x x x x x x x x | - | - | 1 | xx x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 49090 | 0 |
| DDU | 12 | DDU_HORBLQ | C | 5 | 0 | Hora Bloq | Hora Bloq | Blck Time | Hora Do Bloqueio | Hora del bloqueo | Blockage Time | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xx x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 49091 | 0 |
| DDU | 13 | DDU_DETALH | M | 10 | 0 | Detalhe Bloq | Detalle Bloq | Blck Detail | Detalhes Do Bloqueio | Detalles del bloqueo | Blockage Details | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 49092 | 0 |
| DDU | 14 | DDU_USRLIB | C | 6 | 0 | Usu. Liberou | Usu. Libero | Rls User | ID Usuario Liberou | ID Usuario libero | ID User Released | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 49093 | 0 |
| DDU | 15 | DDU_NOMLIB | C | 30 | 0 | Nome Liberou | Nomb Libero | Rls Name | Nome Usuario Liberou | Nombre Usuario Libero | Release User Name | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 49094 | 0 |
| DDU | 16 | DDU_DATLIB | D | 8 | 0 | Data Liberac | Fecha Liber | Release 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 | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 49095 | 0 |
| DDU | 17 | DDU_HORLIB | C | 5 | 0 | Hora Liberac | Hora Liberac | Release Time | Hora Da Liberacao | Hora de la liberacion | Release Time | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 49096 | 0 |
| DDU | 18 | DDU_MTVLIB | C | 60 | 0 | Motivo Liber | Motivo Liber | Release Rsn | Motivo da Liberacao | Motivo de la liberacion | Release Reason | @! | - | x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 49097 | 0 |
| DDU | 19 | DDU_ALIAS | C | 3 | 0 | Alias | Alias | Alias | Alias Da Chave De Busca | Alias de la clave de Busq | Search key alias | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 49098 | 0 |
| DDU | 20 | DDU_CHAVE | C | 40 | 0 | Chave | Clave | Key | Chave Indexacao | Clave Indexacion | Indexation Key | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 49099 | 0 |
| DDU | 21 | DDU_INDEX | C | 1 | 0 | Indice | Indice | Index | Indice Posicionament | Indice Posicionamiento | Positioning Index | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 1 | - | - | - | 49100 | 0 |
| DDU | 22 | DDU_HISREJ | M | 10 | 0 | Hist.Rejeic. | Hist. Rechaz | Reject Hist | Histórico De Rejeição | Historial de rechazo | Rejection History | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 49101 | 0 |
| DDU | 23 | DDU_VLRREC | N | 16 | 2 | Vlr. Receita | Val. Ingreso | Income Vl | Valor Receita | Valor de ingresos | Income Value | @E 9,999,999,999,999.99 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 49102 | 0 |
| DDU | 24 | DDU_VLRDES | N | 16 | 2 | Vlr. Despesa | Val. Gastos | Expense Vl | Valor Despesa | Valor gastos | Expense Value | @E 9,999,999,999,999.99 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | N | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 49103 | 0 |
| DDU | 25 | DDU_DATA | D | 8 | 0 | Data | Fecha | Date | Data | Fecha | Date | - | - | x x x x x x x x x x x x x x x x | CTOD("") | - | 1 | xx | - | - | - | N | A | R | - | - | - | - | - | - | Tmsa029Whe() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 49104 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DDU | 1 | DDU_FILIAL+DDU_ROTINA+DDU_CHAVE+DDU_TIPBLQ+STR(DDU_NIVBLQ) | Rotina Gerac + Chave + Tipo Bloq. + Nivel Bloq. | Rutina Gener + Clave + Tipo Bloq. + Nivel Bloq. | Rtne Gnrtd + Key + Blck Type + BlockLevel | S | - | - | S | 2 | 3 | - | 7610 | 0 |
| DDU | 2 | DDU_FILIAL+DDU_ALIAS+DDU_CHAVE+DDU_TIPBLQ+STR(DDU_NIVBLQ)+DDU_FILORI | Alias + Chave + Tipo Bloq. + Nivel Bloq. + Fil.Origem | Alias + Clave + Tipo Bloq. + Nivel Bloq. + Suc.Origen | Alias + Key + Blck Type + BlockLevel + SourceBranch | S | - | - | S | 2 | 3 | - | 7611 | 0 |
Ela é utilizada para registros de bloqueios tms 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
DDU_FILIAL,
DDU_FILORI,
DDU_SEQ,
DDU_ROTINA,
DDU_CODIGO,
DDU_STATUS,
DDU_TIPBLQ,
DDU_NIVBLQ,
DDU_USRBLQ,
DDU_NOMBLQ,
DDU_DATBLQ,
DDU_HORBLQ,
DDU_DETALH,
DDU_USRLIB,
DDU_NOMLIB,
DDU_DATLIB,
DDU_HORLIB,
DDU_MTVLIB,
DDU_ALIAS,
DDU_CHAVE,
DDU_INDEX,
DDU_HISREJ,
DDU_VLRREC,
DDU_VLRDES,
DDU_DATA
FROM DDU
WHERE
D_E_L_E_T_ = ' '
AND DDU_FILIAL = 'VALOR'
AND DDU_FILORI = 'VALOR'
AND DDU_SEQ = 'VALOR'
AND DDU_ROTINA = 'VALOR'
AND DDU_CODIGO = 'VALOR'
AND DDU_STATUS = 'VALOR'
AND DDU_TIPBLQ = 'VALOR'
AND DDU_NIVBLQ = 0
AND DDU_USRBLQ = 'VALOR'
AND DDU_NOMBLQ = 'VALOR'
AND DDU_DATBLQ BETWEEN '20260501' AND '20260531'
AND DDU_HORBLQ = 'VALOR'
AND DDU_USRLIB = 'VALOR'
AND DDU_NOMLIB = 'VALOR'
AND DDU_DATLIB BETWEEN '20260501' AND '20260531'
AND DDU_HORLIB = 'VALOR'
AND DDU_MTVLIB = 'VALOR'
AND DDU_ALIAS = 'VALOR'
AND DDU_CHAVE = 'VALOR'
AND DDU_INDEX = 'VALOR'
AND DDU_VLRREC = 0
AND DDU_VLRDES = 0
AND DDU_DATA BETWEEN '20260501' AND '20260531'