A tabela SN3 do Protheus está descrita no dicionário (SX2) como “Saldos e Valores”. Possui 142 campos e 21 índices e chave única N3_FILIAL+N3_CBASE+N3_ITEM+N3_TIPO+N3_BAIXA+N3_SEQ+N3_TPSALDO. Abaixo estão tipo, tamanho e descrição de cada campo, os índices e um exemplo de consulta SQL.
Propriedades da tabela
- Código
- SN3
- Nome
- Saldos e Valores
- Nome (inglês)
- Balances and Amounts
- Compartilhamento por filial
- Exclusivo
- Compartilhamento por unidade
- Exclusivo
- Compartilhamento por empresa
- Exclusivo
- Chave única
N3_FILIAL+N3_CBASE+N3_ITEM+N3_TIPO+N3_BAIXA+N3_SEQ+N3_TPSALDO- Campos / índices
- 142 / 21
Campos da tabela SN3 (142)
| Ordem | Campo | Tipo | Tam. | Dec. | Título | Descrição | Contexto |
|---|---|---|---|---|---|---|---|
| 01 | N3_FILIAL | C | 2 | 0 | Filial | Filial do Sistema | Real |
| 02 | N3_CBASE | C | 10 | 0 | Cod Base Bem | Codigo Base do Bem | Real |
| 03 | N3_ITEM | C | 4 | 0 | Codigo Item | Codigo do Item do Bem | Real |
| 04 | N3_TIPO | C | 2 | 0 | Tipo Ativo | Tipo do Ativo | Real |
| 05 | N3_TIPREAV | C | 15 | 0 | Tipo de Reav | Tipo de Reavaliação | Real |
| 06 | N3_BAIXA | C | 1 | 0 | Ocor Baixa | Ocorrencia da Baixa | Real |
| 07 | N3_HISTOR | C | 40 | 0 | Historico | Historico do Valor | Real |
| 08 | N3_TPSALDO | C | 1 | 0 | Tipo Saldo | Tipo de Saldo | Real |
| 09 | N3_TPDEPR | C | 1 | 0 | Tipo deprec. | Tipo de depreciação | Real |
| 10 | N3_CCONTAB | C | 20 | 0 | Conta | Conta Contabil | Real |
| 11 | N3_CUSTBEM | C | 9 | 0 | C Custo Bem | C Custo da Conta do Bem | Real |
| 12 | N3_CDEPREC | C | 20 | 0 | Cta Desp Dep | Conta Despesa Depreciacao | Real |
| 13 | N3_CCUSTO | C | 9 | 0 | CC Despesa | Centro de Custo Despesa | Real |
| 14 | N3_CCDEPR | C | 20 | 0 | Cta Dep Acum | Conta Deprec. Acumulada | Real |
| 15 | N3_CDESP | C | 20 | 0 | Cta Cor Depr | Cta Correcao Depreciacao | Real |
| 16 | N3_CCORREC | C | 20 | 0 | Conta Correc | Conta Correcao Bem | Real |
| 17 | N3_NLANCTO | C | 9 | 0 | Num. Lancto | Num Lancto Contabil | Real |
| 18 | N3_DLANCTO | D | 8 | 0 | Data Lancto | Data lancamento | Real |
| 19 | N3_DINDEPR | D | 8 | 0 | Dt In Deprec | Data Inicio depreciacao | Real |
| 20 | N3_FIMDEPR | D | 8 | 0 | Fim Deprec | Data fim da depreciacao | Real |
| 21 | N3_DEXAUST | D | 8 | 0 | Dt Exaustao | Data Exaustao do Bem | Real |
| 22 | N3_VORIG1 | N | 14 | 2 | Val Orig M1 | Valor Original Moeda 1 | Real |
| 23 | N3_TXDEPR1 | N | 9 | 4 | Tx.An.Depr.1 | Taxa Anual Depreciação 1 | Real |
| 24 | N3_VORIG2 | N | 14 | 2 | Val Orig M2 | Valor Original Moeda 2 | Real |
| 25 | N3_TXDEPR2 | N | 9 | 4 | Tx.An.Depr.2 | Taxa Anual Depreciação 2 | Real |
| 26 | N3_VORIG3 | N | 14 | 2 | Val Orig M3 | Valor Original Moeda 3 | Real |
| 27 | N3_TXDEPR3 | N | 9 | 4 | Tx.An.Depr.3 | Taxa Anual Depreciação 3 | Real |
| 28 | N3_VORIG4 | N | 14 | 2 | Val Orig M4 | Valor Original Moeda 4 | Real |
| 29 | N3_TXDEPR4 | N | 9 | 4 | Tx.An.Depr.4 | Taxa Anual Depreciação 4 | Real |
| 30 | N3_VORIG5 | N | 14 | 2 | Val Orig M5 | Valor Original Moeda 5 | Real |
| 31 | N3_TXDEPR5 | N | 9 | 4 | Tx.An.Depr.5 | Taxa Anual Depreciação 5 | Real |
| 32 | N3_VRCBAL1 | N | 14 | 2 | Corre Bal M1 | Correcao Balanco Moeda 1 | Real |
| 33 | N3_VRDBAL1 | N | 14 | 2 | Depre Bal M1 | Deprecia Balanco Moeda 1 | Real |
| 34 | N3_VRCMES1 | N | 14 | 2 | Corre Mes M1 | Correcao no Mes Moeda 1 | Real |
| 35 | N3_VRDMES1 | N | 14 | 2 | Depr Mes M1 | Valor Depr. Mes Moeda 1 | Real |
| 36 | N3_VRCACM1 | N | 14 | 2 | Corr Acum M1 | Correcao Acumulada Moeda1 | Real |
| 37 | N3_VRDACM1 | N | 14 | 2 | Depr.Acum M1 | Deprecia Acumulada Moeda1 | Real |
| 38 | N3_VRDBAL2 | N | 16 | 4 | Depr Bal M2 | Depreciac Balanco Moeda 2 | Real |
| 39 | N3_VRDMES2 | N | 16 | 4 | Depr Mes M2 | Deprecia Mes Moeda 2 | Real |
| 40 | N3_VRCACM2 | N | 14 | 2 | Cor.Acm.M2 | Correc.Acumulada Moeda 2 | Real |
| 41 | N3_VRDACM2 | N | 16 | 4 | Depr Acum M2 | Deprecia Acumulada Moeda2 | Real |
| 42 | N3_VRDBAL3 | N | 16 | 4 | Depr.Bal M3 | Depreciac Balanco Moeda 3 | Real |
| 43 | N3_VRDMES3 | N | 16 | 4 | Depr Mes M3 | Deprecia Mes Moeda 3 | Real |
| 44 | N3_VRCACM3 | N | 14 | 2 | Cor. Acm.M3 | Correc.Acumulada Moeda 3 | Real |
| 45 | N3_VRDACM3 | N | 16 | 4 | Depr Acum M3 | Deprecia Acumulada Moeda3 | Real |
| 46 | N3_VRDBAL4 | N | 16 | 4 | Depr.Bal M4 | Depreciac Balanco Moeda 4 | Real |
| 47 | N3_VRDMES4 | N | 16 | 4 | Depr Mes M4 | Deprecia Mes Moeda 4 | Real |
| 48 | N3_VRCACM4 | N | 14 | 2 | Cor.Acm.M4 | Correc.Acumulada Moeda 4 | Real |
| 49 | N3_VRDACM4 | N | 16 | 4 | Depr Acum M4 | Deprecia Acumulada Moeda4 | Real |
| 50 | N3_VRDBAL5 | N | 16 | 4 | Depr.Bal M5 | Depreciac Balanco Moeda 5 | Real |
| 51 | N3_VRDMES5 | N | 16 | 4 | Depr Mes M5 | Deprecia Mes Moeda 5 | Real |
| 52 | N3_VRCACM5 | N | 14 | 2 | Cor.Acm.M5 | Correc.Acumulada Moeda 5 | Real |
| 53 | N3_VRDACM5 | N | 16 | 4 | Depr Acum M5 | Deprecia Acumulada Moeda5 | Real |
| 54 | N3_INDICE1 | N | 9 | 4 | Indice 1 | Indice de Depreciação 1 | Real |
| 55 | N3_INDICE2 | N | 9 | 4 | Indice 2 | Indice de Depreciação 2 | Real |
| 56 | N3_INDICE3 | N | 9 | 4 | Indice 3 | Indice de Depreciação 3 | Real |
| 57 | N3_INDICE4 | N | 9 | 4 | Indice 4 | Indice de Depreciação 4 | Real |
| 58 | N3_INDICE5 | N | 9 | 4 | Indice 5 | Indice de Depreciação 5 | Real |
| 59 | N3_AQUISIC | D | 8 | 0 | Dt.Aquis Ori | Data Aquisicao Original | Real |
| 60 | N3_DTBAIXA | D | 8 | 0 | Data Baixa | Data da Baixa do Bem | Real |
| 61 | N3_VRCDM1 | N | 14 | 2 | Cor Dep Mes | Corr. Depr. no Mes | Real |
| 62 | N3_VRCDB1 | N | 14 | 2 | Cor Dep Exer | Corr Depr Acum no Exerc. | Real |
| 63 | N3_VRCDA1 | N | 14 | 2 | Cor Dep Acum | Corr Depr Acumulada | Real |
| 64 | N3_VRCDA2 | N | 14 | 2 | C. Dep Ac M2 | Correc. Dep. Acum. M2 | Real |
| 65 | N3_VRCDA3 | N | 14 | 2 | C. Dep.Ac M3 | Correc. Dep. Acum M3 | Real |
| 66 | N3_VRCDA4 | N | 14 | 2 | C Dep. Ac M4 | Correc. Dep. Acum M4 | Real |
| 67 | N3_VRCDA5 | N | 14 | 2 | C Dep Ac M5 | Correc. Dep. Acum M3 | Real |
| 68 | N3_PERDEPR | N | 4 | 0 | Per Deprec | Periodicidade Depreciacao | Real |
| 69 | N3_CRIDEPR | C | 15 | 0 | Crit. Deprec | Criterio de Depreciacao | Real |
| 70 | N3_CALDEPR | C | 15 | 0 | Cal.Criterio | Calendario de Criterio | Real |
| 71 | N3_VMXDEPR | N | 14 | 2 | Vl Max Depre | Valor Maximo Depreciacao | Real |
| 72 | N3_VLSALV1 | N | 14 | 2 | Vlr Salv | Valor de salvamento | Real |
| 73 | N3_DEPREC | C | 40 | 0 | Depr.Variav. | Taxa Variavel de Deprec. | Real |
| 74 | N3_CALCDEP | C | 1 | 0 | Forma Calc. | Forma de Calculo Deprec. | Real |
| 75 | N3_PRODANO | N | 15 | 3 | Prod. Estim. | Producao Estimada | Real |
| 76 | N3_PRODMES | N | 15 | 3 | Prod. períod | Producao do período | Real |
| 77 | N3_PRODACM | N | 16 | 3 | Prod. acum. | Produção acumulada do bem | Real |
| 78 | N3_OK | C | 2 | 0 | Flag Marca | Flag Marcacao da Baixa | Real |
| 79 | N3_SEQ | C | 3 | 0 | Seq Aquisic | Sequencia de aquisicao | Real |
| 80 | N3_CCDESP | C | 9 | 0 | Cc Des Depr | Centro Custo Desp Depr. | Real |
| 81 | N3_CCCDEP | C | 9 | 0 | Cc Depr Ac | Centro Custo Dep. Acumul. | Real |
| 82 | N3_CCCDES | C | 9 | 0 | Cc Cor Dep | Centro Custo Corr. Depr. | Real |
| 83 | N3_CCCORR | C | 9 | 0 | Cc Correcao | Centro Custo Corr. Monet. | Real |
| 84 | N3_SUBCTA | C | 9 | 0 | Item Despesa | Item Despesa | Real |
| 85 | N3_SUBCCON | C | 9 | 0 | Item do Bem | Item Conta do Bem | Real |
| 86 | N3_SUBCDEP | C | 9 | 0 | Item Ds.Dep. | Item Despesa Depreciacao | Real |
| 87 | N3_SUBCCDE | C | 9 | 0 | Item Dep.Ac. | Item Depreciação Acm | Real |
| 88 | N3_SUBCDES | C | 9 | 0 | Item C.Dep. | Item Cor.Des. Depreciacao | Real |
| 89 | N3_SUBCCOR | C | 9 | 0 | Item Cor.Bem | Item Correcao Monetaria | Real |
| 90 | N3_BXICMS | N | 14 | 2 | Valor do ICM | Valor do ICMS Baixado | Real |
| 91 | N3_SEQREAV | C | 2 | 0 | Seq Reaval. | Sequencia de Reavaliacao | Real |
| 92 | N3_AMPLIA1 | N | 14 | 2 | Vl Ampliac.1 | Vl da Ampliacao na moeda1 | Real |
| 93 | N3_AMPLIA2 | N | 14 | 2 | Vl Ampliac.2 | Vl da Ampliacao na moeda2 | Real |
| 94 | N3_AMPLIA3 | N | 14 | 2 | Vl Ampliac.3 | Vl da Ampliacao na Moeda3 | Real |
| 95 | N3_AMPLIA4 | N | 14 | 2 | Vl Ampliac.4 | Vl da Ampliacao na Moeda4 | Real |
| 96 | N3_AMPLIA5 | N | 14 | 2 | Vl Ampliac.5 | Vl da Ampliacao na Moeda5 | Real |
| 97 | N3_CODBAIX | C | 6 | 0 | Cd Bx Transf | Cod lig Aquis por Transf | Real |
| 98 | N3_FILORIG | C | 2 | 0 | Filial Orig | Filial Origem | Real |
| 99 | N3_CLVL | C | 9 | 0 | ClVl Despesa | Classe de Valor Despesa | Real |
| 9A | N3_CLVLCON | C | 9 | 0 | Cl Vlr Bem | Classe de Valor do Bem | Real |
| 9B | N3_CLVLDEP | C | 9 | 0 | Clvl Des.Dep | Classe Vlr Despesa Dep. | Real |
| 9C | N3_CLVLCDE | C | 9 | 0 | Clvl Dep.Acu | Classe de Vlr Dep. Acum. | Real |
| 9D | N3_CLVLDES | C | 9 | 0 | Clvl Cor.Dep | Classe de Vlr Cor. Depr. | Real |
| 9E | N3_CLVLCOR | C | 9 | 0 | Clvl Correc. | Classe de Vlr Correc Bem | Real |
| 9F | N3_IDBAIXA | C | 1 | 0 | Ident Baixa | Identificacão da Baixa | Real |
| 9G | N3_LOCAL | C | 6 | 0 | Endereco | Endereco | Real |
| 9H | N3_NOVO | C | 1 | 0 | Reg Novo? | Id. de registro novo | Real |
| 9I | N3_QUANTD | N | 11 | 3 | Qtde. Orig. | Qtd Original antes Baixa | Real |
| 9J | N3_PERCBAI | N | 12 | 7 | Perc Baixado | Percentual Baixado | Real |
| 9K | N3_NODIA | C | 10 | 0 | Seq. DIario | Seq. diario Contabilidade | Real |
| 9L | N3_DIACTB | C | 2 | 0 | Cod. Diario | Cod. Diario Contabilidade | Real |
| 9M | N3_DTACELE | D | 8 | 0 | Dt. Aceler. | Cálculo da depr acelerada | Real |
| 9N | N3_VLACEL1 | N | 14 | 2 | Vl Dep acel. | Vlr da deprec. acelerada | Real |
| 9O | N3_VLACEL2 | N | 16 | 4 | Dp. Acel. M2 | Vlr Dep. Acel. M2 | Real |
| 9P | N3_VLACEL3 | N | 16 | 4 | Dep. Acel M3 | Vlr. Dep. Acel. M3 | Real |
| 9Q | N3_VLACEL4 | N | 16 | 4 | Dep. Acel M4 | Vlr. Dep. Acel. M4 | Real |
| 9R | N3_VLACEL5 | N | 16 | 4 | Dep. Acel M5 | Vlr. Dep. Acel. M5 | Real |
| 9S | N3_RATEIO | C | 1 | 0 | Rateio | Rateio? S/N | Real |
| 9T | N3_CODRAT | C | 12 | 0 | Cod. Rateio | Codigo do rateio | Real |
| 9U | N3_PERCDEP | N | 6 | 2 | Perc Deprec | Percentual de Depreciacao | Real |
| 9V | N3_CODPOOL | C | 15 | 0 | Cod. do Pool | Código do Pool | Real |
| 9W | N3_VLIMPER | N | 14 | 2 | Val Lim Per | Valor Limite no Periodo | Real |
| 9X | N3_CODIND | C | 2 | 0 | Índ.cálculo | Código do índice de depr. | Real |
| 9Y | N3_ATFCPR | C | 1 | 0 | Atf.Custo/Pr | Ativo de Custo/Provisão | Real |
| 9Z | N3_DESCEST | M | 80 | 0 | Desc.Estend. | Descrição Estendida | Virtual |
| A0 | N3_ATVORIG | C | 15 | 0 | Ativo Origem | Código do ativo de origem | Real |
| A1 | N3_INTP | C | 1 | 0 | Int. PIMS | Integração com o PIMS | Real |
| A2 | N3_DTBLOQ | D | 8 | 0 | Dt. Bloqueio | Data de bloqueio | Real |
| A3 | N3_PERACM1 | N | 16 | 2 | Perda Acum.1 | Perda Acumulada Moeda 1 | Real |
| A4 | N3_PERACM2 | N | 16 | 2 | Perda Acum.2 | Perda Acumulada Moeda 2 | Real |
| A5 | N3_PERACM3 | N | 16 | 2 | Perda Acum.3 | Perda Acumulada Moeda 3 | Real |
| A6 | N3_PERACM4 | N | 16 | 2 | Perda Acum.4 | Perda Acumulada Moeda 4 | Real |
| A7 | N3_PERACM5 | N | 16 | 2 | Perda Acum.5 | Perda Acumulada Moeda 5 | Real |
| A8 | N3_REVACM1 | N | 16 | 2 | Rever.Acum.1 | Reversao Acumulada Moeda1 | Real |
| A9 | N3_REVACM2 | N | 16 | 2 | Rever.Acum.2 | Reversao Acumulada Moeda2 | Real |
| AA | N3_REVACM3 | N | 16 | 2 | Rever.Acum.3 | Reversao Acumulada Moeda3 | Real |
| AB | N3_REVACM4 | N | 16 | 2 | Rever.Acum.4 | Reversao Acumulada Moeda4 | Real |
| AC | N3_REVACM5 | N | 16 | 2 | Rever.Acum.5 | Reversão Acumulada Moeda5 | Real |
| AD | N3_EC05DB | C | 16 | 0 | Ent.Deb. 05 | Ent. Contábil Debito 05 | Real |
| AE | N3_EC05CR | C | 16 | 0 | Ent.Cred. 05 | Ent. Contábil Credito 05 | Real |
| AF | N3_EC06DB | C | 16 | 0 | Ent.Deb. 06 | Ent. Contábil Debito 06 | Real |
| AG | N3_EC06CR | C | 16 | 0 | Ent.Cred. 06 | Ent. Contábil Credito 06 | Real |
Tipo: C = caractere, N = numérico, D = data, L = lógico, M = memo.
Índices da tabela SN3 (21)
| Ordem | Chave | Descrição | Apelido |
|---|---|---|---|
| 1 | N3_FILIAL+N3_CBASE+N3_ITEM+N3_TIPO+N3_BAIXA+N3_SEQ | Cod Base Bem + Codigo Item + Tipo Ativo + Ocor Baixa + Seq Aquisic | |
| 2 | N3_FILIAL+N3_CCONTAB+N3_CBASE+N3_ITEM+N3_TIPO+N3_BAIXA | Conta + Cod Base Bem + Codigo Item + Tipo Ativo + Ocor Baixa | |
| 3 | N3_FILIAL+N3_CCUSTO+N3_CBASE+N3_ITEM+N3_TIPO+N3_BAIXA | CC Despesa + Cod Base Bem + Codigo Item + Tipo Ativo + Ocor Baixa | |
| 4 | N3_FILIAL+N3_CCONTAB+N3_CCUSTO+N3_CBASE+N3_ITEM+N3_TIPO+N3_BAIXA | Conta + CC Despesa + Cod Base Bem + Codigo Item + Tipo Ativo + Ocor Ba | |
| 5 | N3_FILIAL+N3_CCUSTO+N3_CCONTAB+N3_CBASE+N3_ITEM+N3_TIPO | CC Despesa + Conta + Cod Base Bem + Codigo Item + Tipo Ativo | |
| 6 | N3_FILIAL+N3_SUBCTA+N3_CCUSTO+N3_CCONTAB+N3_CBASE+N3_ITEM+N3_TIPO | Item Despesa + CC Despesa + Conta + Cod Base Bem + Codigo Item + Tipo | |
| 7 | N3_FILIAL+N3_CLVL+N3_SUBCTA+N3_CCUSTO+N3_CCONTAB+N3_CBASE+N3_ITEM+N3_TIPO | ClVl Despesa + Item Despesa + CC Despesa + Conta + Cod Base Bem + Codi | |
| 8 | N3_FILIAL+N3_CODBAIX+N3_CBASE+N3_ITEM+N3_TIPO+N3_SEQ | Cd Bx Transf + Cod Base Bem + Codigo Item + Tipo Ativo + Seq Aquisic | |
| 9 | N3_FILIAL+N3_NODIA | Seq. DIario | |
| A | N3_FILIAL+N3_CODRAT | Cod. Rateio | RATEIO |
| B | N3_FILIAL+N3_CBASE+N3_ITEM+N3_TIPO+N3_BAIXA+N3_TPSALDO+N3_SEQ+N3_SEQREAV | Cod Base Bem + Codigo Item + Tipo Ativo + Ocor Baixa + Tipo Saldo + Se | |
| C | N3_FILIAL+N3_CBASE+N3_ITEM+N3_TIPO+N3_SEQ | Cod Base Bem + Codigo Item + Tipo Ativo + Seq Aquisic | |
| E | N3_FILIAL+N3_CDEPREC | Cta Desp Dep | |
| F | N3_FILIAL+N3_CCDEPR | Cta Dep Acum | |
| G | N3_FILIAL+N3_CCDESP | Cc Des Depr | |
| H | N3_FILIAL+N3_CCORREC | Conta Correc | |
| I | N3_FILIAL+N3_CUSTBEM | C Custo Bem | |
| J | N3_FILIAL+N3_CDESP | Cta Cor Depr | |
| K | N3_FILIAL+N3_CCCDEP | Cc Depr Ac | |
| L | N3_FILIAL+N3_CCCDES | Cc Cor Dep | |
| M | N3_FILIAL+N3_CCCORR | Cc Correcao |
Perguntas frequentes sobre a tabela SN3
O que é a tabela SN3?
É a tabela “Saldos e Valores” do ERP TOTVS Protheus, com 142 campos definidos no dicionário SX3.
Qual é a chave única da tabela SN3?
A chave única é N3_FILIAL+N3_CBASE+N3_ITEM+N3_TIPO+N3_BAIXA+N3_SEQ+N3_TPSALDO.
Quais são os índices da tabela SN3?
A tabela tem 21 índices. O principal (ordem 1) usa a chave N3_FILIAL+N3_CBASE+N3_ITEM+N3_TIPO+N3_BAIXA+N3_SEQ.
Qual é o nome físico da tabela SN3 no banco de dados?
No banco, o nome é o código da tabela seguido do código da empresa (no dicionário de referência desta consulta: SN3990). Em ADVPL, use RetSqlName("SN3") para obter o nome correto do ambiente.
Exemplo de consulta SQL da tabela SN3
Modelo gerado a partir da estrutura da tabela. Ajuste os filtros ao seu cenário.
SELECT
N3_FILIAL,
N3_CBASE,
N3_ITEM,
N3_TIPO,
N3_TIPREAV,
N3_BAIXA,
N3_HISTOR,
N3_TPSALDO,
N3_TPDEPR,
N3_CCONTAB,
N3_CUSTBEM,
N3_CDEPREC,
N3_CCUSTO,
N3_CCDEPR,
N3_CDESP,
N3_CCORREC,
N3_NLANCTO,
N3_DLANCTO,
N3_DINDEPR,
N3_FIMDEPR,
N3_DEXAUST,
N3_VORIG1,
N3_TXDEPR1,
N3_VORIG2,
N3_TXDEPR2,
N3_VORIG3,
N3_TXDEPR3,
N3_VORIG4,
N3_TXDEPR4,
N3_VORIG5,
N3_TXDEPR5,
N3_VRCBAL1,
N3_VRDBAL1,
N3_VRCMES1,
N3_VRDMES1,
N3_VRCACM1,
N3_VRDACM1,
N3_VRDBAL2,
N3_VRDMES2,
N3_VRCACM2,
N3_VRDACM2,
N3_VRDBAL3,
N3_VRDMES3,
N3_VRCACM3,
N3_VRDACM3,
N3_VRDBAL4,
N3_VRDMES4,
N3_VRCACM4,
N3_VRDACM4,
N3_VRDBAL5,
N3_VRDMES5,
N3_VRCACM5,
N3_VRDACM5,
N3_INDICE1,
N3_INDICE2,
N3_INDICE3,
N3_INDICE4,
N3_INDICE5,
N3_AQUISIC,
N3_DTBAIXA,
N3_VRCDM1,
N3_VRCDB1,
N3_VRCDA1,
N3_VRCDA2,
N3_VRCDA3,
N3_VRCDA4,
N3_VRCDA5,
N3_PERDEPR,
N3_CRIDEPR,
N3_CALDEPR,
N3_VMXDEPR,
N3_VLSALV1,
N3_DEPREC,
N3_CALCDEP,
N3_PRODANO,
N3_PRODMES,
N3_PRODACM,
N3_OK,
N3_SEQ,
N3_CCDESP,
N3_CCCDEP,
N3_CCCDES,
N3_CCCORR,
N3_SUBCTA,
N3_SUBCCON,
N3_SUBCDEP,
N3_SUBCCDE,
N3_SUBCDES,
N3_SUBCCOR,
N3_BXICMS,
N3_SEQREAV,
N3_AMPLIA1,
N3_AMPLIA2,
N3_AMPLIA3,
N3_AMPLIA4,
N3_AMPLIA5,
N3_CODBAIX,
N3_FILORIG,
N3_CLVL,
N3_CLVLCON,
N3_CLVLDEP,
N3_CLVLCDE,
N3_CLVLDES,
N3_CLVLCOR,
N3_IDBAIXA,
N3_LOCAL,
N3_NOVO,
N3_QUANTD,
N3_PERCBAI,
N3_NODIA,
N3_DIACTB,
N3_DTACELE,
N3_VLACEL1,
N3_VLACEL2,
N3_VLACEL3,
N3_VLACEL4,
N3_VLACEL5,
N3_RATEIO,
N3_CODRAT,
N3_PERCDEP,
N3_CODPOOL,
N3_VLIMPER,
N3_CODIND,
N3_ATFCPR,
N3_DESCEST,
N3_ATVORIG,
N3_INTP,
N3_DTBLOQ,
N3_PERACM1,
N3_PERACM2,
N3_PERACM3,
N3_PERACM4,
N3_PERACM5,
N3_REVACM1,
N3_REVACM2,
N3_REVACM3,
N3_REVACM4,
N3_REVACM5,
N3_EC05DB,
N3_EC05CR,
N3_EC06DB,
N3_EC06CR
FROM SN3
WHERE
D_E_L_E_T_ = ' '
AND N3_FILIAL = 'VALOR'
AND N3_CBASE = 'VALOR'
AND N3_ITEM = 'VALOR'
AND N3_TIPO = 'VALOR'
AND N3_TIPREAV = 'VALOR'
AND N3_BAIXA = 'VALOR'
AND N3_HISTOR = 'VALOR'
AND N3_TPSALDO = 'VALOR'
AND N3_TPDEPR = 'VALOR'
AND N3_CCONTAB = 'VALOR'
AND N3_CUSTBEM = 'VALOR'
AND N3_CDEPREC = 'VALOR'
AND N3_CCUSTO = 'VALOR'
AND N3_CCDEPR = 'VALOR'
AND N3_CDESP = 'VALOR'
AND N3_CCORREC = 'VALOR'
AND N3_NLANCTO = 'VALOR'
AND N3_DLANCTO BETWEEN '20261101' AND '20261130'
AND N3_DINDEPR BETWEEN '20261101' AND '20261130'
AND N3_FIMDEPR BETWEEN '20261101' AND '20261130'
AND N3_DEXAUST BETWEEN '20261101' AND '20261130'
AND N3_VORIG1 = 0
AND N3_TXDEPR1 = 0
AND N3_VORIG2 = 0
AND N3_TXDEPR2 = 0
AND N3_VORIG3 = 0
AND N3_TXDEPR3 = 0
AND N3_VORIG4 = 0
AND N3_TXDEPR4 = 0
AND N3_VORIG5 = 0
AND N3_TXDEPR5 = 0
AND N3_VRCBAL1 = 0
AND N3_VRDBAL1 = 0
AND N3_VRCMES1 = 0
AND N3_VRDMES1 = 0
AND N3_VRCACM1 = 0
AND N3_VRDACM1 = 0
AND N3_VRDBAL2 = 0
AND N3_VRDMES2 = 0
AND N3_VRCACM2 = 0
AND N3_VRDACM2 = 0
AND N3_VRDBAL3 = 0
AND N3_VRDMES3 = 0
AND N3_VRCACM3 = 0
AND N3_VRDACM3 = 0
AND N3_VRDBAL4 = 0
AND N3_VRDMES4 = 0
AND N3_VRCACM4 = 0
AND N3_VRDACM4 = 0
AND N3_VRDBAL5 = 0
AND N3_VRDMES5 = 0
AND N3_VRCACM5 = 0
AND N3_VRDACM5 = 0
AND N3_INDICE1 = 0
AND N3_INDICE2 = 0
AND N3_INDICE3 = 0
AND N3_INDICE4 = 0
AND N3_INDICE5 = 0
AND N3_AQUISIC BETWEEN '20261101' AND '20261130'
AND N3_DTBAIXA BETWEEN '20261101' AND '20261130'
AND N3_VRCDM1 = 0
AND N3_VRCDB1 = 0
AND N3_VRCDA1 = 0
AND N3_VRCDA2 = 0
AND N3_VRCDA3 = 0
AND N3_VRCDA4 = 0
AND N3_VRCDA5 = 0
AND N3_PERDEPR = 0
AND N3_CRIDEPR = 'VALOR'
AND N3_CALDEPR = 'VALOR'
AND N3_VMXDEPR = 0
AND N3_VLSALV1 = 0
AND N3_DEPREC = 'VALOR'
AND N3_CALCDEP = 'VALOR'
AND N3_PRODANO = 0
AND N3_PRODMES = 0
AND N3_PRODACM = 0
AND N3_OK = 'VALOR'
AND N3_SEQ = 'VALOR'
AND N3_CCDESP = 'VALOR'
AND N3_CCCDEP = 'VALOR'
AND N3_CCCDES = 'VALOR'
AND N3_CCCORR = 'VALOR'
AND N3_SUBCTA = 'VALOR'
AND N3_SUBCCON = 'VALOR'
AND N3_SUBCDEP = 'VALOR'
AND N3_SUBCCDE = 'VALOR'
AND N3_SUBCDES = 'VALOR'
AND N3_SUBCCOR = 'VALOR'
AND N3_BXICMS = 0
AND N3_SEQREAV = 'VALOR'
AND N3_AMPLIA1 = 0
AND N3_AMPLIA2 = 0
AND N3_AMPLIA3 = 0
AND N3_AMPLIA4 = 0
AND N3_AMPLIA5 = 0
AND N3_CODBAIX = 'VALOR'
AND N3_FILORIG = 'VALOR'
AND N3_CLVL = 'VALOR'
AND N3_CLVLCON = 'VALOR'
AND N3_CLVLDEP = 'VALOR'
AND N3_CLVLCDE = 'VALOR'
AND N3_CLVLDES = 'VALOR'
AND N3_CLVLCOR = 'VALOR'
AND N3_IDBAIXA = 'VALOR'
AND N3_LOCAL = 'VALOR'
AND N3_NOVO = 'VALOR'
AND N3_QUANTD = 0
AND N3_PERCBAI = 0
AND N3_NODIA = 'VALOR'
AND N3_DIACTB = 'VALOR'
AND N3_DTACELE BETWEEN '20261101' AND '20261130'
AND N3_VLACEL1 = 0
AND N3_VLACEL2 = 0
AND N3_VLACEL3 = 0
AND N3_VLACEL4 = 0
AND N3_VLACEL5 = 0
AND N3_RATEIO = 'VALOR'
AND N3_CODRAT = 'VALOR'
AND N3_PERCDEP = 0
AND N3_CODPOOL = 'VALOR'
AND N3_VLIMPER = 0
AND N3_CODIND = 'VALOR'
AND N3_ATFCPR = 'VALOR'
AND N3_ATVORIG = 'VALOR'
AND N3_INTP = 'VALOR'
AND N3_DTBLOQ BETWEEN '20261101' AND '20261130'
AND N3_PERACM1 = 0
AND N3_PERACM2 = 0
AND N3_PERACM3 = 0
AND N3_PERACM4 = 0
AND N3_PERACM5 = 0
AND N3_REVACM1 = 0
AND N3_REVACM2 = 0
AND N3_REVACM3 = 0
AND N3_REVACM4 = 0
AND N3_REVACM5 = 0
AND N3_EC05DB = 'VALOR'
AND N3_EC05CR = 'VALOR'
AND N3_EC06DB = 'VALOR'
AND N3_EC06CR = 'VALOR'
Outras tabelas relacionadas
- SN0 Dados Auxiliares ATF
- SN1 Ativo Imobilizado
- SN2 Descrições Estendidas
- SN4 Movimentações do Ativo Fixo
- SN5 Arquivos de Saldos
- SN6 Saldos por Conta e Item
- SN7 Simulação Vendas
- SN8 Inventário
- SN9 Ações
- SNA Saldos Conta x Item x Cl Valor
- SNB Apolices de Seguros
- SNC Saldos Conta x Centro Custo
Dicionário Protheus · atualizado em 13/10/2026. Voltar ao índice do dicionário.