Dicionário Protheus
Início

Tabela CHP no Protheus

Dem. Rendas Ativas e Passivas

O que é a tabela CHP no Protheus?

A tabela CHP faz parte do sistema ERP Protheus da TOTVS e é utilizada para dem. rendas ativas e passivas.

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

Propriedades da Tabela

Propriedade Valor
X2_CHAVE CHP
X2_PATH \DATA\
X2_ARQUIVO CHP990
X2_NOME Dem. Rendas Ativas e Passivas
X2_NOMESPA Est. Rentas activas y pasivas
X2_NOMEENG Asset & Liable Income Statem
X2_ROTINA -
X2_MODO E
X2_MODOUN E
X2_MODOEMP E
X2_DELET 0
X2_TTS -
X2_UNICO CHP_FILIAL+CHP_ID+CHP_CODSEQ
X2_PYME S
X2_MODULO 84
X2_DISPLAY -
X2_SYSOBJ TAFA336
X2_USROBJ -
X2_POSLGT 1
X2_CLOB 2
X2_AUTREC 1
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_ 2337
R_E_C_D_E_L_ 0

Campos da Tabela CHP (10 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_
CHP 01 CHP_FILIAL C 2 0 Filial Sucursal Branch Filial Sucursal Branch - - x x x x x x x x x x x x x x x - - 1 - - - - S A R - - - - - - - - 033 - S - - N - N - - - 1 2 - - - 36635 0
CHP 02 CHP_ID C 36 0 ID ID ID Identificador do Registro Identificador de registro Record ID - - x x x x x x x x x x x x x x x x - - 1 x - - - S A R - - - - - - - - - - S - - N - N - - - 1 1 - - - 36636 0
CHP 03 CHP_CODSEQ C 6 0 Cód Seq Cod Sec Seq Code Código Sequencial Código Sequencial Sequence Code @! - x x x x x x x x x x x x x x x x - - 1 x x - - - S V R - - - - - - - - - - S - - N - N - - - 1 1 - - - 36637 0
CHP 04 CHP_RENPAS N 16 2 Rend Passiva Renta Pasiva Passive Inc. Renda Passiva Própria Renta Pasiva Propia Own Passive Income @E 9,999,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - S A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 36638 0
CHP 05 CHP_RENPRE N 16 2 Rend P.Reais Renta P Real P.Inc.Reais Renda Passiva Próp. Reais Renta Pasiva Prop. Reales Own Pass. Inc. Reais @E 9,999,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - S A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 36639 0
CHP 06 CHP_RENTOT N 16 2 Renda Total Renta Total Total Income Renda Total Renta Total Total Income @E 9,999,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - S A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 36640 0
CHP 07 CHP_RENTRE N 16 2 Renda Tot Re Renta Tot Re Total Inc. R Renda Total em Reias Renta Total en Reales Total Income Reais @E 9,999,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - S A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 36641 0
CHP 08 CHP_RENATV N 16 2 Renda Ativa Renda Ativa Active Inc. Renda Ativa Própria Renta Activa Propia Own Active Income @E 9,999,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - S A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 36642 0
CHP 09 CHP_RENARE N 16 2 Rend Ativa R Rent Activ R Active Inc.R Renda Ativa Própria Reais Renta Activa Propia Real Own Active Income Reais @E 9,999,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - S A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 36643 0
CHP 10 CHP_PERCEN N 16 2 Percentual Porcentaje Percentage Percentual Porcentaje Percentage @E 9,999,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - S A R - - - - - - - - - - S - - N - N - - - 1 2 - - - 36644 0

Índices da Tabela CHP (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_
CHP 1 CHP_FILIAL+CHP_ID+CHP_CODSEQ ID + Cód Seq ID + Cod Sec ID + Seq Code S - - S 2 3 - 5633 0

Perguntas frequentes

Para que serve a tabela CHP no Protheus?

Ela é utilizada para dem. rendas ativas e passivas dentro do sistema ERP Protheus.

Como consultar os campos da tabela CHP?

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

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

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

Exemplo de consulta SQL da tabela CHP

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

SELECT
    CHP_FILIAL,
    CHP_ID,
    CHP_CODSEQ,
    CHP_RENPAS,
    CHP_RENPRE,
    CHP_RENTOT,
    CHP_RENTRE,
    CHP_RENATV,
    CHP_RENARE,
    CHP_PERCEN
FROM CHP
WHERE
    D_E_L_E_T_ = ' '
    AND CHP_FILIAL = 'VALOR'
    AND CHP_ID = 'VALOR'
    AND CHP_CODSEQ = 'VALOR'
    AND CHP_RENPAS = 0
    AND CHP_RENPRE = 0
    AND CHP_RENTOT = 0
    AND CHP_RENTRE = 0
    AND CHP_RENATV = 0
    AND CHP_RENARE = 0
    AND CHP_PERCEN = 0