Tabela DTI

Consignatários
17camposNome físicoDTI010(empresa 01)

Campos da tabela DTI

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

17
CampoDescrição
DTI_FILIAL
Caractere (C)(2)
Filial
DTI_CLIREM
Caractere (C)(6)
Remetente
Máscara:
@!
Consulta F3:
SA1
Validação:
ExistCpo("SA1",M->DTI_CLIREM+AllTrim(M->DTI_LOJREM))
DTI_LOJREM
Caractere (C)(2)
Loja Remet.
Máscara:
@!
Validação:
ExistCpo("SA1",M->DTI_CLIREM+M->DTI_LOJREM)
DTI_NOMREM
Caractere (C)(40)
Nome Remet.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
DTI_CLIDES
Caractere (C)(6)
Destinatario
Máscara:
@!
Consulta F3:
SA1
Validação:
ExistCpo("SA1",M->DTI_CLIDES+AllTrim(M->DTI_LOJDES))
DTI_LOJDES
Caractere (C)(2)
Loja Dest.
Máscara:
@!
Validação:
ExistCpo("SA1",M->DTI_CLIDES+M->DTI_LOJDES)
DTI_NOMDES
Caractere (C)(40)
Nome Dest.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
DTI_CLICON
Caractere (C)(6)
Consignatar.
Máscara:
@!
Consulta F3:
SA1
Validação:
ExistCpo("SA1",M->DTI_CLICON+AllTrim(M->DTI_LOJCON)) .And. TMSA100Vld()
DTI_LOJCON
Caractere (C)(2)
Loja Consig.
Máscara:
@!
Validação:
ExistCpo("SA1",M->DTI_CLICON+M->DTI_LOJCON) .And. TMSA100Vld()
DTI_NOMCON
Caractere (C)(40)
Nome Consig.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
DTI_IMPDEV
Caractere (C)(1)
So Devedor?
Máscara:
@!
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
DTI_CALFRE
Caractere (C)(1)
Cal. Frete
Máscara:
@!
Validação:
Pertence("123")
3 valores possíveis
  • 1Remetente
  • 2Destinatario
  • 3Consignatario
DTI_TIPFRE
Caractere (C)(1)
Tipo Frete
Máscara:
@!
Validação:
Pertence("12")
2 valores possíveis
  • 1CIF
  • 2FOB
DTI_CALPRZ
Caractere (C)(1)
Cal. Prazo
Máscara:
@!
Validação:
Pertence("123")
3 valores possíveis
  • 1Remetente
  • 2Destinatario
  • 3Consignatario
DTI_TIPPER
Caractere (C)(1)
Tipo Perfil
Máscara:
@!
Validação:
Pertence("123")
3 valores possíveis
  • 1Remetente
  • 2Destinatario
  • 3Consignatario
DTI_ABRREM
Caractere (C)(1)
Abrang.Remet
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Cliente/Loja
  • 2Cliente
DTI_ABRDES
Caractere (C)(1)
Abrang.Dest
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Cliente/Loja
  • 2Cliente

SELECT de exemplo da tabela DTI

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
  DTI.DTI_FILIAL,
  DTI.DTI_CLIREM,
  DTI.DTI_LOJREM,
  DTI.DTI_CLIDES,
  DTI.DTI_LOJDES,
  DTI.DTI_CLICON,
  DTI.DTI_LOJCON,
  DTI.DTI_IMPDEV
FROM DTI010 DTI
WHERE DTI.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.