Tabela CYQ

Ordem de Produção
67camposNome físicoCYQ010(empresa 01)

Campos da tabela CYQ

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

67
CampoDescrição
CYQ_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
CYQ_NRORPO
Caractere (C)(20)
Ord Prod
Contexto:
Real
CYQ_CDAC
Caractere (C)(15)
Item Fabric
Máscara:
@!
Contexto:
Real
CYQ_DSAC
Caractere (C)(60)
Desc Item
Contexto:
Virtual (não existe no banco)
CYQ_TPORPO
Caractere (C)(1)
Tipo Ordem
Contexto:
Real
9 valores possíveis
  • 1Interna
  • 2Externa
  • 3Interna/Externa
  • 4Retrabalho
  • 5Conserto
  • 6Manutencao
  • 7Ativo Fixo
  • 8Ferramentaria
  • 9Reaproveitamento
CYQ_LGACCP
Lógico (L)(1)
Coproduto
Contexto:
Real
CYQ_QTOR
Numérico (N)(12,4)
Quantidade
Máscara:
@E 9,999,999.9999
Contexto:
Real
CYQ_QTORMI
Numérico (N)(12,4)
Quant Min
Máscara:
@E 9,999,999.9999
Contexto:
Real
CYQ_QTORMX
Numérico (N)(12,4)
Quant Max
Máscara:
@E 9,999,999.9999
Contexto:
Real
CYQ_QTORRP
Numérico (N)(12,4)
Quant Rep
Máscara:
@E 9,999,999.9999
Contexto:
Real
CYQ_QTORAP
Numérico (N)(12,4)
Quant Aprov
Máscara:
@E 9,999,999.9999
Contexto:
Real
CYQ_QTORRT
Numérico (N)(12,4)
Quant Retrab
Máscara:
@E 9,999,999.9999
Contexto:
Real
CYQ_QTORRF
Numérico (N)(12,4)
Quant Refug
Máscara:
@E 9,999,999.9999
Contexto:
Real
CYQ_CDACAX
Caractere (C)(15)
Cod Auxiliar
Máscara:
@!
Contexto:
Real
CYQ_LGSTOR
Lógico (L)(1)
Rep Fecha OP
Contexto:
Real
CYQ_CDUN
Caractere (C)(2)
Un Medida
Contexto:
Real
CYQ_CDPDOR
Caractere (C)(12)
Pedido OP
Máscara:
@!
Contexto:
Real
CYQ_DTEDAT
Data (D)(8)
Fim OP CP
Contexto:
Real
CYQ_TPST
Caractere (C)(1)
Estado
Contexto:
Real
5 valores possíveis
  • 1Nao Iniciada
  • 2Liberada PCP
  • 3Iniciada
  • 4Suspensa
  • 5Finalizada
CYQ_TPSTOR
Caractere (C)(1)
Estado Ordem
Contexto:
Real
8 valores possíveis
  • 1Nao Iniciada
  • 2Liberada
  • 3Alocada
  • 4Separada
  • 5Requisitada
  • 6Iniciada
  • 7Finalizada
  • 8Terminada
CYQ_CDLIPO
Caractere (C)(3)
Linha Prod
Máscara:
@!
Contexto:
Real
CYQ_DSLI
Caractere (C)(40)
Desc Linha
Máscara:
@!
Contexto:
Real
CYQ_CDRE
Caractere (C)(20)
Referencia
Máscara:
@!
Contexto:
Real
CYQ_TPRPOR
Caractere (C)(1)
Reporta Prod
Máscara:
9
Contexto:
Real
2 valores possíveis
  • 1Ordem
  • 2Operacao
CYQ_TPAL
Caractere (C)(1)
Alocada
Contexto:
Real
3 valores possíveis
  • 1Total
  • 2Parcial
  • 3Proporcional
