Tabela DUJ

Contrato de Fornecedores
17camposNome físicoDUJ010(empresa 01)

Campos da tabela DUJ

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

17
CampoDescrição
DUJ_FILIAL
Caractere (C)(2)
Filial
DUJ_NCONTR
Caractere (C)(15)
No. Contrato
Máscara:
@!
Validação:
ExistChav("DUJ") .And. Freeforuse("DUJ")
DUJ_CODFOR
Caractere (C)(6)
Fornecedor
Máscara:
@!
Consulta F3:
FOR
Validação:
ExistCpo("SA2",M->DUJ_CODFOR+AllTrim(M->DUJ_LOJFOR))
DUJ_LOJFOR
Caractere (C)(2)
Loja
Máscara:
@!
Validação:
ExistCpo("SA2",M->DUJ_CODFOR+M->DUJ_LOJFOR)
DUJ_NOMFOR
Caractere (C)(40)
Nome
Máscara:
@!
DUJ_INIVIG
Data (D)(8)
Ini.Vigencia
Validação:
NaoVazio() .And. If(!Empty(M->DUJ_FIMVIG), M->DUJ_FIMVIG > M->DUJ_INIVIG, .T.)
DUJ_FIMVIG
Data (D)(8)
Fim Vigencia
Validação:
Vazio().Or. M->DUJ_FIMVIG>M->DUJ_INIVIG
DUJ_GERAPC
Caractere (C)(1)
Gera Ped. Co
Máscara:
!
Contexto:
Real
Validação:
TMSA800Val()
3 valores possíveis
  • 1Sim
  • 2Nao
  • 0Nao Considera
DUJ_PERADT
Numérico (N)(5,2)
% Adiantamto
Máscara:
@E 99.99
Contexto:
Real
Validação:
Positivo()
DUJ_TITFRE
Caractere (C)(1)
Ger.Titi.Frt
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
DUJ_BXAPDG
Caractere (C)(1)
Bx. PDG Auto
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
DUJ_PAMOVB
Caractere (C)(1)
PA.Mov.Banco
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
DUJ_TITNDF
Caractere (C)(1)
Ger.Tit.NDF.
Máscara:
@!
Contexto:
Real
Validação:
Pertence('12')
2 valores possíveis
  • 1Sim
  • 2Nao
DUJ_TITPDG
Caractere (C)(1)
Mom.Ger.PDG
Máscara:
@!
Contexto:
Real
Validação:
Pertence('12')
2 valores possíveis
  • 1Fechamento Viagem
  • 2Geracao CTC
DUJ_TITADI
Caractere (C)(1)
Mom.Ger.ADI.
Máscara:
@!
Contexto:
Real
Validação:
Pertence('012')
3 valores possíveis
  • 0Geracao da Viagem
  • 1Fechamento da Viagem
  • 2Geracao CTC.
DUJ_TPCIOT
Caractere (C)(1)
Tipo CIOT
Contexto:
Real
Validação:
Pertence('12')
2 valores possíveis
  • 1Por Viagem
  • 2Por Periodo
DUJ_PRCIOT
Numérico (N)(4)
Prazo CIOT
Máscara:
@E 9,999
Contexto:
Real
Validação:
Positivo()

SELECT de exemplo da tabela DUJ

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
  DUJ.DUJ_FILIAL,
  DUJ.DUJ_NCONTR,
  DUJ.DUJ_CODFOR,
  DUJ.DUJ_LOJFOR,
  DUJ.DUJ_NOMFOR,
  DUJ.DUJ_INIVIG,
  DUJ.DUJ_FIMVIG,
  DUJ.DUJ_GERAPC
FROM DUJ010 DUJ
WHERE DUJ.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.