Tabela C99

Tabela de Lotações
39camposNome físicoC99010(empresa 01)

Campos da tabela C99

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

39
CampoDescrição
C99_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
C99_ID
Caractere (C)(6)
ID
Máscara:
@!
Contexto:
Real
C99_VERSAO
Caractere (C)(14)
Id. Ver. Reg
Contexto:
Real
C99_DTINI
Caractere (C)(6)
Per. Ini Vld
Máscara:
@R 99/9999
Contexto:
Real
Validação:
XFUNVldDt(,"C99_DTFIN") .and. VLDEVTAB("C99",5,FWFLDGET("C99_CODIGO"),M->C99_DTINI,FWFLDGET("C99_DTFIN"),,1)
C99_DTFIN
Caractere (C)(6)
Per. Fim Vld
Máscara:
@R 99/9999
Contexto:
Real
Validação:
XFUNVldDt("C99_DTINI") .and. VLDEVTAB("C99",5,FWFLDGET("C99_CODIGO"),FWFLDGET("C99_DTINI"),M->C99_DTFIN,,1)
C99_CODIGO
Caractere (C)(30)
Cod.Lotacao
Máscara:
@!
Contexto:
Real
Validação:
VldEvTab("C99",5,M->C99_CODIGO,FWFLDGET("C99_DTINI"),FWFLDGET("C99_DTFIN"),,1)
C99_DESCRI
Caractere (C)(220)
Desc.Lotacao
Máscara:
@!
Contexto:
Real
C99_TPLOT
Caractere (C)(6)
Id.TpLotacao
Máscara:
@!
Contexto:
Real
Consulta F3:
C8F
Validação:
XFUNVldCmp("C8F",,,,2,.T.)
C99_DTPLO
Caractere (C)(220)
Des.Tp.Lot.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
C99_TPINES
Caractere (C)(1)
Tp.Ins.Es
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 1234") .and. XVldTNrIns(M->C99_TPINES , FWFLDGET("C99_NRINES"))
4 valores possíveis
  • 1CNPJ
  • 2CPF
  • 3CAEPF
  • 4CNO
C99_NRINES
Caractere (C)(15)
Num.Insc.Est
Máscara:
@!
Contexto:
Real
Validação:
XVldTNrIns(FWFLDGET("C99_TPINES") ,M->C99_NRINES)
C99_TPLOGR
Caractere (C)(6)
Id.Tp.Logr.
Máscara:
@!
Contexto:
Real
Consulta F3:
C06
Validação:
XFUNVldCmp( "C06", 3 ,,,4)
C99_DTPLOG
Caractere (C)(220)
Des.Tp.Logr.
Máscara:
@!
Contexto:
Virtual (não existe no banco)
C99_DESLOG
Caractere (C)(220)
Des.Lograd.
Máscara:
@!
Contexto:
Real
C99_NUMLOG
Caractere (C)(10)
Num.Lograd.
Máscara:
@!
Contexto:
Real
C99_COMLOG
Caractere (C)(30)
Comp.Lograd.
Máscara:
@!
Contexto:
Real
C99_BAIRRO
Caractere (C)(60)
Bairro
Máscara:
@!
Contexto:
Real
C99_CEP
Caractere (C)(8)
CEP
Máscara:
@!
Contexto:
Real
C99_UF
Caractere (C)(6)
Id.UF
Máscara:
@!
Contexto:
Real
Consulta F3:
C09
Validação:
xFunVldCmp("C09",3)
C99_DUF
Caractere (C)(220)
Des. UF
Máscara:
@!
Contexto:
Virtual (não existe no banco)
C99_CODMUN
Caractere (C)(6)
Id.Cod.Mun
Máscara:
@!
Contexto:
Real
Consulta F3:
C07
Validação:
XFUNVldCmp("C07",4,FWFLDGET("C99_UF")+M->C99_CODMUN)
C99_DCODMU
Caractere (C)(220)
Des.Mun
Máscara:
@!
Contexto:
Virtual (não existe no banco)
C99_FPAS
Caractere (C)(6)
Id.Cod.FPAS
Máscara:
@!
Contexto:
Real
Consulta F3:
C8A
Validação:
XFUNVldCmp("C8A",,,,2,.T.)
C99_DFPAS
Caractere (C)(220)
Des.FPAS
Máscara:
@!
Contexto:
Virtual (não existe no banco)
C99_CODTER
Caractere (C)(6)
Id Cod Terc
Máscara:
@!
Contexto:
Real
Consulta F3:
C8A
Validação:
XFUNVldCmp("C8A",,,,4,.T.)
C99_TPINCT
Caractere (C)(1)
Tp.Insc.Cont
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12") .AND. XVldTNrIns(M->C99_TPINCT , FWFLDGET("C99_NRINCT"))
2 valores possíveis
  • 1CNPJ
  • 2CPF
C99_NRINCT
Caractere (C)(14)
Num.Insc.Con
Máscara:
@!
Contexto:
Real
Validação:
XVldTNrIns(FWFLDGET("C99_TPINCT") ,M->C99_NRINCT)
C99_TPINPR
Caractere (C)(1)
Tp.Insc.Prop
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12") .AND. XVldTNrIns(FWFLDGET("C99_TPINPR") ,M->C99_NRINPR)
2 valores possíveis
  • 1CNPJ
  • 2CPF
C99_VERANT
Caractere (C)(14)
Id. Ver. Ant
Máscara:
@!
Contexto:
Real
C99_NRINPR
Caractere (C)(14)
Num.Insc.Pro
Máscara:
@!
Contexto:
Real
Validação:
XVldTNrIns(FWFLDGET("C99_TPINPR") ,M->C99_NRINPR)
C99_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
C99_PROTUL
Caractere (C)(44)
Ult.Prot.Tr.
Máscara:
@!
Contexto:
Real
C99_PROTPN
Caractere (C)(44)
Pnlt.Prot.Tr
Máscara:
@!
Contexto:
Real
C99_EVENTO
Caractere (C)(1)
Id. Evento
Máscara:
@!
Contexto:
Real
Validação:
Pertence("IAE")
3 valores possíveis
  • IInclusao
  • AAlteracao
  • EExclusao
C99_ATIVO
Caractere (C)(1)
Reg. Ativo?
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
C99_DCODTE
Caractere (C)(220)
Desc Terceir
Máscara:
@!
Contexto:
Virtual (não existe no banco)
C99_TERSUS
Caractere (C)(4)
Cod Ter Susp
Máscara:
@
Contexto:
Real
C99_XMLID
Caractere (C)(36)
Id do XML.
Contexto:
Real
C99_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 C99

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
  C99.C99_FILIAL,
  C99.C99_ID,
  C99.C99_VERSAO,
  C99.C99_DTINI,
  C99.C99_DTFIN,
  C99.C99_CODIGO,
  C99.C99_DESCRI,
  C99.C99_TPLOT
FROM C99010 C99
WHERE C99.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.