Tabela CR2

Base Por FPAS
8camposNome físicoCR2010(empresa 01)

Campos da tabela CR2

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

CampoDescrição
CR2_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
CR2_ID
Caractere (C)(6)
ID
Máscara:
@!
Contexto:
Real
CR2_VERSAO
Caractere (C)(14)
Id. Ver. Reg
Máscara:
@!
Contexto:
Real
CR2_INSCES
Caractere (C)(14)
Nr Inscricao
Máscara:
@!
Contexto:
Real
CR2_FPAS
Caractere (C)(6)
Cod. FPAS
Máscara:
@!
Contexto:
Real
Consulta F3:
C8A
Validação:
XFUNVldCmp("C8A",,,,1,.T.)
CR2_DFPAS
Caractere (C)(220)
Des. FPAS
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CR2_DCODTE
Caractere (C)(220)
Des Terceiro
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CR2_BCTERC
Numérico (N)(16,2)
Bc Terceiros
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real

SELECT de exemplo da tabela CR2

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
  CR2.CR2_FILIAL,
  CR2.CR2_ID,
  CR2.CR2_VERSAO,
  CR2.CR2_INSCES,
  CR2.CR2_FPAS,
  CR2.CR2_BCTERC
FROM CR2010 CR2
WHERE CR2.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.