Complemento de Regiões
A tabela DTN faz parte do sistema ERP Protheus da TOTVS e é utilizada para complemento de regiões.
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 DTN 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 DTN, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | DTN |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | DTN990 |
| X2_NOME | Complemento de Regiões |
| X2_NOMESPA | Complemento de regiones |
| X2_NOMEENG | Complement of Regions |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | DTN_FILIAL+DTN_GRPVEN+DTN_ITEM |
| X2_PYME | S |
| X2_MODULO | 43 |
| X2_DISPLAY | DTN_FILIAL+DTN_GRPVEN+DTN_SERTMS+DTN_TIPTRA |
| X2_SYSOBJ | TMSA380 |
| 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_ | 3502 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DTN | 01 | DTN_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 | - | - | - | 54332 | 0 |
| DTN | 02 | DTN_GRPVEN | C | 6 | 0 | Grupo | Grupo | Group | Grupo | Grupo | Group | @! | ExistCpo("DUY",M->DTN_GRPVEN,1) .And. ExistChav("DTN", M->DTN_GRPVEN) | x x x x x x x xx x x x x x x x x x | - | DUY | 1 | xxx | - | S | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 54333 | 0 |
| DTN | 03 | DTN_DESGRP | C | 30 | 0 | Descricao | Descripcion | Description | Descricao Grupo | Descripcion Grupo | Group Description | @! | - | x x x x x x x xx x x x x x x x x | If(Inclui,"",Posicione("DUY",1,xFilial("DUY")+DTN->DTN_GRPVEN,"DUY_DESCRI")) | - | 1 | x xx x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("DUY",1,xFilial("DUY")+DTN->DTN_GRPVEN,"DUY_DESCRI") | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 54334 | 0 |
| DTN | 04 | DTN_ITEM | C | 2 | 0 | Item | Item | Item | Item | Item | Item | @! | - | x x x x x x x xx x x x x x x x x | - | - | 1 | x xx | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 54335 | 0 |
| DTN | 05 | DTN_SERTMS | C | 1 | 0 | Serv.Transp. | Serv.Transp. | Transp.Serv. | Servico de Transporte | Servicio de Transporte | Transport Service | @! | Pertence("23") | x x x x x x x xx x x x x x x x x | - | DLC | 1 | xxx | - | S | - | S | A | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 54336 | 0 |
| DTN | 06 | DTN_DESSVT | C | 30 | 0 | Desc.Sv.Tran | Desc.Sv.Tran | TranSv.Desc | Desc.Servico Transporte | Desc.Servicio Transporte | Transport Service Desc. | @! | - | x x x x x x x xx x x x x x x x x | TMSA380Init() | - | 1 | x xx | - | - | - | S | V | V | - | - | - | - | - | - | - | TMSValField("DTN->DTN_SERTMS",.F.) | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 54337 | 0 |
| DTN | 07 | DTN_TIPTRA | C | 1 | 0 | Tipo Transp. | Tipo Transp. | Transp. Type | Tipo Transporte | Tipo Transporte | Transport Type | @! | TMSValField("M->DTN_TIPTRA",.T.,"DTN_DESTPT") | x x x x x x x xx x x x x x x x x | - | DLC | 1 | xxx | - | S | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 54338 | 0 |
| DTN | 08 | DTN_DESTPT | C | 30 | 0 | Desc.Tp.Tran | Desc.Tp.Tran | TranTp.Desc | Desc.Tipo Transporte | Desc.Tipo Transporte | Transport Type Desc. | @! | - | x x x x x x x xx x x x x x x x x | If(!Inclui,TMSValField("DTN->DTN_TIPTRA",.F.,"DTN_DESTPT"),"") | - | 1 | x xx | - | - | - | S | V | V | - | - | - | - | - | - | - | TMSValField("DTN->DTN_TIPTRA",.F.) | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 54339 | 0 |
| DTN | 09 | DTN_TIPREG | C | 1 | 0 | Tipo Regiao | Tipo Region | Region Type | Tipo da Regiao | Tipo de Region | Region Type | @! | Pertence("123") | x x x x x x x xx x x x x x x x x | "3" | - | 1 | xxx | - | - | - | - | - | - | - | - | 1=Origem;2=Destino;3=Ambos | 1=Origen;2=Destino;3=Ambos | 1=Origin;2=Destination;3=Both | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 54340 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DTN | 1 | DTN_FILIAL+DTN_GRPVEN+DTN_ITEM | Grupo + Item | Grupo + Item | Group + Item | S | DUY+XXX | - | S | 2 | 3 | - | 8311 | 0 |
| DTN | 2 | DTN_FILIAL+DTN_GRPVEN+DTN_SERTMS+DTN_TIPTRA | Grupo + Serv.Transp. + Tipo Transp. | Grupo + Serv.Transp. + Tipo Transp. | Group + Transp.Serv. + Transp. Type | S | DUY+XXX+XXX | - | S | 2 | 3 | - | 8312 | 0 |
Ela é utilizada para complemento de regiões 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.