Tabela BTO

Itens Intercâmbio Eventual
54camposNome físicoBTO010(empresa 01)

Campos da tabela BTO

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

54
CampoDescrição
BTO_FILIAL
Caractere (C)(2)
Filial
BTO_CODOPE
Caractere (C)(4)
Operadora
Máscara:
@!
Consulta F3:
B89PLS
BTO_IMAGEM
Caractere (C)(7)
Máscara:
@BMP
Contexto:
Virtual (não existe no banco)
BTO_OPEORI
Caractere (C)(4)
Ope. Origem
Máscara:
@!
Consulta F3:
B89PLS
BTO_DESOPE
Caractere (C)(40)
Descricao
Contexto:
Virtual (não existe no banco)
BTO_NUMERO
Caractere (C)(8)
Numero Lote
Máscara:
@!
Validação:
ExistChav("BTF",M->BTF_CODOPE+M->BTF_NUMERO,1)
BTO_DATGER
Data (D)(8)
Data Geracao
Máscara:
@D
BTO_USUOPE
Caractere (C)(25)
Operador
BTO_HORA
Caractere (C)(8)
Horario
Máscara:
@!
BTO_ANOINI
Caractere (C)(4)
Ano Inicial
Máscara:
@!
Validação:
M->BTF_ANOINI >= subs(dtos(dDataBase),1,4)
BTO_MESINI
Caractere (C)(2)
Mes Inicial
Máscara:
@!
Validação:
M->BTF_MESINI >= "01" .And. M->BTF_MESINI <= "12"
BTO_CODINT
Caractere (C)(4)
Grupo Interc
Máscara:
@R !.!!!
BTO_QTDEVE
Numérico (N)(6)
Oper.Geradas
Máscara:
999999
BTO_VLRCOP
Numérico (N)(16,2)
Ser. RDA
Máscara:
@E 9,999,999,999,999.99
BTO_VLRCP2
Numérico (N)(16,2)
Ser. Ace.
Máscara:
@E 9,999,999,999,999.99
BTO_VLRCP3
Numérico (N)(16,2)
Outros Serv.
Máscara:
@E 9,999,999,999,999.99
BTO_VLRTAX
Numérico (N)(16,2)
Taxa Adminis
Máscara:
@E 9,999,999,999,999.99
BTO_CUSTOT
Numérico (N)(16,2)
Total
Máscara:
@E 9,999,999,999,999.99
BTO_PREFIX
Caractere (C)(3)
Prefixo Tit.
Máscara:
@!
BTO_NUMTIT
Caractere (C)(9)
Num. Titulo
Máscara:
@!
BTO_PARCEL
Caractere (C)(2)
Numero Parc.
Máscara:
@!
BTO_TIPTIT
Caractere (C)(3)
Tipo Titulo
Máscara:
@!
BTO_STATUS
Caractere (C)(1)
Status
Máscara:
@!
4 valores possíveis
  • 1Faturado
  • 2Criticado
  • 3Nao Selec.
  • 4Cancelado
BTO_SEQUEN
Caractere (C)(3)
Sequencia
Máscara:
@!
Validação:
ExistChav("BTF",M->BTF_CODOPE+M->BTF_NUMERO,1)
BTO_CAMARA
Caractere (C)(1)
Cam. de Comp
Máscara:
@!
4 valores possíveis
  • 1Intra-Federativa
  • 2Federativa
  • 3Inter-Federativa
  • 4Nacional
BTO_OK
Caractere (C)(2)
Controle
Contexto:
Real
BTO_ENV500
Caractere (C)(1)
Enviado A500
Contexto:
Real
BTO_ENV600
Caractere (C)(1)
Enviado A600
Contexto:
Real
BTO_ENV700
Caractere (C)(1)
Enviado A700
Contexto:
Real
BTO_GRPOPE
Caractere (C)(2)
Gp.Operadora
Máscara:
@!
Contexto:
Real
BTO_TPCOB
Caractere (C)(1)
Tp. Cobranca
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 1NDC
  • 2Fatura
