Tabela BCI

Protocolo de Entrega de Guias
53camposNome físicoBCI010(empresa 01)

Campos da tabela BCI

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

53
CampoDescrição
BCI_FILIAL
Caractere (C)(2)
Filial
BCI_DESSTA
Caractere (C)(10)
Status
Máscara:
@C
Contexto:
Virtual (não existe no banco)
BCI_DESFAS
Caractere (C)(15)
Fase
Máscara:
@C
Contexto:
Virtual (não existe no banco)
BCI_CODOPE
Caractere (C)(4)
Operadora
Máscara:
@R !.!!!
Consulta F3:
B89PLS
Validação:
PLSVLDINT(M->BCI_CODOPE)
BCI_DESOPE
Caractere (C)(40)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BCI_CODLDP
Caractere (C)(4)
Cd Local Dig
Máscara:
@!
Consulta F3:
BCGPLS
Validação:
ExistCpo("BCG",M->BCI_CODLDP,1) .and. M->BCI_CODLDP == PLSRETLDP(1)
BCI_DESLDP
Caractere (C)(30)
Descricao
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BCI_SEQNFS
Caractere (C)(20)
Protoc. TISS
Máscara:
@!
BCI_CODPEG
Caractere (C)(8)
Protocolo
Máscara:
@!
BCI_OPERDA
Caractere (C)(4)
Oper. RDA
Máscara:
@R !.!!!
Consulta F3:
B89PLS
Validação:
PLSVLDINT(M->BCI_CODOPE)
BCI_CODRDA
Caractere (C)(6)
Rede Atend.
Máscara:
@!
Consulta F3:
BCIPLS
Validação:
P498VRda()
BCI_NOMRDA
Caractere (C)(40)
Nome RDA
Máscara:
@!
BCI_TIPSER
Caractere (C)(2)
Tipo Servico
Máscara:
@!
Consulta F3:
BCJPLS
Validação:
ExistCpo("BCJ",M->BCI_CODOPE+M->BCI_TIPSER,1)
Modo de edição (When):
INCLUI
BCI_DESSER
Caractere (C)(30)
Servico
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BCI_TIPGUI
Caractere (C)(2)
Tipo Guia
Máscara:
@!
Consulta F3:
BCLPLS
Validação:
PLSA498TPG(M->BCI_CODOPE,M->BCI_TIPGUI) .And. PLSVAlPAP()
BCI_CGCRDA
Caractere (C)(14)
Recebedor
Máscara:
99999999999999
Contexto:
Real
Validação:
Vazio() .Or. (CGC(M->BCI_CGCRDA) .And. ExistCpo('BAU',M->BCI_CGCRDA,4) ) .And. PLSVLDRDG(M->BCI_CGCRDA, .T.) .And. PLSVALPAP()
BCI_DESGUI
Caractere (C)(30)
Descr. Guia
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BCI_QTDEVE
Numérico (N)(16,2)
Qtd Eventos
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
BCI_QTDEVD
Numérico (N)(6)
Qt.Evt.Dig.
Máscara:
999999
Contexto:
Real
BCI_VLRGUI
Numérico (N)(16,2)
Vlr.Tt.Guias
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
Validação:
Positivo()
BCI_DATREC
Data (D)(8)
Data Recto.
Validação:
PLSVDTRPEG(M->BCI_DATREC,M->BCI_CODOPE,M->BCI_CODRDA,M->BCI_TIPGUI) .AND. PLSVLDRDG(M->BCI_CODRDA)
BCI_DTDIGI
Data (D)(8)
Dt Digitacao
BCI_STATUS
Caractere (C)(1)
Status
Máscara:
@!
Validação:
Pertence("1;0")
2 valores possíveis
  • 1Aberto
  • 0Fechado
BCI_NRIMUN
Caractere (C)(16)
N Impr Unico
Máscara:
@!
Contexto:
Real
BCI_QTDDIG
Numérico (N)(6)
Qtd. Guias
Máscara:
999999
Contexto:
Real
Validação:
Positivo()
BCI_CODCOR
Caractere (C)(2)
Cod Cor
Máscara:
@!
BCI_FASE
Caractere (C)(1)
Fase
Máscara:
@!
Validação:
Pertence("1;2;3;4")
4 valores possíveis
  • 1Em digitacao
  • 2Em conferencia
  • 3Pronto
  • 4Faturada
