Dicionário Protheus
Início
O Poder da Hiperautomação

Tabela BV3 no Protheus

Opcionais x Procedimentos

O que é a tabela BV3 no Protheus?

A tabela BV3 faz parte do sistema ERP Protheus da TOTVS e é utilizada para opcionais x procedimentos.

Ela pertence ao dicionário de dados do Protheus (SX2) e armazena informações essenciais utilizadas em processos como cadastros, movimentações e integrações do sistema.

A tabela BV3 possui diversos campos (SX3), cada um com regras específicas como tipo, tamanho e validações, além de índices (SIX) que otimizam a performance das consultas.

Nesta página você pode consultar a estrutura completa da tabela BV3, incluindo todos os campos e índices relacionados.

Propriedades da Tabela

Propriedade Valor
X2_CHAVE BV3
X2_PATH \DATA\
X2_ARQUIVO BV3990
X2_NOME Opcionais x Procedimentos
X2_NOMESPA Opcionales vs Procedimientos
X2_NOMEENG Options vs. Procedures
X2_ROTINA -
X2_MODO C
X2_MODOUN E
X2_MODOEMP E
X2_DELET 0
X2_TTS -
X2_UNICO -
X2_PYME N
X2_MODULO 33
X2_DISPLAY -
X2_SYSOBJ -
X2_USROBJ -
X2_POSLGT 1
X2_CLOB 2
X2_AUTREC 2
X2_TAMFIL 2
X2_TAMUN 0
X2_TAMEMP 0
X2_STAMP 2
X2_INSDT 2
D_E_L_E_T_ -
R_E_C_N_O_ 1602
R_E_C_D_E_L_ 0

Campos da Tabela BV3 (36 campos)

