Tabela CW7

Informações de Processos
17camposNome físicoCW7010(empresa 01)

Campos da tabela CW7

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

17
CampoDescrição
CW7_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
CW7_ID
Caractere (C)(36)
ID
Contexto:
Real
CW7_VERSAO
Caractere (C)(14)
Id Ver Reg
Máscara:
@!
Contexto:
Real
CW7_IDCODP
Caractere (C)(36)
Id Cod Part
Contexto:
Real
CW7_CODFAT
Caractere (C)(10)
Num Fatura
Máscara:
@!
Contexto:
Real
Validação:
xFunVldCmp("LEM",4)
CW7_PREFIX
Caractere (C)(5)
Prefixo
Contexto:
Real
CW7_IDCODF
Caractere (C)(36)
ID Cod Fat
Contexto:
Real
CW7_CHVNF
Caractere (C)(15)
Cod Docto
Máscara:
@!
Contexto:
Real
Consulta F3:
C20E
Validação:
xFunVldCmp("C20",4)
CW7_SERIE
Caractere (C)(20)
Serie
Máscara:
@!
Contexto:
Real
CW7_SUBSER
Caractere (C)(20)
Sub-Serie
Máscara:
@!
Contexto:
Real
CW7_NUMDOC
Caractere (C)(60)
Num Doc Fisc
Máscara:
@!
Contexto:
Real
CW7_IDPROC
Caractere (C)(6)
ID Processo
Máscara:
@!
Contexto:
Real
Consulta F3:
T9V
Validação:
xFunVldCmp("T9V",1)
CW7_TPPROC
Caractere (C)(1)
Tipo Proc
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12")
2 valores possíveis
  • 1Administrativo
  • 2Judicial
CW7_NUMPRO
Caractere (C)(21)
Num Proc
Máscara:
@!
Contexto:
Real
CW7_CODSUS
Caractere (C)(14)
Cod Susp
Máscara:
99999999999999
Contexto:
Real
Consulta F3:
T9X
Validação:
xFunVldCmp("T9X",2)
CW7_IDSUSP
Caractere (C)(34)
ID Cod Susp
Contexto:
Real
CW7_VLNRET
Numérico (N)(16,2)
Vlr Nao Ret
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real

SELECT de exemplo da tabela CW7

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
  CW7.CW7_FILIAL,
  CW7.CW7_ID,
  CW7.CW7_VERSAO,
  CW7.CW7_IDCODP,
  CW7.CW7_CODFAT,
  CW7.CW7_PREFIX,
  CW7.CW7_IDCODF,
  CW7.CW7_CHVNF
FROM CW7010 CW7
WHERE CW7.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.