REGRAS DE DOCUMENTO POR EVENTO
A tabela FR9 faz parte do sistema ERP Protheus da TOTVS e é utilizada para regras de documento por evento.
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 FR9 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 FR9, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | FR9 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | FR9990 |
| X2_NOME | REGRAS DE DOCUMENTO POR EVENTO |
| X2_NOMESPA | REGLAS DE DOCUMENTO POR EVENTO |
| X2_NOMEENG | DOCUMENT RULES PER EVENT |
| X2_ROTINA | - |
| X2_MODO | E |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | FR9_FILIAL+FR9_EVENTO+FR9_DOCUM |
| X2_PYME | S |
| X2_MODULO | 6 |
| X2_DISPLAY | FR9_EVENTO+FR9_DOCUM |
| 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_ | 4436 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| FR9 | 01 | FR9_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 | - | - | - | N | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 72270 | 0 |
| FR9 | 02 | FR9_EVENTO | C | 2 | 0 | Cod.Evento | Cod.Evento | Event Code | Codigo do Evento | Codigo del Evento | Event Code | @! | Pertence("01|02|03|04|05|06|07|") .AND. ExistChav("FR9",M->FR9_EVENTO+M->FR9_DOCUM) | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | S | A | R | - | - | 01=Liberacao p/Baixa;02=Baixa Manual;03=Baixa Automatica;04=Baixa Lote;05=Cheq.s/Tit;06=Bordero;07=Compensacao | 01=Liberac. p/Baja;02=Baja Manual;03=Baja Automatica;04=Baja Lote;05=Cheq.s/Tit;06=Bordero;07=Compensacion | 01=Release for Write-off;02=Manual Write-off;03=Automatic Write-off;04=Lot Write-off;05=Check w/o Bill;06=Bordereau;07=Clearance | - | INCLUI | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 72271 | 0 |
| FR9 | 03 | FR9_DOCUM | C | 3 | 0 | Cod.Document | Cod.Document | Doc. Code | Codigo do Documento | Codigo del Documento | Document Code | @! | ExistCpo("CN5") .AND. ExistChav("FR9",M->FR9_EVENTO+M->FR9_DOCUM) | x x x x x x x x x x x x x x x x | - | CN5 | 1 | x x | - | S | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 72272 | 0 |
| FR9 | 04 | FR9_DESCRI | C | 30 | 0 | Descricao | Descripcion | Description | Descricao do Documento | Descripcion del Documento | Document Description | @! | IF(INCLUI,"",POSICIONE("CN5",1,XFILIAL("CN5")+M->FR9_DOCUM,"CN5_DESCRI")) | x x x x x x x x x x x x x x x x | - | - | 1 | x x x | - | - | - | S | V | V | - | - | - | - | - | - | - | POSICIONE("CN5",1,XFILIAL("CN5")+FR9->FR9_DOCUM,"CN5_DESCRI") | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 72273 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| FR9 | 1 | FR9_FILIAL+FR9_EVENTO+FR9_DOCUM | Cod.Evento + Cod.Document | Cod.Evento + Cod.Document | Event Code + Doc. Code | S | - | - | S | 2 | 3 | - | 10537 | 0 |
| FR9 | 2 | FR9_FILIAL+FR9_DOCUM+FR9_EVENTO | Cod.Document + Cod.Evento | Cod.Document + Cod.Evento | Doc. Code + Event Code | S | - | - | S | 2 | 3 | - | 10538 | 0 |
Ela é utilizada para regras de documento por evento 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
FR9_FILIAL,
FR9_EVENTO,
FR9_DOCUM,
FR9_DESCRI
FROM FR9
WHERE
D_E_L_E_T_ = ' '
AND FR9_FILIAL = 'VALOR'
AND FR9_EVENTO = 'VALOR'
AND FR9_DOCUM = 'VALOR'
AND FR9_DESCRI = 'VALOR'