Dicionário Protheus
Início

Tabela GUT no Protheus

ALIQUOTAS DE ICMS POR UF

O que é a tabela GUT no Protheus?

A tabela GUT faz parte do sistema ERP Protheus da TOTVS e é utilizada para aliquotas de icms por uf.

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

Propriedades da Tabela

Propriedade Valor
X2_CHAVE GUT
X2_PATH \DATA\
X2_ARQUIVO GUT990
X2_NOME ALIQUOTAS DE ICMS POR UF
X2_NOMESPA ALICUOTAS DE ICMS POR UF
X2_NOMEENG ICMS RATE PER STATE
X2_ROTINA -
X2_MODO C
X2_MODOUN C
X2_MODOEMP C
X2_DELET 0
X2_TTS -
X2_UNICO GUT_FILIAL+GUT_UF
X2_PYME S
X2_MODULO 78
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_ 5336
R_E_C_D_E_L_ 0

Campos da Tabela GUT (15 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_
GUT 01 GUT_FILIAL C 2 0 Filial Sucursal Branch Filial do Sistema Sucursal de Sistema System Branch - - x x x x x x x x x x x x x x x - - 1 - - - - N - - - - - - - - - - 033 - S - - N N N - - - 1 2 - - - 85237 0
GUT 02 GUT_UF C 2 0 Unid Feder Unid Feder State Unidade de Federacao Unidad de Federacion State @! NAOVAZIO().AND.ExistChav("GUT").AND.ExistCpo("SX5","12"+M->GUT_UF) x x x x x x x x x x x x x x x x - 12 1 x xxx - - - S A R - - - - - - INCLUI - 010 - S - - N N N - - - 1 1 - - - 85238 0
GUT 03 GUT_TREC C 1 0 Trib Est Ctb Trib Est Ctb Stat Tax Txp Tributacao Estad Contrib Tributacion Estad Contrib State Taxation Taxpayer @! Pertence("1234567") x x x x x x x x x x x x x x x x "1" - 1 x xxx - - - S A R - - 1=Tributado;2=Isento/Não-tributado;3=Subs Tributária;4=Diferido;5=Reduzido;6=Outros;7=Presumido 1=Tributado;2=Exento/No-tributado;3=Subs Tributaria;4=Diferido;5=Reducido;6=Otros;7=Presumido 1=Taxed;2=Exempt/Not taxed;3=Tax Replacement;4=Deferred;5=Reduced;6=Others;7=Deemed - - "1" - - S - - N N N - - - 1 1 - - - 85239 0
GUT 04 GUT_TRENC C 1 0 Trib Est NC Trib Est NC Stat Tax Txp Tributacao Estad Nao-cont Tributacion Estad No-con State Taxat. Non-taxpayer @! Pertence("1234567") x x x x x x x x x x x x x x x x "1" - 1 x xxx - - - S A R - - 1=Tributado;2=Isento/Não-tributado;3=Subs Tributária;4=Diferido;5=Reduzido;6=Outros;7=Presumido 1=Tributado;2=Exento/No-tributado;3=Subs Tributaria;4=Diferido;5=Reducido;6=Otros;7=Presumido 1=Taxed;2=Exempt/Not taxed;3=Tax Replacement;4=Deferred;5=Reduced;6=Others;7=Deemed - - "1" - - S - - N N N - - - 1 1 - - - 85240 0
GUT 05 GUT_TRIC C 1 0 Trib Int Ctb Trib Int Ctb Int Tax Taxp Tributacao Interest Contr Tributacion Interest Cont Interstate Taxat Taxpayer @! Pertence("1234567") x x x x x x x x x x x x x x x x "1" - 1 x xxx - - - S A R - - 1=Tributado;2=Isento/Não-tributado;3=Subs Tributária;4=Diferido;5=Reduzido;6=Outros;7=Presumido 1=Tributado;2=Exento/No-tributado;3=Subs Tributaria;4=Diferido;5=Reducido;6=Otros;7=Presumido 1=Taxed;2=Exempt/Not taxed;3=Tax Replacement;4=Deferred;5=Reduced;6=Others;7=Deemed - - "1" - - S - - N N N - - - 1 1 - - - 85241 0
GUT 06 GUT_TRINC C 1 0 Trib Int NC Trib Int NC Int Tax Txp Tribut Interest Nao-cont Tribut Interest No-cont Interstate Tax Non-taxpay @! Pertence("1234567") x x x x x x x x x x x x x x x x "1" - 1 x xxx - - - S A R - - 1=Tributado;2=Isento/Não-tributado;3=Subs Tributária;4=Diferido;5=Reduzido;6=Outros;7=Presumido 1=Tributado;2=Exento/No-tributado;3=Subs Tributaria;4=Diferido;5=Reducido;6=Otros;7=Presumido 1=Taxed;2=Exempt/Not taxed;3=Tax Replacement;4=Deferred;5=Reduced;6=Others;7=Deemed - - "1" - - S - - N N N - - - 1 1 - - - 85242 0
GUT 07 GUT_PCEC N 5 2 Aliq Est Ctb Alic Est Ctb Txpr St Rt Aliquota Estadual Contrib Alicuota Estatal Contrib Taxpayer State Rate @R 99.99 Positivo() x x x x x x x x x x x x x x x x - - 1 xx x x - - - S A R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85243 0
GUT 08 GUT_PCENC N 5 2 Aliq Est NC Alic Est NC N-Txpr St Rt Aliquota Estad Nao-cont Alicuota Estad No-cont Non-Taxpayer State Rate @R 99.99 Positivo() x x x x x x x x x x x x x x x x - - 1 xx x x - - - S A R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85244 0
GUT 09 GUT_PCIC N 5 2 Aliq Int Ctb Alic Int Ctb Txpr In Rt Aliquota Interest Contrib Alicuota Interest Contrib Taxpayer Interstate Rt. @R 99.99 Positivo() x x x x x x x x x x x x x x x x - - 1 xx x x - - - S A R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85245 0
GUT 10 GUT_PCINC N 5 2 Aliq Int NC Alic Int NC N-Txpr In Rt Aliq Interest Nao-contrib Alic Interest No-contrib N-Taxpayer Interstate Rt. @R 99.99 Positivo() x x x x x x x x x x x x x x x x - - 1 xx x x - - - S A R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85246 0
GUT 11 GUT_ICMPRE N 6 2 % Cred ICMS % Cred ICMS ICMS Cred. % Aliq ICMS Presumido Alic ICMS Estimado Presumed ICMS Rate @R 999.99 - x x x x x x x x x x x x x x x x - - 1 xxxx x - - - N A R - - - - - - - - - - S - - N N N - - - 1 2 - - - 85247 0
GUT 12 GUT_ICMPDG C 1 0 Ped. ICMS DF Pea. ICMS DF DF ICMS Toll Pedagio ICMS Doc Frete Peaje ICMS Doc Flete Freight Doc ICMS Toll - Pertence("12") x x x x x x x x x x x x x x x x "2" - 1 x - - - N A R - - 1=Sim;2=Nao 1=Si;2=No 1=Yes;2=No - - - - - S - - N - N - - - 1 2 - - - 85248 0
GUT 13 GUT_SUBCON C 1 0 CT-e Subcont e-CT Subcont Subcont CT-e CT-e Subcontratação e-CT Subcontrat Subcontracting CT-e - - x x x x x x x x x x x x x x x x - - 1 x - - - N A R - - 1=Obrigatório;2=Opcional 1=Obligatorio;2=Opcional 1=Required;2=Optional - - - - - S - - N - N - - - 1 2 - - - 85249 0
GUT 14 GUT_EMITAB C 14 0 Emitente Emisor Issuer Codigo Emitente Código del emisor Issuer Code @! Vazio() .Or. GFEExistC("GU3",,,"(GU3->GU3_TRANSP == '1' .OR. GU3->GU3_AUTON == '1') .AND. GU3->GU3_SIT == '1'") x x x x x x x x x x x x x x x x - GU3GVA 1 x xx G - - S A R - - - - - - - - 052 - S - - N - N - - - 1 1 - - - 85250 0
GUT 15 GUT_NRTAB C 6 0 Tabela Tabla Table Número Tabela de Frete Número de la tabla de fle Freight Number Table 999999 Vazio() .Or. GFEExistC("GVA",1,M->GUT_EMITAB+M->GUT_NRTAB,"GVA->GVA_TPTAB == '3'") x x x x x x x x x x x x x x x x - GVAGUT 1 x x G - - S A R - - - - - - - - - - S - - N - N - - - 1 1 - - - 85251 0

Índices da Tabela GUT (1 í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_
GUT 1 GUT_FILIAL+GUT_UF Unid Feder Unid Feder State S - PK S 2 3 - 12594 0

Perguntas frequentes

Para que serve a tabela GUT no Protheus?

Ela é utilizada para aliquotas de icms por uf dentro do sistema ERP Protheus.

Como consultar os campos da tabela GUT?

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

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

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

Exemplo de consulta SQL da tabela GUT

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

SELECT
    GUT_FILIAL,
    GUT_UF,
    GUT_TREC,
    GUT_TRENC,
    GUT_TRIC,
    GUT_TRINC,
    GUT_PCEC,
    GUT_PCENC,
    GUT_PCIC,
    GUT_PCINC,
    GUT_ICMPRE,
    GUT_ICMPDG,
    GUT_SUBCON,
    GUT_EMITAB,
    GUT_NRTAB
FROM GUT
WHERE
    D_E_L_E_T_ = ' '
    AND GUT_FILIAL = 'VALOR'
    AND GUT_UF = 'VALOR'
    AND GUT_TREC = 'VALOR'
    AND GUT_TRENC = 'VALOR'
    AND GUT_TRIC = 'VALOR'
    AND GUT_TRINC = 'VALOR'
    AND GUT_PCEC = 0
    AND GUT_PCENC = 0
    AND GUT_PCIC = 0
    AND GUT_PCINC = 0
    AND GUT_ICMPRE = 0
    AND GUT_ICMPDG = 'VALOR'
    AND GUT_SUBCON = 'VALOR'
    AND GUT_EMITAB = 'VALOR'
    AND GUT_NRTAB = 'VALOR'