Tabela GA2

ITENS DE PROCEDIMENTO PADRAO
10camposNome físicoGA2010(empresa 01)

Campos da tabela GA2

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

10
CampoDescrição
GA2_FILIAL
Caractere (C)(2)
Filial
GA2_CODPCT
Caractere (C)(6)
Cod Proc Pad
Máscara:
@!
Contexto:
Real
GA2_ORIPAC
Caractere (C)(1)
Orig Pacote
Máscara:
@!
Contexto:
Real
Validação:
Pertence("0124") .And. HS_VldA23() .And. HS_F3A23()
4 valores possíveis
  • 0Mat/Med
  • 1Procedimentos
  • 2Taxas/Diarias
  • 4Kit
GA2_CODCPC
Caractere (C)(15)
Componente
Máscara:
@!
Contexto:
Real
Consulta F3:
SB1
Validação:
HS_VldA23()
GA2_DESPCT
Caractere (C)(30)
Descr. Comp
Máscara:
@!
Contexto:
Virtual (não existe no banco)
GA2_QTDAPL
Numérico (N)(8,2)
Qtd Aplicada
Máscara:
@E 99,999.99
Contexto:
Real
GA2_MOVEST
Caractere (C)(1)
Movt Estoque
Máscara:
@!
Contexto:
Real
Validação:
Pertence("10")
2 valores possíveis
  • 1Sim
  • 0Nao
GA2_LOGARQ
Caractere (C)(40)
Log do Arq
GA2_GERSOL
Caractere (C)(1)
Gera solicit
Máscara:
@!
Contexto:
Real
Validação:
Pertence('012')
3 valores possíveis
  • 0Nao
  • 1Agendamento
  • 2Atendimento
GA2_SESSAO
Caractere (C)(2)
Nro. Sessao
Máscara:
99
Contexto:
Real

SELECT de exemplo da tabela GA2

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
  GA2.GA2_FILIAL,
  GA2.GA2_CODPCT,
  GA2.GA2_ORIPAC,
  GA2.GA2_CODCPC,
  GA2.GA2_QTDAPL,
  GA2.GA2_MOVEST,
  GA2.GA2_LOGARQ,
  GA2.GA2_GERSOL
FROM GA2010 GA2
WHERE GA2.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.