Tabela B2T

Cabeçalho Lote de Aviso-Receb
17camposNome físicoB2T010(empresa 01)

Campos da tabela B2T

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

17
CampoDescrição
B2T_FILIAL
Caractere (C)(2)
Filial
Contexto:
Real
B2T_SEQLOT
Caractere (C)(8)
Seq. Lote
Máscara:
@!
Contexto:
Real
B2T_NUMLOT
Caractere (C)(12)
Num. Lote
Máscara:
@!
Contexto:
Real
B2T_STATUS
Caractere (C)(1)
Status
Contexto:
Real
4 valores possíveis
  • 1Aviso Importado
  • 2Baixa Aviso Pendente
  • 3Baixa Aviso Enviado
  • 4Lote Cancelado
B2T_TIPGUI
Caractere (C)(2)
Tipo Guia
4 valores possíveis
  • 01Consulta
  • 02SADT
  • 05Resumo
  • 06Honorario
B2T_OPEORI
Caractere (C)(4)
Oper. Origem
Contexto:
Real
B2T_DESORI
Caractere (C)(40)
Desc.Origem
Máscara:
@!
Contexto:
Virtual (não existe no banco)
B2T_OPEHAB
Caractere (C)(4)
Oper. Habit.
Contexto:
Real
B2T_DESHAB
Caractere (C)(40)
Desc.Habitua
Máscara:
@!
Contexto:
Real
B2T_SEQTRA
Caractere (C)(6)
Num.Sequenc.
Máscara:
@!
Contexto:
Real
B2T_DATTRA
Data (D)(8)
Dt.Transacao
Contexto:
Real
B2T_HORTRA
Caractere (C)(6)
Hr.Transacao
Máscara:
@R !!:!!:!!
Contexto:
Real
B2T_DATIMP
Data (D)(8)
Data Importa
Contexto:
Real
B2T_HORIMP
Caractere (C)(6)
Hora Importa
Máscara:
@R !!:!!:!!
Contexto:
Real
B2T_TISVER
Caractere (C)(7)
Versao TISS
Máscara:
@!
Contexto:
Real
B2T_CODRDA
Caractere (C)(6)
Codigo RDA
Máscara:
@!
Contexto:
Real
B2T_OK
Caractere (C)(2)
Check
Contexto:
Real

SELECT de exemplo da tabela B2T

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
  B2T.B2T_FILIAL,
  B2T.B2T_SEQLOT,
  B2T.B2T_NUMLOT,
  B2T.B2T_STATUS,
  B2T.B2T_TIPGUI,
  B2T.B2T_OPEORI,
  B2T.B2T_OPEHAB,
  B2T.B2T_DESHAB
FROM B2T010 B2T
WHERE B2T.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.