BCI_SITUAC
Caractere (C)(1)
Situacao
Máscara:
@!
Validação:
Pertence("1;2;3")
3 valores possíveis
  • 1Ativo
  • 2Cancelado
  • 3Bloqueado
BCI_MES
Caractere (C)(2)
Mes
Máscara:
@!
BCI_ANO
Caractere (C)(4)
Ano
Máscara:
@!
BCI_TIPO
Caractere (C)(1)
Tipo
Máscara:
@!
Validação:
Pertence("1;2")
2 valores possíveis
  • 1Incluido Manualmente
  • 2Incluido Eletronicamente
BCI_TIPPRE
Caractere (C)(3)
Classe RDA
Máscara:
@!
BCI_ARQUIV
Caractere (C)(70)
Arquivo Imp
Máscara:
@!
BCI_PROTOC
Caractere (C)(12)
Num. Protoc.
Máscara:
@!
Contexto:
Real
BCI_GUIPAP
Caractere (C)(1)
Nec. Papel?
Máscara:
@!
Contexto:
Real
2 valores possíveis
  • 0Nao
  • 1Sim
BCI_DATGUI
Data (D)(8)
Dt Rec Papel
Máscara:
@D
Contexto:
Real
Modo de edição (When):
M->BCI_GUIPAP=="1"
BCI_CODDAT
Caractere (C)(3)
Cod. Data
Máscara:
@!
Contexto:
Real
Consulta F3:
PLSDPG
Validação:
PLSVDBCI()
Modo de edição (When):
M->BCI_TIPO=="1"
BCI_DATPAG
Data (D)(8)
Data Pagto
Máscara:
@D
Contexto:
Real
Validação:
PL498DAT()
Modo de edição (When):
M->BCI_CODDAT =="000"
BCI_LOTGUI
Caractere (C)(12)
Lote Guia
Máscara:
@!
Contexto:
Real
BCI_PROCES
Caractere (C)(8)
Processo
Máscara:
@!
Contexto:
Real
BCI_OPERES
Caractere (C)(6)
Cod. Ope. Re
Máscara:
@!
Contexto:
Real
BCI_NOMRES
Caractere (C)(40)
Responsavel
Máscara:
@!
Contexto:
Virtual (não existe no banco)
BCI_ORIGEM
Caractere (C)(1)
Origem
Máscara:
@!
Contexto:
Real
3 valores possíveis
  • 0Remote
  • 1Portal
  • 2WSDL
BCI_CODGLO
Caractere (C)(3)
Cod Glosa
Máscara:
@
Contexto:
Real
Validação:
BCT->(ExistCpo("BCT",PLSINTPAD()+M->BDX_CODGLO,1)) .And. PLSVLDGD()
BCI_VLRGLO
Numérico (N)(16,2)
Valor Glosa
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
BCI_SITRG
Caractere (C)(1)
Sit. Rec. Gl
Máscara:
@!
Contexto:
Real
6 valores possíveis
  • 0Sem rec de glosa
  • 1Rec Glosa Protocolado
  • 2Rec Glosa Em Analise
  • 3Rec Glosa Autorizado
  • 4Rec Glosa Negado
  • 5Aut. Parc
BCI_DIGOFF
Caractere (C)(1)
Dig. OffLine
Contexto:
Real
2 valores possíveis
  • 0Nao
  • 1Sim
BCI_STTISS
Caractere (C)(1)
Status Tiss
Máscara:
@!
Contexto:
Real
1 valores possíveis
  • #PLSSTATISS()
BCI_USRLIB
Caractere (C)(6)
Usuario Lib.
Contexto:
Real
BCI_VLRAPR
Numérico (N)(16,2)
Vlr Apresent
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real
Validação:
POSITIVO()
BCI_DTHRLB
Caractere (C)(20)
Dt e Hr Lib
Contexto:
Real
BCI_IDXML
Caractere (C)(50)
ID XML
Máscara:
@!
Contexto:
Real
BCI_VALORI
Numérico (N)(16,2)
Vlr Apr Tot
Máscara:
@E 9,999,999,999,999.99
Contexto:
Real

SELECT de exemplo da tabela BCI

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
  BCI.BCI_FILIAL,
  BCI.BCI_CODOPE,
  BCI.BCI_CODLDP,
  BCI.BCI_SEQNFS,
  BCI.BCI_CODPEG,
  BCI.BCI_OPERDA,
  BCI.BCI_CODRDA,
  BCI.BCI_NOMRDA
FROM BCI010 BCI
WHERE BCI.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.