Tabela CPN

Historico ata SRP
10camposNome físicoCPN010(empresa 01)

Campos da tabela CPN

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

10
CampoDescrição
CPN_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
CPN_DATA
Data (D)(8)
Data
Contexto:
Real
CPN_HORA
Caractere (C)(8)
Hora
Contexto:
Real
CPN_TIPO
Caractere (C)(1)
Tipo
Contexto:
Real
3 valores possíveis
  • 1Alteracao de Status da Ata
  • 2Repactuacao
  • 3Prorrogacao de Prazo\Quantidade
CPN_ORIGEM
Caractere (C)(30)
Origem
Contexto:
Real
CPN_DESTIN
Caractere (C)(30)
Destino
Contexto:
Real
CPN_USER
Caractere (C)(6)
Usuario
Contexto:
Real
CPN_NMUSER
Caractere (C)(50)
Nome Usuario
Máscara:
@!
Contexto:
Real
CPN_NUMATA
Caractere (C)(15)
Numero Ata
Contexto:
Real
CPN_JUST
Memo (M)(10)
Justif
Máscara:
@!
Contexto:
Real

SELECT de exemplo da tabela CPN

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
  CPN.CPN_FILIAL,
  CPN.CPN_DATA,
  CPN.CPN_HORA,
  CPN.CPN_TIPO,
  CPN.CPN_ORIGEM,
  CPN.CPN_DESTIN,
  CPN.CPN_USER,
  CPN.CPN_NMUSER
FROM CPN010 CPN
WHERE CPN.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.