Tabela AFV

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

Campos da tabela AFV

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

25
CampoDescrição
AFV_FILIAL
Caractere (C)(2)
Filial
AFV_PROJET
Caractere (C)(10)
Projeto
AFV_REVISA
Caractere (C)(4)
Versao
Máscara:
99
AFV_TAREFA
Caractere (C)(12)
Tarefa
Máscara:
@!
AFV_USER
Caractere (C)(6)
Cod. Usuario
Máscara:
@!
Consulta F3:
USR
Validação:
UsrExist(M->AFV_USER).AND.PmsChkAFV(M->AFV_USER)
AFV_FASE
Caractere (C)(2)
Fase
Máscara:
@!
Consulta F3:
AEA
Validação:
Vazio() .Or. ExistCpo("AEA")
AFV_NOME
Caractere (C)(25)
Usuario
Máscara:
@!
Contexto:
Virtual (não existe no banco)
AFV_GRPUSR
Caractere (C)(6)
Grp Usuarios
Máscara:
@!
Contexto:
Real
Consulta F3:
GRP
Validação:
PMSVLDGRUSR(M->AFV_GRPUSR).AND.ExistChav( 'AFV',M->(AFV_PROJET+AFV_REVISA+AFV_TAREFA+AFV_GRPUSR+AFV_FASE), 2 )
AFV_ESTRUT
Caractere (C)(1)
Estrutura
Máscara:
@!
Validação:
Pertence("123")
3 valores possíveis
  • 1Visualizar
  • 2Alterar
  • 3Controle Total
AFV_DOCUME
Caractere (C)(1)
Documentos
Máscara:
@!
Validação:
Pertence("123")
3 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Controle Total
AFV_GERSC
Caractere (C)(1)
Sol. Compras
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFV_GERSA
Caractere (C)(1)
Sol. Armazem
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFV_GEROP
Caractere (C)(1)
Ordem Prod.
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFV_GERCP
Caractere (C)(1)
Contratos
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFV_GEREMP
Caractere (C)(1)
Empenhos
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFV_CONFIR
Caractere (C)(1)
Confirmacoes
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFV_NFE
Caractere (C)(1)
Doc.Entrada
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFV_REQUIS
Caractere (C)(1)
Internos
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFV_DESP
Caractere (C)(1)
Tit. a Pagar
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFV_RECEI
Caractere (C)(1)
Tit.Receber
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFV_RECURS
Caractere (C)(1)
Apt.Recursos
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFV_NFS
Caractere (C)(1)
Doc.Saida
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFV_MOVBAN
Caractere (C)(1)
Mov.Bancario
Máscara:
@!
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFV_PREREC
Caractere (C)(1)
Pre Apt.Rec.
Máscara:
@!
Contexto:
Real
Validação:
Pertence("1234")
4 valores possíveis
  • 1Bloqueado
  • 2Visualizar
  • 3Alterar
  • 4Controle Total
AFV_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 AFV

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
  AFV.AFV_FILIAL,
  AFV.AFV_PROJET,
  AFV.AFV_REVISA,
  AFV.AFV_TAREFA,
  AFV.AFV_USER,
  AFV.AFV_FASE,
  AFV.AFV_GRPUSR,
  AFV.AFV_ESTRUT
FROM AFV010 AFV
WHERE AFV.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.