Rateio
A tabela G4A faz parte do sistema ERP Protheus da TOTVS e é utilizada para rateio.
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 G4A 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 G4A, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | G4A |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | G4A990 |
| X2_NOME | Rateio |
| X2_NOMESPA | Prorrateo |
| X2_NOMEENG | Proration |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | G4A_FILIAL+G4A_NUMID+G4A_IDITEM+G4A_NUMSEQ+G4A_CLIENT+G4A_TPENT+G4A_ITEM+G4A_CONORI |
| X2_PYME | N |
| X2_MODULO | 89 |
| X2_DISPLAY | G4A_FILIAL+G4A_NUMID+G4A_IDITEM+G4A_NUMSEQ+G4A_CLIENT+G4A_TPENT |
| 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_ | 4635 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| G4A | 01 | G4A_FILIAL | C | 2 | 0 | Filial | Sucursal | Branch | Filial | Sucursal | Branch | - | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | S | N | N | - | - | - | 1 | 1 | - | - | - | 74906 | 0 |
| G4A | 02 | G4A_NUMID | C | 10 | 0 | Núm. Ident. | Nº Ident. | Ident Numb | Num Ident reg. vendas | Núm Ident reg. ventas | Sales rec ident number | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | N | N | - | - | - | 1 | 1 | - | - | - | 74907 | 0 |
| G4A | 03 | G4A_IDITEM | C | 4 | 0 | Id Item | Id Ítem | Item Id | Num seq. ítem reg. vendas | Núm sec. ítem reg. ventas | Sales rec item seq number | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | N | N | - | - | - | 1 | 1 | - | - | - | 74908 | 0 |
| G4A | 04 | G4A_NUMSEQ | C | 2 | 0 | Sequência | Secuencia | Sequence | Seq. identific. item | Sec. identific. ítem | Item ident seq. | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | N | N | - | - | - | 1 | 1 | - | - | - | 74909 | 0 |
| G4A | 05 | G4A_CLIENT | C | 6 | 0 | Cód. Cliente | Cód. Cliente | Cust Code | Código Cliente | Código cliente | Customer Code | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 001 | - | S | - | - | S | N | N | - | - | - | 1 | 2 | - | - | - | 74910 | 0 |
| G4A | 06 | G4A_TPENT | C | 2 | 0 | Tipo Entid. | Tipo Ente | Ent Type | Tipo da ent.adic. cliente | Tipo de ent.adic. cliente | Cust add ent type | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | N | N | - | - | - | 1 | 1 | - | - | - | 74911 | 0 |
| G4A | 07 | G4A_DESENT | C | 50 | 0 | Entidade | Ente | Entity | Descrição Ent. Adicional | Descrip. Ent. Adicional | Additional Ent. Descrip | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | N | N | - | - | - | 1 | 1 | - | - | - | 74912 | 0 |
| G4A | 08 | G4A_LOJA | C | 2 | 0 | Loja | Tienda | Store | Loja do Cliente | Tienda del cliente | Customer Store | @! | ExistCpo("SA1",FwFldGet("G3Q_CLIENT")+M->G4A_LOJA) | x x x x x x x x x x x x x x x x | - | SA1G4A | 1 | xx | - | - | - | N | A | R | - | - | - | - | - | - | - | - | 002 | - | S | - | - | S | N | N | - | - | - | 1 | 2 | - | - | - | 74913 | 0 |
| G4A | 09 | G4A_ITEM | C | 50 | 0 | Item | Ítem | Item | Item da Entidade | Ítem del ente | Entity Item | - | Tura34VldIV("G4A_ITEM") | x x x x x x x x x x x x x x x x | - | G3G2 | 1 | xx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | N | N | - | - | - | 1 | 1 | - | - | - | 74914 | 0 |
| G4A | 10 | G4A_DESCIT | C | 60 | 0 | Descrição | Descripción | Description | Descrição do Item | Descripción del ítem | Item Description | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | N | N | - | - | - | 1 | 1 | - | - | - | 74915 | 0 |
| G4A | 11 | G4A_PERRAT | N | 6 | 2 | % Rateio | % Prorrateo | Proration % | % de Rateio da Entidade | % Prorrateo del ente | Entity Apportion % | @E 999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxx | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | S | N | N | - | - | - | 1 | 1 | - | - | - | 74916 | 0 |
| G4A | 12 | G4A_CONORI | C | 6 | 0 | Conc. Ori. | Conc. Ori. | Ori. Reconc. | Conciliação de origem | Conciliación de origen | Origin Reconciliation | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 74917 | 0 |
| G4A | 13 | G4A_CONINU | C | 6 | 0 | Conc. Inu. | Conc. Inu. | Dis. Reconc. | Conciliação de inut. | Conciliac. de Inut. | Dis. Reconciliation | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | x xx | - | - | - | N | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 2 | 2 | - | - | - | 74918 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| G4A | 1 | G4A_FILIAL+G4A_NUMID+G4A_IDITEM+G4A_NUMSEQ+G4A_CLIENT+G4A_TPENT | Núm. Ident. + Id Item + Sequência + Cód. Cliente + Tipo Entid. | Nº Ident. + Id Ítem + Secuencia + Cód. Cliente + Tipo Ente | Ident Numb + Item Id + Sequence + Cust Code + Ent Type | S | - | - | S | 2 | 3 | - | 11005 | 0 |
Ela é utilizada para rateio 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
G4A_FILIAL,
G4A_NUMID,
G4A_IDITEM,
G4A_NUMSEQ,
G4A_CLIENT,
G4A_TPENT,
G4A_DESENT,
G4A_LOJA,
G4A_ITEM,
G4A_DESCIT,
G4A_PERRAT,
G4A_CONORI,
G4A_CONINU
FROM G4A
WHERE
D_E_L_E_T_ = ' '
AND G4A_FILIAL = 'VALOR'
AND G4A_NUMID = 'VALOR'
AND G4A_IDITEM = 'VALOR'
AND G4A_NUMSEQ = 'VALOR'
AND G4A_CLIENT = 'VALOR'
AND G4A_TPENT = 'VALOR'
AND G4A_DESENT = 'VALOR'
AND G4A_LOJA = 'VALOR'
AND G4A_ITEM = 'VALOR'
AND G4A_DESCIT = 'VALOR'
AND G4A_PERRAT = 0
AND G4A_CONORI = 'VALOR'
AND G4A_CONINU = 'VALOR'