Sales Analisys on Items report in Delivery

Incorrectly sales analysis report on Items in the context of Delivery Notes, if Delivery has a status - Closed.
1. Add the document u2013 Delivery №1 with item/service type to the system.
2.We want to see the sales analysis report. Sales -> Sales reports -> sales analysis. Criteria for report: Delivery Notes and you can see customers, Items and Sales Employees reports.
The Items report, Sales Employees report and customers report have the same values.
3.Closed the document "Delivery".
4.And if we see the Items report, then the report will show us a zero quantity.
How can I remove this error?
Tnaks.

Yes, i agree with Gordon.
YOu can try this SQL query.
SELECT T0.ITEMCODE,
(SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 1 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'JAN QTY',
(SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'FEB QTY',
(SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 3 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'MAR QTY',
(SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 4 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'APR QTY',
(SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 5 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'MAY QTY',
(SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 1 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'JUN QTY',
(SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 7 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'JUL QTY',
(SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 8 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'AUG QTY',
(SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 9 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'SEP QTY',
(SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 10 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'OCT QTY',
(SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 11 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'NOV QTY',
(SELECT SUM(T1.QUANTITY) FROM DLN1 T1 with (NOLOCK)
WHERE MONTH(T1.DOCDATE) = 12 AND T1.ITEMCODE =
T0.ITEMCODE) AS 'DEC QTY'
FROM dbo.OITM T0
LEFT JOIN dbo.DLN1 T1 ON T1.ItemCode = T0.ItemCode
WHERE T0.SellItem = 'Y'
GROUP BY T0.ItemCode,YEAR(T1.DOCDATE) HAVING YEAR(T1.DOCDATE) = YEAR(GETDATE())
ORDER BY T0. ITEMCODE

Similar Messages

  • Sales Comparison by Items Report

    Hello Experts,
    Is there a report in B1 that compares total sales by item between two periods? If not, could anyone help me with a query?
    For Example:  Total sales for item A0001 between Jan-Oct 2010 is $10000 and Total sales for item A0001 between Jan-Oct 2009 is $5000
    When i enter a date range i should get result like this:
    ItemCode ItemDesc Jan-Oct 2010  Jan-Oct 2009
    A0001     Printer      $10000             $5000
    Praneeth

    Updated:
    SELECT S.ItemCode, MAX(S.ItemName) as 'Item Description', SUM(S.[2010]) as 'Jan-Oct 2010',SUM(S.[2009]) as 'Jan-Oct 2009'
    FROM
    (SELECT T0.ItemCode, T0.ItemName, T1.LineTotal AS [2010], 0 AS [2009]
    FROM dbo.OITM T0
    INNER JOIN dbo.INV1 T1 ON T1.ItemCode = T0.ItemCode AND Year(T1.ShipDate)=2010 and DateDiff(MM,T1.ShipDate,'10/10/2010')>=0
    UNION
    SELECT T0.ItemCode, T0.ItemName, 0 AS [2010], T1.LineTotal AS [2009]
    FROM dbo.OITM T0
    INNER JOIN dbo.INV1 T1 ON T1.ItemCode = T0.ItemCode AND Year(T1.ShipDate)=2009 and DateDiff(MM,T1.ShipDate,'10/10/2009')>=0
    UNION
    SELECT T0.ItemCode, T0.ItemName, -T1.LineTotal AS [2010], 0 AS [2009]
    FROM dbo.OITM T0
    INNER JOIN dbo.RIN1 T1 ON T1.ItemCode = T0.ItemCode AND Year(T1.ShipDate)=2010 and DateDiff(MM,T1.ShipDate,'10/10/2010')>=0
    UNION
    SELECT T0.ItemCode, T0.ItemName, 0 AS [2010], -T1.LineTotal AS [2009]
    FROM dbo.OITM T0
    INNER JOIN dbo.RIN1 T1 ON T1.ItemCode = T0.ItemCode AND Year(T1.ShipDate)=2009 and DateDiff(MM,T1.ShipDate,'10/10/2009')>=0
    ) S
    GROUP BY S.ItemCodeHAVING SUM(ISNULL(S.[2010],0))+SUM(ISNULL(S.[2009],0))> 0

  • Temporary invoice on sales order containing items with & without delivery

    Hi,
    I have a sales order which contains both items due to be billed on delivery and due to be billed without delivery.
    Could you please let me know how to create a temporary invoice on the basis of the order. The true/final invoice will work on the basis of the goods issue for the items on delivery and on the order for the other items.
    Thanks,

    Order & Delivery Related Billing depends on Item Category.First check these settings in VOV7.Now check the Copy Control settings in VTLA for Item Category relevant for Delivery Related Billing (F2).
    Now check in VTFA for Item Category relevant for Order Related Billing (F5).
    As per my understanding , you need the Final Invoice with both Line Items which could not be possible as Billing relevance is different for these two Items.
    Best Regards,
    Ankur

  • Can we add new field to existing Sales Analysis by Item report?

    I would like to add sum total weight of all the items sold so far to the above system report?
    How could i do that please?
    Thanks.

    You need to have your own report. This system report is hard coded. You do not have option to add fields there.
    Thanks,
    Gordon

  • Cannot reject/delete sales order line item due to del.date in 2210

    Hi all,
    not sure if anyone else had this issue already....
    Situation :
    Sales order line item entered with delivery date in 2210.    We would like to correct this order but can't....
    every time SAP issues error :
    Error determining posting period (info
    S008, variant GL, RC 3)               
    I believe this is because we haven't maintained our calendars yet for 2210 :-D
    Question : without us having to load/define the calendar...is there a utility/oss program which we can use to delete the line item, or reject it...or even update the delivery date?
    Thanks for your help!

    If the system pop ups the error message M2012, then please refer note 10891 or 37532.  If the error message number is different, please update the forum.
    thanks
    G. Lakshmipathi

  • SAP Business One - Sales Analysis by Item - Adding Columns

    Is it possible to add columns to the Sales Analysis by Item report? As it is right now, I cannot add any columns even when I go to form settings.
    If so, how do I do this?
    Thank you!

    Dear Rahul,
    On another post I saw a solution for an inventory report I needed. However that one had an error on the AS' section. Before I repost, let me explain what I was trying to do. I need the item sales analysis report by month but I need to add the in stock (on hand) to the report. I found this one and a smaller version worked but one I used the complete version I received an error :
    1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near '<'.
    2). [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near the keyword 'AS'.
    3). [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect sy
    SELECT T0.ITEMCODE,
    (SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 1 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'JAN QTY',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 1 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'JAN Amt',
    <FONT COLOR=RED>(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'FEB QTY',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'FEB Amt',
    <FONT COLOR=RED>(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'MAR QTY',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'MAR Amt',<FONT COLOR=RED>(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'APR QTY',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'APR Amt',<FONT COLOR=RED>(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'MAY QTY',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'MAY Amt',<FONT COLOR=RED>(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'JUN QTY',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'JUN Amt',<FONT COLOR=RED>(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'JUL QTY',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'JUL Amt',<FONT COLOR=RED>(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'AUG QTY',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'AUG Amt',<FONT COLOR=RED>(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'SEPT QTY',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'SEPT Amt',<FONT COLOR=RED>(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'OCT QTY',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'OCT Amt',<FONT COLOR=RED>(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'NOV QTY',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'NOV Amt',<FONT COLOR=RED>(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK)
    WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE =
    T0.ITEMCODE) AS 'DEC QTY',
    (SELECT SUM(T1.QUANTITY*T1.PRICE) FROM INV1 T1 with
    (NOLOCK) WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE
    = T0.ITEMCODE) AS 'DEC Amt',
    </FONT>
    FROM [dbo].[OITM] T0
    LEFT JOIN [dbo].[INV1] T1 ON T1.ItemCode = T0.ItemCode
    WHERE T0.SellItem = 'Y'
    GROUP BY T0.ItemCode,YEAR(T1.DOCDATE) HAVING  YEAR(T1.DOCDATE) = YEAR(GETDATE())
    ORDER BY T0. ITEMCODE
    Could you help?
    Thank you,
    SA

  • Sales order line items delivery cancelled but still appears in MD04.

    Hi PP Gurus,
    In the sales there are 6 line items are there out of which for 1 line item delivery and PGI happened. And for remaining line items delivery got cancelled, but these line items for which delivery cancelled appearing in the MD04, I have rejected the sales order line items but these line items still shows in MD04. Please advise how to remove these line items from MD04.
    Thanks and Regards,
    SHARAN.

    Hi
    Pl refer SAP Note : 1166713 for the Problem which says " You have posted goods issue and therefore the delivery requirements should no longer be existing. These inconsistencies can be seen using report SDRQCR21"
    Regards
    Brahmaji

  • Add Item to a delivery without reference to a sales order

    Hello everybody,
    I'm trying to add an item to an existing delivery via VL02n without reference to a sales order but every time the following error message appears: "You cannot add this item to the delivery".
    What settings do i need in order to that? (material type, delivery type, item category group,..etc..)
    Could anyone help me?
    Thank for your attention.
    Regards,
    A.

    Hi!
    Its not feasible to add a new line item without reference, becuase in one of the user exits such a code would have been written to prevent adding line item without refernec.
    This is done to ensure that a standard availabilty check, pricing and infostructure updates are done. Otherwise, after billing the report of Profitabilty will not come correct and will lead to more problems.
    So my suggestion would be not to add the line item withour referencing to the sales order.
    SAP provides the way of unreferincing through a seperate delivery type called LO. So if you want to create a delivery without refernce, you can use delivery type LO or some Z version of it.
    Hope this helps,
    Abhishek

  • List of sales order line items delivery

    Hi All,
    I want to know from one single table, the list of sales order line items delivery completed and still having stock.
    Ratna

    Hi
    Pl refer SAP Note : 1166713 for the Problem which says " You have posted goods issue and therefore the delivery requirements should no longer be existing. These inconsistencies can be seen using report SDRQCR21"
    Regards
    Brahmaji

  • Report to show the followup sales documents and items

    Sales had executed many sales quotations with customers over a period of time.
    Now the Sales Staff wanted to know how many sales documents and what/how many sales items are being purchased by the customer with respect to the quotation.
    Is there a report that list out the sales documents and items created w/respect to a particular quotation instead of looking at the document flow which is difficult to diagnose.
    Thanks

    hello, friend.
    you can try table VBFA, where you can see sales documents and their subsequent documents.
    for a general listing of quotations, use tcode VA25.
    regards.

  • Standard  report(for open PO order items) with estimated Delivery dates

    hi friends
    i would like to know if there is any standard  report(for open PO order items) with estimated Delivery dates on it.
    thanks
    alahari

    ME2M (by material)
    ME2L (by vendor)
    ME2N (by number)
    Use selection parameter WE101 for open GR
    and scope of list EINT (scheduling lines)

  • Report on delivery data in item level for list of po

    Dear all
             How to take Report on delivery data in item level for list of po
    regards
    M.Chandra mohan

    You can check any of the standard reports like ME2M with the selection variant as "PO where GR exists"

  • Unable to change requested delivery date in the sales order at item level.

    The issue is when I create order with one material (linked to network and project is created automatically in the background), I am able to change (in change mode) req delivery date for an item, but when I create order with 2 materials (linked to network and project is created automatically in the background), I can not change (in change mode) the req delivery date of any item. Req delivery date is then copied from the header req delivery date.
    Is this a standard SAP functionality or a defect?

    Req del date is the date requested by customer and  can be changed at item level. Probably the confirmed date in the schedule line is derived from the network scheduling after ATP check. (ATP check is not activated in this case)
    I am able to change the req del date at item level if there is only one item (Linked to network) and not when there are two line items (Both are linked to 2 diff networks belonging to same project)
    I tried to change the date in the network, scheduled and saved but that didnt change the date in the sales order. On the contrary, if I run ATP check, netowrk dates get back to original dates derived from sales order.

  • Sales order item text to delivery item text

    Hi All,
    Please find my query below :
    sales order is maintining  item level text . is there any posibility to update same text at the item level in delivery ?  Means after creating delivery the sales order item text tranfered to delivery item  text.
    How can i update the sales order item level text to delivery item level text.
    is there any user-exit or any configuration process or any other process. please let me know
    Thanks in advance
    Regards
    Sudhakar

    Check this [link|http://saptechsolutions.com/pdf/VOFMCopyRequirementRoutines.pdf]
    Refer to page 19. you will have to assign the requirement to the access sequence of the header/item text determination, this, you can ask your functional consultant to do it,. If you want to code your own requirement, then refer to the link that I provided you above.
    KR,
    Advait

  • Delivery is pulling items with different delivery dates from sales order

    hi all,
    i have a sales order with two line items with different delivery dates(eg 1st and 21st). material availability date for them is different. when i tried to create the delivery on 1st it is pulling the 2nd item whose delivery date is on 21st.
    where can i control this.
    thanks in advance
    harini

    Hi,
    let us take one example>materials A and B,
    A delivery date is 22.01.2008(maintained in schedule lines in SO)
    B delivery date is 30.01.2008(maintained in schedule lines in SO)
    now i want to deliver material A on 22.01.2008
    by default system will give you only material A in the item line
    material B will not be displaced in the second line item
    now i want to deliver material B on 30.01.2008
    by default system will show me material B in delivery line item
    if in case material A is not delivered then delivery will show you two line items
    i.e., Material A and B
    i think you have understood the difference
    regards,
    US

Maybe you are looking for

  • Create  a file system repository

    Hi all, when I create a file system repository in the following solution: System Administration → System Configuration→Knowledge Management→Content Management→Repository Managers → File System Repository There I input the name and the URL which is av

  • Alt Text, tooltip, metadata & keywords.

    I own a photographic stuido so our (3) sites are image driven with anywhere from 50 - 300 + images per site. I have been manualy entering Alt text and tool tips for the purpose of raising search visibility however with that many images/graphics it is

  • Runtime error with Reuse_alv_fieldcat_merge (FM)

    Hello guys,im facing problem wit Reuse_alv_fieldcat_merge (FM)... At frst i tried to fill the fieldcat manually, as i kept in comments in below code, it worked properly, bt im getting run time error when it did with FM. Help me out. REPORT  ZHI11. TY

  • Change icon on the pushbutton at runtime

    Hi all, I am new to ABAP. I have one requirement in screen programming. I need to change the icon on the pushbutton at runtime. can somebody give me  idea or any sample code. thanks in advance. Raju Naga.

  • Web:  put in the right order ?

    How can i order the photos to make the web gallery. Is it possible to change this ?