Tabela AG5

LISTA DE PRESENÇA – EVENTOS
12camposNome físicoAG5010(empresa 01)

Campos da tabela AG5

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

12
CampoDescrição
AG5_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
AG5_PRESE
Caractere (C)(1)
Presente
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 2Nao
AG5_CODCO
Caractere (C)(6)
Cod.Contato
Máscara:
@!
Contexto:
Real
Consulta F3:
SU5
Validação:
TkEnt2EvCont(M->AG5_CODCO)
AG5_DESCCO
Caractere (C)(40)
Desc.Contato
Máscara:
@!
Contexto:
Virtual (não existe no banco)
AG5_ENTID
Caractere (C)(3)
Entidade
Máscara:
@!
Contexto:
Real
AG5_CODEN
Caractere (C)(25)
Cod.Entidade
Máscara:
@!
Contexto:
Real
AG5_DESCEN
Caractere (C)(40)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
AG5_DTRES
Data (D)(8)
Dt.Inclusao
Máscara:
@D
Contexto:
Real
AG5_STRES
Caractere (C)(1)
Status
Máscara:
@!
Contexto:
Real
Validação:
Tk340Status(N)
2 valores possíveis
  • 1Confirmada
  • 2Cancelada
AG5_LISTA
Caractere (C)(26)
Cod.Lista
Máscara:
@!
Contexto:
Real
AG5_EVENT
Caractere (C)(6)
Cod.Evento
Máscara:
@!
Contexto:
Real
AG5_GRADE
Caractere (C)(20)
Cod.Grade
Máscara:
@!
Contexto:
Real

SELECT de exemplo da tabela AG5

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
  AG5.AG5_FILIAL,
  AG5.AG5_PRESE,
  AG5.AG5_CODCO,
  AG5.AG5_ENTID,
  AG5.AG5_CODEN,
  AG5.AG5_DTRES,
  AG5.AG5_STRES,
  AG5.AG5_LISTA
FROM AG5010 AG5
WHERE AG5.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.