ANNUAL SALES REPORT (MONTH WISE)

Hi,
I have following query, which shows annual sales (month wise). But when i run this query it shows all the parts (my mass production and Spare parts as well). I want it should show only MASS Production items only.
The differencation i have specified at Item level property. If item property no. 5 (name SPARES) is check then it is SPARE item otherwise it is MASS Production.
Thanks,
Vincent
======================================================
SELECT T0.ITEMCODE, T0.ItemName, T0.U_MODEL,
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 1 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'JAN QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 2 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'FEB QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 3 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'MAR QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 4 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'APR QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 5 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'MAY QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 6 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'JUN QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 7 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'JUL QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 8 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'AUG QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 9 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'SEP QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 10 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'OCT QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 11 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'NOV QTY',
(SELECT SUM(T1.QUANTITY) FROM INV1 T1 with (NOLOCK) WHERE MONTH(T1.DOCDATE) = 12 AND T1.ITEMCODE = T0.ITEMCODE AND YEAR(T1.DOCDATE) = YEAR(GETDATE())) AS 'DEC QTY'
FROM dbo.OITM T0
LEFT JOIN dbo.INV1 T1 ON T1.ItemCode = T0.ItemCode
WHERE T0.SellItem = 'Y'
GROUP BY T0.ItemCode, T0.ItemName, T0.U_MODEL, YEAR(T1.DOCDATE) HAVING YEAR(T1.DOCDATE) = YEAR(GETDATE())

