Tabela CRC

Alteração Cont. Trab. Sem Vinc
50camposNome físicoCRC010(empresa 01)

Campos da tabela CRC

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

50
CampoDescrição
CRC_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
CRC_ID
Caractere (C)(6)
ID
Máscara:
@!
Contexto:
Real
CRC_VERSAO
Caractere (C)(14)
Id. Ver. Reg
Máscara:
@!
Contexto:
Real
CRC_CODTRA
Caractere (C)(6)
Id. Trabal.
Máscara:
@!
Contexto:
Real
Consulta F3:
C9V
Validação:
xFunVldCmp("C9V",,,,2,,,.T.)
CRC_DCODTR
Caractere (C)(220)
Nome Trabal.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CRC_DALTSV
Data (D)(8)
Dt.Alt.F.S.V
Contexto:
Real
CRC_CATCI
Caractere (C)(6)
Id.Categoria
Contexto:
Real
Consulta F3:
C87
Validação:
xFunVldCmp("C87",,,,2,.T.)
CRC_DCATCI
Caractere (C)(220)
Des.Categ.
Contexto:
Virtual (não existe no banco)
CRC_CARCI
Caractere (C)(6)
Id.Cargo
Máscara:
@!
Contexto:
Real
Consulta F3:
C8V
Validação:
xFunVldCmp("C8V",,,,2,,.T.)
CRC_DCARCI
Caractere (C)(220)
Des.Cargo
Contexto:
Virtual (não existe no banco)
CRC_FUNCI
Caractere (C)(6)
Id.Funcao
Máscara:
@!
Contexto:
Real
Consulta F3:
C8X
Validação:
xFunVldCmp("C8X",,,,2,,.T.)
CRC_DFUNCI
Caractere (C)(220)
Des.Funcao
Contexto:
Virtual (não existe no banco)
CRC_CARSP
Caractere (C)(6)
Id.Cargo
Máscara:
@!
Contexto:
Real
Consulta F3:
C8V
CRC_DCARSP
Caractere (C)(220)
Des.Cargo
Contexto:
Virtual (não existe no banco)
CRC_FUNSP
Caractere (C)(6)
Id.Funcao
Máscara:
@!
Contexto:
Real
Consulta F3:
C8X
Validação:
XFUNVldCmp("C8X",,,,2,,.T.)
CRC_DFUNSP
Caractere (C)(220)
Des.Funcao
Contexto:
Virtual (não existe no banco)
CRC_NATEES
Caractere (C)(1)
Nat.Estagio
Contexto:
Real
Validação:
Pertence(" ON")
2 valores possíveis
  • OObrigatorio
  • NNao Obrigatorio
CRC_NIVEES
Caractere (C)(1)
Niv.Estagio
Contexto:
Real
Validação:
Pertence(" 1234")
4 valores possíveis
  • 1Fundamental
  • 2Medio
  • 3Formacao Profissional
  • 4Superior
CRC_AREAES
Caractere (C)(50)
Area Atuacao
Contexto:
Real
CRC_NRAPES
Caractere (C)(30)
Nr.Apolice
Contexto:
Real
CRC_VLBLES
Numérico (N)(16,2)
Vlr.Bolsa
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
CRC_DTTEES
Data (D)(8)
Dt.Prev.Term
Contexto:
Real
CRC_CNPEES
Caractere (C)(14)
CNPJ Ins.Ens
Contexto:
Real
CRC_NOMEES
Caractere (C)(80)
Nome Ins.Ens
Contexto:
Real
CRC_LOGEES
Caractere (C)(80)
Logr. Inst.
Contexto:
Real
CRC_NLGEES
Caractere (C)(10)
Nr.Logr.Inst
Contexto:
Real
CRC_BAREES
Caractere (C)(30)
Bairro Inst.
Contexto:
Real
CRC_CEPES
Caractere (C)(8)
CEP Inst.Ens
Contexto:
Real
CRC_UFES
Caractere (C)(6)
Id. UF Inst
Contexto:
Real
Consulta F3:
C09
Validação:
XFUNVldCmp("C09",3)
CRC_DUFES
Caractere (C)(220)
Des. UF Inst
Contexto:
Virtual (não existe no banco)
CRC_MUNES
Caractere (C)(6)
Id.Mun.Ins.
Contexto:
Real
Consulta F3:
C07
Validação:
XFUNVldCmp("C07",3)
CRC_DMUNES
Caractere (C)(220)
Des.Mun.Inst
Contexto:
Virtual (não existe no banco)
CRC_CNPAES
Caractere (C)(14)
CNPJ Agente
Contexto:
Real
CRC_NOMAES
Caractere (C)(80)
Nome Ag.Int.
Contexto:
Real
CRC_LOGAES
Caractere (C)(80)
Logr.Ag.Int.
Contexto:
Real
CRC_NLGAES
Caractere (C)(10)
Nr.Logr. Age
Contexto:
Real
CRC_BARAES
Caractere (C)(30)
Bairro Ag.In
Contexto:
Real
CRC_CEPAES
Caractere (C)(8)
CEP Agen.Int
Contexto:
Real
CRC_UFAES
Caractere (C)(6)
Id.UF Ag.Int
Contexto:
Real
Consulta F3:
C09
Validação:
XFUNVldCmp("C09",3)
CRC_DUFAES
Caractere (C)(220)
Des.UF Agen.
Contexto:
Virtual (não existe no banco)
CRC_MUNAES
Caractere (C)(6)
Id.Mun.Agen.
Contexto:
Real
Consulta F3:
C07
Validação:
XFUNVldCmp("C07",3)
CRC_DMUNAE
Caractere (C)(220)
Des.Mun.Agen
Contexto:
Virtual (não existe no banco)
CRC_CPFCES
Caractere (C)(11)
CPF Coord.Es
Contexto:
Real
CRC_NOMCES
Caractere (C)(80)
Nome Coord.
Contexto:
Real
CRC_VERANT
Caractere (C)(14)
Ver Ant Reg
Máscara:
@!
Contexto:
Real
CRC_STATUS
Caractere (C)(1)
Status Reg.
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 012349")
6 valores possíveis
  • 0Reg.Valido
  • 1Reg.Invalido
  • 2Reg.Transmitido
  • 3Reg.Transmitido com inconsistencia
  • 4Reg.Transmitido valido
  • 9Em Processamento
CRC_PROTUL
Caractere (C)(44)
Ult. Prot.
Máscara:
@!
Contexto:
Real
CRC_PROTPN
Caractere (C)(44)
Pnlt. Prot.
Máscara:
@!
Contexto:
Real
CRC_EVENTO
Caractere (C)(1)
Id. Evento
Máscara:
@!
Contexto:
Real
Validação:
Pertence("IAE")
3 valores possíveis
  • IInclusao
  • AAlteracao
  • EExclusao
CRC_ATIVO
Caractere (C)(1)
Reg. Ativo?
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao

SELECT de exemplo da tabela CRC

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
  CRC.CRC_FILIAL,
  CRC.CRC_ID,
  CRC.CRC_VERSAO,
  CRC.CRC_CODTRA,
  CRC.CRC_DALTSV,
  CRC.CRC_CATCI,
  CRC.CRC_CARCI,
  CRC.CRC_FUNCI
FROM CRC010 CRC
WHERE CRC.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.