Conf Componentes por Contrato
A tabela DT9 faz parte do sistema ERP Protheus da TOTVS e é utilizada para conf componentes por contrato.
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 DT9 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 DT9, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | DT9 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | DT9990 |
| X2_NOME | Conf Componentes por Contrato |
| X2_NOMESPA | Conf. Componentes por Contrato |
| X2_NOMEENG | Checking Components by Contrac |
| 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 | DT9_FILIAL+DT9_NCONTR+DT9_SERVIC+DT9_CODPAS |
| 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_ | 3488 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DT9 | 01 | DT9_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 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 53990 | 0 |
| DT9 | 02 | DT9_NCONTR | C | 15 | 0 | No.Contrato | Nº Contrato | Contract No. | Numero do Contrato | Numero de Contrato | Contract Number | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 53991 | 0 |
| DT9 | 03 | DT9_SERVIC | C | 3 | 0 | Servico | Servicio | Service | Servico | Servicio | Service | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | S | - | - | - | - | - | - | - | - | - | - | 012 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 53992 | 0 |
| DT9 | 04 | DT9_CODPAS | C | 2 | 0 | Componente | Componente | Component | Componente | Componente | Component | @! | ExistCpo("DT3") .And. AT250Val() | x x x x x x xx x x x x x x x x | - | DT3 | 1 | xx | - | S | - | S | - | - | - | - | - | - | - | - | AT250WhCfg() | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 53993 | 0 |
| DT9 | 05 | DT9_DESPAS | C | 20 | 0 | Descricao | Descripcion | Description | Desc.Componente | Desc.Componente | Component Desc. | @! | - | x x x x x x xx x x x x x x x x | If(Inclui,"",Posicione("DT3",1,xFilial("DT3")+DT9->DT9_CODPAS,"DT3_DESCRI")) | - | 1 | x x | - | - | - | - | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 53994 | 0 |
| DT9 | 06 | DT9_CALPES | C | 1 | 0 | Calc.do Peso | Calc.de Peso | Weig. Calc. | Calculo do peso | Calculo de peso | Weight calculation | @! | Pertence("0123").And.TmsA030Vld() | x x x x x x x x x x x x x x x x | "0" | - | 1 | xx | - | - | - | - | - | - | - | - | 0=Nao Tem;1=Peso Real;2=Peso Cubado;3=M3 | 0=No Tiene;1=Peso Real;2=Peso Cubicado;3=M3 | 0=Inexistent;1=Real Weight;2=Cubed Weight;3=M3 | - | TmsA030WPe() | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 53995 | 0 |
| DT9 | 07 | DT9_PERCOB | N | 14 | 8 | % Cobranca | % Cobranza | % Collection | % Cobranca | % Cobranza | %Collection | @E 99999.99999999 | - | x x x x x x x x x x x x x x x x | AT250Rel() | - | 1 | xx | - | - | - | - | - | - | - | - | - | - | - | - | AT250WhCfg() | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 53996 | 0 |
| DT9 | 08 | DT9_AGRPAS | C | 2 | 0 | Agrupa Comp. | Agrupa Comp. | Group Comp | Agrupa Componente | Agrupa Componente | Group Component | @! | Vazio() .Or. ExistCpo("DT3") | x x x x x x xx x x x x x x x x | - | DT3 | 1 | x x | - | S | - | S | - | - | - | - | - | - | - | - | AT250WhCfg() | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 53997 | 0 |
| DT9 | 09 | DT9_DESAGR | C | 20 | 0 | Desc.Agrupa | Desc.Agrupa | Group.Desc. | Desc.Agrupamento | Desc.Agrupacion | Grouping desc. | @! | - | x x x x x x xx x x x x x x x x | If(Inclui,"",Posicione("DT3",1,xFilial("DT3")+DT9->DT9_AGRPAS,"DT3_DESCRI")) | - | 1 | x x | - | - | - | - | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 53998 | 0 |
| DT9 | 10 | DT9_QTDVOL | N | 5 | 0 | Volume Min. | Volum. Min. | Min. Volume | Volume minimo p/ cobrança | Volum. minimo p/ cobranza | Minimum volume for collec | 99999 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 53999 | 0 |
| DT9 | 11 | DT9_PESO | N | 11 | 4 | Peso Minimo | Peso Minimo | Minim Weight | Peso minimo para cobrança | Peso minimo para cobranza | Min.Weight for Collection | @E 999,999.9999 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 54000 | 0 |
| DT9 | 12 | DT9_VALOR | N | 14 | 2 | Valor Minimo | Valor Minimo | Minim. Value | Valor minimo p/ cobrança | Valor minimo p/ cobranza | Minimum volume for collec | @E 99,999,999,999.99 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 54001 | 0 |
| DT9 | 13 | DT9_CODNEG | C | 2 | 0 | Cod Negociac | Cod Negociac | Negot. Code | Código da Negociação | Codigo de negociacion | Negotiation Code | @! | Existcpo("DDB") | x x x x x x x x x x x x x x x x | - | DDB | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 119 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 54002 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DT9 | 1 | DT9_FILIAL+DT9_NCONTR+DT9_SERVIC+DT9_CODPAS+DT9_CODNEG | No.Contrato + Servico + Componente + Cod Negociac | Nº Contrato + Servicio + Componente + Cod Negociac | Contract No. + Service + Component + Negot. Code | S | - | - | S | 2 | 3 | - | 8267 | 0 |
Ela é utilizada para conf componentes por contrato 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
DT9_FILIAL,
DT9_NCONTR,
DT9_SERVIC,
DT9_CODPAS,
DT9_DESPAS,
DT9_CALPES,
DT9_PERCOB,
DT9_AGRPAS,
DT9_DESAGR,
DT9_QTDVOL,
DT9_PESO,
DT9_VALOR,
DT9_CODNEG
FROM DT9
WHERE
D_E_L_E_T_ = ' '
AND DT9_FILIAL = 'VALOR'
AND DT9_NCONTR = 'VALOR'
AND DT9_SERVIC = 'VALOR'
AND DT9_CODPAS = 'VALOR'
AND DT9_DESPAS = 'VALOR'
AND DT9_CALPES = 'VALOR'
AND DT9_PERCOB = 0
AND DT9_AGRPAS = 'VALOR'
AND DT9_DESAGR = 'VALOR'
AND DT9_QTDVOL = 0
AND DT9_PESO = 0
AND DT9_VALOR = 0
AND DT9_CODNEG = 'VALOR'