Dicionário Protheus
Início
O Poder da Hiperautomação

Tabela FJ2 no Protheus

Estrutura da Visão

O que é a tabela FJ2 no Protheus?

A tabela FJ2 faz parte do sistema ERP Protheus da TOTVS e é utilizada para estrutura da visão.

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 FJ2 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 FJ2, incluindo todos os campos e índices relacionados.

Propriedades da Tabela

Propriedade Valor
X2_CHAVE FJ2
X2_PATH \DATA\
X2_ARQUIVO FJ2990
X2_NOME Estrutura da Visão
X2_NOMESPA Estructura de la Vision
X2_NOMEENG View Structure
X2_ROTINA -
X2_MODO C
X2_MODOUN C
X2_MODOEMP C
X2_DELET 0
X2_TTS -
X2_UNICO FJ2_FILIAL+FJ2_CODIGO+FJ2_ORDEM
X2_PYME S
X2_MODULO 6
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_ 4203
R_E_C_D_E_L_ 0

Campos da Tabela FJ2 (18 campos)

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_
FJ2 01 FJ2_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 - - - - N - - - - - - - - - - 033 - S - - N - N - - - 1 2 - - - 67658 0
FJ2 02 FJ2_CODIGO C 3 0 Cod Visao Cod Vision View Code Codigo da Visao Gerencial Codigo de Vision Gerencia Management View Code @! Fina271Vld('FJ2_CODIGO',INCLUI) x x x x x x x x x x x x x x x x - - 1 x x - - - S - - - - - - - - - - - - S - - N - N - - - 1 1 - - - 67659 0
FJ2 03 FJ2_CONTAG C 20 0 Entid Gerenc Ente Gestion Mngmt Ent. Entidade Gerencial Ente de gestion Management Entity @! ExistChav("FJ2",M->FJ2_CODIGO+M->FJ2_CONTAG,2,).And.Fina271Vld("FJ2_CONTAG",INCLUI) x x x x x x x x x x x x x x x x - - 1 x x - - - S - - - - - - - - - - - - S - - N - N - - - 1 1 - - - 67660 0
FJ2 04 FJ2_ORDEM C 10 0 Ordem Orden Order Ordem de Exibicao Orden de Exhibicion Disclosure Order @! ExistChav("FJ2",M->FJ2_CODIGO+M->FJ2_ORDEM,4,).And.Fina271Vld("FJ2_ORDEM",INCLUI) x x x x x x x x x x x x x x x x - - 1 x x - - - S - - - - - - - - - - - - S - - N - N - - - 1 1 - - - 67661 0
FJ2 05 FJ2_CLASSE C 1 0 Classe Clase Class Classe de Entid Gerencial Clase de Entid Gerencial Managerial Entity Class @! Fina271Vld('FJ2_CLASSE',INCLUI) x x x x x x x x x x x x x x x x - - 1 x x - - - S - - - - 1=Sintetica;2=Analitica 1=Sintetica;2=Analitica 1=Synthetic;2=Analytical - - - - - S - - N - N - - - 1 1 - - - 67662 0
FJ2 06 FJ2_CTASUP C 20 0 Entid Super Ente Super Superior Ent Entidade Superior Ente Superior Superior Entity @! Fina271Vld('FJ2_CTASUP',INCLUI) x x x x x x x x x x x x x x x x FJ2->FJ2_CONTAG - 1 x - - - S A - - - - - - - - - - - S - - N - N - - - 1 2 - - - 67663 0
FJ2 07 FJ2_DESCCG C 40 0 Desc Ent Ger Desc Ent Ger Man Ent Desc Descricao Entid Gerencial Descr Entid Gerencial Managerial Entity Descrip @! Fina271Vld('FJ2_DESCCG',INCLUI) x x x x x x x x x x x x x x x x - - 1 x - - - S - - - - - - - - !M->FJ2_TRACO - - - S - - N - N - - - 1 2 - - - 67664 0
FJ2 08 FJ2_NORMAL C 1 0 Cond Normal Cond Normal Normal Cond Condicao Normal da Entid Cond. Normal de Entidad Entity Normal Condition @! Fina271Vld('FJ2_NORMAL',INCLUI) x x x x x x x x x x x x x x x x - - 1 x x - - - S - - - - 1=Debito;2=Credito 1=Debito;2=Credito 1=Debit;2=Credit - - - - - S - - N - N - - - 1 1 - - - 67665 0
FJ2 09 FJ2_COLUNA C 1 0 Coluna Columna Column Coluna Columna Column - Fina271Vld('FJ2_COLUNA',INCLUI) x x x x x x x x x x x x x x x x '0' - 1 x - - - N - - - - 0=Nenhuma;1=Coluna 1;2=Coluna 2;3=Coluna 3;4=Coluna 4;5=Coluna 5;6=Coluna 6 0=Ninguna;1=Columaa 1;2=Columna 2;3=Columnna 3;4=Columna 4;5=Columna 5;6=Columna 6 0=None;1= Column 1;2=Column 2;3=Column 3;4=Column 4;5=Column 5;6=Column 6 - - - - - S - - N - N - - - 1 2 - - - 67666 0
FJ2 10 FJ2_NEGRIT L 1 0 Negrito Negrita Bold Negrito Negrita Bold - - x x x x x x x x x x x x x x x x Fa271SetL(.T.,.F.,.F.,.F.) - 1 x - - - N - V - - - - - - M->FJ2_CLASSE=="1" .and. Fa271Chkbox(.T.) - - - S - - N - N - - - 1 2 - - - 67667 0
FJ2 11 FJ2_TOTAL L 1 0 Total Geral Total Gral. Gen. Total Total Geral Total General General Total - - x x x x x x x x x x x x x x x x Fa271SetL(.F.,.T.,.F.,.F.) - 1 x - - - N - V - - - - - - M->FJ2_CLASSE=="1" .and. Fa271Chkbox(,.T.) - - - S - - N - N - - - 1 2 - - - 67668 0
FJ2 12 FJ2_SEPARA L 1 0 Sem Valor Sin Valor No value Linha Sem Valor Linea Sin Valor No value line - - x x x x x x x x x x x x x x x x Fa271SetL(.F.,.F.,.T.,.F.) - 1 x - - - N - V - - - - - - M->FJ2_CLASSE=="1" .and. Fa271Chkbox(,,.T.) - - - S - - N - N - - - 1 2 - - - 67669 0
FJ2 13 FJ2_TRACO L 1 0 Traco Traco Trace Traco Traco Traco - - x x x x x x x x x x x x x x x x Fa271SetL(.F.,.F.,.F.,.T.) - 1 x - - - N - V - - - - - - M->FJ2_CLASSE=="1" .and. Fa271Chkbox(,,,.T.) - - - S - - N - N - - - 1 2 - - - 67670 0
FJ2 14 FJ2_IDENT C 1 0 Identificad. Identificad. Identifier Identificador Identificador Identifier - - x x x x x x x x x x x x x x x - - 1 - - - - N - - - - - - - - - - - - S - - N - N - - - 1 2 - - - 67671 0
FJ2 15 FJ2_TOTVIS C 1 0 Resul.Visao? Resul.Vision View Resul.? Resultado da Visao? Resultado de Vision View Result? @! - x x x x x x x x x x x x x x x x '2' - 1 x - - - S - - - - 1=Sim;2=Nao 1=Si;2=No 1=Yes;2=No - M->FJ2_CLASSE=="1" - - - S - - N - N - - - 1 2 - - - 67672 0
FJ2 16 FJ2_VISENT C 1 0 Vis. Entid.? Vis. Entid.? Views Ent? Visualiza Entidade? ¿Visualiza Entidad? Views Entity? @! - x x x x x x x x x x x x x x x x '1' - 1 x - - - S - - - - 1=Sim;2=Nao 1=Si;2=No 1=Yes;2=No - - - - - S - - N - N - - - 1 2 - - - 67673 0
FJ2 17 FJ2_SLDENT C 1 0 Sld. Entid.? Sld Ente Entity Bal.? Saldo Entidade? Saldo Ente Entity Balance? @! - x x x x x x x x x x x x x x x '1' - 1 x - - - S - - - - 1=Processamento;2=Saldo Anterior;3=Saldo Atual;4=Variacao 1=Procesamiento;2=Saldo anterior;3=Saldo actual;4=Variacion 1=Processing;2=Previous Balance;3=Current Balance;4=Variation - - - - - S - - N - N - - - 1 2 - - - 67674 0
FJ2 18 FJ2_FATSLD C 1 0 Fator Entid? ¿Fact. Ente? Ent. Factor Fator Entidade? ¿Factor Ente? Entity Factor @! - x x x x x x x x x x x x x x x x '1' - 1 x - - - S - - - - 1=Mantém;2=Inverte 1=Mantiene;2=Invierte 1=Keeps;2=Inverts - M->FJ2_CLASSE=="2" - - - S - - N - N - - - 1 2 - - - 67675 0

