Tabela T0G

Informações relativas IRRF
11camposNome físicoT0G010(empresa 01)

Campos da tabela T0G

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

11
CampoDescrição
T0G_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
T0G_ID
Caractere (C)(6)
ID
Máscara:
@!
Contexto:
Real
T0G_VERSAO
Caractere (C)(14)
Id. Ver. Reg
Máscara:
@!
Contexto:
Real
T0G_STATUS
Caractere (C)(1)
Status Reg.
Máscara:
@!
Contexto:
Real
T0G_EVENTO
Caractere (C)(1)
Id. Evento
Máscara:
@!
Contexto:
Real
Validação:
Pertence("IAE")
3 valores possíveis
  • IInclusao
  • AAlteracao
  • EExclusao
T0G_ATIVO
Caractere (C)(1)
Reg. Ativo?
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
T0G_PERAPU
Caractere (C)(6)
Per.Apuracao
Máscara:
@R 9999-99
Contexto:
Real
T0G_NRARQB
Caractere (C)(44)
Nr. Rec. Arq
Máscara:
@!
Contexto:
Real
T0G_INDEXI
Caractere (C)(1)
Ind. Ex. Val
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 123")
3 valores possíveis
  • 1Ha inf. de Imp. de Renda Retido na Fonte
  • 2Ha mov., porem nao ha inf. de Imposto de Renda
  • 3Nao ha mov. no periodo
T0G_PROTUL
Caractere (C)(44)
Ult. Prot.
Máscara:
@!
Contexto:
Real
T0G_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 T0G

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
  T0G.T0G_FILIAL,
  T0G.T0G_ID,
  T0G.T0G_VERSAO,
  T0G.T0G_STATUS,
  T0G.T0G_EVENTO,
  T0G.T0G_ATIVO,
  T0G.T0G_PERAPU,
  T0G.T0G_NRARQB
FROM T0G010 T0G
WHERE T0G.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.