on 05-21-2010 9:42 PM
HOLA
en SAP existe un informe sobre analisis de ventas, me gustaria saber si alguno tiene una consulta parecida a esta, ya que no puedo ver el codigo de esta consulta por lo que es un informe del sistema y me gustaria agregarle algunos datos adicionales que no me muestra este informe.
espero su valiosa colaboracion
gracias
listo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
encontre en el foro esta consulta:
SELECT itemcode,
[1] [jan],
[2] [feb],
[3] [mar],
[4] [apr],
[5] [may],
[6] [jun],
[7] [jul],
[8] [aug],
[9] [sep],
[10] [oct],
[11] [nov],
[12] [dec]
FROM (SELECT t0.itemcode [itemcode],
t1.quantity
t1.price [stock_value],
MONTH(t1.docdate) [month]
FROM dbo.oitm t0
LEFT JOIN dbo.inv1 t1
ON t1.itemcode = t0.itemcode
WHERE t0.sellitem = 'Y') AS source
PIVOT
(SUM(stock_value)
FOR [month] IN ( [1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12] ) ) AS pivoted
pero no me muestra el promedio de ventas en cantidad que ha tenido cada articulo mes a mes y el total, solo me muestra en dinero, pero otro problemita es que este valor en ventas no es neto porque no esta reflejadas las devoluciones .
alguien me puede ayudar porfa??
Edited by: jcarito on May 26, 2010 5:34 PM
Edited by: jcarito on Aug 25, 2010 10:20 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
97 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.