Dicionário Protheus
Início

Tabela NI7 no Protheus

Saldo do Plano de Contas

O que é a tabela NI7 no Protheus?

A tabela NI7 faz parte do sistema ERP Protheus da TOTVS e é utilizada para saldo do plano de contas.

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 NI7 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 NI7, incluindo todos os campos e índices relacionados.

Propriedades da Tabela

Propriedade Valor
X2_CHAVE NI7
X2_PATH \DATA\
X2_ARQUIVO NI7990
X2_NOME Saldo do Plano de Contas
X2_NOMESPA Saldo del Plan de Cuentas
X2_NOMEENG Chart of Accounts Balance
X2_ROTINA -
X2_MODO C
X2_MODOUN E
X2_MODOEMP E
X2_DELET 0
X2_TTS -
X2_UNICO NI7_FILIAL+NI7_ANO+NI7_CODIGO+NI7_MOEDA
X2_PYME N
X2_MODULO 0
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_ 6766
R_E_C_D_E_L_ 0

Campos da Tabela NI7 (29 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_
NI7 01 NI7_FILIAL C 2 0 Filial Sist. Sucurs Sist. Syst. 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 x - - - N V R - - - - - - - - 033 - N - - N N N - - - 1 2 - - - 107383 0
NI7 02 NI7_ANO C 4 0 Ano Ano Year Ano Ano Year @! - x x x x x x x x x x x x x x x x GSPN001() - 1 x xxx - - - S V R - - - - - - - - - - N - - N N N - - - 1 1 - - - 107384 0
NI7 03 NI7_CODIGO C 20 0 Num da Conta Num de Cta. Acct. nbr. Conta Contabil Cuenta Cuentable Accounting account - Existchav("NI1", M->NI1_ANO + M->NI1_CODIGO) x x x x x x x x x x x x x x x x - - 1 x xx - - - S - - - - - - - - - - - - N - - N N N - - - 1 2 - - - 107385 0
NI7 04 NI7_MOEDA C 1 0 Moeda Moneda Currency Moeda Moneda Currency - - x x x x x x x x x x x x x x x x "1" - 1 x xxx - - - S A R - - 1=Contabil;2=Empenho;3=Liquidacao;4=Pagamento 1=Contable;2=Reserva;3=Liquidacion;4=Pago 1=Accouting;2=Allocation;3=Settlement;4=Payment - - - - - N - - N N N - - - 1 1 - - - 107386 0
NI7 05 NI7_SALANT N 17 2 Saldo Ant. Saldo Ant. Prev.Balance Saldo Anterior Saldo Anterior Previous Balance @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - S A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107387 0
NI7 06 NI7_DEBM01 N 17 2 Deb Per 01 Deb Per 01 Deb Per 01 Debitos Acumulados 01 Debitos Acumulados 01 Accumulated Debits 01 @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - N A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107388 0
NI7 07 NI7_CRDM01 N 17 2 Cred Per 01 Cred Per 01 Cred Per 01 Creditos Acumulados Creditos Acumulados Accumulated Credits @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - N A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107389 0
NI7 08 NI7_DEBM02 N 17 2 Deb Per 02 Deb Per 02 Deb Per 02 Debitos Acumulados 02 Debitos Acumulados 02 Accumulated Debits 02 @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - S A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107390 0
NI7 09 NI7_CRDM02 N 17 2 Cred Per 02 Cred Per 02 Cred Per 02 Creditos Acumulados 02 Creditos Acumulados 02 Accumulated Credits 02 @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - S A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107391 0
NI7 10 NI7_DEBM03 N 17 2 Deb Per 03 Deb Per 03 Deb Per 03 Debitos Acumulados 03 Debitos Acumulados 03 Accumulated Debits 03 @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - S A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107392 0
NI7 11 NI7_CRDM03 N 17 2 Cred Per 03 Cred Per 03 Cred Per 03 Creditos Acumulados 03 Creditos Acumulados 03 Accumulated Credits 03 @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - S A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107393 0
NI7 12 NI7_DEBM04 N 17 2 Deb Per 04 Deb Per 04 Deb Per 04 Debitos Acumulados 04 Debitos Acumulados 04 Accumulated Debits 04 @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - S A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107394 0
NI7 13 NI7_CRDM04 N 17 2 Cred Per 04 Cred Per 04 Cred Per 04 Creditos Acumulados 04 Creditos Acumulados 04 Accumulated Credits 04 @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - S A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107395 0
NI7 14 NI7_DEBM05 N 17 2 Derb Per 05 Deb Per 05 Derb Per 05 Debitos Acumulados 05 Debitos Acumulados 05 Accumulated Debits 05 @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - N A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107396 0
NI7 15 NI7_CRDM05 N 17 2 Cred Per 05 Cred Per 05 Cred Per 05 Creditos Acumulados 05 Creditos Acumulados 05 Accumulated Credits 05 @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - N A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107397 0
NI7 16 NI7_DEBM06 N 17 2 Deb Per 06 Deb Per 06 Deb Per 06 Debitos Acumuladso 06 Debitos Acumuladso 06 Accumulated Debits 06 @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - N A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107398 0
NI7 17 NI7_CRDM06 N 17 2 Cred Per 06 Cred Per 06 Cred Per 06 Creditos Acumulados Creditos Acumulados Accumulated Credits @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - N A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107399 0
NI7 18 NI7_DEBM07 N 17 2 Deb Per 07 Deb Per 07 Deb Per 07 Debitos Acumlados Debitos Acumlados Accumulated Debits @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - N A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107400 0
NI7 19 NI7_CRDM07 N 17 2 Cred Per 07 Cred Per 07 Cred Per 07 Creditos Acumulados Creditos Acumulados Accumulated Credits @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - N A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107401 0
NI7 20 NI7_DEBM08 N 17 2 Deb Per 08 Deb Per 08 Deb Per 08 Debitos Acumulados 08 Debitos Acumulados 08 Accumulated Debits 08 @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - N A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107402 0
NI7 21 NI7_CRDM08 N 17 2 Cred Per 08 Cred Per 08 Cred Per 08 Creditos Acumulados 08 Creditos Acumulados 08 Accumulated Credits 08 @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - N A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107403 0
NI7 22 NI7_DEBM09 N 17 2 Deb Per 09 Deb Per 09 Deb Per 09 Debitos Acumulados 09 Debitos Acumulados 09 Accumulated Debits 09 @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - N A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107404 0
NI7 23 NI7_CRDM09 N 17 2 Cred Per 09 Cred Per 09 Cred Per 09 Creditos Acumulados Creditos Acumulados Accumulated Credits @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - N A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107405 0
NI7 24 NI7_DEBM10 N 17 2 Deb Per 10 Deb Per 10 Deb Per 10 Debitos Acumulados 10 Debitos Acumulados 10 Accumulated Debits 10 @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - N A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107406 0
NI7 25 NI7_CRDM10 N 17 2 Cred Per 10 Cred Per 10 Cred Per 10 Creditos Acumulados 10 Creditos Acumulados 10 Accumulated Credits 10 @E 9999999,999,999.99 - x x x x x x x x x x x x x x x - - 1 x xx - - - N A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107407 0
NI7 26 NI7_DEBM11 N 17 2 Deb Per 11 Deb Per 11 Accr. Deb.11 Debitos Acumulados 11 Debitos Acumulados 11 Accrued Debits 11 @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xxxx - - - N A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107408 0
NI7 27 NI7_CRDM11 N 17 2 Cred Per 11 Cred Per 11 Cred Per 11 Creditos Acumulados 11 Creditos Acumulados 11 Accumulated Credits 11 @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - N A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107409 0
NI7 28 NI7_DEBM12 N 17 2 Deb Per 12 Deb Per 12 Deb Per 12 Debitos Acumulados Debitos Acumulados Accumulated Debits @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - N A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107410 0
NI7 29 NI7_CRDM12 N 17 2 Cred Per 12 Cred Per 12 Cred Per 12 Creditos Acumulados 12 Creditos Acumulados 12 Accumulated Credits 12 @E 9999999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xx - - - N A R - positivo() - - - - - - - - N - - N N N - - - 1 2 - - - 107411 0

Índices da Tabela NI7 (1 í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_
NI7 1 NI7_FILIAL+NI7_ANO+NI7_CODIGO+NI7_MOEDA Ano + Num da Conta + Moeda Ano + Num de Cta. + Moneda Year + Acct. nbr. + Currency S - - S 2 3 - 15438 0

Perguntas frequentes

Para que serve a tabela NI7 no Protheus?

Ela é utilizada para saldo do plano de contas dentro do sistema ERP Protheus.

Como consultar os campos da tabela NI7?

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

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

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

Exemplo de consulta SQL da tabela NI7

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

SELECT
    NI7_FILIAL,
    NI7_ANO,
    NI7_CODIGO,
    NI7_MOEDA,
    NI7_SALANT,
    NI7_DEBM01,
    NI7_CRDM01,
    NI7_DEBM02,
    NI7_CRDM02,
    NI7_DEBM03,
    NI7_CRDM03,
    NI7_DEBM04,
    NI7_CRDM04,
    NI7_DEBM05,
    NI7_CRDM05,
    NI7_DEBM06,
    NI7_CRDM06,
    NI7_DEBM07,
    NI7_CRDM07,
    NI7_DEBM08,
    NI7_CRDM08,
    NI7_DEBM09,
    NI7_CRDM09,
    NI7_DEBM10,
    NI7_CRDM10,
    NI7_DEBM11,
    NI7_CRDM11,
    NI7_DEBM12,
    NI7_CRDM12
FROM NI7
WHERE
    D_E_L_E_T_ = ' '
    AND NI7_FILIAL = 'VALOR'
    AND NI7_ANO = 'VALOR'
    AND NI7_CODIGO = 'VALOR'
    AND NI7_MOEDA = 'VALOR'
    AND NI7_SALANT = 0
    AND NI7_DEBM01 = 0
    AND NI7_CRDM01 = 0
    AND NI7_DEBM02 = 0
    AND NI7_CRDM02 = 0
    AND NI7_DEBM03 = 0
    AND NI7_CRDM03 = 0
    AND NI7_DEBM04 = 0
    AND NI7_CRDM04 = 0
    AND NI7_DEBM05 = 0
    AND NI7_CRDM05 = 0
    AND NI7_DEBM06 = 0
    AND NI7_CRDM06 = 0
    AND NI7_DEBM07 = 0
    AND NI7_CRDM07 = 0
    AND NI7_DEBM08 = 0
    AND NI7_CRDM08 = 0
    AND NI7_DEBM09 = 0
    AND NI7_CRDM09 = 0
    AND NI7_DEBM10 = 0
    AND NI7_CRDM10 = 0
    AND NI7_DEBM11 = 0
    AND NI7_CRDM11 = 0
    AND NI7_DEBM12 = 0
    AND NI7_CRDM12 = 0