Tabela SOP

Grupo Empresas Centralizadas
10camposNome físicoSOP010(empresa 01)

Campos da tabela SOP

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

10
CampoDescrição
OP_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
OP_CDEPCZ
Caractere (C)(2)
Grupo
Máscara:
@!
Contexto:
Real
OP_EMPRCZ
Caractere (C)(12)
Empresa
Contexto:
Real
OP_UNIDCZ
Caractere (C)(12)
Unid Negocio
Contexto:
Real
OP_CDESCZ
Caractere (C)(12)
Filial
Máscara:
@!
Contexto:
Real
OP_CDEPGR
Caractere (C)(2)
Grupo
Máscara:
@!
Contexto:
Real
OP_EMPRGR
Caractere (C)(12)
Empresa
Contexto:
Real
OP_UNIDGR
Caractere (C)(12)
Unid Negocio
Contexto:
Real
OP_CDESGR
Caractere (C)(12)
Grupo Filial
Máscara:
@!
Contexto:
Real
OP_NRPYGR
Numérico (N)(2)
Prioridade
Máscara:
99
Contexto:
Real

SELECT de exemplo da tabela SOP

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
  SOP.OP_FILIAL,
  SOP.OP_CDEPCZ,
  SOP.OP_EMPRCZ,
  SOP.OP_UNIDCZ,
  SOP.OP_CDESCZ,
  SOP.OP_CDEPGR,
  SOP.OP_EMPRGR,
  SOP.OP_UNIDGR
FROM SOP010 SOP
WHERE SOP.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.