Hi Rahul,
Yes this report is very much available, but my idea was to integrate an udf (Model No., which i didn't specify in this query).
But yes this report is very usefull for me.
Thanks
Vincent

Similar Messages

  • Sales voluem monthly wise report

    Hi BW expert,
    I need a repor like apr09,may09,june09 Q1, apr08,may08,june08 Q1 LY. but i restricted apr, may june on posting period its displaying only q1 . i need monthly wise like apr08,may08,june08.i searced this forum as per requirement its not displaying plz any one idea on this how to get montly wise .
    Regards
    ramakrishna

    Hi
    Yes, it is possible to compare the sales for two different periods (be it date, month, quarter, half-year, full year, etc.).   I used the fields "Calendar Year /Month period 1" and "Calendar Year /Month period 2" and also added a formula to show the growth in terms of percentages.    And it is working well in my company.
    In fact I designed the query in the following way:-
    1.   Month - (single month - say Sept. 2009)
    2.   Month - (single month - say Sept. 2008)
    3.  Months - (Jan/Sept. 2009)
    4.    Months - (Jan/Sept. 2008).
    In the query I have made a comparison of sales, ie. sales of Sept. 2009 compared to Sept. 2008 and Sales of Jan/Sept. 2009 compared to Jan/Sept. 2008.   
    All the above done in a single query.
    Regards
    Jayan
    Bangalore, India

  • Sales report period wise

    Hi
    Is there any report in SAP to know the customer wise Sales Organisation wise sales order peport.
    we need to konw customer wise sales orders report period wise. how many salea orders we booked for the customer wise.
    EX: Customer No | Customer Name| Sales document type |Total Sales order(Total of sales orders).
    Plase let me know any report available for this kind of information.
    Thanks
    Rao

    Hi..
    If you have SIS Configured you can use below STD SD Reports
    Standard SAP SD Reports
    Reports in Sales and Distribution modules (LIS-SIS):
    Sales summary - VC/2
    Display Customer Hierarchy - VDH2
    Display Condition record report - V/I6
    Pricing Report - V/LD
    Create Net Price List - V_NL
    List customer material info - VD59
    List of sales order - VA05
    List of Billing documents - VF05
    Inquiries list - VA15
    Quotation List - VA25
    Incomplete Sales orders - V.02
    Backorders - V.15
    Outbound Delivery Monitor - VL06o
    Incomplete delivery - V_UC
    Customer Returns-Analysis - MC+A
    Customer Analysis- Sales - MC+E
    Customer Analysis- Cr. Memo - MC+I
    Deliveries-Due list - VL04
    Billing due list - VF04
    Incomplete Billing documents - MCV9
    Customer Analysis-Basic List - MCTA
    Material Analysis(SIS) - MCTC
    Sales org analysis - MCTE
    Sales org analysis-Invoiced sales - MC+2
    Material Analysis-Incoming orders - MC(E
    General- List of Outbound deliveries - VL06f
    Material Returns-Analysis - MC+M
    Material Analysis- Invoiced Sales - MC+Q
    Variant configuration Analysis - MC(B
    Sales org analysis-Incoming orders - MC(I
    Sales org analysis-Returns - MC+Y
    Sales office Analysis- Invoiced Sales - MC-E
    Sales office Analysis- Returns - MC-A
    Shipping point Analysis - MC(U
    Shipping point Analysis-Returns - MC-O
    Blocked orders - V.14
    Order Within time period - SD01
    Duplicate Sales orders in period - SDD1
    Display Delivery Changes - VL22           
    Regds
    MM

  • Average Annual Sales Report

    Hello All,
    I was wondering if there is a standard functionality(reoprt/tcode) in R/3 that gives "average annual sales"? Essentially it should give the average sales of the last 12 months.
    Thanks.

    Hi Sam,
    You can check via t-code VA05 ....U  can check via SD01...
    plz run the t-cose SAP1 and see list of standard t-codes available...
    Regards
    Debarshi

  • Comparative Sales Report Location wise

    Dear Experts,
                The customer wishes to have a report in the following format mentioned below.
    1. Customer Operates in Tamil Nadu, Andhra Pradesh and Delhi. All these locations are defined in the system and have relevant warehouses linked for sales.
    2.The  report format is  total sales for the month (Invoice & Credit Note)
    Month/Location - July 2009 -  July 2010 -  growth - August 2009 - August 2010 - Growth-
    Total Sales       -  1000      -    1200   -       20%
    Tamil Nadu       -    500      -     600     -      20%
    Andhra            -    400      -     480     -      20%
    New Delhi       -     100      -     120     -      20%
    Awaiting your quick response
    Saravanan
    Edited by: Sanbrahma39 on Jul 5, 2010 12:27 PM

    hi
    u can do it with the help of crearing a query for 1st Jun 2009 sales take the closing balance for the sales account and respectively for 2010 and  when u have the 2 closing balance thus use a varibale in the query to store the change in percentage from 2009-2010 ie (009/2010*100 )
    and similarily do it for others
    denoate amounts in places of year
    regards
    Manish

  • Sales Report (Customer wise)

    Dear Friends,
    Can anyone please give me the  t-code to run a complete report on total sales for the year per customer
    Thanks

    Hi,
    Use t-code VA05 or VA05N
    Kapil

  • Product costing report month wise

    Hi Expert,
                     My client is Tractor and crane manufacturer.So their requirement is that they want to know their total cost with all overhead and they want to compare the costing month to month.Please give the solution for that.
    Thanks
    Sarvottam

    Man, I believe this is not the appropriated forum to expose this information.
    Anyway, try to hire a CO consultant to advice you.
    Regards.

  • Monthly wise sales report

    hai,
         i m working on sales report where in i need to get month wise sales of the products and the related cost incured to company by the sales in the matrix form as shown below  can u help me in which way can i get this monthly report
              march     april     may   june    july......feb
    mtrl    25            30         0       19      23   ........(mtrl quantity)
    cost   30000     15000      0      45000  ..........(amt in rs)
    where in the above i m able to get yearly sales in one column (i.e i m able to show for one particular customer total sales in one column) but i m unable to split sales monthly and unable to show in a report so how can i able to sow in this matrix form

    Dear Raj,
    Please find the code for monthly wise report in PA0001 Table for calculation of Administrator time Recording.
    http://scn.sap.com/message/14216250#14216250

  • Can i get month, quarterly, half yearly, yearly wise sales report basing on

    hi,
    sap gurus,
    good evening to all,
    how can i get month, quarterly, half yearly, yearly wise sales report basing on division and material.
    is there any std transaction code for that.
    customization is requried for that.
    regards,
    balaji.t
    09990019711

    Standard SAP SD Reports:=
    Statistic Group:
    Purpose u2013 To capture data for Standard Reports, we require to activate Statistic Group as under:
    --> Item category (Configuration)
    --> Sales document type (Configuration)
    --> Customer (Maintain in Master data)
    --> Material (Maintain in Master data)
    When you generate statistics in the logistics information system, the system uses the combination of specified statistics groups to determine the appropriate update sequence. The update sequence in turn determines for exactly which fields the statistics are generated.
    Configuration:
    IMG --> Logistics Information System (LIS) --> Logistics Data Warehouse --> Updating --> Updating Control --> Settings: Sales --> Statistics Groups -->
    1. Maintain Statistics Groups for Customers
    2. Maintain Statistics Groups for Material
    3. Maintain Statistics Groups for Sales Documents
    4. Assign Statistics Groups for Each Sales Document Type
    5. Assign Statistics Groups for each Sales Document Item Type .....
    All Standard Reports which are available are as under:
    SAP Easy Access: Information Systems -> Logistics -> Sales and distribution ->
    1. Customer -> Incoming orders / Returns / Sales / Credit memos / Sales activities / Customer master / Conditions / Credit Master Sheet
    2. Material -> Incoming orders / Returns / Sales / Credit memos / Material master / ...
    3. Sales organization -> Sales organization / Sales office / Sales employee
    4. Shipping point -> Deliveries / Returns
    5. SD documents -> Orders / Deliveries / Billing documents ...
    & so on.
    Regards,
    Rajesh banka

  • Monthly wise Sales report - Help me

    Dear SDN mates
    Is there any standard reports for Monthly wise sales report ...the SAP1 , SAP2 reports were not helpful....Does this can be solved by standard reports or it needs to be customized????
    kindly help me?

    hi,
    check VC05 transaction.

  • Sales Man wise Sales Report.

    Dear All,
    I need to develop the Report SalesMan Wise in the below format.
    *_SL No/Sales Man/Customer/Customer Name/Target of Current Year (Previous Year Sales1.35)/Jan Sales/Feb Sales./Mar Sales/Apr Sales/ till Aug Sales (2011 Year) i.e Last 7 Months + Current Month.   Average of Last 7 months/   Sales of Previous Year/ % Achievement of Target/.I need the Link of Tables and the Logic to be given in this Report. Is this report Feasible.
    *Sales Man I can get from VBPA Table but that is only Fetching me Sales Order Number.
    *I am not getting the Link between Partner Function VE (Sales Employee) and Invoice Table VBRK.
    Can you please provide me the valuable Inputs how to go about this Report so that I can prepare detial FS of this.
    Regards,
    Parag S.

    Yes. Your ABAPer can copy a SAP Standard Report & modify it to suit your requirement.
    But ideally you should go for new report creation. You can get Sales Employee Number in Sales Order & from Document Flow Table get the Invoice Number.
    Only issue in your case is Sales Man-wise Target figures. You will have to create a Z table & store the Sales Man Code & Year-wise targets in these Table which later be fetched in your program.
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • Customer  month wise sales

    Dear All
    Any Standared Report Available Customer  month wise sales available?
    Thanks and Regards
    Suresh

    Hi,
    To determine which info blocks should be displayed in the sales summary and how they should be combined in views, see the IMG under Sales and Distribution - Sales Support (CAS) - Sales Summary.
    If you want the sales summary to appear differently to specific users, you can assign views to users in this Customizing step.
    If you do not do this, the system displays the standard reporting view.
    regards,
    Siddharth.

  • Stock report with value and qauntity for given date not month wise

    Hi gems,
    can any body give me the standard report for Stock value and qauntity for given date not month wise at storage location level

    Hi
    check the report S_P00_07000139 with the option inventory and raw material report- detail and selection date (from, to date same). List will give opening & closing balances with goods movment and their values.
    Thanks

  • Tax Wise Sales Report

    HI Experts,
    We need a Sales report at the end of everymonth.
    Below is the query i run to get the sales register.
    SELECT M.DocNum AS ' Inv No. #', M.DocDate as 'Posting Date', M.CardName as 'Customer Name',
    (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry) as 'BaseAmt.(Rs.)',
    M.VatSum as 'Tax (Rs.)',
    M.DocTotal as 'Total (Rs.)',
    (M.DocTotal-M.[PaidToDate]) as 'BalanceDue (Rs.)'
    FROM OINV M LEFT OUTER JOIN INV1 L on L.DocEntry=M.DocEntry
    LEFT OUTER JOIN INV4 T on T.DocEntry=L.DocEntry and L.LineNum=T.LineNum
    LEFT OUTER JOIN INV5 J ON M.DocEntry = J.AbsEntry
    LEFT OUTER JOIN INV3 Q ON M.DocEntry = Q.DocEntry
    WHERE M.DocDate BETWEEN '[%0]' AND '[%1]'
    GROUP BY
    M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.DiscSum,
    M.WTSum,M.DocTotal,M.PaidToDate,M.VatSum
    ORDER BY
    M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.DiscSum,
    M.WTSum,M.DocTotal,M.PaidToDate,M.VatSum
    But i need the sales report  by TAX Wise As we are having different types of tax.i need a a report on tax wise..
    Pls provide me some solution.
    Thanx in advance.

    Hi
    U can try this:
    SELECT M.DocNum AS 'AR Inv. #', M.DocDate as 'Date', M.CardName as 'Customer Name',M.NumAtCard as 'Customer Ref',
    (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry) as 'Base Amt.(Rs.)',
    (SELECT Avg(TaxRate) FROM INV4 where statype=-90 and DocEntry=M.DocEntry) as 'ED %',
           (SELECT Sum(TaxSum) FROM INV4 where statype=-90 and DocEntry=M.DocEntry) as 'ED (Rs.)',
    (SELECT Avg(TaxRate) FROM INV4 where statype=-60 and DocEntry=M.DocEntry) as 'EDCS %',
           (SELECT Sum(TaxSum) FROM INV4 where statype=-60 and DocEntry=M.DocEntry) as 'EDCS (Rs.)',
    (SELECT Avg(TaxRate) FROM INV4 where statype=-55 and DocEntry=M.DocEntry) as 'HECS %',
           (SELECT Sum(TaxSum) FROM INV4 where statype=-55 and DocEntry=M.DocEntry) as 'HECS (Rs.)',
    (SELECT Avg(TaxRate) FROM INV4 where statype=1 and DocEntry=M.DocEntry) as ' VAT % ',
           (SELECT Sum(TaxSum) FROM INV4 where statype=1 and DocEntry=M.DocEntry) as ' VAT (Rs.) ',
    (SELECT Avg(TaxRate) FROM INV4 where statype=4 and DocEntry=M.DocEntry) as ' CST % ',
           (SELECT Sum(TaxSum) FROM INV4 where statype=4 and DocEntry=M.DocEntry) as ' CST (Rs.) ',
           (SELECT Sum(TaxSum) FROM INV4 where statype=-40 and DocEntry=M.DocEntry) as ' CVD (Rs.) ',
    (SELECT Avg(TaxRate) FROM INV4 where statype=5 and DocEntry=M.DocEntry) as ' Ser.Tax % ',
           (SELECT Sum(TaxSum) FROM INV4 where statype=5 and DocEntry=M.DocEntry) as ' Ser.Tax (Rs.) ',
    (SELECT Avg(TaxRate) FROM INV4 where statype=6 and DocEntry=M.DocEntry) as 'CS on Ser.Tax %',
           (SELECT Sum(TaxSum) FROM INV4 where statype=6 and DocEntry=M.DocEntry) as 'CS on Ser.Tax (Rs.)',
    (SELECT Avg(TaxRate) FROM INV4 where statype=-10 and DocEntry=M.DocEntry) as 'HECS_ST %',
           (SELECT Sum(TaxSum) FROM INV4 where statype=-10 and DocEntry=M.DocEntry) as 'HECS_ST (Rs.)',
    (Select Sum(LineTotal) From INV3 Q Where Q.DocEntry=M.DocEntry) AS 'Freight (Rs.)',
    M.WTSum AS 'TDS (Rs.)',
    M.DocTotal as 'Total (Rs.)'
    FROM OINV M LEFT OUTER JOIN INV1 L on L.DocEntry=M.DocEntry
    LEFT OUTER JOIN INV4 T on T.DocEntry=L.DocEntry and L.LineNum=T.LineNum
    LEFT OUTER JOIN INV5 J ON M.DocEntry = J.AbsEntry
    LEFT OUTER JOIN INV3 Q ON M.DocEntry = Q.DocEntry
    WHERE (M.DocDate >= '[%0]' AND M.DocDate <= '[%1]')
    GROUP BY
    M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.DiscSum,M.WTSum,M.DocTotal
    ORDER BY
    M.DocNum,M.DocDate,M.CardName,M.NumAtCard,M.DocEntry,M.DiscSum,M.WTSum,M.DocTotal
    Giri

  • Territory Wise Sales Report

    I want to generate territory wise sales report using sql server reporting services from sap b1.  How can I define the hierarchy where my state will be the top group, the territories will be the sub groups and the executive name and sales value will be the details.  How can I transform the parent, child relation into a group, sub group option in a report.  Kindly provide sample sql query for the same.
    Thanks in advance.

    Dear Gordon,
    As advised by you i have created territory hierarchy in the territory setup, where zone is the first level, state is the second level and territory (district) is the third level and in the BP master territory field this third level is picked. I am finding it difficult to develop hierarchy wise report where the report when run should show the zone wise net sales summary (net in the sense, minus all the sales returns and credit notes, etc) and when drilled should show the state wise total and in the last level the territory wise sales and if possible one more drill where the BP under that territory with sales amount will be shown.  Request you to kindly help me with a base query wherein i can modify the same to develop many variation of the same report.  Thanks in advance.

Maybe you are looking for

  • I have a problem with my lightning to hdmi cable

    Hi Right i bought this cable for use in my car There is nothing wrong with it works perfect in the tv They problem I'm having is I don't have a head unit I'm using a pre amp along with my other amplifiers So I just need an audio signal I don't want t

  • How come the videos I delete in my camera roll come back?

    I Downloaded a video downloader app.I took the videos I downloaded and moved them to my camera roll.I no longer want some of these videos,however when I delete them,they always come back.How do I permanently delete them?

  • Wifi not working after bios upgrade. [SOLVED]

    Hi All, I have just upgraded my bios to correct a freq scaling issue and have noticed that WiFi is no longer working. In dmesg I notice: p54pci 0000:06:00.0: PCI INT A disabled p54pci: probe of 0000:06:00.0 failed with error -110 Looks like something

  • "Question" I'm not entirely sure

    I went to the beach yesterday. I had fun, and brought my iPod mini. Somehow, sand got into my pocket, and then into my iPod and ear buds. Now, the ear buds are blown. They do not play the music right any more, so I replaced them. But the real problem

  • TCP & HTTP

    http is lies on the tcp....but TCP is Stateful and HTTP is stateless...... how it is possible....... please send me the details........