Tabela BUP

DIOPS CONTRATOS ESTIPULADOS
13camposNome físicoBUP010(empresa 01)

Campos da tabela BUP

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

13
CampoDescrição
BUP_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
BUP_CODOPE
Caractere (C)(6)
Operadora
Máscara:
999999
Contexto:
Real
BUP_CODOBR
Caractere (C)(3)
Cod.Obrig
Contexto:
Real
BUP_REFERE
Caractere (C)(2)
Trim Ref
Contexto:
Real
BUP_ANOCMP
Caractere (C)(4)
Ano Cmp
Contexto:
Real
BUP_CDCOMP
Caractere (C)(3)
Cod Compro
Contexto:
Real
BUP_OPECOE
Caractere (C)(6)
Reg Ope ANS
Contexto:
Real
BUP_VLRFAT
Numérico (N)(16,2)
Vlr Faturam
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
Validação:
Positivo()
BUP_DTINVL
Data (D)(8)
Dt Ini Val
Contexto:
Real
BUP_HRINVL
Caractere (C)(8)
Hr Ini Val
Contexto:
Real
BUP_DTTEVL
Data (D)(8)
Dt Ter Val
Contexto:
Real
BUP_HRTEVL
Caractere (C)(8)
Hr Ter Val
Contexto:
Real
BUP_STATUS
Caractere (C)(1)
Status
Contexto:
Real

SELECT de exemplo da tabela BUP

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
  BUP.BUP_FILIAL,
  BUP.BUP_CODOPE,
  BUP.BUP_CODOBR,
  BUP.BUP_REFERE,
  BUP.BUP_ANOCMP,
  BUP.BUP_CDCOMP,
  BUP.BUP_OPECOE,
  BUP.BUP_VLRFAT
FROM BUP010 BUP
WHERE BUP.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.