X3_ARQUIVO X3_ORDEM X3_CAMPO X3_TIPO X3_TAMANHO X3_DECIMAL X3_TITULO X3_TITSPA X3_TITENG X3_DESCRIC X3_DESCSPA X3_DESCENG X3_PICTURE X3_VALID X3_USADO X3_RELACAO X3_F3 X3_NIVEL X3_RESERV X3_CHECK X3_TRIGGER X3_PROPRI X3_BROWSE X3_VISUAL X3_CONTEXT X3_OBRIGAT X3_VLDUSER X3_CBOX X3_CBOXSPA X3_CBOXENG X3_PICTVAR X3_WHEN X3_INIBRW X3_GRPSXG X3_FOLDER X3_PYME X3_CONDSQL X3_CHKSQL X3_IDXSRV X3_ORTOGRA X3_IDXFLD X3_TELA X3_PICBRV X3_AGRUP X3_POSLGT X3_MODAL X3_CHKSUM X3_ADDSUM D_E_L_E_T_ R_E_C_N_O_ R_E_C_D_E_L_
BV3 01 BV3_FILIAL C 2 0 Filial Sucursal Branch Filial Sucursal Branch - - x x x x x x x x x x x x x x x - - 1 xxx xxx - - - - - - - - - - - - - - 033 - S - - N N N - - - 1 1 - - - 26319 0
BV3 02 BV3_CODINT C 4 0 Operadora Operadora Operator Operadora Operadora Operator @! !.!!! - x x x x x x x x x x x x x x x - - 1 - - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 26320 0
BV3 03 BV3_CODEMP C 4 0 Cod. Empresa Cod. Empresa Cód. Empresa Codigo Empresa Codigo Empresa Company Code @! - x x x x x x x x x x x x x x x - - 1 - - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 26321 0
BV3 04 BV3_MATRIC C 6 0 Matricula Matricula Registration Matricula Matricula Registration @! - x x x x x x x x x x x x x x x - - 1 - - - - - - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 26322 0
BV3 05 BV3_CODPRO C 4 0 Cd. Opcional Cd. Opcional Cód.Opcional Codigo do Opcional Codigo del Opcional Optional Code @! - x x x x x x x x x x x x x x x x cCodOpc - 1 x - - - - V - - - - - - - - - - - S - - N N N - - - 1 1 - - - 26323 0
BV3 06 BV3_TIPREG C 2 0 Tp. Registro Tp. Registro Tp. Registr TipReg TipReg TypReg - - x x x x x x x x x x x x x x x x cTipReg - 1 xxxxxx x - - - S V - - - - - - - - - - - S - - N N N - - - 1 2 - - - 26324 0
BV3 07 BV3_CODPSA C 16 0 Cod.Tab.Pad. Cod.Tab.Est. Std.Tbl.Code Cod. Tabela Padrao Cod. Tabla Estandar Stand.Table Code @! PlsSeek("BR8",1,M->BV3_CODPAD+M->BV3_CODPSA,"BV3_DESCRI","BR8_DESCRI").And.PLSVLDGD().AND.PLSA260V2() x x x x x x x x x x x x x x x xx - BZQPLS 1 xx - S - S - - - - - - - - - - - 1 S - - N N N - - - 1 1 - - - 26325 0
BV3 08 BV3_DESCRI C 230 0 Desc.Tab.Pad Des.Tab.Est. StndrdTbDscr Desc. Tabela Padrao Descr.Tabla Estandar Descr. of Standard Table @! - x x x x x x x x x x x x x x x x If(Inclui,"",Posicione("BR8",1,xFilial("BR8")+BV3->(BV3_CODPAD+BV3_CODPSA),"BR8_DESCRI")) - 1 xxxx x x - - - S V V - - - - - - - - - 1 S - - N N N - - - 1 2 - - - 26326 0
BV3 09 BV3_CODPAD C 2 0 Cod.Tipo Tab Cod.Tipo Tab Cód.Tipo Tab Cod. Tipo Tabela Cod. Tipo Tabla Type Table Code @! PlsSeek("BR4",1,M->BV3_CODPAD) x x x x x x x x x x x x x x x xx GETMV("MV_PLSTBPD") B41PLS 1 xx - - - - - - - - - - - - - - - 1 S - - N N N - - - 1 1 - - - 26327 0
BV3 10 BV3_NIVEL C 1 0 Nivel Nivel Level Nivel Nivel Lvel @! - x x x x x x x x x x x x x x x x - - 1 x x - - - S V - - - 1=Grupo;2=Sub-Grupo;3=Item 1=Grupo;2=Subgrupo;3=Item 1=Group;2=Subgroup;3=Item - - - - 1 S - - N N N - - - 1 1 - - - 26328 0
BV3 11 BV3_BENUTL C 1 0 Ativo ? ¿Activo ? Active Ativo ? ¿Activo ? Active @! - x x x x x x x x x x x x x x x x - - 1 x - - - S - - - - 0=Nao;1=Sim 0=No;1=Si 0=No;1=Yes - - - - 2 S - - N N N - - - 1 1 - - - 26329 0
BV3 12 BV3_AUTORI C 1 0 Autorizacao Autorizacion Authoriz. Autorizacao Autorizacion Authorization @! - x x x x x x x x x x x x x x x x "1" - 1 xxxx x x - - - S - - - - 0=Dispensa Autorizacao;1=Automatica;2=Guia Operadora;3=Auditoria;4=Guia Empresa;5=Guia Empresa/Operadora;6=Avaliacao Contratual 0=Dispensa Autorizacion;1=Automatica;2=Guia Operadora;3=Auditoria;4=Guia Empresa;5=Guia Empresa/Operadora;6=Evaluacion Contract. 0=No Authorization;1=Automatic;2=Oper.Form;3=Audit;4=Cia Form;5=Cia/Oper Form;6=Contract Evaluat. - - - - 2 S - - N N N - - - 1 2 - - - 26330 0
BV3 13 BV3_SEXO C 1 0 Sexo Sexo Gender Sexo Sexo Gender @! - x x x x x x x x x x x x x x x x "3" - 1 xxxx x x - - - - - - - - 1=Masculino;2=Feminino;3=Ambos 1=Masculino;2=Femenino;3=Ambos 1=Male;2=Female;3=Both - - - - 2 S - - N N N - - - 1 2 - - - 26331 0
BV3 14 BV3_CARENC N 4 0 Carencia Carencia Grace Per. Carencia Carencia Grace Period 9999 - x x x x x x x x x x x x x x x x - - 1 xxxx x x - - - - - - - - - - - - - - - 3 S - - N N N - - - 1 2 - - - 26332 0
BV3 15 BV3_UNCAR C 1 0 Unidade Unidad Unit Unidade Unidad Unit @! - x x x x x x x x x x x x x x x x - - 1 xxxx x x - - - - - - - - 1=Horas;2=Dias;3=Meses;4=Anos;5=Vida 1=Horas;2=Dias;3=Meses;4=Anos;5=Vida 1=Hours;2=Days;3=Months;4=Years;5=Life - - - - 3 S - - N N N - - - 1 2 - - - 26333 0
BV3 16 BV3_NIVCAR C 1 0 Nivel Valido Nivel Valido Valid Level Nivel Valido Carencia Nivel Valido Carencia Grace Val.Level @! - x x x x x x x x x x x x x x x x - - 1 xxxx x x - - - - - - - - 0=Nao;1=Sim 0=No;1=Si 0=No;1=Yes - M->BV3_CARENC == 0 - - 3 S - - N N N - - - 1 2 - - - 26334 0
BV3 17 BV3_UNCA C 1 0 Unidade Unidad Unit Unidade Unidad Unit @! - x x x x x x x x x x x x x x x x - - 1 xxxx x x - - - - - - - - 1=por Hora;2=por Dia;3=por Mes;4=por Ano 1=por Hora;2=por Dia;3=por Mes;4=por Ano 1=per Hour;2=per Day;3=per Month;4=per Year - - - - 4 S - - N N N - - - 1 2 - - - 26335 0
BV3 18 BV3_NIVQTD C 1 0 Nivel Valido Nivel Valido Valid Level Nivel Valido Qtde Nivel Valido Cant Qty.Valid Level @! - x x x x x x x x x x x x x x x x - - 1 xxxx x x - - - - - - - - 0=Nao;1=Sim 0=No;1=Si 0=No;1=Yes - - - - 4 S - - N N N - - - 1 2 - - - 26336 0
BV3 19 BV3_PERIOD N 4 0 Periodo Periodo Period Periodo Periodo Period 9999 - x x x x x x x x x x x x x x x x - - 1 xxxx x x - - - - - - - - - - - - - - - 5 S - - N N N - - - 1 2 - - - 26337 0
BV3 20 BV3_UNPERI C 1 0 Unidade Unidad Unit Unidade Unidad Unit @! - x x x x x x x x x x x x x x x x - - 1 xxxx x x - - - - - - - - 1=Horas;2=Dias;3=Meses;4=Anos;5=Vida 1=Horas;2=Dias;3=Meses;4=Anos;5=Vida 1=Hours;2=Days;3=Months;4=Years;5=Life - - - - 5 S - - N N N - - - 1 2 - - - 26338 0
BV3 21 BV3_NIVPER C 1 0 Nivel Valido Nivel Valido Valid level Nivel Valido Periodo Nivel Valido Periodo Period Valid Level @! - x x x x x x x x x x x x x x x x - - 1 xxxx x x - - - - - - - - 0=Nao;1=Sim 0=No;1=Si 0=No;1=Yes - M->BV3_PERIOD == 0 - - 5 S - - N N N - - - 1 2 - - - 26339 0
BV3 22 BV3_IDAMIN N 3 0 Idade Minima Edad Minima Min.Age Idade Minima Edad Minima Minimum Age 999 - x x x x x x x x x x x x x x x x - - 1 xxxx x x - - - - - - - - - - - - - - - 2 S - - N N N - - - 1 2 - - - 26340 0
BV3 23 BV3_IDAMAX N 3 0 Idade Maxima Edad Maxima Max.Age Idade Maxima Edad Maxima Maximum Age 999 - x x x x x x x x x x x x x x x x - - 1 xxxx x x - - - - - - - - - - - - - - - 2 S - - N N N - - - 1 2 - - - 26341 0
BV3 24 BV3_APQTSO C 1 0 Apos Qtd.Sol Tras Ctd.Sol Req.Qty.Ap. Apos qtde da Solicitacao Tras cant. de Solicitud Request Qty.Apos. @! - x x x x x x x x x x x x x x x x - - 1 xxxx x x - - - - - - - - 1=Bloquear;2=Auditoria;3=Relatorio 1=Bloquear;2=Auditoria;3=Informe 1=Block;2=Audit;3=Report - - - - 4 S - - N N N - - - 1 2 - - - 26342 0
BV3 25 BV3_APPESO C 1 0 Fora/Per.Sol Tras/Per.Sol Out Req.Per. Apos Periodo da Solicitac Tras Periodo de Solicitud After Requested Period @! - x x x x x x x x x x x x x x x x - - 1 xxxx x x - - - - - - - - 1=Bloquear;2=Auditoria;3=Relatorio 1=Bloquear;2=Auditoria;3=Informe 1=Blocke;2=Audit;3=Report - - - - 5 S - - N N N - - - 1 2 - - - 26343 0
BV3 26 BV3_FAIDES C 4 0 Faixa Desc. Rango Desc. Disc.Range Faixa Desconto Rango Descuento Discount Range @! - x x x x x x x x x x x x x x x x - BK3PLS 1 x - - - - - - - - - - - - - - - 1 S - - N N N - - - 1 2 - - - 26344 0
BV3 27 BV3_QTMIAU N 4 0 Qtd. Min Aut Ctd. Min Aut Min.Qty.Aut. Qtde Minima por Autorizac Cant Minima por Autorizac Min.Qty. by Authoriz. 9999 - x x x x x x x x x x x x x x x x - - 1 xxxx x x - - - - - - - - - - - - - - - 2 S - - N N N - - - 1 2 - - - 26345 0
BV3 28 BV3_QTMAAU N 4 0 Qtd. Max Aut Ctd. Max Aut Max.Qty.Aut. Qtde Maxima por Autorizac Cant Maxima por Autorizac Max.Qty by Authoriz. 9999 M->BZF_QTMAAU >= M->BZF_QTMIAU x x x x x x x x x x x x x x x x - - 1 xxxx x x - - - - - - - - - - - - - - - 2 S - - N N N - - - 1 2 - - - 26346 0
BV3 29 BV3_CDNV01 C 6 0 Cod Nivel 01 Cod Nivel 01 Level 1 Code Cd Nivel 01 Cd Nivel 01 Level 1 Code @! - x x x x x x x x x x x x x x x x - - 1 xxxxxx x - - - - V - - - - - - - - - - - S - - N N N - - - 1 2 - - - 26347 0
BV3 30 BV3_CDNV02 C 6 0 Cod Nivel 02 Cod Nivel 02 Level 2 Code Cd Nivel 02 Cd Nivel 02 Level 2 Code @! - x x x x x x x x x x x x x x x x - - 1 xxxxxx x - - - - V - - - - - - - - - - - S - - N N N - - - 1 2 - - - 26348 0
BV3 31 BV3_CDNV03 C 6 0 Cod Nivel 03 Cod Nivel 03 Level 3 Code Cd Nivel 03 Cd Nivel 03 Level 3 Code @! - x x x x x x x x x x x x x x x x - - 1 xxxxxx x - - - - V - - - - - - - - - - - S - - N N N - - - 1 2 - - - 26349 0
BV3 32 BV3_CDNV04 C 6 0 Cod Nivel 04 Cod Nivel 04 Level 4 Code Cd Nivel 04 Cd Nivel 04 Level 4 Code @! - x x x x x x x x x x x x x x x x - - 1 xxxxxx x - - - - V - - - - - - - - - - - S - - N N N - - - 1 2 - - - 26350 0
BV3 33 BV3_CLACAR C 3 0 Classe Car. Clase Car. Grace Catg. Classe Carencia Clase Carencia Grace Catg. @! - x x x x x x x x x x x x x x x x - - 1 xxxxxx x - - - - - - - - - - - - - - - 3 S - - N N N - - - 1 2 - - - 26351 0
BV3 34 BV3_DESCAR C 40 0 Desc. Classe Desc. Clase Catg.Desc. Descricao Classe Carencia Descripcion Clase Carenc Grace Catg.Desc. @! - x x x x x x x x x x x x x x x x - - 1 xxxxxx x - - - - V V - - - - - - - - - 3 S - - N N N - - - 1 2 - - - 26352 0
BV3 35 BV3_CODPLA C 4 0 cod opcional Cod opcional Opt.Code Codigo opcional Codigo opcional Optional Code @! - x x x x x x x x x x x x x x x x - BHSPLS 1 xxxxxx x - - - - - - - - - - - - - - - 3 S - - N N N - - - 1 2 - - - 26353 0
BV3 36 BV3_DESPLA C 30 0 Descr. opc. Descr. opc. Opt.Desc. Descricao opcional Descripcion opcional Optional Desc. @! - x x x x x x x x x x x x x x x x If(Inclui,"",Posicione("BI3",1,xFilial("BI3")+BV3->(BV3_CODINT+BV3_CODPLA),"BI3_DESCRI")) - 1 xxxxxx x - - - - V V - - - - - - - - - 3 S - - N N N - - - 1 2 - - - 26354 0

