Tabela AFX

Usuários
25camposNome físicoAFX010(empresa 01)

Campos da tabela AFX

25 campos no dicionário de dados do TOTVS Protheus.

25
CampoDescrição
AFX_FILIAL
Caractere (C)(2)
Filial
AFX_PROJET
Caractere (C)(10)
Projeto
Consulta F3:
AFC
AFX_REVISA
Caractere (C)(4)
Versao
Máscara:
99
AFX_EDT
Caractere (C)(12)
EDT
Máscara:
@!
AFX_USER
Caractere (C)(6)
Cod. Usuario
Máscara:
@!
Consulta F3:
USR
Validação:
UsrExist(M->AFX_USER).AND.PmsChkAFX(M->AFX_USER)
AFX_FASE
Caractere (C)(2)
Fase
Máscara:
@!
Consulta F3:
AEA
Validação:
Vazio() .or. ExistCpo("AEA")
AFX_NOME
Caractere (C)(25)
Usuario
Máscara:
@!
Contexto:
Virtual (não existe no banco)
AFX_GRPUSR
Caractere (C)(6)
Grp Usuarios
Máscara:
@!
Contexto:
Real
Consulta F3:
GRP
Validação:
PMSVLDGRUSR(M->AFX_GRPUSR).AND.ExistChav( 'AFX',M->(AFX_PROJET+AFX_REVISA+AFX_EDT+AFX_GRPUSR+AFX_FASE), 2 )
AFX_ESTRUT
Caractere (C)(1)
Estrutura
Máscara:
@!
Validação:
Pertence("123")
3 valores possíveis
  • 1Visualizar
  • 2Alterar
  • 3Controle Total
AFX_DOCUME
Caractere (C)(1)
Documentos
Máscara:
@!
Validação:
Pertence("123")
3 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Controle Total
AFX_GERSC
Caractere (C)(1)
Sol. Compras
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFX_GERSA
Caractere (C)(1)
Sol. Armazem
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFX_GEROP
Caractere (C)(1)
Ordem Prod.
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFX_GERCP
Caractere (C)(1)
Contratos
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFX_GEREMP
Caractere (C)(1)
Empenhos
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFX_CONFIR
Caractere (C)(1)
Confirmacoes
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFX_NFE
Caractere (C)(1)
Doc.Entrada
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFX_REQUIS
Caractere (C)(1)
Internos
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFX_DESP
Caractere (C)(1)
Tit. a Pagar
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFX_RECEI
Caractere (C)(1)
Tit.Receber
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFX_RECURS
Caractere (C)(1)
Apt.Recursos
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFX_NFS
Caractere (C)(1)
Doc.Saida
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFX_MOVBAN
Caractere (C)(1)
Mov.Bancario
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFX_PREREC
Caractere (C)(1)
Pre Apt.Rec
Máscara:
@!
Contexto:
Real
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFX_APRPRE
Caractere (C)(1)
Apr.Pre Apon
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Bloqueado
  • 2Controle Total

SELECT de exemplo da tabela AFX

No Protheus a tabela física leva o código da empresa (01 → 010) e registros excluídos ficam com D_E_L_E_T_ = '*'.

SQL · SQL Server
SELECT TOP 100
  AFX.AFX_FILIAL,
  AFX.AFX_PROJET,
  AFX.AFX_REVISA,
  AFX.AFX_EDT,
  AFX.AFX_USER,
  AFX.AFX_FASE,
  AFX.AFX_GRPUSR,
  AFX.AFX_ESTRUT
FROM AFX010 AFX
WHERE AFX.D_E_L_E_T_ = ' '

Tabelas próximas no índice do Protheus

O ERPSeeker é um projeto independente, sem vínculo com a TOTVS. A estrutura pode variar conforme a versão e as customizações do seu ambiente.