Tabela CWP

Tabela de Grupos
6camposNome físicoCWP010(empresa 01)

Campos da tabela CWP

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

CampoDescrição
CWP_FILIAL
Caractere (C)(2)
Filial
CWP_MODREG
Caractere (C)(1)
Modo do Reg
Máscara:
@!
Contexto:
Real
3 valores possíveis
  • 1Desagrupados
  • 2Agrupados
  • 3Individual
CWP_GRUPO
Caractere (C)(3)
Grupo Lancto
Máscara:
@!
Contexto:
Real
CWP_DESGR
Caractere (C)(40)
Desc. Gr.Lt
Máscara:
@!
Contexto:
Real
CWP_STATUS
Caractere (C)(1)
Status
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 1Ativo
  • 2Inativo
CWP_SUMARI
Caractere (C)(1)
Aglutinador
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 1Soma por Conta
  • 2Nao soma por conta

SELECT de exemplo da tabela CWP

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
  CWP.CWP_FILIAL,
  CWP.CWP_MODREG,
  CWP.CWP_GRUPO,
  CWP.CWP_DESGR,
  CWP.CWP_STATUS,
  CWP.CWP_SUMARI
FROM CWP010 CWP
WHERE CWP.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.