Tabela CMU

Id. Produtor
14camposNome físicoCMU010(empresa 01)

Campos da tabela CMU

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

14
CampoDescrição
CMU_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
CMU_ID
Caractere (C)(6)
ID
Máscara:
@!
Contexto:
Real
CMU_VERSAO
Caractere (C)(14)
Id. Ver. Reg
Máscara:
@!
Contexto:
Real
CMU_INSCES
Caractere (C)(14)
Nr.Inscricao
Máscara:
@!
Contexto:
Real
CMU_INDAQU
Caractere (C)(1)
Id.Aquisicao
Máscara:
@!
Contexto:
Real
CMU_TPINSC
Caractere (C)(1)
Tp.Inscricao
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12") .and. XVldTNrIns(M->CMU_TPINSC,FWFLDGET("CMU_INSCPR"))
2 valores possíveis
  • 1CNPJ
  • 2CPF
CMU_INSCPR
Caractere (C)(14)
Nr.Inscricao
Máscara:
@!
Contexto:
Real
Validação:
XVldTNrIns(FWFLDGET("CMU_TPINSC"), M->CMU_INSCPR)
CMU_VLBRUT
Numérico (N)(16,2)
Val. Bruto
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
CMU_VLCONT
Numérico (N)(16,2)
Val. Contrib
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
CMU_VLGILR
Numérico (N)(16,2)
Val. Gilrat
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
CMU_VLSENA
Numérico (N)(16,2)
Val. Senar
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
CMU_NRPROC
Caractere (C)(6)
Num. Process
Máscara:
@!
Contexto:
Real
Consulta F3:
C93
Validação:
XFUNVldCmp("C93",1)
CMU_DNRPRO
Caractere (C)(220)
Des. Process
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CMU_INDCP
Caractere (C)(1)
Ind. Rural
Contexto:
Real
2 valores possíveis
  • 1Sobre a comercializacao da sua producao
  • 2Sobre a folha de pagamento

SELECT de exemplo da tabela CMU

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
  CMU.CMU_FILIAL,
  CMU.CMU_ID,
  CMU.CMU_VERSAO,
  CMU.CMU_INSCES,
  CMU.CMU_INDAQU,
  CMU.CMU_TPINSC,
  CMU.CMU_INSCPR,
  CMU.CMU_VLBRUT
FROM CMU010 CMU
WHERE CMU.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.