Tabela T9S

Reg.Ident.Estab.Comerc.Produc
13camposNome físicoT9S010(empresa 01)

Campos da tabela T9S

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

13
CampoDescrição
T9S_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
T9S_ID
Caractere (C)(36)
ID
Máscara:
@!
Contexto:
Real
T9S_VERSAO
Caractere (C)(14)
Id Ver Reg
Máscara:
@!
Contexto:
Real
T9S_CODFIL
Caractere (C)(8)
Cod Filial
Máscara:
@!
Contexto:
Real
Validação:
xFunVldCmp("C1E",5)
T9S_DESFIL
Caractere (C)(220)
Desc. Filial
Máscara:
@!
Contexto:
Virtual (não existe no banco)
T9S_TPINSC
Caractere (C)(1)
Tp Insc
Contexto:
Real
Validação:
Pertence(" 12")
2 valores possíveis
  • 1CNPJ
  • 4CNO
T9S_NRINSC
Caractere (C)(15)
Nr. Insc
Máscara:
@!
Contexto:
Real
T9S_VERANT
Caractere (C)(14)
Ver Ant Reg
Máscara:
@!
Contexto:
Real
T9S_STATUS
Caractere (C)(1)
Status Reg.
Máscara:
@!
Contexto:
Real
Validação:
pertence(" 012349")
T9S_PROTUL
Caractere (C)(44)
Ult. Prot
Máscara:
@!
Contexto:
Real
T9S_PROTPN
Caractere (C)(44)
Pnlt. Prot.
Máscara:
@!
Contexto:
Real
T9S_EVENTO
Caractere (C)(1)
Id. Evento
Máscara:
@!
Contexto:
Real
Validação:
pertence("IAE")
T9S_ATIVO
Caractere (C)(1)
Reg. Ativo?
Máscara:
@!
Contexto:
Real
Validação:
pertence("12")

SELECT de exemplo da tabela T9S

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
  T9S.T9S_FILIAL,
  T9S.T9S_ID,
  T9S.T9S_VERSAO,
  T9S.T9S_CODFIL,
  T9S.T9S_TPINSC,
  T9S.T9S_NRINSC,
  T9S.T9S_VERANT,
  T9S.T9S_STATUS
FROM T9S010 T9S
WHERE T9S.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.