Tabela T2R

Inf. Base de Calculo
12camposNome físicoT2R010(empresa 01)

Campos da tabela T2R

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

12
CampoDescrição
T2R_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
T2R_ID
Caractere (C)(6)
ID
Máscara:
@!
Contexto:
Real
T2R_VERSAO
Caractere (C)(14)
Id. Ver. Reg
Máscara:
@!
Contexto:
Real
T2R_ESTABE
Caractere (C)(6)
Id. Estab.
Máscara:
@!
Contexto:
Real
T2R_LOTACA
Caractere (C)(6)
Id. Lotacao
Máscara:
@!
Contexto:
Real
T2R_MATRIC
Caractere (C)(30)
Matricula
Máscara:
@!
Contexto:
Real
T2R_CODCAT
Caractere (C)(6)
Cod. Categor
Máscara:
@!
Contexto:
Real
T2R_INDDEC
Caractere (C)(1)
Ind. Decimo
Máscara:
@!
2 valores possíveis
  • 0Mensal
  • 113° salario
T2R_TPVLR
Caractere (C)(6)
Id. Tipo Val
Máscara:
@!
Contexto:
Real
T2R_DTPVLR
Caractere (C)(220)
Desc Tp Val
Máscara:
@!
Contexto:
Virtual (não existe no banco)
T2R_VALOR
Numérico (N)(15,2)
Valor
Máscara:
@E 999,999,999,999.99
Contexto:
Real
T2R_DTPVRR
Caractere (C)(220)
Desc Tp Val
Máscara:
@!
Contexto:
Real

SELECT de exemplo da tabela T2R

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
  T2R.T2R_FILIAL,
  T2R.T2R_ID,
  T2R.T2R_VERSAO,
  T2R.T2R_ESTABE,
  T2R.T2R_LOTACA,
  T2R.T2R_MATRIC,
  T2R.T2R_CODCAT,
  T2R.T2R_INDDEC
FROM T2R010 T2R
WHERE T2R.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.