Tabela SOQ

Objetos do MRP
20camposNome físicoSOQ010(empresa 01)

Campos da tabela SOQ

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

20
CampoDescrição
OQ_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
OQ_EMP
Caractere (C)(2)
Empresa
Máscara:
@!
Contexto:
Real
OQ_FILEMP
Caractere (C)(12)
Filial
Máscara:
@!
Contexto:
Real
OQ_DTOG
Data (D)(8)
Data objeto
Contexto:
Real
OQ_PERMRP
Caractere (C)(3)
Periodo
Máscara:
@!
Contexto:
Real
OQ_NRMRP
Caractere (C)(6)
Numero MRP
Máscara:
@!
Contexto:
Real
OQ_NRLV
Caractere (C)(2)
Nivel
Máscara:
99
Contexto:
Real
OQ_PROD
Caractere (C)(15)
Produto
Máscara:
@!
Contexto:
Real
OQ_NRRV
Caractere (C)(3)
Revisao
Máscara:
@!
Contexto:
Real
OQ_ALIAS
Caractere (C)(3)
Origem
Máscara:
@!
Contexto:
Real
OQ_NRRGAL
Numérico (N)(14)
Registro
Máscara:
@E 99,999,999,999,999
Contexto:
Real
OQ_TPRG
Caractere (C)(1)
Tipo
Máscara:
@!
Contexto:
Real
OQ_DOC
Caractere (C)(30)
Documento
Máscara:
@!
Contexto:
Real
OQ_DOCKEY
Caractere (C)(13)
Doc ligacao
Máscara:
@!
Contexto:
Real
OQ_DOCREV
Caractere (C)(3)
Rev docum
Máscara:
@!
Contexto:
Real
OQ_ITEM
Caractere (C)(2)
Item
Máscara:
@9
Contexto:
Real
OQ_QUANT
Numérico (N)(12,2)
Quantidade
Máscara:
@E 999,999,999.99
Contexto:
Real
OQ_OPC
Memo (M)(10)
Opcionais
Máscara:
@!
Contexto:
Real
OQ_OPCORD
Caractere (C)(200)
Opc ordem
Máscara:
@!
Contexto:
Real
OQ_PRODOG
Caractere (C)(30)
P Original
Máscara:
@!

SELECT de exemplo da tabela SOQ

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
  SOQ.OQ_FILIAL,
  SOQ.OQ_EMP,
  SOQ.OQ_FILEMP,
  SOQ.OQ_DTOG,
  SOQ.OQ_PERMRP,
  SOQ.OQ_NRMRP,
  SOQ.OQ_NRLV,
  SOQ.OQ_PROD
FROM SOQ010 SOQ
WHERE SOQ.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.