Distribuicao de Vendas/Despesa
A tabela ALU faz parte do sistema ERP Protheus da TOTVS e é utilizada para distribuicao de vendas/despesa.
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 ALU 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 ALU, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | ALU |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | ALU990 |
| X2_NOME | Distribuicao de Vendas/Despesa |
| X2_NOMESPA | Distribucion de Ventas/Gastos |
| X2_NOMEENG | Sales/Expense Distribution |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | - |
| X2_PYME | S |
| X2_MODULO | 57 |
| 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_ | 413 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ALU | 01 | ALU_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 | xx | - | - | - | N | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 5818 | 0 |
| ALU | 02 | ALU_CODIGO | C | 6 | 0 | Regra | Regla | Rule | Regra distribuicao | Regla distribucion | Distribution rule | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 5819 | 0 |
| ALU | 03 | ALU_DESCR | C | 25 | 0 | Descricao | Descripcion | Description | Descricao da Entidade | Descripcion | Entity Description | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 5820 | 0 |
| ALU | 04 | ALU_ITEM | C | 6 | 0 | Item | Item | Item | Item Distribuicao | Item Descripcion | Distribution Item | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | N | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 5821 | 0 |
| ALU | 05 | ALU_TPENTI | C | 3 | 0 | Tipo Entidad | Tipo Ente | Entity Tp. | Tipo de Entidade Orcament | Tipo de Ente Presupuest. | Budg. Entity Type | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 5822 | 0 |
| ALU | 06 | ALU_ENTIDA | C | 20 | 0 | Entidade Orc | Ente Presup. | Budg. Entity | Entidade Orcamentaria | Ente Presupuestario | Budget Entity | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | S | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 5823 | 0 |
| ALU | 07 | ALU_DESCEN | C | 25 | 0 | Descricao | Descripcion | Description | Descricao Entidade | Descripcion | Entity Description | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 5824 | 0 |
| ALU | 08 | ALU_PERC | N | 6 | 2 | Percentual | Porcentaje | Percentage | Percentual | Porcentaje | Percentage | @E 999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 5825 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ALU | 1 | ALU_FILIAL+ALU_CODIGO+ALU_TPENTI+ALU_ITEM+ALU_ENTIDA | Regra + Tipo Entidad + Item + Entidade Orc | Regla + Tipo Ente + Item + Ente Presup. | Rule + Entity Tp. + Item + Budg. Entity | S | - | - | S | 2 | 3 | - | 1049 | 0 |
Ela é utilizada para distribuicao de vendas/despesa 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
ALU_FILIAL,
ALU_CODIGO,
ALU_DESCR,
ALU_ITEM,
ALU_TPENTI,
ALU_ENTIDA,
ALU_DESCEN,
ALU_PERC
FROM ALU
WHERE
D_E_L_E_T_ = ' '
AND ALU_FILIAL = 'VALOR'
AND ALU_CODIGO = 'VALOR'
AND ALU_DESCR = 'VALOR'
AND ALU_ITEM = 'VALOR'
AND ALU_TPENTI = 'VALOR'
AND ALU_ENTIDA = 'VALOR'
AND ALU_DESCEN = 'VALOR'
AND ALU_PERC = 0