Reg. Origem de demanda
A tabela DLA faz parte do sistema ERP Protheus da TOTVS e é utilizada para reg. origem de demanda.
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 DLA 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 DLA, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | DLA |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | DLA990 |
| X2_NOME | Reg. Origem de demanda |
| X2_NOMESPA | Reg. Origen de demanda |
| X2_NOMEENG | Demand origin reg |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | C |
| X2_MODOEMP | C |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | DLA_FILIAL+DLA_CODDMD+DLA_SEQDMD+DLA_SEQREG |
| 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_ | 3392 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DLA | 01 | DLA_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 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 52361 | 0 |
| DLA | 02 | DLA_CODDMD | C | 8 | 0 | Cod. Demanda | Cód. Demanda | Demand Code | 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 | xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52362 | 0 |
| DLA | 03 | DLA_SEQDMD | C | 2 | 0 | Seq. Demanda | Sec. Demanda | Demand Seque | Sequencia de Demanda | Secuencia de demanda | Demand Sequence | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52363 | 0 |
| DLA | 04 | DLA_SEQREG | C | 2 | 0 | Seq. Região | Sec. Región | Region Seq | Sequência da Região | Secuencia de la región | Region Sequence | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 52364 | 0 |
| DLA | 05 | DLA_CODREG | C | 6 | 0 | Cod. Região | Cód. Región | Region Cd | Código da Região | Código de la región | Region code | @! | IIF(!EMPTY(M->DLA_CODREG),ExistCpo("DUY", M->DLA_CODREG),.T.) | x x x x x x x x x x x x x x x x | - | DUY | 1 | xx | - | S | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 52365 | 0 |
| DLA | 06 | DLA_NOMREG | C | 30 | 0 | Nome Região | Nombre de la | Region Name | Nome da Região | Nombre de la región | Region Name | @! | - | x x x x x x x x x x x x x x x x | Iif(!INCLUI,POSICIONE("DUY",1,FWXFILIAL("DUY")+DLA->DLA_CODREG,"DUY_DESCRI"),"") | - | 1 | x xx | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("DUY",1,FwxFilial("DUY")+DLA->DLA_CODREG,"DUY_DESCRI") | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52366 | 0 |
| DLA | 07 | DLA_QTD | N | 14 | 4 | Quantidade | Cantidad | Quantity | Quantidade | Cantidad | Quantity | @E 999,999,999.9999 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | - | - | - | - | - | - | - | - | - | VldQtdDLA() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52367 | 0 |
| DLA | 08 | DLA_DTPREV | D | 8 | 0 | Dt. Previsão | Fch. Previsi | Estim Dt. | Data de Previsão | Fecha de previsión | Estimated Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | - | - | - | - | - | - | - | - | - | Iif(!Empty(FwFldGet('DLA_CODREG')),.T.,.F.) | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52368 | 0 |
| DLA | 09 | DLA_HRPREV | C | 4 | 0 | Hr. Previsão | Hr. Previsió | Estimated Tm | Hora de previsão | Hora de previsión | Estimation Time | @R 99:99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | - | - | - | - | - | - | - | - | - | Iif(!Empty(FwFldGet('DLA_CODREG')),.T.,.F.) | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52369 | 0 |
| DLA | 10 | DLA_CODCLI | C | 6 | 0 | Cód. Cliente | Cód. Cliente | Cust Cd | Código do Cliente | Código del cliente | Customer Code | @! | TM153AVal('DLA_CODCLI') | x x x x x x x x x x x x x x x x | - | SA1 | 1 | xx | - | - | - | - | A | R | - | - | - | - | - | - | - | - | 001 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52370 | 0 |
| DLA | 11 | DLA_LOJA | C | 2 | 0 | Cód. Loja | Cód. Tda. | Store Cd | Código da Loja | Código de la tienda | Store code | @! | TM153AVal('DLA_LOJA') | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 002 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52371 | 0 |
| DLA | 12 | DLA_NOMCLI | C | 50 | 0 | Nome | Nombre | Name | Nome Do Cliente | Nombre del cliente | Customer Name | @! | - | x x x x x x x x x x x x x x x x | IIF(INCLUI,"",POSICIONE("SA1",1,XFILIAL("SA1")+DLA->DLA_CODCLI+DLA->DLA_LOJA,"A1_NOME")) | - | 1 | x xx | - | - | - | - | V | V | - | - | - | - | - | - | - | Posicione("SA1",1,xFilial("SA1")+DLA->DLA_CODCLI+DLA->DLA_LOJA,"A1_NOME") | 175 | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 52372 | 0 |
| DLA | 13 | DLA_PREVIS | C | 1 | 0 | Prevista | Prevista | Estimated | Prevista | Prevista | Estimated | @! | - | x x x x x x x x x x x x x x x x | IIF(!Empty(M->DL7_COD),'1','2') | - | 1 | xx | - | - | - | S | V | R | - | - | 1=Sim;2=Não | 1=Sí. 2=No. | 1=Yes;2=No | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52373 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DLA | 1 | DLA_FILIAL+DLA_CODDMD+DLA_SEQDMD+DLA_SEQREG+DLA_CODREG | Cod. Demanda + Seq. Demanda + Seq. Região + Cod. Região | Cód. Demanda + Sec. Demanda + Sec. Región + Cód. Región | Demand Code + Demand Seque + Region Seq + Region Cd | S | - | - | S | 2 | 3 | - | 8069 | 0 |
Ela é utilizada para reg. origem de demanda 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
DLA_FILIAL,
DLA_CODDMD,
DLA_SEQDMD,
DLA_SEQREG,
DLA_CODREG,
DLA_NOMREG,
DLA_QTD,
DLA_DTPREV,
DLA_HRPREV,
DLA_CODCLI,
DLA_LOJA,
DLA_NOMCLI,
DLA_PREVIS
FROM DLA
WHERE
D_E_L_E_T_ = ' '
AND DLA_FILIAL = 'VALOR'
AND DLA_CODDMD = 'VALOR'
AND DLA_SEQDMD = 'VALOR'
AND DLA_SEQREG = 'VALOR'
AND DLA_CODREG = 'VALOR'
AND DLA_NOMREG = 'VALOR'
AND DLA_QTD = 0
AND DLA_DTPREV BETWEEN '20260501' AND '20260531'
AND DLA_HRPREV = 'VALOR'
AND DLA_CODCLI = 'VALOR'
AND DLA_LOJA = 'VALOR'
AND DLA_NOMCLI = 'VALOR'
AND DLA_PREVIS = 'VALOR'