Manutenções Realizadas
A tabela QME faz parte do sistema ERP Protheus da TOTVS e é utilizada para manutenções realizadas.
Ela pertence ao dicionário de dados do Protheus (SX2) e armazena informações essenciais utilizadas em processos como cadastros, movimentações e integrações do sistema.
A tabela QME possui diversos campos (SX3), cada um com regras específicas como tipo, tamanho e validações, além de índices (SIX) que otimizam a performance das consultas.
Nesta página você pode consultar a estrutura completa da tabela QME, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | QME |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | QME990 |
| X2_NOME | Manutenções Realizadas |
| X2_NOMESPA | Mantenimientos Realizados |
| X2_NOMEENG | Maintenances Performed |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | QME_FILIAL+QME_INSTR+QME_REVINS+DTOS(QME_DATA) |
| X2_PYME | S |
| X2_MODULO | 22 |
| X2_DISPLAY | - |
| X2_SYSOBJ | - |
| X2_USROBJ | - |
| X2_POSLGT | 1 |
| X2_CLOB | 2 |
| X2_AUTREC | 2 |
| X2_TAMFIL | 2 |
| X2_TAMUN | 0 |
| X2_TAMEMP | 0 |
| X2_STAMP | 2 |
| X2_INSDT | 2 |
| D_E_L_E_T_ | - |
| R_E_C_N_O_ | 7579 |
| R_E_C_D_E_L_ | 0 |
| X3_ARQUIVO | X3_ORDEM | X3_CAMPO | X3_TIPO | X3_TAMANHO | X3_DECIMAL | X3_TITULO | X3_TITSPA | X3_TITENG | X3_DESCRIC | X3_DESCSPA | X3_DESCENG | X3_PICTURE | X3_VALID | X3_USADO | X3_RELACAO | X3_F3 | X3_NIVEL | X3_RESERV | X3_CHECK | X3_TRIGGER | X3_PROPRI | X3_BROWSE | X3_VISUAL | X3_CONTEXT | X3_OBRIGAT | X3_VLDUSER | X3_CBOX | X3_CBOXSPA | X3_CBOXENG | X3_PICTVAR | X3_WHEN | X3_INIBRW | X3_GRPSXG | X3_FOLDER | X3_PYME | X3_CONDSQL | X3_CHKSQL | X3_IDXSRV | X3_ORTOGRA | X3_IDXFLD | X3_TELA | X3_PICBRV | X3_AGRUP | X3_POSLGT | X3_MODAL | X3_CHKSUM | X3_ADDSUM | D_E_L_E_T_ | R_E_C_N_O_ | R_E_C_D_E_L_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| QME | 01 | QME_FILIAL | C | 2 | 0 | Filial | Sucursal | Branch | Filial do Sistema | Sucursal del Sistema | System Branch | - | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | N | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 119868 | 0 |
| QME | 02 | QME_INSTR | C | 16 | 0 | Instrumento | Instrumento | Instrument | Codigo do Instrumento | Codigo del Instrumento | Instrument Code | @! | QMT170Chv() .and. ExistCpo("QM2",M->QME_INSTR) .and. QMT170VlIns(M->QME_INSTR) | x x x x x x x x x x x x x x x xx | - | INS | 1 | xx | - | S | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 119869 | 0 |
| QME | 03 | QME_REVINS | C | 2 | 0 | Rev.Instr. | Rev. Instr. | Instrum.Rev. | Revisao do Instrumento | Revision del Instrumento | Instrument Revision | @! | QMT170Chv() | x x x x x x x x x x x x x x x xx | - | - | 1 | xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 119870 | 0 |
| QME | 04 | QME_DATA | D | 8 | 0 | Data | Fecha | Date | Data da Manutencao | Fecha del Mantenimiento | Maintenance Date | - | QMT170Chv() .and. !(M->QME_DATA > dDataBase) | x x x x x x x x x x x x x x x x | dDataBase | - | 1 | x xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 119871 | 0 |
| QME | 05 | QME_RESP | C | 27 | 0 | Responsavel | Responsable | Responsible | Responsavel | Responsable | Responsible | @! | QA_CHKMAT(cFilAnt,M->QME_RESP) | x x x x x x x x x x x x x x x x | - | QIE | 1 | xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 119872 | 0 |
| QME | 06 | QME_QTDHOR | C | 5 | 0 | Horas Manut. | Horas Manten | Mainten.Hour | Horas de Manutencao | Horas de Mantenimiento | Maintenance Hours | 99:99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 119873 | 0 |
| QME | 07 | QME_LABOR | C | 16 | 0 | Lab.Externo | Lab. Externo | External Lab | Laboratorio Externo | Laboratorio Externo | External Laboratory | @! | ExistCpo("QMO",M->QME_LABOR) | x x x x x x x x x x x x x x x x | - | QMO | 1 | xx | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 119874 | 0 |
| QME | 08 | QME_NRCERT | C | 9 | 0 | Nro.Certif. | Num. Certif. | Cert.Number | Numero do Certificado | Numero del Certificado | Certificate Number | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 119875 | 0 |
| QME | 09 | QME_CHAVE | C | 8 | 0 | Cod. Ligacao | Vinculo | Link Code | Cod. Ligacao c/ arqs dep. | Cod. Vinculo c/ arch txt | Link Code w/ Depen. Files | 99999999 | - | x x x x x x x x x xx xx x x x x x x x x | - | - | 1 | x | - | - | - | N | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 119876 | 0 |
| QME | 10 | QME_FILRES | C | 2 | 0 | Filial Resp | Sucur. Resp. | Resp. Branch | Filial Responsavel | Sucursal del Responsable | Resp. branch | - | - | x x x x x x x x x x x x x x x | - | - | 1 | xx x | - | - | - | N | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 119877 | 0 |
| INDICE | ORDEM | CHAVE | DESCRICAO | DESCSPA | DESCENG | PROPRI | F3 | NICKNAME | SHOWPESQ | IX_VIRTUAL | IX_VIRCUST | D_E_L_E_T_ | R_E_C_N_O_ | R_E_C_D_E_L_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| QME | 1 | QME_FILIAL+QME_INSTR+QME_REVINS+dtos(QME_DATA) | Instrumento + Rev.Instr. + Data | Instrumento + Rev. Instr. + Fecha | Instrument + Instrum.Rev. + Date | S | INS | - | S | 2 | 3 | - | 17278 | 0 |
| QME | 2 | QME_FILIAL+QME_CHAVE | Cod. Ligacao | Vinculo | Link Code | S | - | - | S | 2 | 3 | - | 17279 | 0 |
Ela é utilizada para manutenções realizadas dentro do sistema ERP Protheus.
Nesta página você pode visualizar todos os campos, incluindo tipo, tamanho e validações.
Os índices são estruturas que melhoram a performance de busca e acesso aos dados dentro do Protheus.
Modelo de query gerado automaticamente com base na estrutura da tabela.
SELECT
QME_FILIAL,
QME_INSTR,
QME_REVINS,
QME_DATA,
QME_RESP,
QME_QTDHOR,
QME_LABOR,
QME_NRCERT,
QME_CHAVE,
QME_FILRES
FROM QME
WHERE
D_E_L_E_T_ = ' '
AND QME_FILIAL = 'VALOR'
AND QME_INSTR = 'VALOR'
AND QME_REVINS = 'VALOR'
AND QME_DATA BETWEEN '20260501' AND '20260531'
AND QME_RESP = 'VALOR'
AND QME_QTDHOR = 'VALOR'
AND QME_LABOR = 'VALOR'
AND QME_NRCERT = 'VALOR'
AND QME_CHAVE = 'VALOR'
AND QME_FILRES = 'VALOR'