Índices da Tabela BV3 (5 índices)

INDICE ORDEM CHAVE DESCRICAO DESCSPA DESCENG PROPRI F3 NICKNAME SHOWPESQ IX_VIRTUAL IX_VIRCUST D_E_L_E_T_ R_E_C_N_O_ R_E_C_D_E_L_
BV3 1 BV3_FILIAL+BV3_CODINT+BV3_CODEMP+BV3_MATRIC+BV3_TIPREG+BV3_CODPRO+BV3_CODPSA+BV3_NIVEL Operadora + Cod. Empresa + Matricula + Tp. Registro + Cd. Opcional + C Operadora + Cod. Empresa + Matricula + Tp. Registro + Cd. Opcional + C Operator + Cód. Empresa + Registration + Tp. Registr + Cód.Opcional + S - - S 2 3 - 3672 0
BV3 2 BV3_FILIAL+BV3_CODINT+BV3_CODEMP+BV3_MATRIC+BV3_TIPREG+BV3_CODPRO+BV3_CODPAD+BV3_CDNV01+BV3_NIVEL Operadora + Cod. Empresa + Matricula + Tp. Registro + Cd. Opcional + C Operadora + Cod. Empresa + Matricula + Tp. Registro + Cd. Opcional + C Operator + Cód. Empresa + Registration + Tp. Registr + Cód.Opcional + S - - S 2 3 - 3673 0
BV3 3 BV3_FILIAL+BV3_CODINT+BV3_CODEMP+BV3_MATRIC+BV3_TIPREG+BV3_CODPRO+BV3_CODPAD+BV3_CDNV02+BV3_NIVEL Operadora + Cod. Empresa + Matricula + Tp. Registro + Cd. Opcional + C Operadora + Cod. Empresa + Matricula + Tp. Registro + Cd. Opcional + C Operator + Cód. Empresa + Registration + Tp. Registr + Cód.Opcional + S - - S 2 3 - 3674 0
BV3 4 BV3_FILIAL+BV3_CODINT+BV3_CODEMP+BV3_MATRIC+BV3_TIPREG+BV3_CODPRO+BV3_CODPAD+BV3_CDNV03+BV3_NIVEL Operadora + Cod. Empresa + Matricula + Tp. Registro + Cd. Opcional + C Operadora + Cod. Empresa + Matricula + Tp. Registro + Cd. Opcional + C Operator + Cód. Empresa + Registration + Tp. Registr + Cód.Opcional + S - - S 2 3 - 3675 0
BV3 5 BV3_FILIAL+BV3_CODINT+BV3_CODEMP+BV3_MATRIC+BV3_TIPREG+BV3_CODPRO+BV3_CODPAD+BV3_CDNV04+BV3_NIVEL Operadora + Cod. Empresa + Matricula + Tp. Registro + Cd. Opcional + C Operadora + Cod. Empresa + Matricula + Tp. Registro + Cd. Opcional + C Operator + Cód. Empresa + Registration + Tp. Registr + Cód.Opcional + S - - S 2 3 - 3676 0

