Tabela CL2

Integrações F100/F120/F130
47camposNome físicoCL2010(empresa 01)

Campos da tabela CL2

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

47
CampoDescrição
CL2_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
CL2_PER
Data (D)(8)
Per.Apur.
Contexto:
Real
CL2_ID
Caractere (C)(36)
Id Cont.
Máscara:
@!
Contexto:
Real
CL2_REG
Caractere (C)(4)
Registro
Máscara:
@!
Contexto:
Real
CL2_INDOP
Caractere (C)(1)
Ind.Oper.
Máscara:
@!
Contexto:
Real
CL2_PARTI
Caractere (C)(6)
Participante
Máscara:
@!
Contexto:
Real
CL2_ITEM
Caractere (C)(60)
Cod.Item
Máscara:
@!
Contexto:
Real
CL2_DTOPER
Data (D)(8)
Dt.Oper
Contexto:
Real
CL2_VLOPER
Numérico (N)(14,2)
Vl.Oper.
Máscara:
@E 99,999,999,999.99
Contexto:
Real
CL2_CODBCC
Caractere (C)(2)
Cod. BCC
Máscara:
@!
Contexto:
Real
CL2_INDCRD
Caractere (C)(1)
Ind.Cred.
Máscara:
@!
Contexto:
Real
CL2_IDBEM
Caractere (C)(2)
Ident. Bem
Máscara:
@!
Contexto:
Real
CL2_ORICRD
Caractere (C)(1)
Orig. Cred.
Máscara:
@!
Contexto:
Real
CL2_IDUTI
Caractere (C)(1)
Id. Utili.
Máscara:
@!
Contexto:
Real
CL2_VLENCA
Numérico (N)(14,2)
Vl. Encarg.
Máscara:
@E 99,999,999,999.99
Contexto:
Real
CL2_VLPARC
Numérico (N)(14,2)
Vl.Parc.
Máscara:
@E 99,999,999,999.99
Contexto:
Real
CL2_VLEXCL
Numérico (N)(14,2)
Vl.Exclu.
Máscara:
@E 99,999,999,999.99
Contexto:
Real
CL2_CSTPIS
Caractere (C)(2)
CST PIS
Máscara:
@!
Contexto:
Real
CL2_BCPIS
Numérico (N)(14,2)
Bc. PIS
Máscara:
@E 99,999,999,999.99
Contexto:
Real
CL2_ALQPIS
Numérico (N)(8,4)
Alq.PIS
Máscara:
@E 999.9999
Contexto:
Real
CL2_VLPIS
Numérico (N)(14,2)
Vl.PIS
Máscara:
@E 99,999,999,999.99
Contexto:
Real
CL2_CSTCOF
Caractere (C)(2)
CST COF
Máscara:
@!
Contexto:
Real
CL2_BCCOF
Numérico (N)(14,2)
Bc. COF
Máscara:
@E 99,999,999,999.99
Contexto:
Real
CL2_ALQCOF
Numérico (N)(8,4)
Alq.COF
Máscara:
@E 999.9999
Contexto:
Real
CL2_VLCOF
Numérico (N)(14,2)
Vl.COF
Máscara:
@E 99,999,999,999.99
Contexto:
Real
CL2_CTA
Caractere (C)(20)
Cod. CTA
Máscara:
@!
Contexto:
Real
CL2_CCUS
Caractere (C)(9)
Cod. CCUS
Máscara:
@!
Contexto:
Real
CL2_DESCR
Caractere (C)(100)
Descricao
Máscara:
@!
Contexto:
Real
CL2_MESANO
Caractere (C)(6)
Mes/Ano
Máscara:
@!
Contexto:
Real
CL2_VLAQUI
Numérico (N)(14,2)
Vl. Aquis.
Máscara:
@E 99,999,999,999.99
Contexto:
Real
CL2_INDPAC
Caractere (C)(1)
Ind. Parc.
Máscara:
@!
Contexto:
Real
CL2_INDPRO
Caractere (C)(1)
Ind.Proc.
Máscara:
@!
Contexto:
Real
CL2_NUMPRO
Caractere (C)(10)
Num.Proc
Máscara:
@!
Contexto:
Real
CL2_PART
Caractere (C)(1)
Participante
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 1/2")
2 valores possíveis
  • 1Cliente
  • 2Fornecedor
CL2_NUMTIT
Caractere (C)(9)
Num.Titulo
Máscara:
@!
Contexto:
Real
CL2_PREFIX
Caractere (C)(3)
Prefixo
Máscara:
@!
Contexto:
Real
CL2_PARC
Caractere (C)(2)
Parcela
Máscara:
@!
Contexto:
Real
CL2_IDCF8
Caractere (C)(6)
Demais Docs.
Máscara:
@!
Contexto:
Real
CL2_REGIME
Caractere (C)(1)
Regime
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 1Nao Cumulativo
  • 2Cumulativo
CL2_CODATF
Caractere (C)(10)
Cod. Ativo
Máscara:
@!
Contexto:
Real
CL2_ITATF
Caractere (C)(4)
Num.Item ATF
Máscara:
@!
Contexto:
Real
CL2_DESATF
Caractere (C)(40)
Descr. Ativo
Máscara:
@!
Contexto:
Real
CL2_CRTCRD
Caractere (C)(1)
Crt. Cred
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 1Aquisicao
  • 2Depreciacao
CL2_CLIFOR
Caractere (C)(6)
Participante
Máscara:
@!
Contexto:
Real
CL2_LOJA
Caractere (C)(2)
Loja
Máscara:
@!
Contexto:
Real
CL2_FILAPU
Caractere (C)(2)
Fil.Apur.
Contexto:
Real
CL2_ALIAS
Caractere (C)(3)
Alias Part.
Máscara:
@!

SELECT de exemplo da tabela CL2

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
  CL2.CL2_FILIAL,
  CL2.CL2_PER,
  CL2.CL2_ID,
  CL2.CL2_REG,
  CL2.CL2_INDOP,
  CL2.CL2_PARTI,
  CL2.CL2_ITEM,
  CL2.CL2_DTOPER
FROM CL2010 CL2
WHERE CL2.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.