HISTORICO IMPORTAÇÃO ESOCIAL
A tabela RED faz parte do sistema ERP Protheus da TOTVS e é utilizada para historico importaÇÃo esocial.
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 RED 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 RED, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | RED |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | RED990 |
| X2_NOME | HISTORICO IMPORTAÇÃO ESOCIAL |
| X2_NOMESPA | HISTORIAL IMPORTACIÓN ESOCIAL |
| X2_NOMEENG | ESOCIAL IMPORT HISTORY |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | C |
| X2_MODOEMP | C |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | RED_FILIAL+RED_CHVERP+RED_CHVGOV+RED_STATUS+RED_CNPJ |
| X2_PYME | S |
| X2_MODULO | 7 |
| 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_ | 7840 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RED | 01 | RED_FILIAL | C | 2 | 0 | Filial | Sucursal | Branch | Filial Sistema | Sucursal sistema | System Branch | - | - | x x x x x x x x x x x x x x x | - | SM0 | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 123264 | 0 |
| RED | 02 | RED_EVENTO | C | 6 | 0 | Evento | Evento | Event | Evento eSocial | Evento eSocial | eSocial Event | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 123265 | 0 |
| RED | 03 | RED_XMLERP | M | 10 | 0 | XML Envio | XML Envío | XML Submit | XML Envio p/ o Governo | XML Envío al Gobierno | XML Submission to Governm | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 123266 | 0 |
| RED | 04 | RED_CHVERP | C | 100 | 0 | Chave ERP | Clave ERP | ERP key | Chave do Registro no ERP | Clave del registro en ERP | Record Key in ERP | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 123267 | 0 |
| RED | 05 | RED_CHVGOV | C | 36 | 0 | D Governo | D Gobierno | Government | Chave Unica do Governo | Clave única del gobierno | Government Single Key | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 123268 | 0 |
| RED | 06 | RED_STATUS | C | 1 | 0 | Status | Estatus | Status | Status do Registro | Estatus de registro | Record status | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | 1=Somente XML;2=Somente Recibo;3=Completo sem Processar;4=XML Processado;5=Completo Processado;6=Erro Processamento | 1=Solo XML;2=Solo recibo;3=Completo sin procesar;4=XML Procesado;5=Completo procesado;6=Error procesamiento | 1=Only XML;2=Only Receipt;3=Complete without Processing;4=XML Processed;5=Complete Processed;6=Error Processing | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 123269 | 0 |
| RED | 07 | RED_RECIBO | C | 44 | 0 | Recibo | Recibo | Receipt | Recibo | Recibo | Receipt | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 123270 | 0 |
| RED | 08 | RED_DHPROC | C | 22 | 0 | Dt/Hr Proc | Fch/Hr Proc | Proc Dt/Tm | Data/Hora Processamento | Fecha/Hora procesamiento | Processing Date/Time | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 123271 | 0 |
| RED | 09 | RED_INDEVT | C | 1 | 0 | Ind. Evento | Ind. Evento | Ind. Event | Indicador do Evento | Indicador de evento | Indicator of Event | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | 1=Incl. Periodicos e Nao Periodicos;2=Retif;3=Incl. Tabela;4=Alt. Tabela;5=Excl. Tabela | 1=Incl. Periódicos y No periódicos;2=Rectif;3=Incl. Tabla;4=Mod. Tabla;5=Borrar Tab | 1=Incl. Periodical and not Periodical;2=Retif;3=Incl. Table;4=Edit Table;5=Del.Table | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 123272 | 0 |
| RED | 10 | RED_XMLTOT | M | 10 | 0 | XML Total | XML Total | XML Total | XML Totalizador | XML Totalizador | XML Totalizer | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 123273 | 0 |
| RED | 11 | RED_CNPJ | C | 14 | 0 | CNPJ Destino | RCPJ Destino | Destination | CNPJ Filial Destino | RCPJ Suc Destino | Destination Branch EIN | @!R NN.NNN.NNN/NNNN-99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 123274 | 0 |
| RED | 12 | RED_FILDES | C | 40 | 0 | Fil Destino | Suc Destino | Dest Branch | Código da Filial Destino | Código sucursal destino | Destination Branch Code. | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 123275 | 0 |
| RED | 13 | RED_RECEXC | C | 44 | 0 | Rec.Exclusao | Rec.Borrado | Deletion Rec | Recibo de Exclusao | Recibo de borrado | Deletion Receipt | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 123276 | 0 |
| RED | 14 | RED_ALIAS | C | 3 | 0 | Alias | Alias | Alias | Nomenclatura da tabela | Nomenclatura de tabla | Table Nomenclature | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 123277 | 0 |
| RED | 15 | RED_DTIMP | D | 8 | 0 | Data Import. | Fch Import. | Import Dt | Data Importacao | Fecha Importac | Import Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 123278 | 0 |
| RED | 16 | RED_HRIMP | C | 5 | 0 | Hora Import. | Hora Import. | Import Tm | Hora Importacao | Hora Importac | Import Time | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 123279 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| RED | 1 | RED_FILIAL+RED_EVENTO+RED_CHVERP+RED_CNPJ | Evento + Chave ERP + CNPJ Destino | Evento + Clave ERP + RCPJ Destino | Event + ERP key + Destination | S | - | - | S | 2 | 3 | - | 17959 | 0 |
| RED | 2 | RED_FILIAL+RED_CHVGOV+RED_CNPJ | D Governo + CNPJ Destino | D Gobierno + RCPJ Destino | Government + Destination | S | - | - | S | 2 | 3 | - | 17960 | 0 |
| RED | 3 | RED_FILIAL+RED_EVENTO+RED_RECEXC+RED_CNPJ | Evento + Rec.Exclusao + CNPJ Destino | Evento + Rec.Borrado + RCPJ Destino | Event + Deletion Rec + Destination | S | - | - | S | 2 | 3 | - | 17961 | 0 |
Ela é utilizada para historico importaÇÃo esocial 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.