Retorno integração TOTVS MES
A tabela SOG faz parte do sistema ERP Protheus da TOTVS e é utilizada para retorno integração totvs mes.
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 SOG 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 SOG, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | SOG |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | SOG990 |
| X2_NOME | Retorno integração TOTVS MES |
| X2_NOMESPA | Devol. Integrac. TOTVS MES |
| X2_NOMEENG | Return Integration TOTVS MES |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | OG_FILIAL+OG_TRANSAC+OG_RECURSO+OG_OP+OG_OPERAC+OG_PRODUTO+STR(OG_QUANTID)+DTOS(OG_DTAPONT)+OG_HRAPONT+DTOS(OG_DTFIMAP)+OG_HRFIMAP+OG_STATUS+STR(OG_SEQ)+DTOS(OG_DATA)+OG_HORA |
| X2_PYME | S |
| X2_MODULO | 10 |
| 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_ | 8510 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SOG | 01 | OG_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 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 139819 | 0 |
| SOG | 02 | OG_TRANSAC | C | 10 | 0 | Transação | Transacción | Transaction | Transação | Transacción | Transaction | - | - | x x x x x x x x x x x x x x x xx | - | - | 1 | xxxxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 139820 | 0 |
| SOG | 03 | OG_OP | C | 14 | 0 | Ordem produç | Ord Producc | Prod Order | Ordem de produção | Orden de producción | Production Order | - | - | x x x x x x x x x x x x x x x xx | - | - | 1 | xxxxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 139821 | 0 |
| SOG | 04 | OG_PRODUTO | C | 15 | 0 | Produto | Producto | Product | Código do produto | Código del producto | Product Code | @! | - | x x x x x x x x x x x x x x x xx | - | - | 1 | xxxxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 030 | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 139822 | 0 |
| SOG | 05 | OG_STATUS | C | 1 | 0 | Status | Estatus | Status | Status | Estatus | Status | @! | - | x x x x x x x x x x x x x x x xx | - | - | 1 | xxxxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 139823 | 0 |
| SOG | 06 | OG_RECURSO | C | 6 | 0 | Recurso | Recurso | Resource | Código do recurso | Código del recurso | Resource Code | - | - | x x x x x x x x x x x x x x x xx | - | - | 1 | xxxxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 139824 | 0 |
| SOG | 07 | OG_DATA | D | 8 | 0 | Data recebim | Fch Recep. | Receipt Dt | Data recebimento mensagem | Fecha recepción mensaje | Message receipt date | - | - | x x x x x x x x x x x x x x x xx | - | - | 1 | xxxxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 139825 | 0 |
| SOG | 08 | OG_HORA | C | 8 | 0 | Hora receb. | Hora Recep. | Receipt Time | Hora do recebimento | Hora de la recepción | Receipt Time | - | - | x x x x x x x x x x x x x x x xx | - | - | 1 | xxxxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 139826 | 0 |
| SOG | 09 | OG_DTAPONT | D | 8 | 0 | Dt Ini Apont | Fch Ini Apun | Annot St Dt | Data inicial apontamento | Fecha inicial apunte | Annotation Start Date | - | - | x x x x x x x x x x x x x x x xx | - | - | 1 | xxxxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 139827 | 0 |
| SOG | 10 | OG_HRAPONT | C | 8 | 0 | Hr Ini Apont | Hr Ini Apunt | Annot St Tm | Hora inicial apontamento | Hora inicial apunte | Annotation Start Time | - | - | x x x x x x x x x x x x x x x xx | - | - | 1 | xxxxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 139828 | 0 |
| SOG | 11 | OG_DTFIMAP | D | 8 | 0 | Dt Fim Apont | Fch Fin Apun | Annot End Dt | Data final apontamento | Fecha final apunte | Annotation End Date | - | - | x x x x x x x x x x x x x x x xx | - | - | 1 | xxxxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 139829 | 0 |
| SOG | 12 | OG_HRFIMAP | C | 8 | 0 | Hr Fim Apont | Hr Fin Apunt | Annot End Tm | Hora final do apontamento | Hora final del apunte | Annotation End Time | - | - | x x x x x x x x x x x x x x x xx | - | - | 1 | xxxxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 139830 | 0 |
| SOG | 13 | OG_QUANTID | N | 11 | 2 | Qtd Apont | Cant Apunt | Annot Qty | Quantidade apontamento | Cantidad de apunte | Quantity annotation | @E 99,999,999.99 | - | x x x x x x x x x x x x x x x xx | - | - | 1 | xxxxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 139831 | 0 |
| SOG | 14 | OG_ESTORNO | C | 1 | 0 | Estorno | Reversión | Reversal | Estorno | Reversión | Reversal | - | - | x x x x x x x x x x x x x x x xx | - | - | 1 | xxxxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 139832 | 0 |
| SOG | 15 | OG_OPERAC | C | 2 | 0 | Operação | Operación | Operation | Código da operação | Código de la operación | Operation Code | @! | - | x x x x x x x x x x x x x x x xx | - | - | 1 | xxxxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 139833 | 0 |
| SOG | 16 | OG_SEQ | N | 10 | 0 | Sequêncial | Secuencial | Sequence | Sequêncial | Secuencial | Sequence | @E 9,999,999,999 | - | x x x x x x x x x x x x x x x xx | - | - | 1 | xxxxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | - | N | - | - | - | 1 | 2 | - | - | - | 139834 | 0 |
| SOG | 17 | OG_XML | M | 10 | 0 | Conteúdo | Contenido | Content | Conteúdo XML | Contenido XML | Content XML | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 139835 | 0 |
| SOG | 18 | OG_MSGRET | M | 10 | 0 | Msg Retorno | Msj Devol. | Return Msg | Mensagem de retorno | Mensaje de devolución | Return Message | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 139836 | 0 |
| SOG | 19 | OG_MOTIVO | C | 10 | 0 | Motivo | Motivo | Reason | Motivo de Parada/Refugo | Motivo de Parada/Desecho | Stop/Scrap Reason | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 139837 | 0 |
| SOG | 20 | OG_TPMV | C | 1 | 0 | Tipo movto | Tipo Movto | Movem Type | Tipo de movimento | Tipo de movimiento | Movement Type | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 139838 | 0 |
| SOG | 21 | OG_PRODST | C | 15 | 0 | Prod Destino | Prod Destino | Target Prod | Produto destino | Producto destino | Target Product | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 030 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 139839 | 0 |
| SOG | 22 | OG_PROORG | C | 15 | 0 | Prod Origem | Prod Origen | Source Prod | Produto origem | Producto origen | Origin Product | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 030 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 139840 | 0 |
| SOG | 23 | OG_LOCORG | C | 2 | 0 | Local origem | Lugar origen | Origin Locat | Local origem | Lugar origen | Origin Location | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 139841 | 0 |
| SOG | 24 | OG_LOCDST | C | 2 | 0 | Local destin | Lugar destin | Dest Locat | Local destino | Lugar destino | Dest Location | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 139842 | 0 |
| SOG | 25 | OG_IDMES | C | 250 | 0 | ID TOTVSMES | ID TOTVSMES | ID TOTVSMES | ID TOTVSMES | ID TOTVSMES | ID TOTVSMES | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 139843 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SOG | 1 | OG_FILIAL+OG_TRANSAC+OG_RECURSO+OG_OP+OG_PRODUTO+OG_STATUS+DTOS(OG_DATA)+OG_HORA | Transação + Recurso + Ordem produç + Produto + Status + Data recebim + | Transacción + Recurso + Ord Producc + Producto + Estatus + Fch Recep. | Transaction + Resource + Prod Order + Product + Status + Receipt Dt + | S | - | - | S | 2 | 3 | - | 20047 | 0 |
| SOG | 2 | OG_FILIAL+OG_TRANSAC+OG_OP+OG_STATUS+DTOS(OG_DATA)+OG_HORA | Transação + Ordem produç + Status + Data recebim + Hora receb. | Transacción + Ord Producc + Estatus + Fch Recep. + Hora Recep. | Transaction + Prod Order + Status + Receipt Dt + Receipt Time | S | - | - | S | 2 | 3 | - | 20048 | 0 |
| SOG | 3 | OG_FILIAL+OG_TRANSAC+OG_RECURSO+OG_STATUS+DTOS(OG_DATA)+OG_HORA | Transação + Recurso + Status + Data recebim + Hora receb. | Transacción + Recurso + Estatus + Fch Recep. + Hora Recep. | Transaction + Resource + Status + Receipt Dt + Receipt Time | S | - | - | S | 2 | 3 | - | 20049 | 0 |
| SOG | 4 | OG_FILIAL+OG_TRANSAC+OG_PRODUTO+OG_STATUS+DTOS(OG_DATA)+OG_HORA | Transação + Produto + Status + Data recebim + Hora receb. | Transacción + Producto + Estatus + Fch Recep. + Hora Recep. | Transaction + Product + Status + Receipt Dt + Receipt Time | S | - | - | S | 2 | 3 | - | 20050 | 0 |
Ela é utilizada para retorno integração totvs mes 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.