Opcionais Grupos Determinados
A tabela BV0 faz parte do sistema ERP Protheus da TOTVS e é utilizada para opcionais grupos determinados.
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 BV0 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 BV0, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | BV0 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | BV0990 |
| X2_NOME | Opcionais Grupos Determinados |
| X2_NOMESPA | Opcionales Grupos Determinados |
| X2_NOMEENG | Given groups options |
| 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_ | 1599 |
| R_E_C_D_E_L_ | 0 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BV0 | 01 | BV0_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 | - | - | - | 26283 | 0 |
| BV0 | 02 | BV0_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 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 26284 | 0 |
| BV0 | 03 | BV0_CODEMP | C | 4 | 0 | Cod. Empresa | Cod. Empresa | Company Code | Codigo Empresa | Codigo Empresa | Company Code | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 26285 | 0 |
| BV0 | 04 | BV0_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 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 26286 | 0 |
| BV0 | 05 | BV0_CODPRO | C | 4 | 0 | Cd. Opcional | Cod Opcional | Option code | Codigo do Opcional | Codigo del Opcional | Option code | @! | - | x x x x x x x x x x x x x x x x | cCodOpc | - | 1 | x | - | - | - | - | V | - | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 26287 | 0 |
| BV0 | 06 | BV0_TIPREG | C | 2 | 0 | Tp. Registro | Tp. Registro | Record Type | TipReg | TipReg | Record Type | - | - | x x x x x x x x x x x x x x x x | cTipReg | - | 1 | xxxxxx x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 26288 | 0 |
| BV0 | 07 | BV0_CODGRU | C | 3 | 0 | Cod. Grupo | Cod. Grupo | Group code | Codigo do Grupo | Codigo del Grupo | Group code | @R !!! | PlsSeek("BG7",1,M->BA3_CODINT+M->BV0_CODGRU,"BV0_DESGRU","BG7_DESCRI") .And. PLSVldGD() | x x x x x x x x x x x x x x x x | - | B28PLS | 1 | xx | - | - | - | - | - | R | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 26289 | 0 |
| BV0 | 08 | BV0_DESGRU | C | 40 | 0 | Descr. Grupo | Descr. Grupo | Group descr. | Descricao do Grupo | Descripcion del Grupo | Group description | @! | - | x x x x x x x x x x x x x x x x | If(Inclui,"",Posicione("BG7",1,xFilial("BG7")+BV0->BV0_CODINT+BV0->BV0_CODGRU,"BG7_DESCRI")) | - | 1 | xxxxxx x | - | - | - | - | V | V | - | - | - | - | - | - | - | - | - | 1 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 26290 | 0 |
| BV0 | 09 | BV0_CARENC | N | 4 | 0 | Carencia | Carencia | Wait period | Carencia | Carencia | Waiting period | 9999 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 26291 | 0 |
| BV0 | 10 | BV0_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 | - | - | - | S | A | R | - | - | 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 | - | - | - | - | 2 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 26292 | 0 |
| BV0 | 11 | BV0_CODPLA | C | 4 | 0 | Cod.Opcional | Cod.Opcional | Option code | Codigo opcional | Codigo Opcional | Option code | @! | - | x x x x x x x x x x x x x x x x | - | BHSPLS | 1 | xxxxxx x | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 26293 | 0 |
| BV0 | 12 | BV0_DESPLA | C | 30 | 0 | Descr. opc. | Descr. opc. | Opt. descr. | Descricao opcional | Descripcion opcional | Optional description | @! | - | x x x x x x x x x x x x x x x x | If(Inclui,"",Posicione("BI3",1,xFilial("BI3")+BV0->(BV0_CODINT+BV0_CODPLA),"BI3_DESCRI")) | - | 1 | xxxxxx x | - | - | - | - | V | V | - | - | - | - | - | - | - | - | - | 2 | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 26294 | 0 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BV0 | 1 | BV0_FILIAL+BV0_CODINT+BV0_CODEMP+BV0_MATRIC+BV0_TIPREG+BV0_CODPRO+BV0_CODGRU | Operadora + Cod. Empresa + Matricula + Tp. Registro + Cd. Opcional + C | Operadora + Cod. Empresa + Matricula + Tp. Registro + Cod Opcional + C | Operator + Company Code + Registration + Record Type + Option code + G | S | - | - | S | 2 | 3 | - | 3669 | 0 |
Ela é utilizada para opcionais grupos determinados dentro do sistema ERP Protheus.
Nesta página você pode visualizar todos os campos, incluindo tipo, tamanho e validações.
Os índices são estruturas que melhoram a performance de busca e acesso aos dados dentro do Protheus.
Modelo de query gerado automaticamente com base na estrutura da tabela.
SELECT
BV0_FILIAL,
BV0_CODINT,
BV0_CODEMP,
BV0_MATRIC,
BV0_CODPRO,
BV0_TIPREG,
BV0_CODGRU,
BV0_DESGRU,
BV0_CARENC,
BV0_UNCAR,
BV0_CODPLA,
BV0_DESPLA
FROM BV0
WHERE
D_E_L_E_T_ = ' '
AND BV0_FILIAL = 'VALOR'
AND BV0_CODINT = 'VALOR'
AND BV0_CODEMP = 'VALOR'
AND BV0_MATRIC = 'VALOR'
AND BV0_CODPRO = 'VALOR'
AND BV0_TIPREG = 'VALOR'
AND BV0_CODGRU = 'VALOR'
AND BV0_DESGRU = 'VALOR'
AND BV0_CARENC = 0
AND BV0_UNCAR = 'VALOR'
AND BV0_CODPLA = 'VALOR'
AND BV0_DESPLA = 'VALOR'