Dicionário Protheus
Início

Tabela NVN no Protheus

ENCAMINHAMENTO DE FATURAS

O que é a tabela NVN no Protheus?

A tabela NVN faz parte do sistema ERP Protheus da TOTVS e é utilizada para encaminhamento de faturas.

Ela pertence ao dicionário de dados do Protheus (SX2) e armazena informações essenciais utilizadas em processos como cadastros, movimentações e integrações do sistema.

A tabela NVN possui diversos campos (SX3), cada um com regras específicas como tipo, tamanho e validações, além de índices (SIX) que otimizam a performance das consultas.

Nesta página você pode consultar a estrutura completa da tabela NVN, incluindo todos os campos e índices relacionados.

Propriedades da Tabela

Propriedade Valor
X2_CHAVE NVN
X2_PATH \DATA\
X2_ARQUIVO NVN990
X2_NOME ENCAMINHAMENTO DE FATURAS
X2_NOMESPA ENVIO DE FACTURAS
X2_NOMEENG INVOICE SENDING
X2_ROTINA -
X2_MODO C
X2_MODOUN C
X2_MODOEMP C
X2_DELET 0
X2_TTS -
X2_UNICO NVN_FILIAL+NVN_CCONTR+NVN_CJCONT+NVN_CPREFT+NVN_CFATAD+NVN_CFIXO+NVN_CFILA+NVN_CESCR+NVN_CFATUR+NVN_CLIPG+NVN_LOJPG+NVN_CCONT+NVN_COD
X2_PYME N
X2_MODULO 77
X2_DISPLAY -
X2_SYSOBJ -
X2_USROBJ -
X2_POSLGT 1
X2_CLOB 2
X2_AUTREC 2
X2_TAMFIL 2
X2_TAMUN 0
X2_TAMEMP 0
X2_STAMP 2
X2_INSDT 2
D_E_L_E_T_ -
R_E_C_N_O_ 7135
R_E_C_D_E_L_ 0

Campos da Tabela NVN (16 campos)

