Tabela RHP

Hist. Co-partic. e Reembolso
22camposNome físicoRHP010(empresa 01)

Campos da tabela RHP

22 campos no dicionário de dados do TOTVS Protheus.

22
CampoDescrição
RHP_FILIAL
Caractere (C)(2)
Filial
RHP_MAT
Caractere (C)(6)
Matricula
Máscara:
999999
Contexto:
Real
Consulta F3:
SRA
RHP_DTOCOR
Data (D)(8)
Data Ocorren
Contexto:
Real
RHP_ORIGEM
Caractere (C)(1)
Origem
Máscara:
@!
Contexto:
Real
Validação:
Pertence("123") .And. GPA003_ORIG()
3 valores possíveis
  • 1Titular
  • 2Dependente
  • 3Agregado
RHP_TPFORN
Caractere (C)(1)
Tipo
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Ass. Medica
  • 2Ass. Odontologica
RHP_CODFOR
Caractere (C)(3)
Cod. Fornec.
Máscara:
999
Contexto:
Real
Consulta F3:
S008
RHP_CODIGO
Caractere (C)(2)
Sequencia
Máscara:
99
RHP_NOME
Caractere (C)(30)
Nome
Máscara:
@!
Contexto:
Virtual (não existe no banco)
RHP_TPLAN
Caractere (C)(1)
Tipo Lancam.
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Co-participacao
  • 2Reembolso
RHP_PD
Caractere (C)(3)
Verba Calcul
Máscara:
@!
Contexto:
Real
Consulta F3:
SRV
RHP_DESCPD
Caractere (C)(20)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
RHP_VLRFUN
Numérico (N)(12,2)
Vlr Funcion.
Máscara:
@E 999,999,999.99
Contexto:
Real
Validação:
POSITIVO()
RHP_VLREMP
Numérico (N)(12,2)
Vlr Empresa
Máscara:
@E 999,999,999.99
Contexto:
Real
Validação:
POSITIVO()
RHP_COMPPG
Caractere (C)(6)
Compet Pagto
Máscara:
@R 9999/99
Contexto:
Real
RHP_OBSERV
Caractere (C)(120)
Observacoes
Máscara:
@!
RHP_DATPGT
Data (D)(8)
Dt.Pagamento
Contexto:
Real
RHP_DTHRGR
Caractere (C)(10)
Dt.Hr.Ger.
Contexto:
Real
RHP_INMED
Caractere (C)(14)
CPF/CNPJ
Contexto:
Real
RHP_NOMED
Caractere (C)(150)
Nome Prest.
Contexto:
Real
RHP_TPATEN
Caractere (C)(3)
Tipo Atend
Máscara:
@!
RHP_CID
Caractere (C)(7)
CID
Máscara:
@!
Contexto:
Real
RHP_CDESPE
Caractere (C)(3)
Especialidad
Máscara:
@!

SELECT de exemplo da tabela RHP

No Protheus a tabela física leva o código da empresa (01 → 010) e registros excluídos ficam com D_E_L_E_T_ = '*'.

SQL · SQL Server
SELECT TOP 100
  RHP.RHP_FILIAL,
  RHP.RHP_MAT,
  RHP.RHP_DTOCOR,
  RHP.RHP_ORIGEM,
  RHP.RHP_TPFORN,
  RHP.RHP_CODFOR,
  RHP.RHP_CODIGO,
  RHP.RHP_TPLAN
FROM RHP010 RHP
WHERE RHP.D_E_L_E_T_ = ' '

Tabelas próximas no índice do Protheus

O ERPSeeker é um projeto independente, sem vínculo com a TOTVS. A estrutura pode variar conforme a versão e as customizações do seu ambiente.