Tabela QL0

PSA – Amostras Iniciais
41camposNome físicoQL0010(empresa 01)

Campos da tabela QL0

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

41
CampoDescrição
QL0_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
QL0_PECA
Caractere (C)(40)
No. da Peca
Máscara:
@!
Contexto:
Real
Consulta F3:
QPP
Validação:
NaoVazio()
QL0_REV
Caractere (C)(2)
Revisao
Contexto:
Real
Validação:
PPAPVld("QL0",M->QL0_PECA+M->QL0_REV)
QL0_REVINV
Caractere (C)(2)
Rev Invertid
Contexto:
Real
QL0_RAINUM
Caractere (C)(15)
RAI No.
Contexto:
Real
QL0_OCM
Caractere (C)(15)
OCM
Contexto:
Real
QL0_DTOCM
Data (D)(8)
Data OCM
Contexto:
Real
QL0_NOMARQ
Caractere (C)(20)
Nom Arq Def
Contexto:
Real
QL0_INDARQ
Caractere (C)(15)
Indice
Contexto:
Real
QL0_DTARQ
Data (D)(8)
Dt Arq Def
Contexto:
Real
QL0_SEGREG
Caractere (C)(1)
Seg e ou Reg
Contexto:
Real
3 valores possíveis
  • 1Sim
  • 2Nao
  • 3NA
QL0_NUMPED
Caractere (C)(20)
Num Ped Comp
Contexto:
Real
QL0_MATREF
Caractere (C)(20)
Mat Ref Coml
Contexto:
Real
QL0_FORNEC
Caractere (C)(20)
Forncedor
Contexto:
Real
QL0_CDCNOR
Caractere (C)(20)
Norma CDC
Contexto:
Real
QL0_DTCDC
Data (D)(8)
Dt Norma CDC
Contexto:
Real
QL0_ESPPSA
Caractere (C)(20)
Esp Tec. PSA
Contexto:
Real
QL0_DTPSA
Data (D)(8)
Dt Esp. PSA
Contexto:
Real
QL0_PADRAO
Caractere (C)(20)
Padr. Aspect
Contexto:
Real
QL0_DTPADR
Data (D)(8)
Dt Padrao
Contexto:
Real
QL0_MOTENV
Caractere (C)(2)
Mot. Envio
Contexto:
Real
QL0_QTDE
Caractere (C)(10)
Qtde Enviada
Contexto:
Real
QL0_REGENT
Caractere (C)(15)
No. Reg Entr
Contexto:
Real
QL0_ETIQUE
Caractere (C)(15)
No Eti GALIA
Contexto:
Real
QL0_MEIOFA
Caractere (C)(1)
Meio Fabric.
Contexto:
Real
QL0_DTEQUI
Data (D)(8)
Dt Equip Def
Contexto:
Real
QL0_NMOLDE
Caractere (C)(15)
No. Molde
Contexto:
Real
QL0_INDMOD
Caractere (C)(15)
Ind. Mod. Eq
Contexto:
Real
QL0_NAPRIN
Caractere (C)(15)
No Apr Indic
Contexto:
Real
QL0_EXPLIC
Caractere (C)(200)
Explicacoes
Contexto:
Real
QL0_ACONSE
Caractere (C)(1)
Acond. Serie
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 2Nao
QL0_RELDIM
Caractere (C)(1)
Rel Dim.
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 2Nao
QL0_RELMAT
Caractere (C)(1)
Rel Mat Prim
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 2Nao
QL0_RELESP
Caractere (C)(1)
Rel Especifi
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 2Nao
QL0_RELESM
Caractere (C)(1)
Rel Esp Mat
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 2Nao
QL0_COPIAP
Caractere (C)(1)
Copia PV
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 2Nao
QL0_PLACA
Caractere (C)(1)
Placa Amostr
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 2Nao
QL0_PVACEI
Caractere (C)(1)
PV Aceitac.
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 2Nao
QL0_ESTADO
Caractere (C)(10)
Est Utiliz.
Contexto:
Real
QL0_APROVA
Caractere (C)(25)
Nome Aprov.
Contexto:
Real
QL0_DTAPRO
Data (D)(8)
Dt Aprovacao
Contexto:
Real

SELECT de exemplo da tabela QL0

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
  QL0.QL0_FILIAL,
  QL0.QL0_PECA,
  QL0.QL0_REV,
  QL0.QL0_REVINV,
  QL0.QL0_RAINUM,
  QL0.QL0_OCM,
  QL0.QL0_DTOCM,
  QL0.QL0_NOMARQ
FROM QL0010 QL0
WHERE QL0.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.