Tabela AY5

Características x Produtos
11camposNome físicoAY5010(empresa 01)

Campos da tabela AY5

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

11
CampoDescrição
AY5_FILIAL
Caractere (C)(2)
Filial
AY5_CODIGO
Caractere (C)(6)
Codigo
Máscara:
@!
Contexto:
Real
Validação:
ExistCpo("AY3")
AY5_DESCRI
Caractere (C)(30)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
AY5_SEQ
Caractere (C)(6)
Sequencia
Máscara:
@!
Contexto:
Real
AY5_VALOR
Caractere (C)(6)
Valor
Máscara:
@!
Contexto:
Virtual (não existe no banco)
AY5_CODPRO
Caractere (C)(30)
Produto
Máscara:
@!
Contexto:
Real
Validação:
ExistCpo("SB1")
AY5_REFGRD
Caractere (C)(6)
Ref.Grade
Máscara:
@!
Contexto:
Real
AY5_LINGRD
Caractere (C)(6)
Linha Grade
Máscara:
@!
Contexto:
Real
AY5_STATUS
Caractere (C)(1)
Status
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 1Ativo
  • 2Inativo
AY5_ENVECO
Caractere (C)(1)
Status eComm
Máscara:
@!
Contexto:
Real
3 valores possíveis
  • 0Nao_Ok
  • 1Ok
  • 2Pendente
AY5_OPER
Caractere (C)(1)
Tp OPeracao
Máscara:
@!
Contexto:
Real
3 valores possíveis
  • 1Incluir
  • 2Alterar
  • 3Excluir

SELECT de exemplo da tabela AY5

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
  AY5.AY5_FILIAL,
  AY5.AY5_CODIGO,
  AY5.AY5_SEQ,
  AY5.AY5_CODPRO,
  AY5.AY5_REFGRD,
  AY5.AY5_LINGRD,
  AY5.AY5_STATUS,
  AY5.AY5_ENVECO
FROM AY5010 AY5
WHERE AY5.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.