Tabela CR4

Cont. Outras Entidades.
8camposNome físicoCR4010(empresa 01)

Campos da tabela CR4

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

CampoDescrição
CR4_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
CR4_ID
Caractere (C)(6)
ID
Máscara:
@!
Contexto:
Real
CR4_VERSAO
Caractere (C)(14)
Id. Ver. Reg
Máscara:
@!
Contexto:
Real
CR4_INSCES
Caractere (C)(14)
Nr Inscricao
Máscara:
@!
Contexto:
Real
CR4_FPAS
Caractere (C)(6)
Cod. FPAS
Máscara:
@!
Contexto:
Real
Consulta F3:
C8A
Validação:
XFUNVldCmp("C8A",,,,1,.T.)
CR4_DFPAS
Caractere (C)(220)
Des. FPAS
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CR4_DCODTE
Caractere (C)(220)
Des Terceiro
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CR4_VLTOT
Numérico (N)(16,2)
Total Contr.
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real

SELECT de exemplo da tabela CR4

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
  CR4.CR4_FILIAL,
  CR4.CR4_ID,
  CR4.CR4_VERSAO,
  CR4.CR4_INSCES,
  CR4.CR4_FPAS,
  CR4.CR4_VLTOT
FROM CR4010 CR4
WHERE CR4.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.