Tabela DEJ

Operações da Operad de Frotas
10camposNome físicoDEJ010(empresa 01)

Campos da tabela DEJ

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

10
CampoDescrição
DEJ_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
DEJ_ITEM
Caractere (C)(2)
Item
Máscara:
@!
Contexto:
Real
DEJ_CODOPE
Caractere (C)(2)
Cod. Operad.
Máscara:
@!
Contexto:
Real
Consulta F3:
DEG
Validação:
TMSVALFIELD("M->DEJ_CODOPE",.T.,"DEJ_NOMOPE")
DEJ_NOMOPE
Caractere (C)(30)
Nome Operad.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
DEJ_SERTMS
Caractere (C)(1)
Serv. Trans.
Máscara:
@!
Contexto:
Real
Consulta F3:
DLC
Validação:
TMSVALFIELD("M->DEJ_SERTMS",.T.,"DEJ_DESSVT").AND.TMSAE60VLD()
DEJ_DESSVT
Caractere (C)(30)
Desc.Sv.Tran
Máscara:
@!
Contexto:
Virtual (não existe no banco)
DEJ_TIPTRA
Caractere (C)(1)
Tipo Transp.
Máscara:
@!
Contexto:
Real
Consulta F3:
DLC
Validação:
TMSVALFIELD("M->DEJ_TIPTRA",.T.,"DEJ_DESTPT").AND.TMSAE60VLD()
DEJ_DESTPT
Caractere (C)(30)
Desc.Tp.Tran
Máscara:
@!
Contexto:
Virtual (não existe no banco)
DEJ_OPERAC
Caractere (C)(3)
Operacao
Máscara:
@!
Contexto:
Real
Consulta F3:
DEJ
Validação:
TMSAE60VLD()
DEJ_DESOPE
Caractere (C)(50)
Desc. Operac
Máscara:
@!
Contexto:
Virtual (não existe no banco)

SELECT de exemplo da tabela DEJ

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
  DEJ.DEJ_FILIAL,
  DEJ.DEJ_ITEM,
  DEJ.DEJ_CODOPE,
  DEJ.DEJ_SERTMS,
  DEJ.DEJ_TIPTRA,
  DEJ.DEJ_OPERAC
FROM DEJ010 DEJ
WHERE DEJ.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.