Dados Auxiliares ATF
A tabela SN0 faz parte do sistema ERP Protheus da TOTVS e é utilizada para dados auxiliares atf.
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 SN0 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 SN0, incluindo todos os campos e índices relacionados.
| Propriedade | Valor |
|---|---|
| X2_CHAVE | SN0 |
| X2_PATH | \DATA\ |
| X2_ARQUIVO | SN0990 |
| X2_NOME | Dados Auxiliares ATF |
| X2_NOMESPA | Datos Auxiliares ATF |
| X2_NOMEENG | ATF auxiliary information |
| X2_ROTINA | - |
| X2_MODO | C |
| X2_MODOUN | C |
| X2_MODOEMP | C |
| X2_DELET | 0 |
| X2_TTS | - |
| X2_UNICO | N0_FILIAL+N0_TABELA+N0_CHAVE |
| X2_PYME | S |
| X2_MODULO | 1 |
| 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_ | 8460 |
| 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SN0 | 01 | N0_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 | - | - | - | - | - | - | - | - | - | - | - | - | - | - | 033 | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 138731 | 0 |
| SN0 | 02 | N0_TABELA | C | 2 | 0 | Tabela | Tabla | Table | Tabela | Tabla | Table | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | S | A | R | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 138732 | 0 |
| SN0 | 03 | N0_CHAVE | C | 15 | 0 | Chave | Clave | Key | Chave | Clave | Key | @! | ATF001Chave() | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | S | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 138733 | 0 |
| SN0 | 04 | N0_DESC01 | C | 150 | 0 | Descric M1 | Descrip M1 | C1 desc | Descricao Moeda 01 | Descripcion Moneda 01 | Description in currency 1 | @! | ATF001Desc() | x x x x x x x x x x x x x x x x | - | - | 1 | x x | - | - | - | S | A | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 1 | - | - | - | 138734 | 0 |
| SN0 | 05 | N0_DESC02 | C | 150 | 0 | Desc M2 | Desc M2 | C2 Desc | Descrição moeda 2 | Descripcion moneda 2 | Description in currency 2 | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 138735 | 0 |
| SN0 | 06 | N0_DESC03 | C | 150 | 0 | Desc M3 | Desc M3 | C3 Desc | Descrição Moeda 3 | Descripcion Moneda 3 | Description in currency 3 | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 138736 | 0 |
| SN0 | 07 | N0_DESC04 | C | 150 | 0 | Desc M4 | Desc M4 | C4 Desc | Descricao na moeda 04 | Descripcion moneda 04 | Description in Currency 4 | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 138737 | 0 |
| SN0 | 08 | N0_DESC05 | C | 150 | 0 | Desc M5 | Desc M5 | C5 Desc | Descricao na moeda 05 | Descripción moneda 05 | Description in Currency 5 | @! | - | x x x x x x x x x x x x x x x x | - | - | 1 | x | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | S | - | - | N | N | N | - | - | - | 1 | 2 | - | - | - | 138738 | 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_ |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| SN0 | 1 | N0_FILIAL+N0_TABELA+N0_CHAVE | Tabela + Chave | Tabla + Clave | Table + Key | S | - | - | S | 2 | 3 | - | 19902 | 0 |
Ela é utilizada para dados auxiliares atf 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
N0_FILIAL,
N0_TABELA,
N0_CHAVE,
N0_DESC01,
N0_DESC02,
N0_DESC03,
N0_DESC04,
N0_DESC05
FROM SN0
WHERE
D_E_L_E_T_ = ' '
AND N0_FILIAL = 'VALOR'
AND N0_TABELA = 'VALOR'
AND N0_CHAVE = 'VALOR'
AND N0_DESC01 = 'VALOR'
AND N0_DESC02 = 'VALOR'
AND N0_DESC03 = 'VALOR'
AND N0_DESC04 = 'VALOR'
AND N0_DESC05 = 'VALOR'