Tabela TD9

OCORRÊNCIA DO GEE
15camposNome físicoTD9010(empresa 01)

Campos da tabela TD9

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

15
CampoDescrição
TD9_FILIAL
Caractere (C)(2)
Filial
TD9_CODIGO
Caractere (C)(6)
Ocorrencia
Máscara:
@!
Contexto:
Real
TD9_DATA
Data (D)(8)
Data Ocor.
Máscara:
99/99/9999
Contexto:
Real
Validação:
NaoVazio()
TD9_HORA
Caractere (C)(5)
Hora Ocor.
Máscara:
99:99
Contexto:
Real
Validação:
NaoVazio() .and. NGVALHORA(M->TD9_HORA,.T.)
TD9_CODPRO
Caractere (C)(15)
Produto
Máscara:
@!
Contexto:
Real
Consulta F3:
TD2
Validação:
ExistCpo("TD2",M->TD9_CODPRO) .and. SG480VLPRO(.T.)
TD9_DESPRO
Caractere (C)(30)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
TD9_QUANTI
Numérico (N)(9,2)
Qtde. Prod.
Máscara:
@E 999,999.99
Contexto:
Real
Validação:
NaoVazio() .and. Positivo() .and. SG480VLPRO()
TD9_UNIPRO
Caractere (C)(2)
Unid. Medida
Máscara:
@!
Contexto:
Virtual (não existe no banco)
TD9_ESTRUT
Caractere (C)(3)
Estrutura
Máscara:
@!
TD9_CODNIV
Caractere (C)(3)
Nivel
Máscara:
@!
TD9_CODFON
Caractere (C)(10)
Fonte
Máscara:
@!
Contexto:
Real
TD9_DESFON
Caractere (C)(30)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
TD9_ORIGEM
Caractere (C)(1)
Origem
Máscara:
@!
Contexto:
Real
Validação:
Pertence("123")
3 valores possíveis
  • 1SGA
  • 2MNT
  • 3PCP
TD9_OP
Caractere (C)(14)
Ord Producao
Máscara:
@!
Contexto:
Real
TD9_ORDEM
Caractere (C)(6)
Ordem Serv.
Máscara:
@!
Contexto:
Real

SELECT de exemplo da tabela TD9

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
  TD9.TD9_FILIAL,
  TD9.TD9_CODIGO,
  TD9.TD9_DATA,
  TD9.TD9_HORA,
  TD9.TD9_CODPRO,
  TD9.TD9_QUANTI,
  TD9.TD9_ESTRUT,
  TD9.TD9_CODNIV
FROM TD9010 TD9
WHERE TD9.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.