Tabela CM8

Aviso Prévio
24camposNome físicoCM8010(empresa 01)

Campos da tabela CM8

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

24
CampoDescrição
CM8_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
CM8_DTRABA
Caractere (C)(220)
Nome Trab.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM8_CPFV
Caractere (C)(11)
CPF
Máscara:
@R 999.999.999-99
Contexto:
Virtual (não existe no banco)
CM8_TRABAL
Caractere (C)(6)
Trabalhador
Máscara:
@!
Contexto:
Real
Consulta F3:
C9V
Validação:
XFUNVldCmp("C9V",,,,1,,,.T.) .And. XFUNVldUni("CM8",2,M->CM8_TRABAL+DTOS(FWFLDGET("CM8_DTAVIS")))
CM8_ID
Caractere (C)(6)
ID
Máscara:
@!
Contexto:
Real
CM8_DTAVIS
Data (D)(8)
Dt. Aviso
Contexto:
Real
Validação:
XFUNVldUni("CM8",2,FWFLDGET("CM8_TRABAL")+DTOS(M->CM8_DTAVIS))
CM8_DTAFAS
Data (D)(8)
Dt. Afastam.
Contexto:
Real
CM8_TPAVIS
Caractere (C)(1)
Tp. Aviso
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12456")
5 valores possíveis
  • 1Reducao 2 Hrs/Dia
  • 2Red. Dias Corridos
  • 4Nao Dispensado
  • 5Empreg.Rural Red. um Dia por Semana
  • 6Acordo(Empregado e Empregador)
CM8_OBSERV
Memo (M)(255)
Observacao
Máscara:
@!
Contexto:
Real
CM8_VERANT
Caractere (C)(14)
Ver Ant Reg
Máscara:
@!
Contexto:
Real
CM8_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 inconsistencias
  • 4Reg.Transmitido valido
  • 9Em Processamento
CM8_PROTUL
Caractere (C)(44)
Ult. Prot.
Máscara:
@!
Contexto:
Real
CM8_PROTPN
Caractere (C)(44)
Pnlt. Prot.
Máscara:
@!
Contexto:
Real
CM8_EVENTO
Caractere (C)(1)
Id. Evento
Máscara:
@!
Contexto:
Real
Validação:
Pertence("IAERF")
5 valores possíveis
  • IInclusao
  • AAlteracao
  • EExclusao
  • RRetificacao
  • FFim
CM8_ATIVO
Caractere (C)(1)
Reg. Ativo?
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
CM8_DTCANC
Data (D)(8)
Dt. Cancelam
Contexto:
Real
CM8_MOTCAN
Caractere (C)(1)
Motivo Canc.
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 1239")
4 valores possíveis
  • 1Reconsideracao prevista no artigo 489 da CLT
  • 2Determinacao Judicial
  • 3Cumprimento de norma legal
  • 9Outros.
CM8_STASEC
Caractere (C)(1)
Status Sec.
Contexto:
Real
CM8_XMLID
Caractere (C)(36)
Id do XML.
Contexto:
Real
CM8_DINSIS
Data (D)(8)
Dt Inc. Sist
Contexto:
Real
CM8_VERSAO
Caractere (C)(14)
Id. Ver. Reg
Máscara:
@!
Contexto:
Real
CM8_MATV
Caractere (C)(30)
Matricula
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM8_NISV
Caractere (C)(11)
NIS
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM8_LOGOPE
Caractere (C)(1)
Log Operacao
Máscara:
@!
Contexto:
Real
6 valores possíveis
  • 1Incl.Integr
  • 2Incl.Manual
  • 3Incl.Integr+Alt.Integr
  • 4Incl.Integr+Alt.Manual
  • 5Incl.Manual+Alt.Integr
  • 6Incl.Manual+Alt.Manual

SELECT de exemplo da tabela CM8

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
  CM8.CM8_FILIAL,
  CM8.CM8_TRABAL,
  CM8.CM8_ID,
  CM8.CM8_DTAVIS,
  CM8.CM8_DTAFAS,
  CM8.CM8_TPAVIS,
  CM8.CM8_OBSERV,
  CM8.CM8_VERANT
FROM CM8010 CM8
WHERE CM8.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.