Dicionário Protheus
Início

Tabela AM2 no Protheus

Estrutura de Planejamento

O que é a tabela AM2 no Protheus?

A tabela AM2 faz parte do sistema ERP Protheus da TOTVS e é utilizada para estrutura de planejamento.

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

Propriedades da Tabela

Propriedade Valor
X2_CHAVE AM2
X2_PATH \DATA\
X2_ARQUIVO AM2990
X2_NOME Estrutura de Planejamento
X2_NOMESPA Estructura de Planificacion
X2_NOMEENG Planning Structure
X2_ROTINA -
X2_MODO E
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_ 421
R_E_C_D_E_L_ 0

Campos da Tabela AM2 (9 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_
AM2 01 AM2_FILIAL C 2 0 Filial Sucursal Branch Filial do Sistema Sucursal del Sistema Branch System - - 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 - - - 5905 0
AM2 02 AM2_PLANEJ C 15 0 Planejamento Planificacio Planning Planejamento Planificacion Planning @! - 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 - - - 5906 0
AM2 03 AM2_VERSAO C 4 0 Versao Version Version Versao Version Version @! - 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 - - - 5907 0
AM2 04 AM2_AGREG C 60 0 Agregador Agregador Join Agregador Agregador Join @! - 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 - - - 5908 0
AM2 05 AM2_TIPOPL C 3 0 Tipo Planej. Tipo Planif. Plan. Type Tipo Planej. Tipo de Planificacion Planning Type @! - 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 - - - 5909 0
AM2 06 AM2_ID C 8 0 Sequencia Secuencia Sequence Sequencia Secuencia Sequence @! - 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 - - - 5910 0
AM2 07 AM2_IDPAI C 8 0 Id Pai Id Principal Parent Id. Id Pai Id Principal Parent Id. @! - 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 - - - 5911 0
AM2 08 AM2_VARPNJ C 3 0 Var. Planej. Var. Planeam Plan.Variat. Variação de Planejamento. Variacion de Planeamiento Planning Variation @! - x x x x x x x x x x x x x x x - - 1 x - - - - - - - - - - - - - - - - N - - N N N - - - 1 2 - - - 5912 0
AM2 09 AM2_CHVCON C 120 0 Chav. Concat Clave Concat Grp.Key Chave concatenada. Clave concatenada Grouped key @! - x x x x x x x x x x x x x x x - - 1 - - - - - - - - - - - - - - - - - N - - N N N - - - 1 2 - - - 5913 0

Índices da Tabela AM2 (3 í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_
AM2 1 AM2_FILIAL+AM2_PLANEJ+AM2_VERSAO+AM2_AGREG+AM2_TIPOPL+AM2_ID+AM2_IDPAI Planejamento + Versao + Agregador + Tipo Planej. + Sequencia + Id Pai Planificacio + Version + Agregador + Tipo Planif. + Secuencia + Id Pri Planning + Version + Join + Plan. Type + Sequence + Parent Id. S - - S 2 3 - 1062 0
AM2 2 AM2_FILIAL+AM2_PLANEJ+AM2_VERSAO+AM2_TIPOPL+AM2_AGREG+AM2_ID+AM2_IDPAI Planejamento + Versao + Tipo Planej. + Agregador + Sequencia + Id Pai Planificacio + Version + Tipo Planif. + Agregador + Secuencia + Id Pri Planning + Version + Plan. Type + Join + Sequence + Parent Id. S - - S 2 3 - 1063 0
AM2 3 AM2_FILIAL+AM2_PLANEJ+AM2_VERSAO+AM2_TIPOPL+AM2_ID+AM2_IDPAI Planejamento + Versao + Tipo Planej. + Sequencia + Id Pai Planificacio + Version + Tipo Planif. + Secuencia + Id Principal Planning + Version + Plan. Type + Sequence + Parent Id. S - - S 2 3 - 1064 0

Perguntas frequentes

Para que serve a tabela AM2 no Protheus?

Ela é utilizada para estrutura de planejamento dentro do sistema ERP Protheus.

Como consultar os campos da tabela AM2?

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

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

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

Exemplo de consulta SQL da tabela AM2

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

SELECT
    AM2_FILIAL,
    AM2_PLANEJ,
    AM2_VERSAO,
    AM2_AGREG,
    AM2_TIPOPL,
    AM2_ID,
    AM2_IDPAI,
    AM2_VARPNJ,
    AM2_CHVCON
FROM AM2
WHERE
    D_E_L_E_T_ = ' '
    AND AM2_FILIAL = 'VALOR'
    AND AM2_PLANEJ = 'VALOR'
    AND AM2_VERSAO = 'VALOR'
    AND AM2_AGREG = 'VALOR'
    AND AM2_TIPOPL = 'VALOR'
    AND AM2_ID = 'VALOR'
    AND AM2_IDPAI = 'VALOR'
    AND AM2_VARPNJ = 'VALOR'
    AND AM2_CHVCON = 'VALOR'