Índices da Tabela FJ2 (4 índices)

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_
FJ2 1 FJ2_FILIAL+FJ2_CODIGO+FJ2_CONTAG+FJ2_ORDEM Cod Visao + Entid Gerenc + Ordem Cod Vision + Ente Gestion + Orden View Code + Mngmt Ent. + Order S - - S 2 3 - 9928 0
FJ2 2 FJ2_FILIAL+FJ2_CODIGO+FJ2_CTASUP+FJ2_ORDEM+FJ2_CONTAG Cod Visao + Entid Super + Ordem + Entid Gerenc Cod Vision + Ente Super + Orden + Ente Gestion View Code + Superior Ent + Order + Mngmt Ent. S - - S 2 3 - 9929 0
FJ2 3 FJ2_FILIAL+FJ2_DESCCG Desc Ent Ger Desc Ent Ger Man Ent Desc S - - S 2 3 - 9930 0
FJ2 4 FJ2_FILIAL+FJ2_CODIGO+FJ2_ORDEM Cod Visao + Ordem Cod Vision + Orden View Code + Order S - - S 2 3 - 9931 0

Perguntas frequentes

Para que serve a tabela FJ2 no Protheus?

Ela é utilizada para estrutura da visão dentro do sistema ERP Protheus.

Como consultar os campos da tabela FJ2?