X3_ARQUIVO X3_ORDEM X3_CAMPO X3_TIPO X3_TAMANHO X3_DECIMAL X3_TITULO X3_TITSPA X3_TITENG X3_DESCRIC X3_DESCSPA X3_DESCENG X3_PICTURE X3_VALID X3_USADO X3_RELACAO X3_F3 X3_NIVEL X3_RESERV X3_CHECK X3_TRIGGER X3_PROPRI X3_BROWSE X3_VISUAL X3_CONTEXT X3_OBRIGAT X3_VLDUSER X3_CBOX X3_CBOXSPA X3_CBOXENG X3_PICTVAR X3_WHEN X3_INIBRW X3_GRPSXG X3_FOLDER X3_PYME X3_CONDSQL X3_CHKSQL X3_IDXSRV X3_ORTOGRA X3_IDXFLD X3_TELA X3_PICBRV X3_AGRUP X3_POSLGT X3_MODAL X3_CHKSUM X3_ADDSUM D_E_L_E_T_ R_E_C_N_O_ R_E_C_D_E_L_
NVN 01 NVN_FILIAL C 2 0 Filial Sucursal Branch Filial do Sistema Sucursal del Sistema System Branch - - x x x x x x x x x x x x x x x - - 1 - - - - N A R - - - - - - - - 033 - N - - N N N - - - 1 2 - - - 113308 0
NVN 02 NVN_COD C 4 0 Código Codigo Code Codigo do Encaminhamento Codigo de Encaminamiento Referral Code - - x x x x x x x x x x x x x x x x - - 1 xxxxxx - - - S V R - - - - - - - - - - N - - N N N - - - 1 1 - - - 113309 0
NVN 03 NVN_CJCONT C 4 0 Cód. Junção Cod. Reunion JunctionCode Código Junção Contratos Codigo Reunion Contratato Contract Junction Code - - x x x x x x x x x x x x x x x x - - 1 xx x - - - N V R - - - - - - - - 103 - S - - N - N - - - 1 2 - - - 113310 0
NVN 04 NVN_CPREFT C 8 0 Cód Pré-Fat Cod Fact Pre Pre-Inv Code Código da Pré-Fatura Codigo de la factura prev Pre-Invoicing Code - - x x x x x x x x x x x x x x x x - - 1 x x xx - - - N V R - - - - - - - - 071 - S - - N - N - - - 1 2 - - - 113311 0
NVN 05 NVN_CCONTR C 6 0 Cód.Contrato Cod.Contrato Contract Cd. Código do Contrato Codigo del Contrato Contract Code - ExistCpo('NT0') x x x x x x x x x x x x x x x x - NT0 1 xxxx x - - - S A R - - - - - - - - 102 - N - - N N N - - - 1 2 - - - 113312 0
NVN 06 NVN_CFATAD C 8 0 Cód Fat Adic Cod Fact Ad Add.Inv.Code Código Fatura Adicional Codigo Factura Adicional Additional Invoice Code - - x x x x x x x x x x x x x x x x - - 1 xx x - - - S V R - - - - - - - - 105 - S - - N - N - - - 1 2 - - - 113313 0
NVN 07 NVN_CLIPG C 6 0 Clie Pagador Cli. Pagador PayingCustmr Cliente Pagador Cliente Pagador Paying Customer @! - x x x x x x x x x x x x x x x x - - 1 xx x - - - N V R - - - - - - - - 001 - S - - N - N - - - 1 2 - - - 113314 0
NVN 08 NVN_LOJPG C 2 0 Loja Pagador Tda. Pagador Payer Store Loja Pagador Tienda Pagador Payer Store @! - x x x x x x x x x x x x x x x x - - 1 xx x - - - N V R - - - - - - - - 002 - S - - N - N - - - 1 2 - - - 113315 0
NVN 09 NVN_CCONT C 6 0 Cód. Contato Cod. Contato Contract Cd. Código do Contato Codigo del Contato Contract Code - Vazio().Or.JurVldCont() x x x x x x x x x x x x x x x x - SU5NVN 1 xxxxxx - S - S A R - - - - - - - - - - N - - N N N - - - 1 1 - - - 113316 0
NVN 10 NVN_DCONT C 50 0 Nome Contato Nombre Conta Contact Name Nome do Contato Nombre del Contato Contact Name @! - x x x x x x x x x x x x x x x x IF(!INCLUI,POSICIONE('SU5',1,XFILIAL('SU5')+NVN->NVN_CCONT,'U5_CONTAT'),'') - 1 xxxx x - - - S V V - - - - - - - Posicione('SU5',1,xFilial('SU5')+NVN->NVN_CCONT,'U5_CONTAT') 176 - N - - N N N - - - 1 2 - - - 113317 0
NVN 11 NVN_DESC C 100 0 Descrição Descripcion Description Descrição do Encaminhamen Descripcion Encaminamient Referral Description - - x x x x x x x x x x x x x x x x - - 1 x x - - - S A R - - - - - - - - - - N - - N N N - - - 1 2 - - - 113318 0
NVN 12 NVN_CFIXO C 8 0 Cód. Fixo Cód. Fijo Fixed Cd Código do Fixo Código del fijo Fixed Code - - x x x x x x x x x x x x x x x x - - 1 x x xx - - - N V R - - - - - - - - 109 - S - - N - N - - - 1 2 - - - 113319 0
NVN 13 NVN_CFILA C 6 0 Cód. Fila Cód. Cola Queue Cd Código fila de impressão Código cola de impresión Printing queue code - - x x x x x x x x x x x x x x x x - - 1 x x xx - - - N A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 113320 0
NVN 14 NVN_CFATUR C 9 0 Cód. Fatura Cód. Factura Invoice Cd Código da fatura Código de la factura Invoice Code - - x x x x x x x x x x x x x x x x - - 1 x xx - - - N V R - - - - - - - - 072 - S - - N - N - - - 1 2 - - - 113321 0
NVN 15 NVN_CESCR C 5 0 Cód. Escrit. Cód. Ofic. Office Code Código do Escritório Código de la oficina Office Code - - x x x x x x x x x x x x x x x x - - 1 x xx - - - - - - - - - - - - - - 098 - S - - N - N - - - 1 2 - - - 113322 0
NVN 16 NVN_ENVENC C 1 0 Envia Encam? ¿Envía Encam Send Forw? Envia Encaminhamento? ¿Envía Encaminamiento? Send Forwarding? @! Pertence("12") x x x x x x x x x x x x x x x x "2" - 1 x xx - - - N A R - - 1=Sim;2=Não 1=Sí;2=No 1=Yes;2=No - - - - - S - - N - N - - - 1 2 - - - 113323 0

Índices da Tabela NVN (8 índices)

