EDI - OCORRENCIAS DE ENTREGA
A tabela GXL faz parte do sistema ERP Protheus da TOTVS e é utilizada para edi - ocorrencias de entrega.
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 GXL 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 GXL, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | GXL |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | GXL990 |
| X2_NOME | EDI - OCORRENCIAS DE ENTREGA |
| X2_NOMESPA | EDI - OCURRENCIAS DE ENTREGA |
| X2_NOMEENG | EDI - DELIVERY OCCURRENCES |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | GXL_FILIAL+GXL_NRIMP |
| X2_PYME | S |
| X2_MODULO | 78 |
| 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_ | 5433 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GXL | 01 | GXL_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 | 1 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 87083 | 0 |
| GXL | 02 | GXL_MARKBR | C | 2 | 0 | Sel. | Sel. | Sel. | Sel. | Sel. | Sel. | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 87084 | 0 |
| GXL | 03 | GXL_NRIMP | C | 16 | 0 | Seq Import | Sec Import | Imp.Seq. | Sequencial da Importacao | Secuencial de Importacion | Import Sequence | 9999999999999999 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | N | N | - | - | 1 | 1 | 2 | - | - | - | 87085 | 0 |
| GXL | 04 | GXL_EDINRL | N | 5 | 0 | Num Linha | Num Linea | Row No. | Numero da Linha Arquivo | Numero de Linea Archivo | Number of File Line | 99999 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 87086 | 0 |
| GXL | 05 | GXL_EDILIN | M | 10 | 0 | Linha | Linea | Row | Conteudo Linha Arquivo | Contenido Linea Archivo | Content Line File | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 87087 | 0 |
| GXL | 06 | GXL_EDIARQ | C | 200 | 0 | Arquivo | Archivo | File | Arquivo Importacao | Archivo Importacion | Import File | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 87088 | 0 |
| GXL | 07 | GXL_DTIMP | D | 8 | 0 | Data Import | Fecha Import | Import Date | Data Importacao Arquivo | Fecha Importacion Archivo | File Import Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 87089 | 0 |
| GXL | 08 | GXL_ALTER | C | 1 | 0 | Alterado? | Alterado | Edited? | Alterado? | Alterado | Edited? | - | - | x x x x x x x x x x x x x x x | "2" | - | 1 | - | - | - | - | S | V | R | - | - | 1=Sim;2=Não | 1=Si;2=No | 1=Yes;2=No | - | - | - | - | 1 | S | - | - | N | - | N | - | - | 1 | 1 | 2 | - | - | - | 87090 | 0 |
| GXL | 09 | GXL_EDISIT | C | 1 | 0 | Situacao | Situacion | Status | Situacao EDI | Situacion EDI | EDI Status | @! | Pertence("1234") | x x x x x x x x x x x x x x x x | "1" | - | 1 | x xx x | - | - | - | S | V | R | - | - | 1=Importado;2=Importado com erro;3=Rejeitado;4=Processado | 1=Importado;2=Importado con error;3=Rechazado;4=Procesado | 1=Imported;2=Imported with Error;3=Rejected;4=Processed | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 87091 | 0 |
| GXL | 10 | GXL_EDIMSG | M | 10 | 0 | Mensagem | Mensaje | Message | Mensagem EDI | Mensaje EDI | EDI Message | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 87092 | 0 |
| GXL | 11 | GXL_USUIMP | C | 25 | 0 | Usuario Imp. | Usuario Imp. | Imp. User | Usuario Imp. | Usuario Imp. | Imp. User | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | - | N | - | - | 1 | 1 | 2 | - | - | - | 87093 | 0 |
| GXL | 12 | GXL_FILOCO | C | 2 | 0 | Filial Ocorr | Suc. Ocurr | Event Branch | Filial da Ocorrência | Sucursal de Ocurrencia | Event Branch | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 033 | 2 | S | - | - | N | - | N | - | - | 3 | 1 | 2 | - | - | - | 87094 | 0 |
| GXL | 13 | GXL_CODOCO | C | 3 | 0 | Cod Ocor EDI | Cod Ocur EDI | EDI Oc Cd | Codigo Ocorrencia EDI | Codigo Ocurrencia EDI | EDi Occurrence Cd | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 87095 | 0 |
| GXL | 14 | GXL_DTOCOR | D | 8 | 0 | Data Ocorren | Fecha Ocurre | Occurr. Dt | Data da Ocorrencia | Fecha de Ocurrencia | Occurrence Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | N | N | - | - | 3 | 1 | 2 | - | - | - | 87096 | 0 |
| GXL | 15 | GXL_HROCOR | C | 5 | 0 | Hora Ocor | Hora Ocurr. | Occur. Hour | Horario da Ocorrencia | Horario de Ocurrencia | Occurrence Time | 99:99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | N | N | - | - | 3 | 1 | 2 | - | - | - | 87097 | 0 |
| GXL | 16 | GXL_CODOBS | N | 2 | 0 | Cod Observ | Cod Observ | Note Code | Código da Observação | Codigo de la Observacion | Note Code | 99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 87098 | 0 |
| GXL | 17 | GXL_OBS | C | 70 | 0 | Observacoes | Observac. | Notes | Texto Complem Ocorrencia | Texto Complem Ocurrencia | Occr. Add. Text | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 87099 | 0 |
| GXL | 18 | GXL_FILDC | C | 2 | 0 | Filial DC | Sucursal DC | SD Branch | Filial Documento de Carga | Suc.Documento de Carga | Shipping Document Branch | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 033 | 2 | S | - | - | N | - | N | - | - | 4 | 1 | 2 | - | - | - | 87100 | 0 |
| GXL | 19 | GXL_EMISDC | C | 14 | 0 | Emissor DC | Emisor DC | DC Issuer | Emissor do Docto de Carga | Emisor del Docto de Carga | Cargo Doc Issuer | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 052 | 2 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 87101 | 0 |
| GXL | 20 | GXL_SERDC | C | 3 | 0 | Serie DC | Serie DC | DC Series | Serie do Docto de Carga | Serie del Docto de Carga | Cargo Doc Series | !!! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 094 | 2 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 87102 | 0 |
| GXL | 21 | GXL_NRDC | C | 16 | 0 | Nr Doc Carga | Nr Doc Carga | Carg Doc Nm | Numero do Docto de Carga | Numero de Docto de Carga | Cargo Document No. | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 87103 | 0 |
| GXL | 22 | GXL_CDTRP | C | 14 | 0 | Cod Transp | Cod Transp | Carrier Cd | Codigo do Transportador | Codigo del Transportador | Carrier Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x xx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 052 | 2 | S | - | - | N | N | N | - | - | 3 | 1 | 2 | - | - | - | 87104 | 0 |
| GXL | 23 | GXL_CDTIPO | C | 6 | 0 | Cod Tipo Oco | Cod.Tp.Oc. | Ev. Type Cd. | Codigo Tipo Ocorrencia | Codigo tipo ocurrencia | Event Type Code | @! | Vazio() .Or. GFEExistC("GU5",,M->GXL_CDTIPO,"GU5->GU5_SIT=='1'") | x x x x x x x x x x x x x x x x | - | GU5GWD | 1 | x | - | - | - | - | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 87105 | 0 |
| GXL | 24 | GXL_CDMOT | C | 6 | 0 | Cod Mot Oco | Cod.Mot.Oc. | Ev.Reas.Cd. | Codigo Motivo Ocorrencia | Codigo motivo ocurrencia | Event Reason Code | @! | (Vazio() .And. Empty(M->GXL_CDTIPO) ) .Or. ExistCpo("GU4",M->GXL_CDMOT+M->GXL_CDTIPO) | x x x x x x x x x x x x x x x x | - | GU4GU6 | 1 | x | - | - | - | - | A | R | - | - | - | - | - | - | !Empty(M->GXL_CDTIPO) | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 87106 | 0 |
| GXL | 25 | GXL_PESO | N | 13 | 5 | Peso | Peso | Weight | Peso | Peso | Weight | @E 9,999,999.99999 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | A | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 87107 | 0 |
| GXL | 26 | GXL_CDREC | C | 14 | 0 | Cod Receb | Cód Recep | Rec code | Código do Recebedor | Código del receptor | Recipient Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 052 | 2 | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 87108 | 0 |
| GXL | 27 | GXL_EVENTR | C | 254 | 0 | Evid.Entrega | Evid.Entrega | Deliv Proof | Evidência de Entrega | Evidencia de entrega | Delivery Proof | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | - | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 87109 | 0 |
| GXL | 28 | GXL_NMCONT | C | 50 | 0 | Contato | Contacto | Contact | Nome do Contato | Nombre del contacto | Contact Name | @! | Texto() | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx | G | - | - | S | A | R | - | - | - | - | - | - | - | - | 176 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 87110 | 0 |
| GXL | 29 | GXL_PRESTS | C | 14 | 0 | Prest. Serv | Prest. Serv | Serv Prov | Prestador de Serviço | Prestador de servicio | Service Provider | @! | GFEA032V2() | x x x x x x x x x x x x x x x x | - | GU3FRN | 1 | xxxx | G | - | - | S | A | R | - | - | - | - | - | - | - | - | 052 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 87111 | 0 |
| GXL | 30 | GXL_QTDVOL | N | 13 | 5 | Qtde Volumes | Cant. Volúm. | No. Vol | Quantidade de Volumes | Cantidad volúmenes | Number of Volumes | @E 9,999,999.99999 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | x xx | g | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 87112 | 0 |
| GXL | 31 | GXL_QTPERN | N | 13 | 5 | Qtde Serviço | Cant. Serv. | Serv Qty | Quantidade Serviços | Cantidad servicios | Service Quantity | @E 9,999,999.99999 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx | g | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 87113 | 0 |
| GXL | 32 | GXL_VALIND | N | 12 | 5 | Val Indeniz. | Val Indemn. | Comp Val | Valor Indenização | Valor Indemniz | Compensation Value | @E 999,999.99999 | Positivo() | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx | G | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 87114 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| GXL | 1 | GXL_FILIAL+GXL_NRIMP | Seq Import | Sec Import | Imp.Seq. | S | - | PK | S | 2 | 3 | - | 12878 | 0 |
| GXL | 2 | GXL_FILIAL+DTOS(GXL_DTIMP) | Data Import | Fecha Import | Import Date | S | - | - | S | 2 | 3 | - | 12879 | 0 |
| GXL | 3 | GXL_FILIAL+GXL_CDTRP+GXL_NRIMP | Cod Transp + Seq Import | Cod Transp + Sec Import | Carrier Cd + Imp.Seq. | S | - | - | S | 2 | 3 | - | 12880 | 0 |
| GXL | 4 | GXL_FILIAL+GXL_EDISIT+GXL_NRIMP | Situacao + Seq Import | Situacion + Sec Import | Status + Imp.Seq. | S | - | - | S | 2 | 3 | - | 12881 | 0 |
| GXL | 5 | GXL_FILIAL+GXL_FILDC+GXL_EMISDC+GXL_SERDC+GXL_NRDC | Filial DC + Emissor DC + Serie DC + Nr Doc Carga | Sucursal DC + Emisor DC + Serie DC + Nr Doc Carga | SD Branch + DC Issuer + DC Series + Carg Doc Nm | S | - | - | N | 2 | 3 | - | 12882 | 0 |
| GXL | 6 | GXL_MARKBR | Sel. | Sel. | Sel. | S | - | MARK | S | 2 | 3 | - | 12883 | 0 |
Ela é utilizada para edi - ocorrencias de entrega 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
GXL_FILIAL,
GXL_MARKBR,
GXL_NRIMP,
GXL_EDINRL,
GXL_EDILIN,
GXL_EDIARQ,
GXL_DTIMP,
GXL_ALTER,
GXL_EDISIT,
GXL_EDIMSG,
GXL_USUIMP,
GXL_FILOCO,
GXL_CODOCO,
GXL_DTOCOR,
GXL_HROCOR,
GXL_CODOBS,
GXL_OBS,
GXL_FILDC,
GXL_EMISDC,
GXL_SERDC,
GXL_NRDC,
GXL_CDTRP,
GXL_CDTIPO,
GXL_CDMOT,
GXL_PESO,
GXL_CDREC,
GXL_EVENTR,
GXL_NMCONT,
GXL_PRESTS,
GXL_QTDVOL,
GXL_QTPERN,
GXL_VALIND
FROM GXL
WHERE
D_E_L_E_T_ = ' '
AND GXL_FILIAL = 'VALOR'
AND GXL_MARKBR = 'VALOR'
AND GXL_NRIMP = 'VALOR'
AND GXL_EDINRL = 0
AND GXL_EDIARQ = 'VALOR'
AND GXL_DTIMP BETWEEN '20260501' AND '20260531'
AND GXL_ALTER = 'VALOR'
AND GXL_EDISIT = 'VALOR'
AND GXL_USUIMP = 'VALOR'
AND GXL_FILOCO = 'VALOR'
AND GXL_CODOCO = 'VALOR'
AND GXL_DTOCOR BETWEEN '20260501' AND '20260531'
AND GXL_HROCOR = 'VALOR'
AND GXL_CODOBS = 0
AND GXL_OBS = 'VALOR'
AND GXL_FILDC = 'VALOR'
AND GXL_EMISDC = 'VALOR'
AND GXL_SERDC = 'VALOR'
AND GXL_NRDC = 'VALOR'
AND GXL_CDTRP = 'VALOR'
AND GXL_CDTIPO = 'VALOR'
AND GXL_CDMOT = 'VALOR'
AND GXL_PESO = 0
AND GXL_CDREC = 'VALOR'
AND GXL_EVENTR = 'VALOR'
AND GXL_NMCONT = 'VALOR'
AND GXL_PRESTS = 'VALOR'
AND GXL_QTDVOL = 0
AND GXL_QTPERN = 0
AND GXL_VALIND = 0