Tabela NJ5

Programação de Entrega
22camposNome físicoNJ5010(empresa 01)

Campos da tabela NJ5

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

22
CampoDescrição
NJ5_HRPROG
Caractere (C)(5)
Hr Prog
Máscara:
@R 99:99
Contexto:
Real
NJ5_FILIAL
Caractere (C)(2)
Filial
NJ5_CODCAR
Caractere (C)(6)
Carregamento
Contexto:
Real
NJ5_NUMPV
Caractere (C)(6)
Num.Ped.Vend
Máscara:
@!
Contexto:
Real
NJ5_ITEM
Caractere (C)(2)
Item
Máscara:
@!
Contexto:
Real
NJ5_SEQUEN
Caractere (C)(2)
Seq
Máscara:
@!
Contexto:
Real
NJ5_PRODUT
Caractere (C)(15)
Produto
Máscara:
@!
Contexto:
Real
Validação:
Vazio().Or.ExistCpo('SB1', M->NJM_CODPRO)
NJ5_DESCR
Caractere (C)(30)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
NJ5_QTDE
Numérico (N)(9,2)
Quantidade
Máscara:
@E 999,999.99
Contexto:
Real
NJ5_UM
Caractere (C)(2)
Un. Medida
Máscara:
@!
Contexto:
Real
NJ5_QTDUM2
Numérico (N)(9,3)
Qtd. 2ª. UM
Máscara:
@E 99,999.999
Contexto:
Real
NJ5_UM2
Caractere (C)(2)
Unid. Med. 2
Contexto:
Real
NJ5_LOCAL
Caractere (C)(2)
Local
Máscara:
@!
Contexto:
Real
Validação:
ExistCPO("NNR")
NJ5_CULTRA
Caractere (C)(10)
Cultura
Máscara:
@!
Contexto:
Real
NJ5_CTVAR
Caractere (C)(10)
Cultivar
Máscara:
@!
Contexto:
Real
NJ5_CATEG
Caractere (C)(2)
Categoria
Máscara:
@!
Contexto:
Real
NJ5_PENE
Caractere (C)(4)
Peneira
Máscara:
@!
Contexto:
Real
NJ5_TPFRET
Caractere (C)(1)
Tipo Frete
Máscara:
X
Contexto:
Real
Validação:
pertence("CFTS")
4 valores possíveis
  • CCIF
  • FFOB
  • TPor conta terceiros
  • SSem frete
NJ5_STATUS
Caractere (C)(1)
Status
Máscara:
@!
Contexto:
Real
Validação:
pertence("123")
3 valores possíveis
  • 1Agd. Aprovacao
  • 2Aprovado
  • 3Aprovado manualmente
NJ5_CODSAF
Caractere (C)(15)
Cod. Safra
Máscara:
@!
Contexto:
Real
NJ5_DTPROG
Data (D)(8)
Dt Prog
Contexto:
Real
NJ5_DTPREV
Data (D)(8)
Dt Prev
Contexto:
Real

SELECT de exemplo da tabela NJ5

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
  NJ5.NJ5_HRPROG,
  NJ5.NJ5_FILIAL,
  NJ5.NJ5_CODCAR,
  NJ5.NJ5_NUMPV,
  NJ5.NJ5_ITEM,
  NJ5.NJ5_SEQUEN,
  NJ5.NJ5_PRODUT,
  NJ5.NJ5_QTDE
FROM NJ5010 NJ5
WHERE NJ5.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.