Perguntas frequentes

Para que serve a tabela BV3 no Protheus?

Ela é utilizada para opcionais x procedimentos dentro do sistema ERP Protheus.

Como consultar os campos da tabela BV3?

Nesta página você pode visualizar todos os campos, incluindo tipo, tamanho e validações.

O que são os índices da tabela BV3?

Os índices são estruturas que melhoram a performance de busca e acesso aos dados dentro do Protheus.

Exemplo de consulta SQL da tabela BV3

Modelo de query gerado automaticamente com base na estrutura da tabela.

SELECT
    BV3_FILIAL,
    BV3_CODINT,
    BV3_CODEMP,
    BV3_MATRIC,
    BV3_CODPRO,
    BV3_TIPREG,
    BV3_CODPSA,
    BV3_DESCRI,
    BV3_CODPAD,
    BV3_NIVEL,
    BV3_BENUTL,
    BV3_AUTORI,
    BV3_SEXO,
    BV3_CARENC,
    BV3_UNCAR,
    BV3_NIVCAR,
    BV3_UNCA,
    BV3_NIVQTD,
    BV3_PERIOD,
    BV3_UNPERI,
    BV3_NIVPER,
    BV3_IDAMIN,
    BV3_IDAMAX,
    BV3_APQTSO,
    BV3_APPESO,
    BV3_FAIDES,
    BV3_QTMIAU,
    BV3_QTMAAU,
    BV3_CDNV01,
    BV3_CDNV02,
    BV3_CDNV03,
    BV3_CDNV04,
    BV3_CLACAR,
    BV3_DESCAR,
    BV3_CODPLA,
    BV3_DESPLA
