Tabela BAG

Classes da Rede de Atendimento
9camposNome físicoBAG010(empresa 01)

Campos da tabela BAG

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

9
CampoDescrição
BAG_FILIAL
Caractere (C)(2)
Filial
BAG_CODIGO
Caractere (C)(3)
Codigo
Máscara:
@!
Validação:
ExistChav("BAG",M->BAG_CODIGO,1)
BAG_DESCRI
Caractere (C)(40)
Descricao
Máscara:
@!
BAG_CODPT
Caractere (C)(10)
Codigo Trans
Máscara:
@!
BAG_FORCON
Caractere (C)(50)
Formula Tran
Máscara:
@!
BAG_QTDESP
Numérico (N)(4)
Qtd.Espec.
Máscara:
9999
BAG_TIPPE
Caractere (C)(1)
Tipo Pessoa
Máscara:
@!
3 valores possíveis
  • FFisica
  • JJuridica
  • AAmbas
BAG_OBRCID
Caractere (C)(1)
Obr. Inf CID
Máscara:
@!
2 valores possíveis
  • 1Sim
  • 0Nao
BAG_CONSFT
Caractere (C)(1)
Cons.Fat.Mul
Máscara:
@!
2 valores possíveis
  • 1Sim
  • 0Nao

SELECT de exemplo da tabela BAG

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
  BAG.BAG_FILIAL,
  BAG.BAG_CODIGO,
  BAG.BAG_DESCRI,
  BAG.BAG_CODPT,
  BAG.BAG_FORCON,
  BAG.BAG_QTDESP,
  BAG.BAG_TIPPE,
  BAG.BAG_OBRCID
FROM BAG010 BAG
WHERE BAG.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.