Comentário da Requisição
A tabela GXW faz parte do sistema ERP Protheus da TOTVS e é utilizada para comentário da requisição.
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 GXW 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 GXW, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | GXW |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | GXW990 |
| X2_NOME | Comentário da Requisição |
| X2_NOMESPA | Comentario de la requisición |
| X2_NOMEENG | Comment of Request |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | GXW_FILIAL+GXW_IDREQ+GXW_SEQ |
| X2_PYME | S |
| X2_MODULO | 78 |
| X2_DISPLAY | - |
| X2_SYSOBJ | - |
| X2_USROBJ | - |
| X2_POSLGT | 1 |
| X2_CLOB | 1 |
| 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_ | 5442 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GXW | 01 | GXW_FILIAL | C | 2 | 0 | Filial | Sucursal | Branch | Filial de Sistema | Sucursal del sistema | System Branch | - | - | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 87310 | 0 |
| GXW | 02 | GXW_IDREQ | C | 8 | 0 | Ident Req | Ident Req | Req Ident | Identificador da Req. | Identificador de la Req. | Req Identifier | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 87311 | 0 |
| GXW | 03 | GXW_SEQ | C | 3 | 0 | Sequencia | Secuencia | Sequence | Sequência do Comentário | Secuencia del comentario | Comment Sequence | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xxx x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 87312 | 0 |
| GXW | 04 | GXW_RESCOM | C | 50 | 0 | Resumo Comen | Resumen Come | Comment Summ | Resumo do Comentário | Resumen del comentario | Comment Summary | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 87313 | 0 |
| GXW | 05 | GXW_COMENT | M | 10 | 0 | Comentário | Comentario | Comment | Descrição do comentário | Descripción del comentari | Comment description | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 1 | - | - | - | 87314 | 0 |
| GXW | 06 | GXW_DTCOM | D | 8 | 0 | Data Coment | Fecha Coment | Comm dt | Data do Comentário | Fecha del comentario | Comment date | - | - | x x x x x x x x x x x x x x x x | DDATABASE | - | 1 | x x xx x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 87315 | 0 |
| GXW | 07 | GXW_HRCOM | C | 5 | 0 | Hora Coment | Hora Coment | Comment Tm | Hora do Comentário | Hora del comentario | Comment Time | - | - | x x x x x x x x x x x x x x x x | SUBSTR(TIME(), 1, 5) | - | 1 | x x xx x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 87316 | 0 |
| GXW | 08 | GXW_CODUSU | C | 10 | 0 | Cod Usuário | Cód. Usuario | User code | Código do Usuário | Código del usuario | User code | - | - | x x x x x x x x x x x x x x x x | RETCODUSR() | - | 1 | x x xx x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 87317 | 0 |
| GXW | 09 | GXW_NOMUSU | C | 50 | 0 | Nome Usu | Nomb Usu | User name | Nome do Usuário | Nombre del usuario | User name | - | - | x x x x x x x x x x x x x x x x | USRRETNAME(GXW->GXW_CODUSU) | - | 1 | x x xx x | - | - | - | S | V | V | - | - | - | - | - | - | - | USRRETNAME(GXW->GXW_CODUSU) | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 87318 | 0 |
| GXW | 10 | GXW_PAPEL | C | 1 | 0 | Papel Usu | Papel Usu | User role | Papel do Usuário | Papel del usuario | User role | - | Pertence("12") | x x x x x x x x x x x x x x x x | "1" | - | 1 | x x xx x | - | - | - | S | V | R | - | - | 1=Requisitante;2=Negociador | 1=Requisitante;2=Negociador | 1=Requester;2=Negotiator | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 87319 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GXW | 1 | GXW_FILIAL+GXW_IDREQ+GXW_SEQ | Ident Req + Sequencia | Ident Req + Secuencia | Req Ident + Sequence | S | - | - | S | 2 | 3 | - | 12901 | 0 |
| GXW | 2 | GXW_FILIAL+GXW_IDREQ+GXW_CODUSU | Ident Req + Cod Usuário | Ident Req + Cód. Usuario | Req Ident + User code | S | - | - | S | 2 | 3 | - | 12902 | 0 |
| GXW | 3 | GXW_FILIAL+GXW_IDREQ+GXW_PAPEL | Ident Req + Papel Usu | Ident Req + Papel Usu | Req Ident + User role | S | - | - | S | 2 | 3 | - | 12903 | 0 |
| GXW | 4 | GXW_FILIAL+GXW_IDREQ+DTOS(GXW_DTCOM) | Ident Req + Data Coment | Ident Req + Fecha Coment | Req Ident + Comm dt | S | - | - | S | 2 | 3 | - | 12904 | 0 |
Ela é utilizada para comentário da requisição 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
GXW_FILIAL,
GXW_IDREQ,
GXW_SEQ,
GXW_RESCOM,
GXW_COMENT,
GXW_DTCOM,
GXW_HRCOM,
GXW_CODUSU,
GXW_NOMUSU,
GXW_PAPEL
FROM GXW
WHERE
D_E_L_E_T_ = ' '
AND GXW_FILIAL = 'VALOR'
AND GXW_IDREQ = 'VALOR'
AND GXW_SEQ = 'VALOR'
AND GXW_RESCOM = 'VALOR'
AND GXW_DTCOM BETWEEN '20260501' AND '20260531'
AND GXW_HRCOM = 'VALOR'
AND GXW_CODUSU = 'VALOR'
AND GXW_NOMUSU = 'VALOR'
AND GXW_PAPEL = 'VALOR'