Tabela NPN

Itens da Ordem de Carregamento
19camposNome físicoNPN010(empresa 01)

Campos da tabela NPN

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

19
CampoDescrição
NPN_FILIAL
Caractere (C)(2)
Filial
NPN_ITEMAC
Caractere (C)(3)
Item Autoriz
Máscara:
@!
Contexto:
Real
NPN_ORDEMC
Caractere (C)(6)
Ord. Carrega
Máscara:
@!
Contexto:
Real
NPN_ITEM
Caractere (C)(3)
Item
Máscara:
@!
Contexto:
Real
NPN_CODPRO
Caractere (C)(15)
Produto
Máscara:
@!
Contexto:
Real
Validação:
AGRA900CPO()
NPN_LOCAL
Caractere (C)(2)
Local
Máscara:
@!
Contexto:
Real
Consulta F3:
NNR
Validação:
AGRA900CPO()
NPN_QUANT
Numérico (N)(14,2)
Quantidade
Máscara:
@E 99,999,999,999.99
Contexto:
Real
NPN_LOTE
Caractere (C)(10)
Lote
Contexto:
Real
Consulta F3:
NP9
NPN_LOCALI
Caractere (C)(15)
Posicao
Máscara:
@!
Contexto:
Real
Consulta F3:
SBE
Validação:
Vazio() .Or. ExistCPO("SBE",FwFldGet("NPN_LOCAL")+M->NPN_LOCALI)
NPN_CODAC
Caractere (C)(6)
Autorizacao
Máscara:
@!
Contexto:
Real
NPN_NUMPV
Caractere (C)(6)
Num. Ped.
Máscara:
@!
Contexto:
Real
NPN_ITEMPV
Caractere (C)(2)
Item PV
Máscara:
@!
Contexto:
Real
NPN_CATEG
Caractere (C)(2)
Categoria
Máscara:
@!
Contexto:
Real
NPN_CTVAR
Caractere (C)(10)
Cultivar
Máscara:
@!
Contexto:
Virtual (não existe no banco)
Consulta F3:
NP4
NPN_CULTRA
Caractere (C)(10)
Cultura
Máscara:
@!
Contexto:
Virtual (não existe no banco)
Consulta F3:
NP3
NPN_PENE
Caractere (C)(4)
Peneira
Máscara:
@!
Contexto:
Virtual (não existe no banco)
Consulta F3:
NP7
NPN_QTD2UM
Numérico (N)(14)
Qtd. Seg UM
Máscara:
@E 99,999,999,999,999
Contexto:
Real
NPN_SEGUM
Caractere (C)(2)
Seg UM
Máscara:
@!
Contexto:
Real
NPN_RESERV
Caractere (C)(6)
Reserva
Máscara:
@!
Contexto:
Real
Consulta F3:
SC0

SELECT de exemplo da tabela NPN

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
  NPN.NPN_FILIAL,
  NPN.NPN_ITEMAC,
  NPN.NPN_ORDEMC,
  NPN.NPN_ITEM,
  NPN.NPN_CODPRO,
  NPN.NPN_LOCAL,
  NPN.NPN_QUANT,
  NPN.NPN_LOTE
FROM NPN010 NPN
WHERE NPN.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.