Dicionário Protheus
Início

Tabela GBA no Protheus

Estimativa de Faturamento SUS

O que é a tabela GBA no Protheus?

A tabela GBA faz parte do sistema ERP Protheus da TOTVS e é utilizada para estimativa de faturamento sus.

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 GBA 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 GBA, incluindo todos os campos e índices relacionados.

Propriedades da Tabela

Propriedade Valor
X2_CHAVE GBA
X2_PATH \DATA\
X2_ARQUIVO GBA990
X2_NOME Estimativa de Faturamento SUS
X2_NOMESPA Estimación de Facturación SUS
X2_NOMEENG SUS Billing Forecast
X2_ROTINA -
X2_MODO E
X2_MODOUN E
X2_MODOEMP E
X2_DELET 0
X2_TTS -
X2_UNICO -
X2_PYME N
X2_MODULO 51
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_ 4828
R_E_C_D_E_L_ 0

Campos da Tabela GBA (19 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_
GBA 01 GBA_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 - - - - N - - - - - - - - - - 033 - N - - N N N - - - 1 2 - - - 77932 0
GBA 02 GBA_CODAIH C 10 0 Codigo AIH Codigo AIH AIH Code Codigo AIH Codigo AIH AIH Code @! - x x x x x x x x x x x x x x x x - - 1 xx - - - S A R - - - - - - - - - - N - - N N N - - - 1 1 - - - 77933 0
GBA 03 GBA_SRVHOS N 12 2 Srvs Hospits Srvs Hospits Hosp.Serv. Servicos Hospitalares Servicios Hospitalarios Hospital Services @E 999,999,999.99 - x x x x x x x x x x x x x x x xx - - 1 xxxxxx x - - - S A R - - - - - - - - - - N - - N N N - - - 1 2 - - - 77934 0
GBA 04 GBA_SRVPRO N 12 2 Srvs Profiss Srvs Profes. Prof.Serv. Servicos Profissionais Servicios Profesionales Professional Services @E 999,999,999.99 - x x x x x x x x x x x x x x x xx - - 1 xxxxxx x - - - S A R - - - - - - - - - - N - - N N N - - - 1 2 - - - 77935 0
GBA 05 GBA_SRSADT N 12 2 S.A.D.T S.A.D.T S.A.D.T S.A.D.T S.A.D.T S.A.D.T @E 999,999,999.99 - x x x x x x x x x x x x x x x xx - - 1 xxxxxx x - - - S A R - - - - - - - - - - N - - N N N - - - 1 2 - - - 77936 0
GBA 06 GBA_SRVTRA N 12 2 Srvs Transpl Srvs Transpl Transp.Serv. Servicos de Transplante Servicios de Transplante Transplant Services @E 999,999,999.99 - x x x x x x x x x x x x x x x xx - - 1 xxxxxx x - - - S A R - - - - - - - - - - N - - N N N - - - 1 2 - - - 77937 0
GBA 07 GBA_SRVNEU N 12 2 Neuro Cirurg Neurocirugia Neuro Surg. Neuro Cirurgia Neurocirugia Neuro Surgery @E 999,999,999.99 - x x x x x x x x x x x x x x x xx - - 1 xxxxxx x - - - S A R - - - - - - - - - - N - - N N N - - - 1 2 - - - 77938 0
GBA 08 GBA_SRVUTE N 12 2 UTI Especial UTI Especial Spec.ICU UTI Especializada UTI Especializada Specialized ICU @E 999,999,999.99 - x x x x x x x x x x x x x x x xx - - 1 xxxxxx x - - - S A R - - - - - - - - - - N - - N N N - - - 1 2 - - - 77939 0
GBA 09 GBA_SRVORT N 12 2 Ortese/Prote Ortes./Prote Ort./Prothe. Ortese/Protese Ortesis/Protesis Ortosis/Prothesis @E 999,999,999.99 - x x x x x x x x x x x x x x x xx - - 1 xxxxxx x - - - S A R - - - - - - - - - - N - - N N N - - - 1 2 - - - 77940 0
GBA 10 GBA_SANGUE N 12 2 Sangue Sangre Blood Sangue Sangre Blood @E 999,999,999.99 - x x x x x x x x x x x x x x x xx - - 1 xxxxxx x - - - S A R - - - - - - - - - - N - - N N N - - - 1 2 - - - 77941 0
GBA 11 GBA_ATENRN N 12 2 Atend ao RN Atenc.al RN N.Born Serv. Atendimento ao RN Atencion al RN New Born Servicing @E 999,999,999.99 - x x x x x x x x x x x x x x x xx - - 1 xxxxxx x - - - S A R - - - - - - - - - - N - - N N N - - - 1 2 - - - 77942 0
GBA 12 GBA_VLRUTI N 12 2 Valores UTI Valores UTI ICU Values Valores UTI Valores UTI ICU Values @E 999,999,999.99 - x x x x x x x x x x x x x x x xx - - 1 xxxxxx x - - - S A R - - - - - - - - - - N - - N N N - - - 1 2 - - - 77943 0
GBA 13 GBA_DIAACO N 12 2 Diaria Acomp Ts.Dia Acomp Comp.´s D.Fe Diaria de Acompanhante Ts. Dia de Acompanante Companion´s Daily Fee @E 999,999,999.99 - x x x x x x x x x x x x x x x xx - - 1 xxxxxx x - - - S A R - - - - - - - - - - N - - N N N - - - 1 2 - - - 77944 0
GBA 14 GBA_ANALGE N 12 2 Analgesia Analgesia Analgesia Analgesia Analgesia Analgesia @E 999,999,999.99 - x x x x x x x x x x x x x x x xx - - 1 xxxxxx x - - - S A R - - - - - - - - - - N - - N N N - - - 1 2 - - - 77945 0
GBA 15 GBA_NUTENT N 12 2 Nutricao Ent Nutric.Enter Ent.Nourish. Nutricao Enteral Nutricion Enteral Enteral Nourishment @E 999,999,999.99 - x x x x x x x x x x x x x x x xx - - 1 xxxxxx x - - - S A R - - - - - - - - - - N - - N N N - - - 1 2 - - - 77946 0
GBA 16 GBA_COMPO1 N 12 2 Componenete1 Componente1 Component 1 Componenete 1 Componente 1 Component 1 @E 999,999,999.99 - x x x x x x x x x x x x x x x xx - - 1 xxxxxx x - - - S A R - - - - - - - - - - N - - N N N - - - 1 2 - - - 77947 0
GBA 17 GBA_NOTAGR N 12 2 Notif.Agravo Notif.Agrava Aggrav.Not. Notificacao de Agravo Notificac. de Agravamient Aggravation Notice @E 999,999,999.99 - x x x x x x x x x x x x x x x xx - - 1 xxxxxx x - - - S A R - - - - - - - - - - N - - N N N - - - 1 2 - - - 77948 0
GBA 18 GBA_ANOMES C 6 0 Ano/Mes Apre Ano/Mes Pres Pre.Yr/Mht Ano/Mes de Apresentacao Ano/Mes de Presentacion Presentation Year/Month @! - x x x x x x x x x x x x x x x - - 1 - - - - S V - - - - - - - - - - - N - - N N N - - - 1 2 - - - 77949 0
GBA 19 GBA_LOGARQ C 40 0 Log do Arq Log del Arch File Log Log do Arquivo Log del Archivo File Log - - x x x x x x x x x x x x x x x HS_LOGARQ() - 1 xxxxxx x - - - - V - - - - - - - - - - - N - - N N N - - - 1 2 - - - 77950 0

Índices da Tabela GBA (2 í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_
GBA 1 GBA_FILIAL+GBA_ANOMES+GBA_CODAIH Ano/Mes Apre + Codigo AIH Ano/Mes Pres + Codigo AIH Pre.Yr/Mht + AIH Code S - - S 2 3 - 11448 0
GBA 2 GBA_FILIAL+GBA_CODAIH Codigo AIH Codigo AIH AIH Code S - - S 2 3 - 11449 0

Perguntas frequentes

Para que serve a tabela GBA no Protheus?

Ela é utilizada para estimativa de faturamento sus dentro do sistema ERP Protheus.

Como consultar os campos da tabela GBA?

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

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

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

Exemplo de consulta SQL da tabela GBA

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

SELECT
    GBA_FILIAL,
    GBA_CODAIH,
    GBA_SRVHOS,
    GBA_SRVPRO,
    GBA_SRSADT,
    GBA_SRVTRA,
    GBA_SRVNEU,
    GBA_SRVUTE,
    GBA_SRVORT,
    GBA_SANGUE,
    GBA_ATENRN,
    GBA_VLRUTI,
    GBA_DIAACO,
    GBA_ANALGE,
    GBA_NUTENT,
    GBA_COMPO1,
    GBA_NOTAGR,
    GBA_ANOMES,
    GBA_LOGARQ
FROM GBA
WHERE
    D_E_L_E_T_ = ' '
    AND GBA_FILIAL = 'VALOR'
    AND GBA_CODAIH = 'VALOR'
    AND GBA_SRVHOS = 0
    AND GBA_SRVPRO = 0
    AND GBA_SRSADT = 0
    AND GBA_SRVTRA = 0
    AND GBA_SRVNEU = 0
    AND GBA_SRVUTE = 0
    AND GBA_SRVORT = 0
    AND GBA_SANGUE = 0
    AND GBA_ATENRN = 0
    AND GBA_VLRUTI = 0
    AND GBA_DIAACO = 0
    AND GBA_ANALGE = 0
    AND GBA_NUTENT = 0
    AND GBA_COMPO1 = 0
    AND GBA_NOTAGR = 0
    AND GBA_ANOMES = 'VALOR'
    AND GBA_LOGARQ = 'VALOR'