Tabela CSM

ECD – Dados FCONT
13camposNome físicoCSM010(empresa 01)

Campos da tabela CSM

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

13
CampoDescrição
CSM_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
CSM_CODREV
Caractere (C)(6)
Cod.Revisao
Máscara:
@!
Contexto:
Real
CSM_QUALPJ
Caractere (C)(2)
Qualif.PJ
Máscara:
@!
Contexto:
Real
3 valores possíveis
  • 00(00-SUSEP)
  • 10(10-RFB)
  • 20(20-COSIF)
CSM_TPESCR
Caractere (C)(1)
Tp.Escrit.
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 0Original
  • 1Retificadora
CSM_RECANT
Caractere (C)(41)
Rec.Anterior
Máscara:
@!
Contexto:
Real
CSM_FMAPUR
Caractere (C)(1)
Forma Apur.
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • AA-Anual
  • TT-Trimestral
CSM_FMTRIB
Caractere (C)(1)
Forma Tribut
Máscara:
@!
Contexto:
Real
4 valores possíveis
  • 11-Real
  • 22-Real Arbitrado
  • 33-Real Presumido (Trimestral)
  • 44-Real Presumido Arbitrado (Trimestral)
CSM_TARBIT
Caractere (C)(4)
Trim.Luc.Arb
Máscara:
@!
Contexto:
Real
CSM_APUTRI
Caractere (C)(4)
Apur.Trimest
Máscara:
@!
Contexto:
Real
CSM_APUCTA
Caractere (C)(30)
Cta.Apur.
Máscara:
@!
Contexto:
Real
CSM_APUCC
Caractere (C)(30)
C.Custo Apur
Máscara:
@!
Contexto:
Real
CSM_CTAREF
Caractere (C)(30)
Cta.Ref.Apur
Máscara:
@!
Contexto:
Real
CSM_TPUTIL
Caractere (C)(1)
Tp.Utiliz.
Máscara:
@!
Contexto:
Real
3 valores possíveis
  • FFiscal
  • SSocietario
  • AAmbos

SELECT de exemplo da tabela CSM

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
  CSM.CSM_FILIAL,
  CSM.CSM_CODREV,
  CSM.CSM_QUALPJ,
  CSM.CSM_TPESCR,
  CSM.CSM_RECANT,
  CSM.CSM_FMAPUR,
  CSM.CSM_FMTRIB,
  CSM.CSM_TARBIT
FROM CSM010 CSM
WHERE CSM.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.