Informações de Carga - FreteBr
A tabela DM2 faz parte do sistema ERP Protheus da TOTVS e é utilizada para informações de carga - fretebr.
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 DM2 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 DM2, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | DM2 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | DM2990 |
| X2_NOME | Informações de Carga - FreteBr |
| X2_NOMESPA | Información de carga - FleteBr |
| X2_NOMEENG | Cargo info - Freight Br |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | DM2_FILIAL+DM2_FILORI+DM2_VIAGEM |
| 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_ | 3418 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DM2 | 01 | DM2_FILIAL | C | 2 | 0 | Filial | Sucursal | Branch | Filial | Sucursal | Branch | - | - | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52776 | 0 |
| DM2 | 02 | DM2_FILORI | C | 2 | 0 | Fil.Viagem | Suc.Viaje | Trip Br | Filial da Viagem | Sucursal de viaje | Trip Branch | - | - | x x x x x x x x x x x x x x x x | IIF(INCLUI,TMSC14Init(),"") | DL5 | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | TMSC14When() | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52777 | 0 |
| DM2 | 03 | DM2_VIAGEM | C | 6 | 0 | Viagem | Viaje | Trip | Viagem | Viaje | Trip | - | ExistChav("DM2", FwFldGet("DM2_FILORI") + FwFldGet("DM2_VIAGEM") ) | x x x x x x x x x x x x x x x x | IIF(INCLUI,TMSC14Init(),"") | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | TMSC14When() | - | 143 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52778 | 0 |
| DM2 | 04 | DM2_UFORIG | C | 2 | 0 | UF Orig. | Est Orig. | Orig State | UF Origem | Est/Pro/Reg Origen | Origin State | @! | Vazio() .Or. ExistCpo("SX5","12"+FwFldGet("DM2_UFORIG")) | x x x x x x x x x x x x x x x x | IIF(INCLUI,TMSC14Init(),"") | SX512 | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | TMSC14When() | - | 010 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52779 | 0 |
| DM2 | 05 | DM2_MUNORI | C | 5 | 0 | Mun.Origem | Mun.Origen | Origin City | Cód. IBGE Município Orig. | Cód. IBGE Municipio Oríg. | Orig City IBGE Code | @! | Vazio() .Or. ExistCpo("CC2",FwFldGet("DM2_UFORIG")+FwFldGet("DM2_MUNORI")) | x x x x x x x x x x x x x x x x | IIF(INCLUI,TMSC14Init(),"") | CC2 | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | TMSC14When() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52780 | 0 |
| DM2 | 06 | DM2_UFDEST | C | 2 | 0 | UF Dest | Est Dest | Dest State | UF Destino | Est/Pro/Reg Destino | Destination State | @! | Vazio() .Or. ExistCpo("SX5","12"+FwFldGet("DM2_UFDEST")) | x x x x x x x x x x x x x x x x | IIF(INCLUI,TMSC14Init(),"") | SX512 | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | TMSC14When() | - | 010 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52781 | 0 |
| DM2 | 07 | DM2_MUNDES | C | 5 | 0 | Mun.Destino | Mun.Destino | Dest City | Cód. IBGE Municípo Dest. | Cód. IBGE Municipio Dest. | Dest City IBGE Code | @! | Vazio() .Or. ExistCpo("CC2",FwFldGet("DM2_UFDEST")+FwFldGet("DM2_MUNDES")) | x x x x x x x x x x x x x x x x | IIF(INCLUI,TMSC14Init(),"") | CC2 | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | TMSC14When() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52782 | 0 |
| DM2 | 08 | DM2_PROD | C | 80 | 0 | Produtos | Productos | Products | Produtos da Carga | Productos de la carga | Cargo Products | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xxx | - | - | - | - | A | R | - | - | - | - | - | - | TMSC14When() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 52783 | 0 |
| DM2 | 09 | DM2_TIPESP | C | 3 | 0 | Tp. Espécie | Tp. Clase | Kind Type | Tipo de Espécie | Tipo de clase | Kind Type | @! | - | x x x x x x x x x x x x x x x x | - | DM2 | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | TMSC14When() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52784 | 0 |
| DM2 | 10 | DM2_ESPEC | C | 40 | 0 | Espécies | Clases | Kinds | Espécies | Clases | Kinds | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | TMSC14When() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52785 | 0 |
| DM2 | 11 | DM2_RASTRE | C | 1 | 0 | Rastreamento | Rastreo | Tracking | Rastreamento | Rastreo | Tracking | @! | Pertence("1|2") | x x x x x x x x x x x x x x x x | "2" | - | 1 | x | - | - | - | N | A | R | - | - | 1=Sim;2=Não | 1=Sí;2=No | 1=Yes;2=No | - | TMSC14When() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52786 | 0 |
| DM2 | 12 | DM2_LOTAC | C | 1 | 0 | Lotação | Asignac | Allocation | Carga Lotação | Carga asignación | Cargo Allocation | @! | Pertence('12') | x x x x x x x x x x x x x x x x | "2" | - | 1 | x | - | - | - | N | A | R | - | - | 1=Sim;2=Não | 1=Sí;2=No | 1=Yes;2=No | - | TMSC14When() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52787 | 0 |
| DM2 | 13 | DM2_PEDPAG | C | 1 | 0 | Pedag.Pago | Peaj.Pag | Toll Paid | Pedágio Pago | Peaje pagado | Toll Paid | @! | Pertence('12') | x x x x x x x x x x x x x x x x | "2" | - | 1 | x | - | - | - | N | A | R | - | - | 1=Sim;2=Não | 1=Sí;2=No | 1=Yes;2=No | - | TMSC14When() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52788 | 0 |
| DM2 | 14 | DM2_INFOAD | M | 50 | 0 | Info Adic | Inf Adic | Addit Info | Informações Adicionais | Información adicional | Additional Information | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xxx | - | - | - | N | A | R | - | - | - | - | - | - | TMSC14When() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 52789 | 0 |
| DM2 | 15 | DM2_VEIC | C | 8 | 0 | Veículo | Vehículo | Vehicle | Cód. Veículo | Cód. Vehículo | Vehicle Code | @! | Vazio() .Or. (ExistCpo('DA3')) | x x x x x x x x x x x x x x x x | - | DA3 | 1 | x | - | S | - | S | A | R | - | - | - | - | - | - | TMSC14When() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52790 | 0 |
| DM2 | 16 | DM2_PLACA | C | 8 | 0 | Placa | Matrícula | License Plat | Placa do Veículo | Matrícula del vehículo | Vehicle Lic Plate | @! | - | x x x x x x x x x x x x x x x x | Iif(INCLUI,"",Posicione('DA3',1,xFilial('DA3')+DM2->DM2_VEIC,'DA3_PLACA')) | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione('DA3',1,xFilial('DA3')+DM2->DM2_VEIC,'DA3_PLACA') | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52791 | 0 |
| DM2 | 17 | DM2_TIPVEI | C | 30 | 0 | Tipo Veículo | Tipo vehícul | Vehicle Type | Tipos do Veículo | Tipos del vehículo | Vehicle Types | @! | - | x x x x x x x x x x x x x x x x | - | DM2 | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | TMSC14When() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52792 | 0 |
| DM2 | 18 | DM2_NOMVEI | M | 1 | 0 | Tipo Descr. | Tipo Descr. | Desc Type | Descrição Tipo Veículo | Descripción del tipo de v | Vehicle Type Description | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52793 | 0 |
| DM2 | 19 | DM2_TIPCAR | C | 30 | 0 | Carroceria | Carrocería | Body | Tipos de Carroceria | Tipos de carrocería | Body Types | @! | - | x x x x x x x x x x x x x x x x | - | DM2 | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | TMSC14When() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52794 | 0 |
| DM2 | 20 | DM2_CARROC | M | 40 | 0 | Carroceria | Carrocería | Body | Descrição Carroceria | Descripción carrocería | Body Description | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | TMSC14When() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52795 | 0 |
| DM2 | 21 | DM2_TIPPRE | C | 3 | 0 | Tp.Preços | Tp.Precios | Price Type | Tipos de Preços | Tipos de precios | Price Types | @! | - | x x x x x x x x x x x x x x x x | - | DM2 | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | TMSC14When() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52796 | 0 |
| DM2 | 22 | DM2_PRECOS | C | 40 | 0 | Preços | Precios | Prices | Descrição Preços | Descripción precios | Price Description | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | TMSC14When() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52797 | 0 |
| DM2 | 23 | DM2_FRETE | N | 11 | 2 | Vl.Frete | Vl.Flete | Freight Val | Valor do Frete | Valor del flete | Freight value | @E 99,999,999.99 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | TMSC14When() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52798 | 0 |
| DM2 | 24 | DM2_VOLUME | N | 5 | 0 | Volumes | Volúms | Volumes | Qtde Volumes | Cant. Volúmenes | No. of Volumes | 99999 | Positivo() | x x x x x x x x x x x x x x x x | IIF(INCLUI,TMSC14Init(),0) | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | TMSC14When() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52799 | 0 |
| DM2 | 25 | DM2_PESO | N | 11 | 4 | Peso | Peso | Weight | Peso Real | Peso real | Actual Weight | @E 999,999.9999 | Positivo() | x x x x x x x x x x x x x x x x | IIF(INCLUI,TMSC14Init(),0) | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | TMSC14When() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52800 | 0 |
| DM2 | 26 | DM2_DIMENS | N | 11 | 4 | Dimensões | Dimensiones | Dimensions | Dimensões | Dimensiones | Dimensions | @E 999,999.9999 | - | x x x x x x x x x x x x x x x x | IIF(INCLUI,TMSC14Init(),0) | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | TMSC14When() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52801 | 0 |
| DM2 | 27 | DM2_CODMOT | C | 6 | 0 | Cd.Motorista | Cód.Conducto | Driver Code | Codigo do Motorista | Código del conductor | Driver Code | @! | Vazio() .Or. (ExistCpo("DA4")) | x x x x x x x x x x x x x x x x | - | DA4 | 1 | x | - | S | - | S | A | R | - | - | - | - | - | - | TMSC14When() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52802 | 0 |
| DM2 | 28 | DM2_MOTORI | C | 40 | 0 | Motorista | Conductor | Driver | Nome do Motorista | Nombre del conductor | Driver Name | @! | - | x x x x x x x x x x x x x x x x | Iif(INCLUI,"",Posicione("DA4",1,xFilial("DA4")+DM2->DM2_CODMOT,"DA4_NOME")) | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("DA4",1,xFilial("DA4")+DM2->DM2_CODMOT,"DA4_NOME") | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52803 | 0 |
| DM2 | 29 | DM2_IDFRT | C | 30 | 0 | Id Frete | Id Flete | Freight ID | Id Frete FreteBras | Id Flete FreteBras | FreteBras Freight ID | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52804 | 0 |
| DM2 | 30 | DM2_DTFRT | D | 8 | 0 | Dt do Frete | Fch Flete | Freight Dt | Data do Frete | Fecha del flete | Freight Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52805 | 0 |
| DM2 | 31 | DM2_STATUS | C | 1 | 0 | Status | Estatus | Status | Status | Estatus | Status | @! | Pertence("123") | x x x x x x x x x x x x x x x x | "1" | - | 1 | x | - | - | - | N | V | R | - | - | 1=Em Aberto;2=Concretizado;3=Cancelado | 1=Pendiente;2=Realizado;3=Anulado. | 1=Pending;2=Finished;3=Canceled | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 52806 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DM2 | 1 | DM2_FILIAL+DM2_FILORI+DM2_VIAGEM | Fil.Viagem + Viagem | Suc.Viaje + Viaje | Trip Br + Trip | S | - | - | S | 2 | 3 | - | 8117 | 0 |
| DM2 | 2 | DM2_FILIAL+DM2_IDFRT | Id Frete | Id Flete | Freight ID | S | - | - | S | 2 | 3 | - | 8118 | 0 |
| DM2 | 3 | DM2_FILIAL+DTOS(DM2_DTFRT)+DM2_IDFRT | Dt do Frete + Id Frete | Fch Flete + Id Flete | Freight Dt + Freight ID | S | - | - | S | 2 | 3 | - | 8119 | 0 |
| DM2 | 4 | DM2_FILIAL+DM2_UFORIG+DM2_MUNORI+DM2_UFDEST+DM2_MUNDES | UF Orig. + Mun.Origem + UF Dest + Mun.Destino | Est Orig. + Mun.Origen + Est Dest + Mun.Destino | Orig State + Origin City + Dest State + Dest City | S | - | - | S | 2 | 3 | - | 8120 | 0 |
| DM2 | 5 | DM2_FILIAL+DM2_CODMOT | Cd.Motorista | Cód.Conducto | Driver Code | S | - | - | S | 2 | 3 | - | 8121 | 0 |
Ela é utilizada para informações de carga - fretebr 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.