INDICE ORDEM CHAVE DESCRICAO DESCSPA DESCENG PROPRI F3 NICKNAME SHOWPESQ IX_VIRTUAL IX_VIRCUST D_E_L_E_T_ R_E_C_N_O_ R_E_C_D_E_L_
NVN 1 NVN_FILIAL+NVN_CCONTR+NVN_CJCONT+NVN_CPREFT+NVN_CFATAD+NVN_CFIXO Cód.Contrato + Cód. Junção + Cód Pré-Fat + Cód Fat Adic + Cód. Fixo Cod.Contrato + Cod. Reunion + Cod Fact Pre + Cod Fact Ad + Cód. Fijo Contract Cd. + JunctionCode + Pre-Inv Code + Add.Inv.Code + Fixed Cd S - NVNCONTRAT N 2 3 - 16286 0
NVN 2 NVN_FILIAL+NVN_CFILA+NVN_CLIPG+NVN_LOJPG+NVN_CCONT Cód. Fila + Clie Pagador + Loja Pagador + Cód. Contato Cód. Cola + Cli. Pagador + Tda. Pagador + Cod. Contato Queue Cd + PayingCustmr + Payer Store + Contract Cd. S - - N 2 3 - 16287 0
NVN 3 NVN_FILIAL+NVN_CESCR+NVN_CFATUR+NVN_CCONT Cód. Escrit. + Cód. Fatura + Cód. Contato Cód. Ofic. + Cód. Factura + Cod. Contato Office Code + Invoice Cd + Contract Cd. S - - N 2 3 - 16288 0
NVN 4 NVN_FILIAL+NVN_CJCONT+NVN_CLIPG+NVN_LOJPG Cód. Junção + Clie Pagador + Loja Pagador Cod. Reunion + Cli. Pagador + Tda. Pagador JunctionCode + PayingCustmr + Payer Store S - - S 2 3 - 16289 0
NVN 5 NVN_FILIAL+NVN_CCONTR+NVN_CLIPG+NVN_LOJPG Cód.Contrato + Clie Pagador + Loja Pagador Cod.Contrato + Cli. Pagador + Tda. Pagador Contract Cd. + PayingCustmr + Payer Store S - - S 2 3 - 16290 0
NVN 6 NVN_FILIAL+NVN_CFATAD+NVN_CLIPG+NVN_LOJPG Cód Fat Adic + Clie Pagador + Loja Pagador Cod Fact Ad + Cli. Pagador + Tda. Pagador Add.Inv.Code + PayingCustmr + Payer Store S - - N 2 3 - 16291 0
NVN 7 NVN_FILIAL+NVN_CPREFT+NVN_CLIPG+NVN_LOJPG Cód Pré-Fat + Clie Pagador + Loja Pagador Cod Fact Pre + Cli. Pagador + Tda. Pagador Pre-Inv Code + PayingCustmr + Payer Store S - - S 2 3 - 16292 0
NVN 8 NVN_FILIAL+NVN_CLIPG+NVN_LOJPG+NVN_CFILA Clie Pagador + Loja Pagador + Cód. Fila Cli. Pagador + Tda. Pagador + Cód. Cola PayingCustmr + Payer Store + Queue Cd S - - S 2 3 - 16293 0

Perguntas frequentes

Para que serve a tabela NVN no Protheus?

Ela é utilizada para encaminhamento de faturas dentro do sistema ERP Protheus.

Como consultar os campos da tabela NVN?

Nesta página você pode visualizar todos os campos, incluindo tipo, tamanho e validações.

O que são os índices da tabela NVN?

Os índices são estruturas que melhoram a performance de busca e acesso aos dados dentro do Protheus.

Exemplo de consulta SQL da tabela NVN

Modelo de query gerado automaticamente com base na estrutura da tabela.

SELECT
    NVN_FILIAL,
    NVN_COD,
    NVN_CJCONT,
    NVN_CPREFT,
    NVN_CCONTR,
    NVN_CFATAD,
    NVN_CLIPG,
    NVN_LOJPG,
    NVN_CCONT,
    NVN_DCONT,
    NVN_DESC,
    NVN_CFIXO,
    NVN_CFILA,
    NVN_CFATUR,
    NVN_CESCR,
    NVN_ENVENC
FROM NVN
WHERE
    D_E_L_E_T_ = ' '
    AND NVN_FILIAL = 'VALOR'
    AND NVN_COD = 'VALOR'
    AND NVN_CJCONT = 'VALOR'
    AND NVN_CPREFT = 'VALOR'
    AND NVN_CCONTR = 'VALOR'
    AND NVN_CFATAD = 'VALOR'
    AND NVN_CLIPG = 'VALOR'
    AND NVN_LOJPG = 'VALOR'
    AND NVN_CCONT = 'VALOR'
    AND NVN_DCONT = 'VALOR'
    AND NVN_DESC = 'VALOR'
    AND NVN_CFIXO = 'VALOR'
    AND NVN_CFILA = 'VALOR'
    AND NVN_CFATUR = 'VALOR'
    AND NVN_CESCR = 'VALOR'
    AND NVN_ENVENC = 'VALOR'