Dicionário Protheus
Início

Tabela SL3 no Protheus

Acumulados de Vendas

O que é a tabela SL3 no Protheus?

A tabela SL3 faz parte do sistema ERP Protheus da TOTVS e é utilizada para acumulados de vendas.

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

Propriedades da Tabela

Propriedade Valor
X2_CHAVE SL3
X2_PATH \DATA\
X2_ARQUIVO SL3990
X2_NOME Acumulados de Vendas
X2_NOMESPA Acumulados de Ventas
X2_NOMEENG Accrued Sales
X2_ROTINA -
X2_MODO E
X2_MODOUN E
X2_MODOEMP E
X2_DELET 0
X2_TTS -
X2_UNICO L3_FILIAL+L3_PRODUTO
X2_PYME S
X2_MODULO 12
X2_DISPLAY L3_PRODUTO
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_ 8397
R_E_C_D_E_L_ 0

Campos da Tabela SL3 (28 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_
SL3 01 L3_PRODUTO C 15 0 Produto Producto Product Codigo do Produto Codigo del Producto Code of Product @! - x x x x x x x x x x x x x x x xx - SB1 1 x x - - - S - - - - - - - - - - 030 - S - #L3_PRODUTO<>' ' N N N - - - 1 2 - - - 137474 0
SL3 02 L3_QUANT01 N 12 3 Quant.Mes 01 Ctd. Mes 01 Qty.Month 1 Quantidade Vendida Mes 01 Cantidad Vendida Mes 01 Quantity Sold in Month 1 @E 99,999,999.999 - x x x x x x x x x x x x x x x x - - 1 x x xx - - - S - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 137475 0
SL3 03 L3_QUANT02 N 12 3 Quant.Mes 02 Ctd. Mes 02 Qty.Month 2 Quantidade Vendida Mes 02 Cantidad Vendida Mes 02 Quantity Sold in Month 2 @E 99,999,999.999 - x x x x x x x x x x x x x x x x - - 1 x x xx - - - S - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 137476 0
SL3 04 L3_QUANT03 N 12 3 Quant.Mes 03 Ctd. Mes 03 Qty.Month 3 Quantidade Vendida Mes 03 Cantidad Vendida Mes 03 Quantity Sold in Month 3 @E 99,999,999.999 - x x x x x x x x x x x x x x x x - - 1 x x xx - - - S - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 137477 0
SL3 05 L3_QUANT04 N 12 3 Quant.Mes 04 Ctd. Mes 04 Qty.Month 4 Quantidade Vendida Mes 04 Cantidad Vendida Mes 04 Quantity Sold in Month 4 @E 99,999,999.999 - x x x x x x x x x x x x x x x x - - 1 x x xx - - - S - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 137478 0
SL3 06 L3_QUANT05 N 12 3 Quant.Mes 05 Ctd. Mes 05 Qty.Month 5 Quantidade Vendida Mes 05 Cantidad Vendida Mes 05 Quantity Sold in Month 5 @E 99,999,999.999 - x x x x x x x x x x x x x x x x - - 1 x x xx - - - S - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 137479 0
SL3 07 L3_QUANT06 N 12 3 Quant.Mes 06 Ctd. mes 06 Qty.Month 6 Quantidade Vendida Mes 06 Cantidad Vendida Mes 06 Quantity Sold in Month 6 @E 99,999,999.999 - x x x x x x x x x x x x x x x x - - 1 x x xx - - - S - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 137480 0
SL3 08 L3_QUANT07 N 12 3 Quant.Mes 07 Ctd. Mes 07 Qty.Month 7 Quantidade Vendida Mes 07 Cantidad Vendida Mes 07 Quantity Sold in Month 7 @E 99,999,999.999 - x x x x x x x x x x x x x x x x - - 1 x x xx - - - S - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 137481 0
SL3 09 L3_QUANT08 N 12 3 Quant.Mes 08 Ctd. Mes 08 Qty.Month 8 Quantidade Vendida Mes 08 Cantidad Vendida Mes 08 Quantity Sold in Month 8 @E 99,999,999.999 - x x x x x x x x x x x x x x x x - - 1 x x xx - - - S - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 137482 0
SL3 10 L3_QUANT09 N 12 3 Quant.Mes 09 Ctd. Mes 09 Qty.Month 9 Quantidade Vendida Mes 09 Cantidad Vendida Mes 09 Quantity Sold in Month 9 @E 99,999,999.999 - x x x x x x x x x x x x x x x x - - 1 x x xx - - - S - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 137483 0
SL3 11 L3_QUANT10 N 12 3 Quant.Mes 10 Ctd. Mes 10 Qty.Month 10 Quantidade Vendida Mes 10 Cantidad Vendida Mes 10 Quantity Sold in Month 10 @E 99,999,999.999 - x x x x x x x x x x x x x x x x - - 1 x x xx - - - S - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 137484 0
SL3 12 L3_QUANT11 N 12 3 Quant.Mes 11 Ctd. Mes 11 Qty.Month 11 Quantidade Vendida Mes 11 Cantidad Vendida Mes 11 Quantity Sold in Month 11 @E 99,999,999.999 - x x x x x x x x x x x x x x x x - - 1 x x xx - - - S - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 137485 0
SL3 13 L3_QUANT12 N 12 3 Quant.Mes 12 Ctd. Mes 12 Qty.Month 12 Quantidade Vendida Mes 12 Cantidad Vendida Mes 12 Quantity Sold in Month 12 @E 99,999,999.999 - x x x x x x x x x x x x x x x x - - 1 x x xx - - - S - - - - - - - - - - - - S - - N N N - - - 1 2 - - - 137486 0
SL3 14 L3_VLRIT01 N 14 2 Vlr. Item 01 Vlr. Item 01 Item Value 1 Valor do Item do Mes 01 Valor del Item del Mes 01 Item Value in Month 01 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x x - - - S V - - positivo() - - - - - - - - S - - N N N - - - 1 2 - - - 137487 0
SL3 15 L3_VLRIT02 N 14 2 Vlr. Item 02 Vlr. Item 02 Item Value 2 Valor do Item do Mes 02 Valor del Item del Mes 02 Item Value in Month 02 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x x - - - S V - - positivo() - - - - - - - - S - - N N N - - - 1 2 - - - 137488 0
SL3 16 L3_VLRIT03 N 14 2 Vlr. Item 03 Vlr. Item 03 Item Value 3 Valor do Item do Mes 03 Valor del Item del Mes 03 Item Value in Month 03 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x x - - - S V - - positivo() - - - - - - - - S - - N N N - - - 1 2 - - - 137489 0
SL3 17 L3_VLRIT04 N 14 2 Vlr. Item 04 Vlr. Item 04 Item Value 4 Valor do Item do Mes 04 Valor del Item del Mes 04 Item Value in Month 04 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x x - - - S V - - positivo() - - - - - - - - S - - N N N - - - 1 2 - - - 137490 0
SL3 18 L3_VLRIT05 N 14 2 Vlr. Item 05 Vlr. Item 05 Item Value 5 Valor do Item do Mes 05 Valor del Item del Mes 05 Item Value in Month 05 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x x - - - S V - - positivo() - - - - - - - - S - - N N N - - - 1 2 - - - 137491 0
SL3 19 L3_VLRIT06 N 14 2 Vlr. Item 06 Vlr. Item 06 Item Value 6 Valor do Item do Mes 06 Valor del Item del Mes 06 Item Value in Month 06 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x x - - - S V - - positivo() - - - - - - - - S - - N N N - - - 1 2 - - - 137492 0
SL3 20 L3_VLRIT07 N 14 2 Vlr. Item 07 Vlr. Item 07 Item Value 7 Valor do Item do Mes 07 Valor del Item del Mes 07 Item Value in Month 07 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x x - - - S V - - positivo() - - - - - - - - S - - N N N - - - 1 2 - - - 137493 0
SL3 21 L3_VLRIT08 N 14 2 Vlr. Item 08 Vlr. Item 08 Item Value 8 Valor do Item do Mes 08 Valor del Item del Mes 08 Item Value in Month 08 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x x - - - S V - - positivo() - - - - - - - - S - - N N N - - - 1 2 - - - 137494 0
SL3 22 L3_VLRIT09 N 14 2 Vlr. Item 09 Vlr. Item 09 Item Value 9 Valor do Item do Mes 09 Valor del Item del Mes 09 Item Value in Month 09 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x x - - - S V - - positivo() - - - - - - - - S - - N N N - - - 1 2 - - - 137495 0
SL3 23 L3_VLRIT10 N 14 2 Vlr. Item 10 Vlr. Item 10 Item Value10 Valor do Item do Mes 10 Valor del Item del Mes 10 Item Value in Month 10 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x x - - - S V - - positivo() - - - - - - - - S - - N N N - - - 1 2 - - - 137496 0
SL3 24 L3_VLRIT11 N 14 2 Vlr. Item 11 Vlr. Item 11 Item Value11 Valor do Item do Mes 11 Valor del Item del Mes 11 Item Value in Month 11 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x x - - - S V - - positivo() - - - - - - - - S - - N N N - - - 1 2 - - - 137497 0
SL3 25 L3_VLRIT12 N 14 2 Vlr. Item 12 Vlr. Item 12 Item Value12 Valor do Item do Mes 12 Valor del Item del Mes 12 Item Value in Month 12 @E 99,999,999,999.99 - x x x x x x x x x x x x x x x x - - 1 x x - - - S V - - positivo() - - - - - - - - S - - N N N - - - 1 2 - - - 137498 0
SL3 26 L3_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 - - - N - - - - - - - - - - 033 - S - - N N N - - - 1 2 - - - 137499 0
SL3 27 L3_CODGRP C 4 0 Grupo Grupo Group Grupo Veiculos/Oficina Grupo Vehiculos/Taller Vehicle/Repair Shop Group @! VldAuxCod1("L3_CODGRP","L3_CODITE") x x x x x x x x x x x x x x x IniAuxCod(SL3->L3_PRODUTO,"L3_CODGRP") SBM 1 x x x x - - - S - V - - - - - - - IniAuxCod(SL3->L3_PRODUTO,"L3_CODGRP") 162 - S - - N N N - - - 1 2 - - - 137500 0
SL3 28 L3_CODITE C 27 0 Cod. Produto Cod.Producto Product Code Produto Veiculos/Oficina Product.Vehiculos/Oficina Vehicle Prod./Repair Shop - VldAuxCod2("L3_PRODUTO","L3_CODGRP") x x x x x x x x x x x x x x x IniAuxCod(SL3->L3_PRODUTO,"L3_CODITE") B00 1 x x x x - - - S - V - - - - - RtPict("L3_CODGRP") - IniAuxCod(SL3->L3_PRODUTO,"L3_CODITE") - - S - - N N N - - - 1 2 - - - 137501 0

Índices da Tabela SL3 (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_
SL3 1 L3_FILIAL+L3_PRODUTO Produto Producto Product S SB1 - S 2 3 - 19779 0

Perguntas frequentes

Para que serve a tabela SL3 no Protheus?

Ela é utilizada para acumulados de vendas dentro do sistema ERP Protheus.

Como consultar os campos da tabela SL3?

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

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

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

Exemplo de consulta SQL da tabela SL3

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

SELECT
    L3_PRODUTO,
    L3_QUANT01,
    L3_QUANT02,
    L3_QUANT03,
    L3_QUANT04,
    L3_QUANT05,
    L3_QUANT06,
    L3_QUANT07,
    L3_QUANT08,
    L3_QUANT09,
    L3_QUANT10,
    L3_QUANT11,
    L3_QUANT12,
    L3_VLRIT01,
    L3_VLRIT02,
    L3_VLRIT03,
    L3_VLRIT04,
    L3_VLRIT05,
    L3_VLRIT06,
    L3_VLRIT07,
    L3_VLRIT08,
    L3_VLRIT09,
    L3_VLRIT10,
    L3_VLRIT11,
    L3_VLRIT12,
    L3_FILIAL,
    L3_CODGRP,
    L3_CODITE
FROM SL3
WHERE
    D_E_L_E_T_ = ' '
    AND L3_PRODUTO = 'VALOR'
    AND L3_QUANT01 = 0
    AND L3_QUANT02 = 0
    AND L3_QUANT03 = 0
    AND L3_QUANT04 = 0
    AND L3_QUANT05 = 0
    AND L3_QUANT06 = 0
    AND L3_QUANT07 = 0
    AND L3_QUANT08 = 0
    AND L3_QUANT09 = 0
    AND L3_QUANT10 = 0
    AND L3_QUANT11 = 0
    AND L3_QUANT12 = 0
    AND L3_VLRIT01 = 0
    AND L3_VLRIT02 = 0
    AND L3_VLRIT03 = 0
    AND L3_VLRIT04 = 0
    AND L3_VLRIT05 = 0
    AND L3_VLRIT06 = 0
    AND L3_VLRIT07 = 0
    AND L3_VLRIT08 = 0
    AND L3_VLRIT09 = 0
    AND L3_VLRIT10 = 0
    AND L3_VLRIT11 = 0
    AND L3_VLRIT12 = 0
    AND L3_FILIAL = 'VALOR'
    AND L3_CODGRP = 'VALOR'
    AND L3_CODITE = 'VALOR'