Registros Complementares
A tabela DE8 faz parte do sistema ERP Protheus da TOTVS e é utilizada para registros complementares.
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 DE8 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 DE8, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | DE8 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | DE8990 |
| X2_NOME | Registros Complementares |
| X2_NOMESPA | Registros Complementarios |
| X2_NOMEENG | Supplementary Records |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | - |
| X2_PYME | S |
| X2_MODULO | 43 |
| X2_DISPLAY | DE8_FILIAL+DE8_CODLAY+DE8_CODREG+DE8_CODRCP |
| 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_ | 3179 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DE8 | 01 | DE8_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 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49308 | 0 |
| DE8 | 02 | DE8_CODLAY | C | 6 | 0 | Cod Layout | Cod Layout | Layout code | Codigo do Layout | Codigo del Layout | Layout code | @! | ExistCpo("DE9") .AND. ExistChav("DE8",M->DE8_CODLAY,1) | x x x x x x x x x x x x x x x x | - | DE0 | 1 | xxx | - | S | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 49309 | 0 |
| DE8 | 03 | DE8_DSCLAY | C | 60 | 0 | Desc Layout | Desc. Layout | Layout descr | Descricao do Layout | Descripcion del Layout | Layout description | @! | - | x x x x x x x x x x x x x x x x | If(!Inclui,Posicione("DE9",1,xFilial("DE9")+DE8->DE8_CODLAY,"DE9_DSCLAY"),"") | - | 1 | x x xx x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("DE9",1,xFilial("DE9")+DE8->DE8_CODLAY,"DE9_DSCLAY") | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49310 | 0 |
| DE8 | 04 | DE8_CODREG | C | 6 | 0 | Cod Reg Pri | Cod Reg Pri | MainRecCode | Codigo Registro Principal | Codigo Registro Principal | Main record code | @! | ExistCpo("DE3") | x x x x x x x x x x x x x x x x | - | DE3 | 1 | xxx | - | S | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 49311 | 0 |
| DE8 | 05 | DE8_DSCREG | C | 80 | 0 | Dsc Reg Pri | Dsc Reg Pri | MainRecDescr | Descricao Reg Principal | Descripcion Reg Principal | Main Record Description | @! | - | x x x x x x x x x x x x x x x x | If(!Inclui,Posicione("DE3",1,xFilial("DE3")+DE8->DE8_CODREG,"DE3_DSCREG"),"") | - | 1 | x x xx x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("DE3",1,xFilial("DE3")+DE8->DE8_CODREG,"DE3_DSCREG") | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49312 | 0 |
| DE8 | 06 | DE8_CODRCP | C | 6 | 0 | Cod Reg Comp | Cod Reg Comp | Supp.Reg.Cod | Codigo Reg Complementar | Codigo Reg Complementario | Supplementary Reg. code | @! | ExistCpo("DE3") | x x x x x x x x x x x x x x x x | - | DE3 | 1 | xxx | - | S | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 49313 | 0 |
| DE8 | 07 | DE8_DSCRCP | C | 80 | 0 | Dsc Reg Comp | Dsc Reg Comp | Supp.Reg.Dsc | Descricao Reg Complementa | Descripcion Reg Complemen | Supplem. Reg. Description | @! | - | x x x x x x x x x x x x x x x x | If(!Inclui,Posicione("DE3",1,xFilial("DE3")+DE8->DE8_CODRCP,"DE3_DSCREG"),"") | - | 1 | x x xx x | - | - | - | S | V | V | - | - | - | - | - | - | - | Posicione("DE3",1,xFilial("DE3")+DE8->DE8_CODRCP,"DE3_DSCREG") | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 49314 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| DE8 | 1 | DE8_FILIAL+DE8_CODLAY+DE8_CODREG+DE8_CODRCP | Cod Layout + Cod Reg Pri + Cod Reg Comp | Cod Layout + Cod Reg Pri + Cod Reg Comp | Layout code + MainRecCode + Supp.Reg.Cod | S | - | - | S | 2 | 3 | - | 7638 | 0 |
| DE8 | 2 | DE8_FILIAL+DE8_CODLAY+DE8_CODRCP+DE8_CODREG | Cod Layout + Cod Reg Comp + Cod Reg Pri | Cod Layout + Cod Reg Comp + Cod Reg Pri | Layout code + Supp.Reg.Cod + MainRecCode | S | - | - | S | 2 | 3 | - | 7639 | 0 |
Ela é utilizada para registros complementares 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
DE8_FILIAL,
DE8_CODLAY,
DE8_DSCLAY,
DE8_CODREG,
DE8_DSCREG,
DE8_CODRCP,
DE8_DSCRCP
FROM DE8
WHERE
D_E_L_E_T_ = ' '
AND DE8_FILIAL = 'VALOR'
AND DE8_CODLAY = 'VALOR'
AND DE8_DSCLAY = 'VALOR'
AND DE8_CODREG = 'VALOR'
AND DE8_DSCREG = 'VALOR'
AND DE8_CODRCP = 'VALOR'
AND DE8_DSCRCP = 'VALOR'