Tabela CM6

Afastamento Temporário
48camposNome físicoCM6010(empresa 01)

Campos da tabela CM6

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

48
CampoDescrição
CM6_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
CM6_NOMEV
Caractere (C)(220)
Nome
Contexto:
Virtual (não existe no banco)
CM6_CPFV
Caractere (C)(11)
CPF
Máscara:
@R 999.999.999-99
Contexto:
Virtual (não existe no banco)
CM6_FUNC
Caractere (C)(6)
Id.Func.
Máscara:
@!
Contexto:
Real
Consulta F3:
C9VA
Validação:
XFUNVldCmp("C9V",,,,2,)
CM6_DFUNC
Caractere (C)(220)
Des.Func.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM6_DTAFAS
Data (D)(8)
Dt. Afast.
Contexto:
Real
Validação:
XVldAfastAf( M->CM6_FUNC, &( ReadVar() ), 1 )
CM6_MOTVAF
Caractere (C)(6)
Id.Mot.Afast
Máscara:
@!
Contexto:
Real
Consulta F3:
C8N
Validação:
XFUNVldCmp("C8N",,,,2,)
CM6_DMOTVA
Caractere (C)(220)
Des.Mot.Afas
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM6_TPACID
Caractere (C)(1)
Tp.Acid.Tran
Contexto:
Real
Validação:
Pertence(" 123")
3 valores possíveis
  • 1Atropelamento
  • 2Colisao
  • 3Outros
CM6_OBSERV
Memo (M)(255)
Observacao
Contexto:
Real
CM6_CODCID
Caractere (C)(6)
Id.CID
Contexto:
Real
Consulta F3:
CMM
Validação:
XFUNVldCmp("CMM",,,,2,)
CM6_DCODCI
Caractere (C)(220)
Des.CID
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM6_DIASAF
Caractere (C)(3)
Qtde.Dias Af
Máscara:
999
Contexto:
Real
CM6_IDPROF
Caractere (C)(6)
Id. Profissi
Máscara:
@!
Contexto:
Real
Consulta F3:
CM7
Validação:
XFUNVldCmp("CM7",1)
CM6_DIDPRO
Caractere (C)(220)
Des.Prof.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM6_INFOCE
Caractere (C)(1)
Inf.Onus.Ces
Contexto:
Real
Validação:
Pertence(" 123")
3 valores possíveis
  • 1Onus do Cedente
  • 2Onus do Cessionario
  • 3Onus do Cedente e Cessionario
CM6_CNPJCE
Caractere (C)(14)
CNPJ Cession
Máscara:
@R 99.999.999/9999-99
Validação:
xFunVldPJF(,2,.F.)
CM6_CNPJSD
Caractere (C)(14)
CNPJ Sind.
Máscara:
@R 99.999.999/9999-99
Contexto:
Real
Validação:
xFunVldPJF(,2,.F.)
CM6_INFOSD
Caractere (C)(1)
Inf.Onus.Sin
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 123")
3 valores possíveis
  • 1Apenas do Empreg.
  • 2Apenas do Sind.
  • 3Parte do Empreg., diferenca/complementacao salarial paga pelo Sindicato
CM6_VERANT
Caractere (C)(14)
Ver Ant Reg
Máscara:
@!
Contexto:
Real
CM6_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 inconsistencia
  • 4Reg.Transmitido valido
  • 9Em Processamento
CM6_PROTUL
Caractere (C)(44)
Ult. Prot.
Máscara:
@!
Contexto:
Real
CM6_PROTPN
Caractere (C)(44)
Pnlt. Prot.
Máscara:
@!
Contexto:
Real
CM6_EVENTO
Caractere (C)(1)
Id. Evento
Máscara:
@!
Contexto:
Real
Validação:
Pertence("IAERF")
5 valores possíveis
  • IInclusao
  • AAlteracao
  • EExclusao
  • RRetificacao
  • FFinalizacao
CM6_ATIVO
Caractere (C)(1)
Reg. Ativo?
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12") .And. XFUNVldUni("CM6",2,M->CM6_FUNC+M->CM6_MOTVAF+DTOS(M->CM6_DTAFAS)+M->CM6_ATIVO)
2 valores possíveis
  • 1Sim
  • 2Nao
CM6_ADTAFA
Data (D)(8)
Dt Alt Afast
Contexto:
Real
CM6_AMOTAF
Caractere (C)(6)
Alt Mot.Afas
Máscara:
@!
Contexto:
Real
Consulta F3:
C8N
Validação:
XFUNVldCmp("C8N",,,,2,)
CM6_DAMOTA
Caractere (C)(220)
Des.Mot.Afas
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM6_EFRETR
Caractere (C)(1)
Efeito Retro
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12")
2 valores possíveis
  • 1Sim
  • 2Nao
CM6_DTFAFA
Data (D)(8)
Dt Fim Afas
Contexto:
Real
Validação:
XVldAfastAf( M->CM6_FUNC, &( ReadVar() ), 2 )
CM6_FMOTAF
Caractere (C)(6)
Mot Fim Afas
Máscara:
@!
Contexto:
Real
Consulta F3:
C8N
Validação:
XFUNVldCmp("C8N",,,,2,)
CM6_DFMOTA
Caractere (C)(200)
Des Fim Afas
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM6_OBSFIM
Memo (M)(255)
Obs Fim Afas
Máscara:
@!
Contexto:
Real
CM6_STAFIM
Caractere (C)(35)
Fim Afastam.
Contexto:
Virtual (não existe no banco)
CM6_INFMTV
Caractere (C)(1)
Mtv Afas Ant
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12")
2 valores possíveis
  • 1Sim
  • 2Nao
CM6_ORIALT
Caractere (C)(1)
Origem Alt.
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 123")
3 valores possíveis
  • 1Por iniciativa do empregador
  • 2Revisao Administrativa
  • 3Determinacao Judicial
CM6_IDPROC
Caractere (C)(6)
Id. Processo
Máscara:
@!
Contexto:
Real
Consulta F3:
C1G
Validação:
XFUNVldCmp("C1G",3)
CM6_DPROCJ
Caractere (C)(220)
Num Processo
Máscara:
@!
Contexto:
Virtual (não existe no banco)
CM6_ORIRET
Caractere (C)(1)
Origem Ret.
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 123")
3 valores possíveis
  • 1Por iniciativa do empregador
  • 2Revisao Administrativa
  • 3Determinacao Judicial
CM6_XMLID
Caractere (C)(36)
Id do XML.
Contexto:
Real
CM6_STASEC
Caractere (C)(1)
Status Secun
Contexto:
Real
CM6_XMLREC
Caractere (C)(4)
XML Recebido
Máscara:
@!
Contexto:
Real
CM6_DINSIS
Data (D)(8)
Dt Inc. Sist
Contexto:
Real
CM6_VERSAO
Caractere (C)(14)
Id. Ver. Reg
Máscara:
@!
Contexto:
Real
CM6_NISV
Caractere (C)(11)
NIS
Contexto:
Virtual (não existe no banco)
CM6_MATV
Caractere (C)(30)
Matricula
Contexto:
Virtual (não existe no banco)
CM6_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
CM6_ID
Caractere (C)(6)
ID
Máscara:
@!
Contexto:
Real

SELECT de exemplo da tabela CM6

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
  CM6.CM6_FILIAL,
  CM6.CM6_FUNC,
  CM6.CM6_DTAFAS,
  CM6.CM6_MOTVAF,
  CM6.CM6_TPACID,
  CM6.CM6_OBSERV,
  CM6.CM6_CODCID,
  CM6.CM6_DIASAF
FROM CM6010 CM6
WHERE CM6.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.