Tabela T9D

Exclusão de Eventos
18camposNome físicoT9D010(empresa 01)

Campos da tabela T9D

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

18
CampoDescrição
T9D_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
T9D_ID
Caractere (C)(36)
ID
Contexto:
Real
T9D_VERSAO
Caractere (C)(14)
Id Ver Reg
Máscara:
@!
Contexto:
Real
T9D_TPEVEN
Caractere (C)(6)
Tp Evento
Máscara:
@!
Contexto:
Virtual (não existe no banco)
Consulta F3:
T9B
Validação:
xFunVldCmp("T9B",2,,,,.T.) .and. TAFEvt9000(M->T9D_TPEVEN)
Modo de edição (When):
Iif(ALTERA,.F.,.T.)
T9D_DTPEVE
Caractere (C)(220)
Des. Evento
Máscara:
@!
Contexto:
Virtual (não existe no banco)
T9D_IDTPEV
Caractere (C)(36)
ID Tipo Even
Contexto:
Real
Validação:
xFunVldUni("T9D",2,M->T9D_IDTPEV+FWFldGet("T9D_NRRECI")+"1")
T9D_NRRECI
Caractere (C)(52)
Nr. Recibo
Máscara:
@!
Contexto:
Real
Validação:
xFunVldUni("T9D",2,FWFldGet("T9D_IDTPEV")+M->T9D_NRRECI+"1")
T9D_PERAPU
Caractere (C)(6)
Per.Apuracao
Máscara:
@R 99/9999
Contexto:
Real
T9D_PERAPR
Data (D)(8)
Per Apuracao
Contexto:
Real
T9D_VERANT
Caractere (C)(14)
Ver Ant Reg
Máscara:
@!
Contexto:
Real
T9D_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
T9D_PROTUL
Caractere (C)(52)
Util. Prot.
Máscara:
@!
Contexto:
Real
T9D_PROTPN
Caractere (C)(52)
Pnlt. Prot.
Máscara:
@!
Contexto:
Real
T9D_EVENTO
Caractere (C)(1)
Id. Evento
Máscara:
@!
Contexto:
Real
Validação:
pertence("IAE")
3 valores possíveis
  • IInclusao
  • AAlteracao
  • EExclusao
T9D_ATIVO
Caractere (C)(1)
Reg. Ativo?
Máscara:
@!
Contexto:
Real
Validação:
pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
T9D_REGREF
Numérico (N)(12)
Registro Ref
Máscara:
@999999999999
Contexto:
Real
T9D_PROCID
Caractere (C)(6)
Proc ID
Máscara:
@!
Contexto:
Real
T9D_XMLID
Caractere (C)(36)
Id do XML.
Contexto:
Real

SELECT de exemplo da tabela T9D

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
  T9D.T9D_FILIAL,
  T9D.T9D_ID,
  T9D.T9D_VERSAO,
  T9D.T9D_IDTPEV,
  T9D.T9D_NRRECI,
  T9D.T9D_PERAPU,
  T9D.T9D_PERAPR,
  T9D.T9D_VERANT
FROM T9D010 T9D
WHERE T9D.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.