Nesta página você pode visualizar todos os campos, incluindo tipo, tamanho e validações.

O que são os índices da tabela FJ2?

Os índices são estruturas que melhoram a performance de busca e acesso aos dados dentro do Protheus.

Exemplo de consulta SQL da tabela FJ2

Modelo de query gerado automaticamente com base na estrutura da tabela.

SELECT
    FJ2_FILIAL,
    FJ2_CODIGO,
    FJ2_CONTAG,
    FJ2_ORDEM,
    FJ2_CLASSE,
    FJ2_CTASUP,
    FJ2_DESCCG,
    FJ2_NORMAL,
    FJ2_COLUNA,
    FJ2_NEGRIT,
    FJ2_TOTAL,
    FJ2_SEPARA,
    FJ2_TRACO,
    FJ2_IDENT,
    FJ2_TOTVIS,
    FJ2_VISENT,
    FJ2_SLDENT,
    FJ2_FATSLD
FROM FJ2
WHERE
    D_E_L_E_T_ = ' '
    AND FJ2_FILIAL = 'VALOR'
    AND FJ2_CODIGO = 'VALOR'
    AND FJ2_CONTAG = 'VALOR'
    AND FJ2_ORDEM = 'VALOR'
    AND FJ2_CLASSE = 'VALOR'
    AND FJ2_CTASUP = 'VALOR'
    AND FJ2_DESCCG = 'VALOR'
    AND FJ2_NORMAL = 'VALOR'
    AND FJ2_COLUNA = 'VALOR'
    AND FJ2_IDENT = 'VALOR'
    AND FJ2_TOTVIS = 'VALOR'
    AND FJ2_VISENT = 'VALOR'
    AND FJ2_SLDENT = 'VALOR'
    AND FJ2_FATSLD = 'VALOR'