Tabela FK0

Tit. Gerados Impostos
9camposNome físicoFK0010(empresa 01)

Campos da tabela FK0

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

9
CampoDescrição
FK0_FILIAL
Caractere (C)(2)
Filial
FK0_IDDOC
Caractere (C)(32)
ID Doc
Máscara:
@!
Contexto:
Real
FK0_IDFK4
Caractere (C)(10)
Id. Ret.
Máscara:
@!
FK0_IDPAI
Caractere (C)(32)
ID Tit. Pai
Máscara:
@!
Contexto:
Real
FK0_CODFKM
Caractere (C)(6)
Tipo Imposto
Máscara:
@!
Contexto:
Real
FK0_TABORI
Caractere (C)(3)
Tab. Origem
Máscara:
@!
Contexto:
Real
FK0_PRCAGL
Caractere (C)(9)
Proc. Aglut.
Máscara:
@!
Contexto:
Real
FK0_IDORIG
Caractere (C)(32)
Id. Origem
Máscara:
@!
Contexto:
Real
FK0_FILORI
Caractere (C)(2)
Filial Orig.
Contexto:
Real

SELECT de exemplo da tabela FK0

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
  FK0.FK0_FILIAL,
  FK0.FK0_IDDOC,
  FK0.FK0_IDFK4,
  FK0.FK0_IDPAI,
  FK0.FK0_CODFKM,
  FK0.FK0_TABORI,
  FK0.FK0_PRCAGL,
  FK0.FK0_IDORIG
FROM FK0010 FK0
WHERE FK0.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.