Cabeç. Guias Lote Aviso-Envio
A tabela B5S faz parte do sistema ERP Protheus da TOTVS e é utilizada para cabeç. guias lote aviso-envio.
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 B5S 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 B5S, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | B5S |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | B5S990 |
| X2_NOME | Cabeç. Guias Lote Aviso-Envio |
| X2_NOMESPA | Header Send Notice Batch Forms |
| X2_NOMEENG | Header Send Notic Batch Forms |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | E |
| X2_MODOEMP | E |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | B5S_FILIAL+B5S_NUMLOT+B5S_CODOPE+B5S_CODLDP+B5S_CODPEG+B5S_NUMERO |
| 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_ | 781 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| B5S | 01 | B5S_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 | x | - | - | - | S | V | R | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 11390 | 0 |
| B5S | 02 | B5S_NUMLOT | C | 12 | 0 | Núm. Lote | Nº Lote | Batch Num | Número do Lote | Número de lote | Batch 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 | - | - | - | 11391 | 0 |
| B5S | 03 | B5S_OPEORI | C | 4 | 0 | Oper. Origem | Oper. Origen | Orig Oper | Operadora Origem | Operadora origen | Original Operator | - | - | 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 | - | - | - | 11392 | 0 |
| B5S | 04 | B5S_CODOPE | C | 4 | 0 | Operadora | Operadora | Operator | Operadora | Operadora | Operator | - | - | 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 | - | - | - | 11393 | 0 |
| B5S | 05 | B5S_CODLDP | C | 4 | 0 | Cd.Local Dig | Cd.Local Dig | Typ Loc Cd | Codigo Local Digitacao | Código local de digitació | Typing Loc 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 | - | - | - | 11394 | 0 |
| B5S | 06 | B5S_CODPEG | C | 8 | 0 | Código PEG | Código PEG | PEG code | Código PEG | Código PEG | PEG 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 | - | - | - | 11395 | 0 |
| B5S | 07 | B5S_NUMERO | C | 8 | 0 | Número | Número | Number | Numero da Movimentacao | Número de movimiento | Transaction 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 | - | - | - | 11396 | 0 |
| B5S | 08 | B5S_STAGLO | C | 1 | 0 | Status Glosa | Estatus Glos | Disal Status | Status da Glosa | Estatus de la glosa | Disallowance Status | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | S | V | R | - | - | 0=Sem Glosa;1=Pend. Envio Glosa;2=Glosa Enviada | 0=Sin glosa;1=Pend. Envio Glosa;2=Glosa Enviada | 0=No Disallowance;1=Pend. Subm Disallowance;2=Disallowance Submitted | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 11397 | 0 |
| B5S | 09 | B5S_TIPGUI | C | 2 | 0 | Tipo Guia | Tipo de form | Form Type | Tipo de Guia | Tipo de formulario | Form Type | - | - | 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 | - | - | - | 11398 | 0 |
| B5S | 10 | B5S_MATRIC | C | 17 | 0 | Matricula | Matrícula | Registration | Matricula Benefíciario | Matrícula del beneficiari | Beneficiary Registration | @! | - | x x x x x x x x x x x x x x x x | MATRICBD5() | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 11399 | 0 |
| B5S | 11 | B5S_MATANT | C | 17 | 0 | Matric. Ant. | Matríc. Ant. | Former Reg | Matricula Antiga | Matrícula antigua | Former Registration | @! | - | x x x x x x x x x x x x x x x x | ALLTRIM(POSICIONE("BD5",1,XFILIAL("BD5")+B5S->(B5S_CODOPE+B5S_CODLDP+B5S_CODPEG+B5S_NUMERO),"BD5_MATANT")) | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 11400 | 0 |
| B5S | 12 | B5S_NOMUSR | C | 70 | 0 | Nome Usuario | Nombre usuar | User Name | Nome do Usuário | Nombre del usuario | User Name | @! | - | x x x x x x x x x x x x x x x x | ALLTRIM(POSICIONE("BD5",1,XFILIAL("BD5")+B5S->(B5S_CODOPE+B5S_CODLDP+B5S_CODPEG+B5S_NUMERO),"BD5_NOMUSR")) | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | - | 034 | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 11401 | 0 |
| B5S | 13 | B5S_CODRDA | C | 6 | 0 | Cod. RDA | Cód. RDA | Serv Net Cd | Codigo Rede de Atendiment | Código Red de atención | Code of Service Network | @! | - | x x x x x x x x x x x x x x x x | ALLTRIM(POSICIONE("BD5",1,XFILIAL("BD5")+B5S->(B5S_CODOPE+B5S_CODLDP+B5S_CODPEG+B5S_NUMERO),"BD5_CODRDA")) | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 11402 | 0 |
| B5S | 14 | B5S_NOMRDA | C | 70 | 0 | Nome RDA | Nombre de la | Serv Net Nm | Nome Rede de Atendimento | Nombre de la red de atenc | Name of Service Network. | @! | - | x x x x x x x x x x x x x x x x | ALLTRIM(POSICIONE("BD5",1,XFILIAL("BD5")+B5S->(B5S_CODOPE+B5S_CODLDP+B5S_CODPEG+B5S_NUMERO),"BD5_NOMRDA")) | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 11403 | 0 |
| B5S | 15 | B5S_DATPRO | D | 8 | 0 | Data Atendim | Fecha Atenc. | Serv Dt | Data do Atendimento | Fecha de la atención | Service Date | - | - | x x x x x x x x x x x x x x x x | ALLTRIM(POSICIONE("BD5",1,XFILIAL("BD5")+B5S->(B5S_CODOPE+B5S_CODLDP+B5S_CODPEG+B5S_NUMERO),"BD5_DATPRO")) | - | 1 | x | - | - | - | S | V | V | - | - | - | - | - | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 11404 | 0 |
| B5S | 16 | B5S_VLRPRO | N | 16 | 2 | Vlr.Tot.Even | Val.Tot.Even | Event tot va | Valor total dos eventos | Valor total de los evento | Total val of events | @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 | - | - | - | 11405 | 0 |
| B5S | 17 | B5S_VLRTAX | N | 16 | 2 | Vlr.Tot.Taxa | Val.Tot.Tasa | Rate Tot Amt | Valor total das taxas | Valor total de las tasas | Total Amt of Rate | @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 | - | - | - | 11406 | 0 |
| B5S | 18 | B5S_VLRGLO | N | 16 | 2 | Vlr.Glosas | Val.Glosas | Disal Vl | Valor Glosas | Valor glosas | Disallowance 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 | - | - | - | 11407 | 0 |
| B5S | 19 | B5S_GUICRI | C | 1 | 0 | Guia Critica | Formulario C | Review Form | Guia Criticada na Origem | Formulario criticado en e | Form Reviewed at Source | @! | - | x x x x x x x x x x x x x x x x | "0" | - | 1 | x | - | - | - | S | V | R | - | - | 0=Não Criticada;1=Criticada;2=Guia Expirada | 0=No criticada;1=Criticada;2=Formulario expirado | 0=Not Reviewed;1=Reviewed;2=Form Expired | - | - | - | - | - | S | - | - | N | - | N | - | - | - | 1 | 2 | - | - | - | 11408 | 0 |
| B5S | 20 | B5S_NUMGUI | C | 20 | 0 | Numero Guia | Número formu | Form No. | Numero da Guia | Número de 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 | - | - | - | 11409 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| B5S | 1 | B5S_FILIAL+B5S_NUMLOT+B5S_CODOPE+B5S_CODLDP+B5S_CODPEG+B5S_NUMERO | Núm. Lote + Operadora + Cd.Local Dig + Código PEG + Número | Nº Lote + Operadora + Cd.Local Dig + Código PEG + Número | Batch Num + Operator + Typ Loc Cd + PEG code + Number | S | - | - | S | 2 | 3 | - | 1823 | 0 |
| B5S | 2 | B5S_FILIAL+B5S_CODOPE+B5S_CODLDP+B5S_CODPEG+B5S_NUMERO | Operadora + Cd.Local Dig + Código PEG + Número | Operadora + Cd.Local Dig + Código PEG + Número | Operator + Typ Loc Cd + PEG code + Number | S | - | - | S | 2 | 3 | - | 1824 | 0 |
Ela é utilizada para cabeç. guias lote aviso-envio 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
B5S_FILIAL,
B5S_NUMLOT,
B5S_OPEORI,
B5S_CODOPE,
B5S_CODLDP,
B5S_CODPEG,
B5S_NUMERO,
B5S_STAGLO,
B5S_TIPGUI,
B5S_MATRIC,
B5S_MATANT,
B5S_NOMUSR,
B5S_CODRDA,
B5S_NOMRDA,
B5S_DATPRO,
B5S_VLRPRO,
B5S_VLRTAX,
B5S_VLRGLO,
B5S_GUICRI,
B5S_NUMGUI
FROM B5S
WHERE
D_E_L_E_T_ = ' '
AND B5S_FILIAL = 'VALOR'
AND B5S_NUMLOT = 'VALOR'
AND B5S_OPEORI = 'VALOR'
AND B5S_CODOPE = 'VALOR'
AND B5S_CODLDP = 'VALOR'
AND B5S_CODPEG = 'VALOR'
AND B5S_NUMERO = 'VALOR'
AND B5S_STAGLO = 'VALOR'
AND B5S_TIPGUI = 'VALOR'
AND B5S_MATRIC = 'VALOR'
AND B5S_MATANT = 'VALOR'
AND B5S_NOMUSR = 'VALOR'
AND B5S_CODRDA = 'VALOR'
AND B5S_NOMRDA = 'VALOR'
AND B5S_DATPRO BETWEEN '20260501' AND '20260531'
AND B5S_VLRPRO = 0
AND B5S_VLRTAX = 0
AND B5S_VLRGLO = 0
AND B5S_GUICRI = 'VALOR'
AND B5S_NUMGUI = 'VALOR'