Tabela NU9

PARTICIPAÇÃO DO CLIENTE
12camposNome físicoNU9010(empresa 01)

Campos da tabela NU9

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

12
CampoDescrição
NU9_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
NU9_COD
Caractere (C)(6)
Codigo
Contexto:
Real
NU9_CCLIEN
Caractere (C)(6)
Cod cliente
Máscara:
@!
Contexto:
Real
Consulta F3:
SA1
NU9_CLOJA
Caractere (C)(2)
Cod loja
Máscara:
@!
Contexto:
Real
NU9_SIGLA
Caractere (C)(5)
Sigla part
Contexto:
Virtual (não existe no banco)
Consulta F3:
RD0NU9
Validação:
Vazio().Or.(ExistCpo('RD0',FWFLDGET('NU9_SIGLA'),9).And.JURRD0('NU9DETAIL','NU9_SIGLA',JA148TPORI(),.T.))
NU9_CPART
Caractere (C)(6)
Cod part
Contexto:
Real
Consulta F3:
RD0NU9
Validação:
Vazio().Or.Iif(JurIsRest(),(ExistCpo('RD0',FWFLDGET('NU9_CPART'),1).And.JURRD0('NU9DETAIL','NU9_CPART','1')), .T.)
NU9_DPART
Caractere (C)(40)
Nome part
Contexto:
Virtual (não existe no banco)
NU9_CTIPO
Caractere (C)(3)
Cod tipo ori
Contexto:
Real
Consulta F3:
NRINU9
Validação:
Vazio().Or.(ExistCpo('NRI',M->NU9_CTIPO,1).AND.JA148VLDCP("NU9_CTIPO"))
NU9_DTIPO
Caractere (C)(100)
Desc tipo
Contexto:
Virtual (não existe no banco)
NU9_PERC
Numérico (N)(16,4)
% Particip
Máscara:
@E 99,999,999,999.9999
Contexto:
Real
Validação:
FwFldGet("NU9_PERC") <=100.And.Positivo()
NU9_DTINI
Data (D)(8)
Data inicial
Contexto:
Real
Validação:
JA148VLDCP('NU9_DTINI')
NU9_DTFIM
Data (D)(8)
Data fina
Contexto:
Real
Validação:
JA148VLDCP('NU9_DTFIM')

SELECT de exemplo da tabela NU9

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
  NU9.NU9_FILIAL,
  NU9.NU9_COD,
  NU9.NU9_CCLIEN,
  NU9.NU9_CLOJA,
  NU9.NU9_CPART,
  NU9.NU9_CTIPO,
  NU9.NU9_PERC,
  NU9.NU9_DTINI
FROM NU9010 NU9
WHERE NU9.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.