CYQ_CDES
Caractere (C)(2)
Estab
Contexto:
Real
CYQ_CDDP
Caractere (C)(2)
Deposito
Máscara:
@!
Contexto:
Real
CYQ_CDUSPL
Caractere (C)(12)
Planejador
Máscara:
@!
Contexto:
Real
CYQ_NMUSPL
Caractere (C)(40)
Nome
Máscara:
@!
Contexto:
Real
CYQ_DTBGAT
Data (D)(8)
Inicio Ordem
Contexto:
Real
CYQ_DTLBOR
Data (D)(8)
Dt Liberacao
Contexto:
Real
CYQ_QTTELB
Numérico (N)(10)
Segs Liber
Máscara:
9999999999
Contexto:
Real
CYQ_DTBGOR
Data (D)(8)
Inicio Ordem
Contexto:
Real
CYQ_QTORBG
Numérico (N)(5)
Segs Inic OP
Máscara:
@E 99,999
Contexto:
Real
CYQ_HRBGOR
Caractere (C)(8)
Hra Inic Ord
Máscara:
99:99:99
Contexto:
Real
CYQ_DTEDOR
Data (D)(8)
Fim Ordem
Contexto:
Real
CYQ_QTORED
Numérico (N)(5)
Segs Fim OP
Máscara:
@E 99,999
Contexto:
Real
CYQ_HREDOR
Caractere (C)(8)
Hra Fim Ord
Máscara:
99:99:99
Contexto:
Real
CYQ_DTIMC
Data (D)(8)
Data IMC
Contexto:
Real
CYQ_HRIMC
Caractere (C)(8)
Hora IMC
Máscara:
99:99:99
Contexto:
Real
CYQ_DTFMT
Data (D)(8)
Data FMT
Contexto:
Real
CYQ_HRFMT
Caractere (C)(8)
Hora FMT
Máscara:
99:99:99
Contexto:
Real
CYQ_NMSIFB
Caractere (C)(30)
Cliente
Máscara:
@!
Contexto:
Real
CYQ_CDGRFB
Caractere (C)(2)
Grp Cliente
Máscara:
@!
Contexto:
Real
CYQ_CDPD
Caractere (C)(12)
Ped Cliente
Máscara:
@!
Contexto:
Real
CYQ_NRULSQ
Caractere (C)(5)
Ultima Seq
Máscara:
99999
Contexto:
Real
CYQ_NRSQ
Caractere (C)(5)
Seq Pedido
Máscara:
99999
Contexto:
Real
CYQ_CDLO
Caractere (C)(10)
Lote/Serie
Contexto:
Real
CYQ_CDTBMT
Caractere (C)(20)
Proc Ord Com
Máscara:
@!
Contexto:
Real
CYQ_CDRT
Caractere (C)(20)
Proc Ord Rot
Máscara:
@!
Contexto:
Real
CYQ_TPMPC
Caractere (C)(1)
Calc Cust M
Contexto:
Real
2 valores possíveis
  • 1Proporcional
  • 2Total
CYQ_TPMOD
Caractere (C)(1)
Reporta MOB
Contexto:
Real
2 valores possíveis
  • 1Real
  • 2Padrao
CYQ_TPMBCS
Caractere (C)(1)
Cus Prop MOB
Contexto:
Real
3 valores possíveis
  • 1Proporcional Qtd da Ordem
  • 2Proporcional Qrde Inicial
  • 3Proporcional Qtd Operacao
CYQ_TPMPCS
Caractere (C)(1)
Cus Prop MAT
Contexto:
Real
3 valores possíveis
  • 1Proporcional Qrd da Ordem
  • 2Proporcional Qtd Inicial
  • 3Proporcional Qtd Operacao
CYQ_TPGFCS
Caractere (C)(1)
Cus Prop GGF
Contexto:
Real
3 valores possíveis
  • 1Proporcional Qtd da Ordem
  • 2Proporcional Qtde Inicial
  • 3Proporcional Qtd Operacao
CYQ_TPMODC
Caractere (C)(1)
Calc Cus MOB
Contexto:
Real
2 valores possíveis
  • 1Proporcional
  • 2Total
CYQ_TPGGFC
Caractere (C)(1)
Calc Cus GGF
Contexto:
Real
2 valores possíveis
  • 1Proporcional
  • 2Total
CYQ_TPGGF
Caractere (C)(1)
Reporta GGF
Contexto:
Real
2 valores possíveis
  • 1Real
  • 2Padrao
CYQ_CDACRF
Caractere (C)(15)
Item Refugo
Máscara:
@!
Contexto:
Real
CYQ_VLRFAC
Numérico (N)(10,5)
Rel Ref Item
Máscara:
@E 9,999.99999
Contexto:
Real
CYQ_CDUNNG
Caractere (C)(3)
Unid Negoc
Máscara:
@!
Contexto:
Real
CYQ_CDGE
Caractere (C)(10)
Grup Estoque
Máscara:
@!
Contexto:
Real
CYQ_DSGE
Caractere (C)(60)
Descricao GE
Contexto:
Real
CYQ_CDFA
Caractere (C)(10)
Familia
Máscara:
@!
Contexto:
Real
CYQ_DSFA
Caractere (C)(60)
Desc Familia
Contexto:
Real
CYQ_VLPSLQ
Numérico (N)(14,4)
Peso Liquido
Máscara:
@E 999,999,999.9999
Contexto:
Real
CYQ_VLPSBR
Numérico (N)(14,4)
Peso Bruto
Máscara:
@E 999,999,999.9999
Contexto:
Real

SELECT de exemplo da tabela CYQ

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
  CYQ.CYQ_FILIAL,
  CYQ.CYQ_NRORPO,
  CYQ.CYQ_CDAC,
  CYQ.CYQ_TPORPO,
  CYQ.CYQ_LGACCP,
  CYQ.CYQ_QTOR,
  CYQ.CYQ_QTORMI,
  CYQ.CYQ_QTORMX
FROM CYQ010 CYQ
WHERE CYQ.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.