Tabela DJI

Histórico Componente Frete
49camposNome físicoDJI010(empresa 01)

Campos da tabela DJI

49 campos no dicionário de dados do TOTVS Protheus.

49
CampoDescrição
DJI_FILIAL
Caractere (C)(2)
Filial
DJI_CODPAS
Caractere (C)(2)
Componente
Máscara:
@!
Contexto:
Real
DJI_VALPAS
Numérico (N)(14,2)
Vlr.Compone.
Máscara:
@E 99,999,999,999.99
Contexto:
Real
DJI_VALIMP
Numérico (N)(14,2)
Vlr.Impostos
Máscara:
@E 99,999,999,999.99
Contexto:
Real
DJI_VALTOT
Numérico (N)(14,2)
Vlr.Total
Máscara:
@E 99,999,999,999.99
Contexto:
Real
DJI_FILDOC
Caractere (C)(2)
Fil.Docto.
Contexto:
Real
DJI_DOC
Caractere (C)(9)
No.Docto.
Máscara:
@!
DJI_SERIE
Caractere (C)(3)
Serie Docto.
Máscara:
!!!
DJI_ITEMD2
Caractere (C)(2)
Item SD2
Máscara:
@!
Contexto:
Real
DJI_FILORI
Caractere (C)(2)
Fil.Origem
Contexto:
Real
DJI_NUMCOT
Caractere (C)(6)
No.Cotacao
Máscara:
@!
Contexto:
Real
DJI_NUMAWB
Caractere (C)(9)
No. AWB
Máscara:
@!
Contexto:
Real
DJI_CDRORI
Caractere (C)(6)
Cod.Reg.Orig
Máscara:
@!
Contexto:
Real
DJI_CDRDES
Caractere (C)(6)
Cod.Reg.Dest
Máscara:
@!
Contexto:
Real
DJI_CODPRO
Caractere (C)(15)
Produto
Máscara:
@!
Contexto:
Real
DJI_TABFRE
Caractere (C)(4)
Tab.Frete
Máscara:
@!
Contexto:
Real
DJI_TIPTAB
Caractere (C)(2)
Tipo Tabela
Máscara:
@!
Contexto:
Real
DJI_SEQTAB
Caractere (C)(2)
Seq.Tab.Fre
Máscara:
@!
Contexto:
Real
DJI_DESC
Numérico (N)(10,5)
Desconto
Máscara:
@E 9,999.99999
Contexto:
Real
DJI_ACRESC
Numérico (N)(10,5)
Acrescimo
Máscara:
@E 9,999.99999
Contexto:
Real
DJI_CALMIN
Caractere (C)(1)
Calc.No Min.
Máscara:
@!
Contexto:
Real
Validação:
Pertence('12')
DJI_CODCIA
Caractere (C)(6)
Cia Aerea
Máscara:
@!
Contexto:
Real
DJI_LOJCIA
Caractere (C)(2)
Loja C.Aerea
Máscara:
@!
Contexto:
Real
DJI_DIGAWB
Caractere (C)(1)
Digito AWB
Máscara:
@!
Contexto:
Real
DJI_PERRAT
Numérico (N)(6,2)
% Rateio
Máscara:
@E 999.99
Contexto:
Real
DJI_SDOC
Caractere (C)(3)
Serie Doc.
Máscara:
!!!
Contexto:
Real
DJI_DATGER
Data (D)(8)
Data Geracao
Contexto:
Real
DJI_HORGER
Caractere (C)(5)
Hora Geracao
Contexto:
Real
DJI_FILVGE
Caractere (C)(2)
Filial Viag.
Contexto:
Real
DJI_VIAGEM
Caractere (C)(6)
Viagem
Máscara:
@!
Contexto:
Real
DJI_SEQGER
Caractere (C)(3)
Seq. Geracao
Máscara:
@!
Contexto:
Real
DJI_TIPCAL
Caractere (C)(1)
Tipo Calculo
Máscara:
@!
Contexto:
Real
Validação:
Pertence('12')
DJI_STATUS
Caractere (C)(1)
Status
Máscara:
@!
Contexto:
Real
Validação:
Pertence('12')
DJI_CODUSR
Caractere (C)(6)
Cod. Usuario
Máscara:
@!
Contexto:
Real
DJI_VALFRE
Numérico (N)(14,2)
Vlr. Frete
Máscara:
@E 99,999,999,999.99
Contexto:
Real
Validação:
Positivo()
DJI_TIPFRE
Caractere (C)(1)
Tipo Frete
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
DJI_NCONTR
Caractere (C)(15)
No. Contrato
Máscara:
@!
Contexto:
Real
DJI_LOTNFC
Caractere (C)(6)
No. Lote TMS
Máscara:
@!
Contexto:
Real
DJI_CLIREM
Caractere (C)(6)
Remetente
Máscara:
@!
Contexto:
Real
DJI_LOJREM
Caractere (C)(2)
Loja Remet.
Máscara:
@!
Contexto:
Real
DJI_CLICAL
Caractere (C)(6)
Cli. Calculo
Máscara:
@!
Contexto:
Real
DJI_LOJCAL
Caractere (C)(2)
Loja Calculo
Máscara:
@!
Contexto:
Real
DJI_DEVFRE
Caractere (C)(1)
Dev. Frete
Máscara:
@!
Contexto:
Real
Validação:
Pertence("1234")
4 valores possíveis
  • 1Remetente
  • 2Destinatario
  • 3Consignatario
  • 4Despachante
DJI_QTDUNI
Numérico (N)(5)
Unitizadores
Máscara:
99999
Contexto:
Real
Validação:
Positivo()
DJI_BASSEG
Numérico (N)(14,2)
Base RR
Máscara:
@E 99,999,999,999.99
Contexto:
Real
Validação:
Positivo()
DJI_METRO3
Numérico (N)(11,4)
M3
Máscara:
@E 999,999.9999
Contexto:
Real
Validação:
Positivo()
DJI_SERVIC
Caractere (C)(3)
Servico
Máscara:
@!
Contexto:
Real
DJI_DT6STA
Caractere (C)(1)
Status
Máscara:
@!
Contexto:
Real
Validação:
Pertence("123456789BCD")
DJI_CODNEG
Caractere (C)(2)
Cod.Negociac
Máscara:
@!
Contexto:
Real
Validação:
Vazio() .Or. Existcpo("DDB")

SELECT de exemplo da tabela DJI

No Protheus a tabela física leva o código da empresa (01 → 010) e registros excluídos ficam com D_E_L_E_T_ = '*'.

SQL · SQL Server
SELECT TOP 100
  DJI.DJI_FILIAL,
  DJI.DJI_CODPAS,
  DJI.DJI_VALPAS,
  DJI.DJI_VALIMP,
  DJI.DJI_VALTOT,
  DJI.DJI_FILDOC,
  DJI.DJI_DOC,
  DJI.DJI_SERIE
FROM DJI010 DJI
WHERE DJI.D_E_L_E_T_ = ' '

Tabelas próximas no índice do Protheus

O ERPSeeker é um projeto independente, sem vínculo com a TOTVS. A estrutura pode variar conforme a versão e as customizações do seu ambiente.