Tabela B8G

Idade do Saldo Passivo
22camposNome físicoB8G010(empresa 01)

Campos da tabela B8G

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

22
CampoDescrição
B8G_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
B8G_CODOPE
Caractere (C)(6)
Operadora
Máscara:
@!
Contexto:
Real
B8G_CODOBR
Caractere (C)(3)
Obrigacao
Máscara:
@!
Contexto:
Real
B8G_REFERE
Caractere (C)(2)
Trimestre
Máscara:
99
Contexto:
Real
B8G_ANOCMP
Caractere (C)(4)
Ano Compro.
Máscara:
9999
Contexto:
Real
B8G_CDCOMP
Caractere (C)(3)
Cod. Compro.
Máscara:
@!
Contexto:
Real
B8G_VENCTO
Caractere (C)(3)
Vencto Fin
Máscara:
@!
Contexto:
Real
6 valores possíveis
  • 000A Vencer
  • 030Venc de 1-30 dias
  • 060Venc de 31-60 dias
  • 090Venc de 61-90 dias
  • 099Venc +90 dias
  • 400PPSC
B8G_INDPRE
Numérico (N)(16,2)
Indiv Pre-Es
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
B8G_INDPOS
Numérico (N)(16,2)
Indiv Pos-Es
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
B8G_COLPRE
Numérico (N)(16,2)
Colet Pre-Es
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
B8G_COLPOS
Numérico (N)(16,2)
Colet Pos-Es
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
B8G_CREADM
Numérico (N)(16,2)
Cred. Admin.
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
B8G_PARBEN
Numérico (N)(16,2)
Part. Benef.
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
B8G_OUCROP
Numérico (N)(16,2)
Crd Oper Pre
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
B8G_CROPPO
Numérico (N)(16,2)
Crd.Oper Pos
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
B8G_OUCRPL
Numérico (N)(16,2)
Out Cred Pla
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
B8G_OUTCRE
Numérico (N)(16,2)
Outr Credito
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
B8G_STATUS
Caractere (C)(1)
Status
Máscara:
@!
Contexto:
Real
3 valores possíveis
  • 1Valid Pdte
  • 2Valido
  • 3Invalido
B8G_DTINVL
Data (D)(8)
Dt. Ini. Val
Contexto:
Real
B8G_HRINVL
Caractere (C)(8)
Hr. Ini. Val
Máscara:
@!
Contexto:
Real
B8G_DTTEVL
Data (D)(8)
Dt. Ter. Val
Contexto:
Real
B8G_HRTEVL
Caractere (C)(8)
Hr. Ter. Val
Máscara:
@!
Contexto:
Real

SELECT de exemplo da tabela B8G

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
  B8G.B8G_FILIAL,
  B8G.B8G_CODOPE,
  B8G.B8G_CODOBR,
  B8G.B8G_REFERE,
  B8G.B8G_ANOCMP,
  B8G.B8G_CDCOMP,
  B8G.B8G_VENCTO,
  B8G.B8G_INDPRE
FROM B8G010 B8G
WHERE B8G.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.