Tabela CXJ

Amar Ped x Med x Pla x Part
11camposNome físicoCXJ010(empresa 01)

Campos da tabela CXJ

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

11
CampoDescrição
CXJ_FILIAL
Caractere (C)(2)
FILIAL
CXJ_NUMPED
Caractere (C)(6)
Nr. Pedido
Máscara:
@!
Contexto:
Real
CXJ_ITEMPE
Caractere (C)(4)
Item Ped.
Máscara:
@!
Contexto:
Real
CXJ_CONTRA
Caractere (C)(15)
Nr. Contrato
Máscara:
@!
Contexto:
Real
CXJ_REVGER
Caractere (C)(3)
Rev. Gerador
Máscara:
@!
Contexto:
Real
CXJ_NUMMED
Caractere (C)(6)
Nr. Medicao
Máscara:
@!
Contexto:
Real
CXJ_NUMPLA
Caractere (C)(6)
Nr. Planilha
Máscara:
@!
Contexto:
Real
CXJ_ITEMPL
Caractere (C)(3)
Item da Plan
Máscara:
@!
Contexto:
Real
CXJ_ID
Caractere (C)(2)
ID Pedido
Máscara:
@!
Contexto:
Real
CXJ_PRTENV
Caractere (C)(6)
Parte Envolv
Máscara:
@!
Contexto:
Real
CXJ_NUMTIT
Caractere (C)(9)
No. Titulo
Máscara:
@!
Contexto:
Real

SELECT de exemplo da tabela CXJ

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
  CXJ.CXJ_FILIAL,
  CXJ.CXJ_NUMPED,
  CXJ.CXJ_ITEMPE,
  CXJ.CXJ_CONTRA,
  CXJ.CXJ_REVGER,
  CXJ.CXJ_NUMMED,
  CXJ.CXJ_NUMPLA,
  CXJ.CXJ_ITEMPL
FROM CXJ010 CXJ
WHERE CXJ.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.