Cabec. Solic. Fornec. Direto
A tabela BJF faz parte do sistema ERP Protheus da TOTVS e é utilizada para cabec. solic. fornec. direto.
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 BJF 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 BJF, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | BJF |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | BJF990 |
| X2_NOME | Cabec. Solic. Fornec. Direto |
| X2_NOMESPA | Encab. Solic. Prov. Directo |
| X2_NOMEENG | Direct Suppl. Req. Header |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | BJF_FILIAL+BJF_CODOPE+BJF_IDENTI+BJF_MATRIC |
| X2_PYME | S |
| X2_MODULO | 33 |
| X2_DISPLAY | - |
| X2_SYSOBJ | - |
| X2_USROBJ | - |
| X2_POSLGT | 1 |
| X2_CLOB | 2 |
| X2_AUTREC | 1 |
| 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_ | 1248 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BJF | 01 | BJF_FILIAL | C | 2 | 0 | Filial | Sucursal | Branch | Filial do Sistema | Sucursal del sistema | System Branch | - | - | x x x x x x x x x x x x x x x | - | - | 1 | - | - | - | - | S | A | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 20778 | 0 |
| BJF | 02 | BJF_CODOPE | C | 4 | 0 | Cd Operadora | Cd Operadora | Provider Cod | Codigo da Operadora | Código de la operadora | Provider Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 20779 | 0 |
| BJF | 03 | BJF_TIPREG | C | 1 | 0 | Tipo Registr | Tipo Registr | Record Type | Tipo Operacao Registro | Tipo Operac Reg | Record Operation Type | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | 1=Inclusão; 2=Alteração; 3=Exclusão | 1=Inclus; 2=Modif; 3=Borrado | 1=Addition;2=Change;3=Deletion | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 20780 | 0 |
| BJF | 04 | BJF_IDENTI | C | 20 | 0 | Cod. Identif | Cód. Identif | Identif Code | Cod. Identif | Cód. Identif | Identif Code | @! | - | x x x x x x x x x x x x x x x x | getsx8num("BJF", "BJF_IDENTI") | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 20781 | 0 |
| BJF | 05 | BJF_MATRIC | C | 17 | 0 | Matricula | Matrícula | Reg. No. | Matricula do Beneficiario | Matrícula del beneficiari | Beneficiary Reg. No. | @! | - | x x x x x x x x x x x x x x x x | - | BY2PLS | 1 | x x | - | S | - | S | A | R | - | - | - | - | - | - | PlIncForDi() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 1 | - | - | - | 20782 | 0 |
| BJF | 06 | BJF_NUMCNS | C | 15 | 0 | Num. CNS | Nº CNS | CNS Number | Carteira Nacional Saude | Tarjeta Nacional Salud | National Health Card | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 20783 | 0 |
| BJF | 07 | BJF_CPFUSR | C | 11 | 0 | CPF Benefic. | RCPF Benefic | Benef. SSN | CPF do Beneficiario | RCPF del beneficiario | Beneficiary's SSN | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | PlIncForDi() | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 20784 | 0 |
| BJF | 08 | BJF_SEXO | C | 1 | 0 | Sexo Benef. | Sexo Benef. | Benef. Gende | Sexo Beneficiario | Sexo Beneficiario | Beneficiary's Gender | @! | Pertence("1|2") | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | 1=Masculino;2=Feminino | 1=Masculino;2=Femenino | 1=Masculine;2=Feminine | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 20785 | 0 |
| BJF | 09 | BJF_DATNAS | D | 8 | 0 | Data Nasc. | Fecha Nacim. | Birth Date | Data de nascimento | Fecha de nacimiento | Birth Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 20786 | 0 |
| BJF | 10 | BJF_CODMUN | C | 7 | 0 | Cod. Municip | Cód. Municip | City Code | Codigo do Municipio | Código del municipio | City Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 20787 | 0 |
| BJF | 11 | BJF_CODPLA | C | 20 | 0 | Cod. Plano | Cód. Plan | Plan Code | Codigo do Plano Benefic. | Código del Plan Benefic. | Benef. Plan Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 20788 | 0 |
| BJF | 12 | BJF_CODREC | C | 20 | 0 | Cod Receita | Cód. Ingreso | Income Cd. | Codigo da Receita | Código del ingreso | Income Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 20789 | 0 |
| BJF | 13 | BJF_DATFOR | D | 8 | 0 | Data Fornec. | Fch Suminist | Suppl. Date | Data do Fornecimento | Fecha del suministro | Supply Date | - | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 20790 | 0 |
| BJF | 14 | BJF_VLTOFO | N | 16 | 2 | Vlr Tot Forn | Val Tot Sumi | Total Supp V | Valor Total Fornecimento | Valor Total Suministro | Total Supply Value | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 20791 | 0 |
| BJF | 15 | BJF_VLTOTP | N | 16 | 2 | Vlr Tab prop | Val Tab prop | Prop Tab Val | Valor Total Tabela Propri | Valor Total Tabla Propi | Total Property Table Valu | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 20792 | 0 |
| BJF | 16 | BJF_VLTOCP | N | 16 | 2 | Vlr Tot Cop | Val Tot Cop | Tot. Co-p Va | Valor Total Coparticipaca | Valor Total Coparticipaci | Total Co-paymt Value | @E 9,999,999,999,999.99 | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 20793 | 0 |
| BJF | 17 | BJF_OBSERV | M | 100 | 0 | Observacoes | Observacione | Notes | Observacoes do usuario | Observaciones usuario | User Notes | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 20794 | 0 |
| BJF | 18 | BJF_CODPEG | C | 8 | 0 | Codigo PEG | Código PEG | PEG Code | Codigo da PEG gerada | Código PEG generada | Code of PEG generated | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 20795 | 0 |
| BJF | 19 | BJF_CODLDP | C | 4 | 0 | Cod Local | Cód Lugar | Locat Code | Codigo Local | Código Local | Location Code | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 20796 | 0 |
| BJF | 20 | BJF_NUMERO | C | 8 | 0 | Numero Guia | Núm Formular | Form Number | Numero Guia | Núm Formulario | Form Number | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 20797 | 0 |
| BJF | 21 | BJF_DOCREQ | C | 9 | 0 | Doc. Req. | Doc. Req. | Req. Doc. | Documento Requisição | Docum. Requisición | Requisition Document | @9 | - | x x x x x x x x x x x x x x x x | - | - | 1 | xx | - | - | - | S | V | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 20798 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| BJF | 1 | BJF_FILIAL+BJF_CODOPE+BJF_IDENTI | Cd Operadora + Cod. Identif | Cd Operadora + Cód. Identif | Provider Cod + Identif Code | S | - | - | S | 2 | 3 | - | 2975 | 0 |
| BJF | 2 | BJF_FILIAL+BJF_CODOPE+BJF_MATRIC | Cd Operadora + Matricula | Cd Operadora + Matrícula | Provider Cod + Reg. No. | S | - | - | S | 2 | 3 | - | 2976 | 0 |
| BJF | 3 | BJF_FILIAL+BJF_CODOPE+BJF_CODLDP+BJF_CODPEG+BJF_NUMERO | Cd Operadora + Cod Local + Codigo PEG + Numero Guia | Cd Operadora + Cód Lugar + Código PEG + Núm Formular | Provider Cod + Locat Code + PEG Code + Form Number | S | - | - | S | 2 | 3 | - | 2977 | 0 |
Ela é utilizada para cabec. solic. fornec. direto 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
BJF_FILIAL,
BJF_CODOPE,
BJF_TIPREG,
BJF_IDENTI,
BJF_MATRIC,
BJF_NUMCNS,
BJF_CPFUSR,
BJF_SEXO,
BJF_DATNAS,
BJF_CODMUN,
BJF_CODPLA,
BJF_CODREC,
BJF_DATFOR,
BJF_VLTOFO,
BJF_VLTOTP,
BJF_VLTOCP,
BJF_OBSERV,
BJF_CODPEG,
BJF_CODLDP,
BJF_NUMERO,
BJF_DOCREQ
FROM BJF
WHERE
D_E_L_E_T_ = ' '
AND BJF_FILIAL = 'VALOR'
AND BJF_CODOPE = 'VALOR'
AND BJF_TIPREG = 'VALOR'
AND BJF_IDENTI = 'VALOR'
AND BJF_MATRIC = 'VALOR'
AND BJF_NUMCNS = 'VALOR'
AND BJF_CPFUSR = 'VALOR'
AND BJF_SEXO = 'VALOR'
AND BJF_DATNAS BETWEEN '20260501' AND '20260531'
AND BJF_CODMUN = 'VALOR'
AND BJF_CODPLA = 'VALOR'
AND BJF_CODREC = 'VALOR'
AND BJF_DATFOR BETWEEN '20260501' AND '20260531'
AND BJF_VLTOFO = 0
AND BJF_VLTOTP = 0
AND BJF_VLTOCP = 0
AND BJF_CODPEG = 'VALOR'
AND BJF_CODLDP = 'VALOR'
AND BJF_NUMERO = 'VALOR'
AND BJF_DOCREQ = 'VALOR'