FROM BV3
WHERE
    D_E_L_E_T_ = ' '
    AND BV3_FILIAL = 'VALOR'
    AND BV3_CODINT = 'VALOR'
    AND BV3_CODEMP = 'VALOR'
    AND BV3_MATRIC = 'VALOR'
    AND BV3_CODPRO = 'VALOR'
    AND BV3_TIPREG = 'VALOR'
    AND BV3_CODPSA = 'VALOR'
    AND BV3_DESCRI = 'VALOR'
    AND BV3_CODPAD = 'VALOR'
    AND BV3_NIVEL = 'VALOR'
    AND BV3_BENUTL = 'VALOR'
    AND BV3_AUTORI = 'VALOR'
    AND BV3_SEXO = 'VALOR'
    AND BV3_CARENC = 0
    AND BV3_UNCAR = 'VALOR'
    AND BV3_NIVCAR = 'VALOR'
    AND BV3_UNCA = 'VALOR'
    AND BV3_NIVQTD = 'VALOR'
    AND BV3_PERIOD = 0
    AND BV3_UNPERI = 'VALOR'
    AND BV3_NIVPER = 'VALOR'
    AND BV3_IDAMIN = 0
    AND BV3_IDAMAX = 0
    AND BV3_APQTSO = 'VALOR'
    AND BV3_APPESO = 'VALOR'
    AND BV3_FAIDES = 'VALOR'
    AND BV3_QTMIAU = 0
    AND BV3_QTMAAU = 0
    AND BV3_CDNV01 = 'VALOR'
    AND BV3_CDNV02 = 'VALOR'
    AND BV3_CDNV03 = 'VALOR'
    AND BV3_CDNV04 = 'VALOR'
    AND BV3_CLACAR = 'VALOR'
    AND BV3_DESCAR = 'VALOR'
    AND BV3_CODPLA = 'VALOR'
    AND BV3_DESPLA = 'VALOR'