Dicionário Protheus
Início

Tabela NCZ no Protheus

Meta de Faturamento

O que é a tabela NCZ no Protheus?

A tabela NCZ faz parte do sistema ERP Protheus da TOTVS e é utilizada para meta de faturamento.

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

Propriedades da Tabela

Propriedade Valor
X2_CHAVE NCZ
X2_PATH \DATA\
X2_ARQUIVO NCZ990
X2_NOME Meta de Faturamento
X2_NOMESPA Meta de facturación
X2_NOMEENG Income Goal
X2_ROTINA -
X2_MODO E
X2_MODOUN E
X2_MODOEMP E
X2_DELET 0
X2_TTS -
X2_UNICO NCZ_FILIAL+NCZ_ANO+NCZ_CODPRO+NCZ_SEQUEN
X2_PYME S
X2_MODULO 67
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_ 6735
R_E_C_D_E_L_ 0

Campos da Tabela NCZ (20 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_
NCZ 01 NCZ_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 V R - - - - - - - - 033 - S - - S - N - - - 1 2 - - - 106890 0
NCZ 02 NCZ_CODPRO C 15 0 Cod. Produto Cód. Product Product Code Código do Produto Código del producto Product Code @! ExistCpo("SB1") x x x x x x x x x x x x x x x x - SB1 1 x x xxx - S - S A R - - - - - - Inclui - 030 - S - - S - N - - - 1 1 - - - 106891 0
NCZ 03 NCZ_DESPRO C 50 0 Desc. Produt Desc. Produc Prod Descr Descrição do Produto Descripción del producto Product Description @! - x x x x x x x x x x x x x x x x IF(!INCLUI,POSICIONE('SB1',1,XFILIAL('SB1')+NCZ->NCZ_CODPRO,'B1_DESC'),' ') - 1 x x xx x - - - S V V - - - - - - - POSICIONE('SB1',1,XFILIAL('SB1')+NCZ->NCZ_CODPRO,'B1_DESC') 171 - S - - N - N - - - 1 2 - - - 106892 0
NCZ 04 NCZ_UM1PRO C 2 0 Unid Medida Unid. Medida Unit of Meas Unidade de Medida Unidad de medida Unit of Measurement - ExistCpo("SAH") x x x x x x x x x x x x x x x x - SAH 1 x x xx x - - - S A R - - - - - - - - 122 - S - - N - N - - - 1 2 - - - 106893 0
NCZ 05 NCZ_ANO C 4 0 Ano Año Year Ano Faturamento Año Facturación Year Income @! - x x x x x x x x x x x x x x x x - - 1 x x xxx - - - S A R - - - - - - Inclui - - - S - - S - N - - - 1 1 - - - 106894 0
NCZ 06 NCZ_SEQUEN C 10 0 Sequencial Secuencial Sequential Sequencial Secuencial Sequential @! - x x x x x x x x x x x x x x x x GETSXENUM('NCZ','NCZ_SEQUEN') - 1 x x xx x - - - N V R - - - - - - - - - - S - - S - N - - - 1 2 - - - 106895 0
NCZ 07 NCZ_DATINI D 8 0 Data Inicial Fecha inicia Start Date Data Final Fecha final End Date - - x x x x x x x x x x x x x x x x dDataBase - 1 x x xx x - - - S V R - - - - - - - - - - S - - N - N - - - 1 2 - - - 106896 0
NCZ 08 NCZ_DATFIM D 8 0 Data Final Fecha final End Date Data Final Fecha final End Date - - x x x x x x x x x x x x x x x x - - 1 x x xx x - - - S V R - - - - - - - - - - S - - N - N - - - 1 2 - - - 106897 0
NCZ 09 NCZ_VLME01 N 14 2 Janeiro Enero January Valor do Mês 1 Valor del mes 1 Value of Month 1 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xxxx x - - - N A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 106898 0
NCZ 10 NCZ_VLME02 N 14 2 Fevereiro Febrero February Valor do Mês 2 Valor del mes 2 Value of Month 2 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xxxx x - - - N A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 106899 0
NCZ 11 NCZ_VLME03 N 14 2 Março Marzo March Valor do Mês 3 Valor del mes 3 Value of Month 3 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xxxx x - - - N A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 106900 0
NCZ 12 NCZ_VLME04 N 14 2 Abril Abril April Valor do Mês 4 Valor del mes 4 Value of Month 4 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xxxx x - - - N A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 106901 0
NCZ 13 NCZ_VLME05 N 14 2 Maio Mayo May Valor Mês 5 Valor mes 5 Value of Month 5 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xxxx x - - - N A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 106902 0
NCZ 14 NCZ_VLME06 N 14 2 Junho Junio June Valor Mês 6 Valor mes 6 Value of Month 6 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xxxx x - - - N A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 106903 0
NCZ 15 NCZ_VLME07 N 14 2 Julho Julio July Valor Mês 7 Valor mes 7 Value of Month 7 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xxxx x - - - N A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 106904 0
NCZ 16 NCZ_VLME08 N 14 2 Agosto Agosto August Valor Mês 8 Valor mes 8 Value of Month 8 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xxxx x - - - N A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 106905 0
NCZ 17 NCZ_VLME09 N 14 2 Setembro Setiembre September Valor Mês 9 Valor mes 9 Value of Month 9 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xxxx x - - - N A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 106906 0
NCZ 18 NCZ_VLME10 N 14 2 Outubro Octubre October Valor Mês 10 Valor mes 10 Value of Month 10 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xxxx x - - - N A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 106907 0
NCZ 19 NCZ_VLME11 N 14 2 Novembro Noviembre November Valor Mês 11 Valor mes 11 Value of Month 11 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xxxx x - - - N A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 106908 0
NCZ 20 NCZ_VLME12 N 14 2 Dezembro Deciembre December Valor Mês 12 Valor mes 12 Value of Month 12 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x xxxx x - - - N A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 106909 0

Índices da Tabela NCZ (2 í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_
NCZ 1 NCZ_FILIAL+NCZ_ANO+NCZ_CODPRO+NCZ_SEQUEN Ano + Cod. Produto + Sequencial Año + Cód. Product + Secuencial Year + Product Code + Sequential S - - S 2 3 - 15377 0
NCZ 2 NCZ_FILIAL+NCZ_CODPRO+NCZ_ANO+DTOS(NCZ_DATINI)+DTOS(NCZ_DATFIM) Cod. Produto + Ano + Data Inicial + Data Final Cód. Product + Año + Fecha inicia + Fecha final Product Code + Year + Start Date + End Date S - - S 2 3 - 15378 0

Perguntas frequentes

Para que serve a tabela NCZ no Protheus?

Ela é utilizada para meta de faturamento dentro do sistema ERP Protheus.

Como consultar os campos da tabela NCZ?

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

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

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

Exemplo de consulta SQL da tabela NCZ

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

SELECT
    NCZ_FILIAL,
    NCZ_CODPRO,
    NCZ_DESPRO,
    NCZ_UM1PRO,
    NCZ_ANO,
    NCZ_SEQUEN,
    NCZ_DATINI,
    NCZ_DATFIM,
    NCZ_VLME01,
    NCZ_VLME02,
    NCZ_VLME03,
    NCZ_VLME04,
    NCZ_VLME05,
    NCZ_VLME06,
    NCZ_VLME07,
    NCZ_VLME08,
    NCZ_VLME09,
    NCZ_VLME10,
    NCZ_VLME11,
    NCZ_VLME12
FROM NCZ
WHERE
    D_E_L_E_T_ = ' '
    AND NCZ_FILIAL = 'VALOR'
    AND NCZ_CODPRO = 'VALOR'
    AND NCZ_DESPRO = 'VALOR'
    AND NCZ_UM1PRO = 'VALOR'
    AND NCZ_ANO = 'VALOR'
    AND NCZ_SEQUEN = 'VALOR'
    AND NCZ_DATINI BETWEEN '20260501' AND '20260531'
    AND NCZ_DATFIM BETWEEN '20260501' AND '20260531'
    AND NCZ_VLME01 = 0
    AND NCZ_VLME02 = 0
    AND NCZ_VLME03 = 0
    AND NCZ_VLME04 = 0
    AND NCZ_VLME05 = 0
    AND NCZ_VLME06 = 0
    AND NCZ_VLME07 = 0
    AND NCZ_VLME08 = 0
    AND NCZ_VLME09 = 0
    AND NCZ_VLME10 = 0
    AND NCZ_VLME11 = 0
    AND NCZ_VLME12 = 0