Tabela TD8

HIST. FONTES GER. DE GASES
10camposNome físicoTD8010(empresa 01)

Campos da tabela TD8

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

10
CampoDescrição
TD8_FILIAL
Caractere (C)(2)
Filial
TD8_CODPRO
Caractere (C)(15)
Produto
Máscara:
@!
Contexto:
Real
Consulta F3:
SB1
Validação:
ExistCpo("SB1",M->TD8_CODPRO)
TD8_ESTRUT
Caractere (C)(3)
Estrutura
Máscara:
@!
Contexto:
Real
TD8_CODNIV
Caractere (C)(3)
Nivel
Máscara:
@!
Contexto:
Real
TD8_CODFON
Caractere (C)(10)
Fonte
Máscara:
@!
Contexto:
Real
Consulta F3:
TD1
Validação:
ExistCpo("TD1",M->TD8_CODFON)
TD8_DESFON
Caractere (C)(30)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
TD8_PORCEN
Numérico (N)(5,1)
% PCP/MNT
Máscara:
@E 999.9
Contexto:
Real
TD8_DATA
Data (D)(8)
Data Alter.
Máscara:
99/99/9999
Contexto:
Real
TD8_HORA
Caractere (C)(8)
Hora Alter.
Máscara:
99:99:99
Contexto:
Real
TD8_OPERAC
Caractere (C)(1)
Operacao
Máscara:
@!
Contexto:
Real
Validação:
Pertence("123")
3 valores possíveis
  • 1Inclusao
  • 2Alteracao
  • 3Exclusao

SELECT de exemplo da tabela TD8

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
  TD8.TD8_FILIAL,
  TD8.TD8_CODPRO,
  TD8.TD8_ESTRUT,
  TD8.TD8_CODNIV,
  TD8.TD8_CODFON,
  TD8.TD8_PORCEN,
  TD8.TD8_DATA,
  TD8.TD8_HORA
FROM TD8010 TD8
WHERE TD8.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.