Tabela FKG

COMPLEMENTO IMPOSTO X TITULOS
19camposNome físicoFKG010(empresa 01)

Campos da tabela FKG

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

19
CampoDescrição
FKG_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
FKG_ITEM
Caractere (C)(6)
Item
Máscara:
@!
Contexto:
Real
FKG_IDDOC
Caractere (C)(32)
Id. Doc.
Máscara:
@!
Contexto:
Real
FKG_IDFKE
Caractere (C)(6)
Codigo
Máscara:
@!
Contexto:
Real
Consulta F3:
FKE
Validação:
ExistCpo("FKE") .and. F986VlFke()
FKG_TPIMP
Caractere (C)(6)
Tipo Imposto
Máscara:
@!
Contexto:
Real
Consulta F3:
0C
FKG_DEDACR
Caractere (C)(1)
Acao
Máscara:
@!
Contexto:
Real
Validação:
Pertence("123")
3 valores possíveis
  • 1Deducao
  • 2Acrescimo
  • 3Informativo
FKG_APLICA
Caractere (C)(1)
Aplicacao
Máscara:
@!
Contexto:
Real
Validação:
Pertence("12")
2 valores possíveis
  • 1Base
  • 2Valor
FKG_CALCUL
Caractere (C)(1)
Calcula por
Máscara:
@!
Contexto:
Real
Validação:
Pertence(" 12")
2 valores possíveis
  • 1Valor
  • 2Percentual
FKG_PERCEN
Numérico (N)(5,2)
Percentual
Máscara:
@E 99.99
Contexto:
Real
FKG_TPATRB
Caractere (C)(6)
Tipo Acao
Máscara:
@!
Contexto:
Real
FKG_DESATR
Caractere (C)(55)
Descr.Compl
Máscara:
@!
Contexto:
Virtual (não existe no banco)
FKG_DESCR
Caractere (C)(20)
Descricao
Máscara:
@!
Contexto:
Real
FKG_VALOR
Numérico (N)(16,2)
Valor
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
Validação:
Positivo() .and. F986VlVal()
FKG_NUMPRO
Caractere (C)(10)
Processo Jud
Máscara:
@!
Contexto:
Real
Consulta F3:
CCFSUS
Modo de edição (When):
Fa986Numpr()
FKG_TPPROC
Caractere (C)(1)
Tipo Process
Máscara:
@!
Contexto:
Real
5 valores possíveis
  • 0Sefaz
  • 1Justica Federal
  • 2Justica Estadual
  • 3Secex/SRF
  • 9Outros
FKG_TITINS
Caractere (C)(32)
Tit. INS.
Máscara:
@!
Contexto:
Real
FKG_APURIN
Caractere (C)(1)
Apur. INS.
Máscara:
@!
Contexto:
Real
Validação:
Pertence("123")
3 valores possíveis
  • 1Pendente
  • 2Nao Apura
  • 3Apurado
FKG_BASECA
Numérico (N)(14,2)
Base de Calc
Máscara:
@E 99,999,999,999.99
Contexto:
Real
Modo de edição (When):
FwFldGet("FKG_CALCUL") == "2"
FKG_CODSUS
Caractere (C)(14)
Ind Suspens.
Máscara:
@!
Contexto:
Real

SELECT de exemplo da tabela FKG

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
  FKG.FKG_FILIAL,
  FKG.FKG_ITEM,
  FKG.FKG_IDDOC,
  FKG.FKG_IDFKE,
  FKG.FKG_TPIMP,
  FKG.FKG_DEDACR,
  FKG.FKG_APLICA,
  FKG.FKG_CALCUL
FROM FKG010 FKG
WHERE FKG.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.