BTO_TPMOV
Caractere (C)(1)
Tp Movimento
Máscara:
@!
Contexto:
Real
3 valores possíveis
  • 1NDC
  • 2Fatura
  • 3Ambos
BTO_NIV550
Caractere (C)(1)
Nivel A550
Máscara:
@!
Contexto:
Real
BTO_SLDGPF
Numérico (N)(16,2)
Sld.Glo.Pa/F
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
BTO_SLDGCO
Numérico (N)(16,2)
Sld.Glo.Comp
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
BTO_GPFPRE
Caractere (C)(3)
Pref.Tit.P/F
Máscara:
@!
Contexto:
Real
BTO_GPFTIT
Caractere (C)(9)
Num.Tit.P/Fe
Máscara:
@!
Contexto:
Real
BTO_GPFPAR
Caractere (C)(2)
Par.Tit.P/Fe
Máscara:
@!
Contexto:
Real
BTO_GPFTIP
Caractere (C)(3)
Tip.Tit.P/Fe
Máscara:
@!
Contexto:
Real
BTO_GCOPRE
Caractere (C)(3)
Pref.Tit.Com
Máscara:
@!
Contexto:
Real
BTO_GCOTIT
Caractere (C)(9)
Num.Tit.Comp
Máscara:
@!
Contexto:
Real
BTO_GCOPAR
Caractere (C)(2)
Par.Tit.Comp
Máscara:
@!
Contexto:
Real
BTO_GCOTIP
Caractere (C)(3)
Tip.Tit.Comp
Máscara:
@!
Contexto:
Real
BTO_ARQPAR
Caractere (C)(1)
Tp.Arq.Parc
Máscara:
@!
Contexto:
Real
Validação:
Vazio() .Or. Pertence('12')
2 valores possíveis
  • 1Parcial 1
  • 2Parcial 2
BTO_SLDGP2
Numérico (N)(16,2)
Sld.Glo.Par2
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
BTO_GP2PRE
Caractere (C)(3)
Pre.Tit.Par2
Máscara:
@!
Contexto:
Real
BTO_GP2TIT
Caractere (C)(9)
Num.Tit.P2
Máscara:
@!
Contexto:
Real
BTO_GP2PAR
Caractere (C)(2)
Par.Tit.Par2
Máscara:
@!
Contexto:
Real
BTO_GP2TIP
Caractere (C)(3)
Tip.Tit.Par2
Máscara:
@!
Contexto:
Real
BTO_STTIT
Caractere (C)(1)
Stat Titulo
Contexto:
Real
3 valores possíveis
  • 0Nao comunicado
  • 1Comunicacao OK
  • 2Comunicado com erro
BTO_STTP1
Caractere (C)(1)
Stat Parc 1
Contexto:
Real
3 valores possíveis
  • 0Nao comunicado
  • 1Comunicacao OK
  • 2Comunicado com erro
BTO_STTP2
Caractere (C)(1)
Stat Parc 2
Contexto:
Real
3 valores possíveis
  • 0Nao comunicado
  • 1Comunicacao OK
  • 2Comunicado com erro
BTO_STTCO
Caractere (C)(1)
Stat Comp
Contexto:
Real
3 valores possíveis
  • 0Nao comunicado
  • 1Comunicacao OK
  • 2Comunicado com erro
BTO_REEANE
Caractere (C)(1)
Reembolso?
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 1Sim
  • 0Nao

SELECT de exemplo da tabela BTO

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
  BTO.BTO_FILIAL,
  BTO.BTO_CODOPE,
  BTO.BTO_OPEORI,
  BTO.BTO_NUMERO,
  BTO.BTO_DATGER,
  BTO.BTO_USUOPE,
  BTO.BTO_HORA,
  BTO.BTO_ANOINI
FROM BTO010 BTO
WHERE BTO.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.