Tabela C8W

Operadores Portuários
17camposNome físicoC8W010(empresa 01)

Campos da tabela C8W

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

17
CampoDescrição
C8W_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
C8W_ID
Caractere (C)(6)
ID
Máscara:
@!
Contexto:
Real
C8W_VERSAO
Caractere (C)(14)
Id. Ver. Reg
Máscara:
@!
Contexto:
Real
C8W_DTINI
Caractere (C)(6)
Per. Ini Vld
Máscara:
@R 99/9999
Contexto:
Real
Validação:
XFUNVldDt(,"C8W_DTFIN") .And. VLDEVTAB("C8W",4,FWFLDGET("C8W_CNPJOP"),M->C8W_DTINI,FWFLDGET("C8W_DTFIN"),,1)
C8W_DTFIN
Caractere (C)(6)
Per Fim Vld
Máscara:
@R 99/9999
Contexto:
Real
Validação:
XFUNVldDt("C8W_DTINI") .And. VLDEVTAB("C8W",4,FWFLDGET("C8W_CNPJOP"),FWFLDGET("C8W_DTINI"),M->C8W_DTFIN,,1)
C8W_CNPJOP
Caractere (C)(14)
CNPJ Op.Port
Máscara:
@R 99.999.999/9999-99
Contexto:
Real
Validação:
XFUNVldPJF(, 2, .F.) .and. VldEvTab("C8W",4,M->C8W_CNPJOP,FWFLDGET("C8W_DTINI"),FWFLDGET("C8W_DTFIN"),,1)
C8W_ALQRAT
Numérico (N)(1)
Aliq. Rat
Máscara:
@E 9
Contexto:
Real
C8W_FAP
Numérico (N)(6,4)
FAP
Máscara:
@E 9.9999
Contexto:
Real
C8W_ALQAJU
Numérico (N)(6,4)
Alq.Rat.Aju
Máscara:
@E 9.9999
Contexto:
Real
C8W_VERANT
Caractere (C)(14)
Ver Ant Reg
Máscara:
@!
Contexto:
Real
C8W_STATUS
Caractere (C)(1)
Status Reg.
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 012349")
6 valores possíveis
  • 0Reg.Valido
  • 1Reg.Invalido
  • 2Reg.Transmitido
  • 3Reg.Transmitido com inconsistencia
  • 4Reg.Transmitido valido
  • 9Em Processamento
C8W_PROTUL
Caractere (C)(44)
Nº do Recibo
Máscara:
@!
Contexto:
Real
C8W_PROTPN
Caractere (C)(44)
Nº Recibo A
Máscara:
@!
Contexto:
Real
C8W_EVENTO
Caractere (C)(1)
Id. Evento
Máscara:
@!
Contexto:
Real
Validação:
Pertence("IAE")
3 valores possíveis
  • IInclusao
  • AAlteracao
  • EExclusao
C8W_ATIVO
Caractere (C)(1)
Reg. Ativo?
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Sim
  • 2Nao
C8W_XMLID
Caractere (C)(36)
Id do XML.
Contexto:
Real
C8W_LOGOPE
Caractere (C)(1)
Log Operacao
Máscara:
@!
Contexto:
Real
6 valores possíveis
  • 1Incl.Integr
  • 2Incl.Manual
  • 3Incl.Integr+Alt.Integr
  • 4Incl.Integr+Alt.Manual
  • 5Incl.Manual+Alt.Integr
  • 6Incl.Manual+Alt.Manual

SELECT de exemplo da tabela C8W

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
  C8W.C8W_FILIAL,
  C8W.C8W_ID,
  C8W.C8W_VERSAO,
  C8W.C8W_DTINI,
  C8W.C8W_DTFIN,
  C8W.C8W_CNPJOP,
  C8W.C8W_ALQRAT,
  C8W.C8W_FAP
FROM C8W010 C8W
WHERE C8W.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.