Dicionário Protheus
Início

Tabela RG7 no Protheus

Acumuladores

O que é a tabela RG7 no Protheus?

A tabela RG7 faz parte do sistema ERP Protheus da TOTVS e é utilizada para acumuladores.

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

Propriedades da Tabela

Propriedade Valor
X2_CHAVE RG7
X2_PATH \DATA\
X2_ARQUIVO RG7990
X2_NOME Acumuladores
X2_NOMESPA Acumuladores
X2_NOMEENG Totalizer
X2_ROTINA -
X2_MODO E
X2_MODOUN E
X2_MODOEMP E
X2_DELET 0
X2_TTS -
X2_UNICO RG7_FILIAL+RG7_PROCES+RG7_ANOFIM+RG7_ANOINI+RG7_MAT+RG7_PD+RG7_CODCRI+RG7_SEQACU
X2_PYME N
X2_MODULO 7
X2_DISPLAY CADASTRO DE ACUMULADORES
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_ 7906
R_E_C_D_E_L_ 0

Campos da Tabela RG7 (40 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_
RG7 01 RG7_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 x - - - S - R - - - - - - - - 033 - S - - N N N - - - 1 2 - - - 124198 0
RG7 02 RG7_PROCES C 5 0 Cód Processo Cod. Proceso Proc. Code Código do Processo Codigo del Proceso Process Code @! ExistCpo("RCJ") x xx x x x x x x x x x x x x x x x SRA->RA_PROCES RCJ 1 x x - - - S - R - - - - - - - - - - S - - N N N - - - 1 1 - - - 124199 0
RG7 03 RG7_ROTEIR C 3 0 Roteiro Procedimient Route Roteiro de Cálculo Proced. de Calculo Calculation Route @! EXISTCPO("SRY") x xx x x x x x x x x x x x x x x x - SRY 1 x - - - S A R - - - - - - - - - - S - - N N N - - - 1 2 - - - 124200 0
RG7 04 RG7_MAT C 6 0 Matrícula Matricula Registration Código da Matrícula Codigo de la Matricula Registration Code @! EXISTCPO("SRA") x xx x x x x x x x x x x x x x x x SRA->RA_MAT SRA 1 x x - S - S - R - - - - - - - - 121 - S - - N N N - - - 1 1 - - - 124201 0
RG7 05 RG7_NOME C 30 0 Nome Func Nombre Empl. Empl. Name Nome do Funcionário Nombre del Empleado Employee Name @! - x xx x x x x x x x x x x x x x x x - - 1 x - - - S A V - - - - - - - - - - S - - N N N - - - 1 2 - - - 124202 0
RG7 06 RG7_PD C 3 0 Verba Concepto Fund Verba Concepto Fund @! EXISTCPO("SRV") x xx x x x x x x x x x x x x x x x - SRV 1 x x - S - S - R - - - - - - - - - - S - - N N N - - - 1 1 - - - 124203 0
RG7 07 RG7_DESCPD C 15 0 Desc. Verba Descr. Conc. Fund Descr. Descrição da Verba Descripcion del Concepto Fund Description @! - x xx x x x x x x x x x x x x x x x - - 1 x - - - S A V - - - - - - - - - - S - - N N N - - - 1 2 - - - 124204 0
RG7 08 RG7_ANOINI C 4 0 Ano Inicio Ano Inicial Start Year Ano Inicio Ano Inicial Start Year 9999 - x xx x x x x x x x x x x x x x x x - - 1 x x - - - S A R - - - - - - - - - - S - - N N N - - - 1 1 - - - 124205 0
RG7 09 RG7_ANOFIM C 4 0 Ano Fim Ano Final End Year Ano Fim Ano Final End Year 9999 - x xx x x x x x x x x x x x x x x x - - 1 x x - - - S A R - - - - - - - - - - S - - N N N - - - 1 1 - - - 124206 0
RG7 10 RG7_CODCRI C 2 0 Cód.Critério Cod.Criterio Crit. Code Código do Critério Codigo del Criterio Criterion Code 99 EXISTCPO("RG9") x xx x x x x x x x x x x x x x x x - RG9 1 x - - - S - R - - - - - - - - - - S - - N N N - - - 1 2 - - - 124207 0
RG7 11 RG7_SEQACU C 2 0 Seq. Acum. Sec. Acum. Accr. Seq. Seqüência de Acumulação Secuencia de Acumulacion Accrual Sequence 99 - x xx x x x x x x x x x x x x x x x - - 1 x - - - S - R - - - - - - - - - - S - - N N N - - - 1 2 - - - 124208 0
RG7 12 RG7_HRS01 N 8 2 Hrs.Ref.01 Hrs.Ref.01 Ref.1 Hours Referência 01 Referencia 01 Reference 1 @E 99,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124209 0
RG7 13 RG7_ACUM01 N 12 2 Vlr.Acum.01 Val.Acum.01 Accum.Vl.01 Valor Acumulado 01 Valor acumulado 01 Accum Value 01 @E 999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124210 0
RG7 14 RG7_HRS02 N 8 2 Ref.Hrs 02 Ref.Hrs 02 Ref.Hrs 02 Referência Horas 02 Referencia Horas 02 Reference Hour 02 @E 99,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124211 0
RG7 15 RG7_ACUM02 N 12 2 Vlr.Acum.02 Val.Acum.02 Accum.Vl.02 Valor Acumulado 02 Valor acumulado 02 Accum Value 02 @E 999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124212 0
RG7 16 RG7_HRS03 N 8 2 Ref.Hrs.03 Ref.Hrs.03 Ref.Hrs.03 Referência Horas 03 Referencia Horas 03 Reference Hour 03 @E 99,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124213 0
RG7 17 RG7_ACUM03 N 12 2 Vlr.Acum.03 Val.Acum.03 Accum.Vl.03 Valor Acumulado 03 Valor acumulado 03 Accum Value 03 @E 999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124214 0
RG7 18 RG7_HRS04 N 8 2 Ref.Hrs.04 Ref.Hrs.04 Ref.Hrs.04 Referência Horas 04 Referencia Horas 04 Reference Hour 04 @E 99,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124215 0
RG7 19 RG7_ACUM04 N 12 2 Vlr.Acum.04 Val.Acum.04 Accum.Vl.04 Valor Acumulado 04 Valor acumulado 04 Accum Value 04 @E 999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124216 0
RG7 20 RG7_HRS05 N 8 2 Ref.Hrs.05 Ref.Hrs.05 Ref.Hrs.05 Referência Horas 05 Referencia Horas 05 Reference Hour 05 @E 99,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124217 0
RG7 21 RG7_ACUM05 N 12 2 Vlr.Acum.05 Val.Acum.05 Accum.Vl.05 Valor Acumulado 05 Valor acumulado 05 Accum Value 05 @E 999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124218 0
RG7 22 RG7_HRS06 N 8 2 Ref.Hrs.06 Ref.Hrs.06 Ref.Hrs.06 Referência Horas 06 Referencia Horas 06 Reference Hour 06 @E 99,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124219 0
RG7 23 RG7_ACUM06 N 12 2 Vlr.Hrs 06 Val.Hrs 06 Hr.Vl.06 Valor Horas 06 Valor Horas 06 Value Hours 06 @E 999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124220 0
RG7 24 RG7_HRS07 N 8 2 Ref.Hrs.07 Ref.Hrs.07 Ref.Hrs.07 Referência Horas 07 Referencia Horas 07 Reference Hour 07 @E 99,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124221 0
RG7 25 RG7_ACUM07 N 12 2 Vlr.Acum.07 Val.Acum.07 Accum.Vl.07 Valor Acumulado 07 Valor acumulado 07 Accum Value 07 @E 999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124222 0
RG7 26 RG7_HRS08 N 8 2 Ref.Hrs.08 Ref.Hrs.08 Ref.Hrs.08 Referência Horas 08 Referencia Horas 08 Reference Hour 08 @E 99,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124223 0
RG7 27 RG7_ACUM08 N 12 2 Vlr.Acum.08 Val.Acum.08 Accum.Vl.08 Valor Acumulado 08 Valor acumulado 08 Accum Value 08 @E 999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124224 0
RG7 28 RG7_HRS09 N 8 2 Ref.hrs.09 Ref.hrs.09 Ref.Hrs.09 Referência Horas 09 Referencia Horas 09 Reference Hour 09 @E 99,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124225 0
RG7 29 RG7_ACUM09 N 12 2 Vlr.Acum.09 Val.Acum.09 Accum.Vl.09 Valor Acumulado 09 Valor acumulado 09 Accum Value 09 @E 999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124226 0
RG7 30 RG7_HRS10 N 8 2 Ref.Hrs.10 Ref.Hrs.10 Ref.Hrs.10 Referência Hrs. 10 Referencia Hrs. 10 Reference Hour 10 @E 99,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124227 0
RG7 31 RG7_ACUM10 N 12 2 Vlr.Acum.10 Val.Acum.10 Accum.Vl.10 Valor Acumulado 10 Valor acumulado 10 Accum Value 10 @E 999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124228 0
RG7 32 RG7_HRS11 N 8 2 Ref.Hrs.11 Ref.Hrs.11 Ref.Hrs.11 Referência Horas 11 Referencia Horas 11 Reference Hour 11 @E 99,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124229 0
RG7 33 RG7_ACUM11 N 12 2 Vlr.Hrs.11 Val.Hrs.11 Hr Vl 11 Valor Acumulado 11 Valor acumulado 11 Accum Value 11 @E 999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124230 0
RG7 34 RG7_HRS12 N 8 2 Ref.Hrs.12 Ref.Hrs.12 Ref.Hrs.12 Referência Horas 12 Referencia Horas 12 Reference Hour 12 @E 99,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124231 0
RG7 35 RG7_ACUM12 N 12 2 Vlr.Acum.12 Val.Acum.12 Accum.Vl.12 Valor Acumulado 12 Valor acumulado 12 Accum Value 12 @E 999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124232 0
RG7 36 RG7_HRS13 N 8 2 Ref.Hrs.13 Ref.Hrs.13 Ref.Hrs.13 Referência Horas 13 Referencia Horas 13 Reference Hour 13 @E 99,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124233 0
RG7 37 RG7_ACUM13 N 12 2 Vlr.Acum.13 Val.Acum.13 Accum.Vl.13 Valor Acumulado 13 Valor acumulado 13 Accum Value 13 @E 999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 124234 0
RG7 38 RG7_USUARI C 20 0 Usuário Usuario User Usuário Usuario User @! - x xx x x x x x x x x x x x x x x x Subs(cUsuario,7,15) - 1 x - - - N V R - - - - - - - - - - N - - N N N - - - 1 2 - - - 124235 0
RG7 39 RG7_DTATUA C 18 0 Dt.Atualiz. Fch. Actual. Upd. Date Dt. Ultima atualização Fch. Ultima actualizacion Last Update Date @! - x xx x x x x x x x x x x x x x x x - - 1 x - - - S V R - - - - - - - - - - N - - N N N - - - 1 2 - - - 124236 0
RG7 40 RG7_ORIGEM C 1 0 Origem Origen Origin Origem Registro Origen Registro Register Origin @! - x x x x x x x x x x x x x x x - - 1 - - - - N V R - - - - - - - - - - S - - N - N - - - 1 2 - - - 124237 0

Índices da Tabela RG7 (4 í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_
RG7 1 RG7_FILIAL+RG7_MAT+RG7_PD+RG7_PROCES+RG7_ROTEIR+RG7_ANOFIM+RG7_ANOINI Matrícula + Verba + Cód Processo + Roteiro + Ano Fim + Ano Inicio Matricula + Concepto + Cod. Proceso + Procedimient + Ano Final + Ano I Registration + Fund + Proc. Code + Route + End Year + Start Year S - - S 2 3 - 18148 0
RG7 2 RG7_FILIAL+RG7_PROCES+RG7_ROTEIR+RG7_ANOFIM+RG7_ANOINI+RG7_MAT+RG7_PD+RG7_CODCRI+RG7_SEQACU Cód Processo + Roteiro + Ano Fim + Ano Inicio + Matrícula + Verba + Có Cod. Proceso + Procedimient + Ano Final + Ano Inicial + Matricula + Co Proc. Code + Route + End Year + Start Year + Registration + Fund + Cri S - - S 2 3 - 18149 0
RG7 3 RG7_FILIAL+RG7_PROCES+RG7_ANOFIM+RG7_ANOINI+RG7_MAT+RG7_PD+RG7_CODCRI+RG7_SEQACU Cód Processo + Ano Fim + Ano Inicio + Matrícula + Verba + Cód.Critério Cod. Proceso + Ano Final + Ano Inicial + Matricula + Concepto + Cod.Cr Proc. Code + End Year + Start Year + Registration + Fund + Crit. Code S - - S 2 3 - 18150 0
RG7 4 RG7_PROCES+RG7_ROTEIR+RG7_ANOFIM+RG7_ANOINI+RG7_MAT+RG7_PD+RG7_CODCRI+RG7_SEQACU Cód Processo + Roteiro + Ano Fim + Ano Inicio + Matrícula + Verba + Có Cod. Proceso + Procedimient + Ano Final + Ano Inicial + Matricula + Co Proc. Code + Route + End Year + Start Year + Registration + Fund + Cri S - - S 2 3 - 18151 0

Perguntas frequentes

Para que serve a tabela RG7 no Protheus?

Ela é utilizada para acumuladores dentro do sistema ERP Protheus.

Como consultar os campos da tabela RG7?

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

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

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

Exemplo de consulta SQL da tabela RG7

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

SELECT
    RG7_FILIAL,
    RG7_PROCES,
    RG7_ROTEIR,
    RG7_MAT,
    RG7_NOME,
    RG7_PD,
    RG7_DESCPD,
    RG7_ANOINI,
    RG7_ANOFIM,
    RG7_CODCRI,
    RG7_SEQACU,
    RG7_HRS01,
    RG7_ACUM01,
    RG7_HRS02,
    RG7_ACUM02,
    RG7_HRS03,
    RG7_ACUM03,
    RG7_HRS04,
    RG7_ACUM04,
    RG7_HRS05,
    RG7_ACUM05,
    RG7_HRS06,
    RG7_ACUM06,
    RG7_HRS07,
    RG7_ACUM07,
    RG7_HRS08,
    RG7_ACUM08,
    RG7_HRS09,
    RG7_ACUM09,
    RG7_HRS10,
    RG7_ACUM10,
    RG7_HRS11,
    RG7_ACUM11,
    RG7_HRS12,
    RG7_ACUM12,
    RG7_HRS13,
    RG7_ACUM13,
    RG7_USUARI,
    RG7_DTATUA,
    RG7_ORIGEM
FROM RG7
WHERE
    D_E_L_E_T_ = ' '
    AND RG7_FILIAL = 'VALOR'
    AND RG7_PROCES = 'VALOR'
    AND RG7_ROTEIR = 'VALOR'
    AND RG7_MAT = 'VALOR'
    AND RG7_NOME = 'VALOR'
    AND RG7_PD = 'VALOR'
    AND RG7_DESCPD = 'VALOR'
    AND RG7_ANOINI = 'VALOR'
    AND RG7_ANOFIM = 'VALOR'
    AND RG7_CODCRI = 'VALOR'
    AND RG7_SEQACU = 'VALOR'
    AND RG7_HRS01 = 0
    AND RG7_ACUM01 = 0
    AND RG7_HRS02 = 0
    AND RG7_ACUM02 = 0
    AND RG7_HRS03 = 0
    AND RG7_ACUM03 = 0
    AND RG7_HRS04 = 0
    AND RG7_ACUM04 = 0
    AND RG7_HRS05 = 0
    AND RG7_ACUM05 = 0
    AND RG7_HRS06 = 0
    AND RG7_ACUM06 = 0
    AND RG7_HRS07 = 0
    AND RG7_ACUM07 = 0
    AND RG7_HRS08 = 0
    AND RG7_ACUM08 = 0
    AND RG7_HRS09 = 0
    AND RG7_ACUM09 = 0
    AND RG7_HRS10 = 0
    AND RG7_ACUM10 = 0
    AND RG7_HRS11 = 0
    AND RG7_ACUM11 = 0
    AND RG7_HRS12 = 0
    AND RG7_ACUM12 = 0
    AND RG7_HRS13 = 0
    AND RG7_ACUM13 = 0
    AND RG7_USUARI = 'VALOR'
    AND RG7_DTATUA = 'VALOR'
    AND RG7_ORIGEM = 'VALOR'