Itens dos Pacotes Preços
A tabela BLF faz parte do sistema ERP Protheus da TOTVS e é utilizada para itens dos pacotes preços.
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 BLF 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 BLF, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | BLF |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | BLF990 |
| X2_NOME | Itens dos Pacotes Preços |
| X2_NOMESPA | Items de Paquetes Precios |
| X2_NOMEENG | Items of Packages Prices |
| 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_ | 1314 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BLF | 01 | BLF_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 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 21641 | 0 |
| BLF | 02 | BLF_CODINT | C | 4 | 0 | Operadora | Operadora | Operator | Operadora | Operadora | Operator | @R !.!!! | PlsZero() .And. PlsSeek("BA0",1,,"BLF_DESINT","BA0_NOMINT") .AND. PlsVldInt(M->BLD_CODINT) | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 21642 | 0 |
| BLF | 03 | BLF_CODPRO | C | 16 | 0 | Proc.Princip | Proc.Princip | Main proced. | Procedimento Principal | Procedimiento Principal | Main procedure | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 21643 | 0 |
| BLF | 04 | BLF_CODPAC | C | 6 | 0 | Cod. Pacote | Cod. Paquete | Package Code | Codigo do pacote | Codigo del Paquete | Package Code | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | S | A | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 21644 | 0 |
| BLF | 05 | BLF_DESINT | C | 15 | 0 | Descricao | Descripcion | Description | Descricao | Descripcion | Description | - | - | x x x x x x x x x x x x x x x | If(Inclui,"",Posicione("BA0",1,xFilial("BA0")+If(Inclui,PlsIntPad(),BLF->BLF_CODINT),"BA0_NOMINT")) | - | 1 | - | - | - | - | S | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 21645 | 0 |
| BLF | 06 | BLF_TABMED | C | 6 | 0 | Cd Tab Medic | Cd Tab Medic | Med.TableCd. | Cd Tabela de Medicamento | Cd.Tabla de Medicamento | Medicine table code | @! | PlsZero() .And. PlsSeek("BS5",1,M->BLD_CODINT+M->BLF_TABMED,"BLF_DESCRI","BS5_DESCRI") .And. PLSBLFCPO() | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | - | - | - | - | - | - | - | - | - | PLSBLFWhen() | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 21646 | 0 |
| BLF | 07 | BLF_DESCRI | C | 50 | 0 | Desc Tab Med | Desc Tab Med | Med.Tbl.Dscr | Desc Tabela de Medicament | Desc de Tabla Medicamento | Medicine table descrip. | @! | - | x x x x x x x x x x x x x x x x | If(Inclui,"",Posicione("BS5",1,xFilial("BS5")+BLF->(BLF_CODINT+BLF_TABMED),"BS5_DESCRI")) | - | 1 | xxxx x x | - | - | - | - | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 21647 | 0 |
| BLF | 08 | BLF_PREMED | C | 5 | 0 | Cod. Medic. | Cod. Medic. | Medic. code | Codigo do Medicamento | Codigo del Medicamento | Medicine code | @! | PlsZero() .And. PlsSeek("BS3",1,M->BLD_CODINT+M->BLF_TABMED+M->BLF_PREMED,"BLF_MEDESC","BS3_MEDESC") .And. PLSBLFCPO() | x x x x x x x x x x x x x x x xx | - | - | 1 | x | - | - | - | S | - | - | - | - | - | - | - | - | PLSBLFWhen() | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 21648 | 0 |
| BLF | 09 | BLF_MEDESC | C | 150 | 0 | Descr. Medic | Descr. Medic | Medic.Descr. | Descricao de Medicamento | Descripcion Medicamento | Medicine description | @! | - | x x x x x x x x x x x x x x x x | If(Inclui,"",Posicione("BS3",1,xFilial("BS3")+BLF->(BLF_CODINT+BLF_TABMED+BLF_PREMED),"BS3_MEDESC")) | - | 1 | xxxx x x | - | - | - | - | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 21649 | 0 |
| BLF | 10 | BLF_PREAPR | C | 4 | 0 | Cod. Apres. | Cod. Present | Present.Code | Codigo da Apresentacao | Codigo de la Presentacion | Presentation code | @! | PlsZero() .And. PlsSeek("BS1",1,M->BLD_CODINT+M->BLF_TABMED+M->BLF_PREAPR,"BLF_APDESC","BS1_APDESC") .And. PLSBLFCPO() | x x x x x x x x x x x x x x x xx | - | - | 1 | x | - | - | - | - | - | - | - | - | - | - | - | - | PLSBLFWhen() | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 21650 | 0 |
| BLF | 11 | BLF_APDESC | C | 150 | 0 | Descr.Apres. | Descr.Pres. | Present.Desc | Descricao de Apresentacao | Descripcion Presentacion | Descrip. of presentation | @! | - | x x x x x x x x x x x x x x x x | If(Inclui,"",Posicione("BS1",1,xFilial("BS1")+BLF->(BLF_CODINT+BLF_TABMED+BLF_PREAPR),"BS1_APDESC")) | - | 1 | xxxx x x | - | - | - | - | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 21651 | 0 |
| BLF | 12 | BLF_PRELAB | C | 3 | 0 | Cod. Labor. | Cod. Labor. | Lab code | Codigo do Laboratorio | Codigo del Laboratorio | Laboratory code | @! | PlsZero() .And. PlsSeek("BS2",1,M->BLD_CODINT+M->BLF_TABMED+M->BLF_PRELAB,"BLF_LADESC","BS2_LADESC") .And. PLSBLFCPO() | x x x x x x x x x x x x x x x xx | - | - | 1 | x | - | - | - | - | - | - | - | - | - | - | - | - | PLSBLFWhen() | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 21652 | 0 |
| BLF | 13 | BLF_LADESC | C | 150 | 0 | Descr. Lab. | Descr. Lab. | Lab descr. | Descricao de Laboratorio | Descripcion Laboratorio | Laboratory description | @! | - | x x x x x x x x x x x x x x x x | If(Inclui,"",Posicione("BS2",1,xFilial("BS2")+BLF->(BLF_CODINT+BLF_TABMED+BLF_PRELAB),"BS2_LADESC")) | - | 1 | xxxx x x | - | - | - | - | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 21653 | 0 |
| BLF | 14 | BLF_SEQMED | C | 3 | 0 | Seq.Medicam. | Sec.Medicam. | Medic. Seq. | Sequencia do Medicamento | Secuencia do Medicamento | Medicine sequence | @! | - | x x x x x x x x x x x x x x x xx | - | - | 1 | xx | - | - | - | S | V | - | - | - | - | - | - | - | PLSBLFWhen() | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 21654 | 0 |
| BLF | 15 | BLF_VLRMED | N | 13 | 2 | Valor Med. | Valor Med. | MedicineAmnt | Preco do Medicamento | Precio del medicamento | Medicine price | @E 9,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxxxx x | - | - | - | S | - | - | - | - | - | - | - | - | PLSBLFWhen("V") | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 21655 | 0 |
| BLF | 16 | BLF_PRTIPO | C | 3 | 0 | Tipo Preco | Tipo Precio | Price type | Tipo do Preco | Tipo de Precio | Price type | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | - | - | - | - | - | - | - | - | - | PLSBLFWhen("N") | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 21656 | 0 |
| BLF | 17 | BLF_CODDOC | C | 3 | 0 | Un.Med.Valor | Un.Med.Valor | ValueMeasUn. | Unidade Medida Valor | Unidad Medida Valor | Value unit of measurement | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x x | - | - | - | S | - | - | - | - | - | - | - | - | PLSBLFWhen("N") | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 21657 | 0 |
| BLF | 18 | BLF_DESDOC | C | 30 | 0 | Desc.Un.Med. | Desc.Un.Med. | Un.Meas.Dscr | Descricao Unidade Medida | Descrip.Unidad de Medida | Unit of measur. descr. | @! | - | x x x x x x x x x x x x x x x x | If(Inclui,"",Posicione("BD3",1,xFilial("BD3")+BLF->BLF_CODDOC,"BD3_DESCRI")) | - | 1 | xxxxxx x | - | - | - | - | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 21658 | 0 |
| BLF | 19 | BLF_PERMED | N | 16 | 2 | Perc. Med. | Porc. Med. | Med. percent | Percentual do Medicamento | Porcentaje de Medicamento | Medicine percentage | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xxxx x x | - | - | - | - | - | - | - | - | - | - | - | - | PLSBLFWhen("P") | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 21659 | 0 |
| BLF | 20 | BLF_NIVVAL | C | 1 | 0 | Nivel Valido | Nivel Valido | Valid level | Nivel Valido | Nivel Valido | Valid level | @! | - | x x x x x x x x x x x x x x x x | "0" | - | 1 | xxxx x x | - | - | - | - | - | - | - | - | 1=Sim;0=Nao | 1=Si;0=No | 1=Yes;0=No | - | PLSBLFWhen("N") | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 21660 | 0 |
| BLF | 21 | BLF_VIGMED | D | 8 | 0 | Vig. Padrao | Vig. Estand. | StandardEff. | Vigencia Padrao Medicam. | Vigencia Estand. Medicam. | Medicine standard effect | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 21661 | 0 |
| BLF | 22 | BLF_FLAG | C | 1 | 0 | Flag Uso | Flag Uso | Usage flag | Verifica reg ja foi utili | Verif.reg.ya se utilizo | Check record used | @! | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | - | - | - | - | - | 1=Sim;0=Nao | 1=Si;0=No | 1=Yes;0=No | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 21662 | 0 |
| BLF | 23 | BLF_CODTAB | C | 3 | 0 | Cod. Tabela | Cod. Tabla | Table code | Codigo Tabela | Codigo Tabla | Table code | @! | - | x x x x x x x x x x x x x x x x | cCodTab | - | 1 | x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 21663 | 0 |
| BLF | 24 | BLF_CODOPC | C | 16 | 0 | Cod. Proced. | Cod. Proced. | Proced. Code | Codigo do Procedimento | Codigo del Procedimiento | Procedure code | @! | - | x x x x x x x x x x x x x x x xx | cCodOpc | - | 1 | x | - | - | - | S | V | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 21664 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BLF | 1 | BLF_FILIAL+BLF_CODINT+BLF_CODPRO+BLF_CODPAC+BLF_CODTAB+BLF_CODOPC+BLF_TABMED+BLF_PREMED+BLF_PREAPR+BLF_PRELAB | Operadora + Proc.Princip + Cod. Pacote + Cod. Tabela + Cod. Proced. + | Operadora + Proc.Princip + Cod. Paquete + Cod. Tabla + Cod. Proced. + | Operator + Main proced. + Package Code + Table code + Proced. Code + M | S | - | - | S | 2 | 3 | - | 3094 | 0 |
Ela é utilizada para itens dos pacotes preços 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
BLF_FILIAL,
BLF_CODINT,
BLF_CODPRO,
BLF_CODPAC,
BLF_DESINT,
BLF_TABMED,
BLF_DESCRI,
BLF_PREMED,
BLF_MEDESC,
BLF_PREAPR,
BLF_APDESC,
BLF_PRELAB,
BLF_LADESC,
BLF_SEQMED,
BLF_VLRMED,
BLF_PRTIPO,
BLF_CODDOC,
BLF_DESDOC,
BLF_PERMED,
BLF_NIVVAL,
BLF_VIGMED,
BLF_FLAG,
BLF_CODTAB,
BLF_CODOPC
FROM BLF
WHERE
D_E_L_E_T_ = ' '
AND BLF_FILIAL = 'VALOR'
AND BLF_CODINT = 'VALOR'
AND BLF_CODPRO = 'VALOR'
AND BLF_CODPAC = 'VALOR'
AND BLF_DESINT = 'VALOR'
AND BLF_TABMED = 'VALOR'
AND BLF_DESCRI = 'VALOR'
AND BLF_PREMED = 'VALOR'
AND BLF_MEDESC = 'VALOR'
AND BLF_PREAPR = 'VALOR'
AND BLF_APDESC = 'VALOR'
AND BLF_PRELAB = 'VALOR'
AND BLF_LADESC = 'VALOR'
AND BLF_SEQMED = 'VALOR'
AND BLF_VLRMED = 0
AND BLF_PRTIPO = 'VALOR'
AND BLF_CODDOC = 'VALOR'
AND BLF_DESDOC = 'VALOR'
AND BLF_PERMED = 0
AND BLF_NIVVAL = 'VALOR'
AND BLF_VIGMED BETWEEN '20260601' AND '20260630'
AND BLF_FLAG = 'VALOR'
AND BLF_CODTAB = 'VALOR'
AND BLF_CODOPC = 'VALOR'