Montly Sales Analysis Report ,Total by customer

Hi,
I need help on a query that a customer needs for a sales analysis report.
It should also contain:
Parameters from date X to Y and Warehouse  Z
Columns should be as follows
Item No.
Item Description
Customer Code
Customer Name
City
Annual Total
April  (2014) - Quantity
April  (2014) - Sales Amount
April  (2014) - Gross Profit
April  (2014) - Gross Profit %
May  (2014) - Quantity
May  (2014) - Sales Amount
May  (2014) - Gross Profit
May  (2014) - Gross Profit %
June  (2014) - Quantity
June  (2014) - Sales Amount
June  (2014) - Gross Profit
June  (2014) - Gross Profit %
July  (2014) - Quantity
July  (2014) - Sales Amount
July  (2014) - Gross Profit
July  (2014) - Gross Profit %
August  (2014) - Quantity
August  (2014) - Sales Amount
August  (2014) - Gross Profit
August  (2014) - Gross Profit %
September  (2014) - Quantity
September  (2014) - Sales Amount
September  (2014) - Gross Profit
September  (2014) - Gross Profit %
This report we can take from  sap business one sales analysis report but customer asking city column.that why
Please send me query ASAP.
Regards,
Rajeev.

Dear Raviraj,
I need coloums like follows:
Item No.
Item Description
Customer Code
Customer Name
City
Annual Total
April  (2014) - Quantity
April  (2014) - Sales Amount
April  (2014) - Gross Profit
April  (2014) - Gross Profit %
May  (2014) - Quantity
May  (2014) - Sales Amount
May  (2014) - Gross Profit
May  (2014) - Gross Profit %
June  (2014) - Quantity
June  (2014) - Sales Amount
June  (2014) - Gross Profit
June  (2014) - Gross Profit %
July  (2014) - Quantity
July  (2014) - Sales Amount
July  (2014) - Gross Profit
July  (2014) - Gross Profit %
August  (2014) - Quantity
August  (2014) - Sales Amount
August  (2014) - Gross Profit
August  (2014) - Gross Profit %
September  (2014) - Quantity
September  (2014) - Sales Amount
September  (2014) - Gross Profit
September  (2014) - Gross Profit %
Please send me query ASAP.
Regards,
Rajeev

Similar Messages

  • Sales analysis report- showing & totaling both Invoices & Credit memos on o

    I have written a Several sales analysis reports based on INV1 tables and RIN1 tables, (Invoice lines and Credit memo lines) for SAP B1 using crystal. I would like the data from both the invoices & the credit memo to list & total on the same report. But have had no luck doing this.
    Is it possible?
    How would I go about doing it?

    Solved my problem, I used the "Show SQL Query" window on my existing reports copied and pasted them to SQL Management Studio as a View, used keyword Union All to join the two queries (Invoices and Credit memos)  and used the view as the data link to create a new report in Crystal Report writer.
    This got me both of the data files into the report detail line and allow for summing.
    Problem solved.
    Thanks for the input.

  • How to display customer name in sales analysis report (item) layout

    Hi,
    Currently I try to run the sales analysis report by item with secondary selection on customer from & customer to.
    Is it possible for the layout to display the customer from & customer to.
    I try to look for the table name OFLT, but I cannot find it.
    My main concern is to display the customer name in the layout for sales analysis by item.
    Thanks

    Hi,
    The table OFLT stores selection criteria for all form. If there is no customer name/code in system PLD, it is very hard to find table or system variable.
    Tried to get customer name, not successful.
    Alternatively can try to create customized query to get additional field in sales analysis report.
    Thanks & Regards,
    Nagarajan

  • Sales Analysis Report - Items -- blank result

    Hi,
    I'm testing a setup and running the sales analysis report. It works for the Customer version but I get no results when running on Items.
    I'm on SBO 2007A SP01 PL07. There are open and closed invoices for inventory items; no credit memos have been posted. All Item type invoices.
    When I run by Customer, I get the correct data - open and closed invoices for that customer.
    When I run by Items, I get no results. The date range is the same for both reports.
    When I run the purchase analysis on Items, I get data for the same items I am trying to see in the sales analysis.
    Any ideas what could be causing this?
    Thank you,
    Heather

    HI Gordon,
    I left the default settings: 
    - Annual Report, Invoices, Individual Display, No Totals
    - Posting Date:  whole fiscal year
    - Main selection:  left blank/default (group = all, no properties)
    I have double/triple/quadruple-check even the Secondary SElection to make sure there's nothing there.
    I have also run it on Due Date instead of Posting Date, still no results (if run on Items).
    As I mentioned, the selection criteria is what I want but for some reason that one version, Items, does not work. The other 2 tabs work with the same selection.
    Heather

  • Adding Data Field to Sales Analysis Report

    Does anyone know how to add data fields to Sales Analysis Reports, either in PLD or CR?  On Sales Analysis by Customer, I need to add the total quantities for all items sold for the sales included in the report, excluding negative quantities.
    Thank you,
    Avraham

    Hi Avraham.......
    You can create your own Query Report for getting all the desired outputs and it will be easy to show in reports also.....
    Regards,
    Rahul

  • Sales analysis report and P&L match in SAP b1

    Dear All,
    I am running Sales Analysis report customerwise and item wise where the total of Sales Amount is matching with Revenue amount in profit and loss report for the month April 2011 only.
    But after that these reports are not matchinhg. Please guide in this regard.
    There are some items having valuation method standard, FIFo and moving average.
    Regards
    Aarati Kollur

    Dear Jitin,
    Thanks for quick reply,
    i run the report for item for the April 2011 where total matchs with revenue even there are some service type of A/R Invoices.
    Does sales analysis report consider service type of document in both customer wise and item wise.
    Regards
    Aarati. Kollur

  • Sales Analysis report in XLR

    SAP XLR Sales per Customer by Item report that published in the portal doesn't include document discount. This is a reason for the differences between XLR and B1 sales analysis report.
    How can I calculate discount from the document in XLR when the report is run by invoice/credit memo lines.
    Edited by: Philip Eller on May 16, 2008 8:56 AM

    Hello,
    In XLR Composer> Sales tab, if you want to design a report group by document number, then choose the Document Number light dimension first,then "discount% per document",  choose item/quantity/row total and so on for row level information. This will give you the result instead of 0.
    If you want to run the report group by items. The same way you can do but the only difference is choose the item Dimension first, then you can also drag document level ,Document number for example.
    Header and row levels table can be connected and use together if there is the relationship between them.
    Choose discount % per document and then use calculation to calculate the discount amount of a document.
    Hope this helps.
    Regards,
    Maggie An
    SAP Business One Forum Team

  • Sales analysis report - in query form?

    Good afternoon. Looking for a bit if help/advice.
    I'm not a complete novice to SAP but what I need is confusing me slightly. I understand the sales analysis report uses many different table as part of its calculations. A company I've recently began working for, who has had SAP for a while, has used sales analysis reports alongside some bespoke reports that are reporting different data.
    Here is their report:
    SELECT T0.[DocNum] AS 'Invoice No.',  CONVERT(VARCHAR(10),T0.[DocDate], 103) AS 'Invoice Date', T0.[NumAtCard] AS 'Cust Order No.', T4.[ItemCode], T5.[U_MSKU] AS 'Manuf SKU', T4.[Dscription] AS 'Description', T6.[ItmsGrpNam] AS 'Item Group', T4.[Quantity], T4.[Price] AS 'Net Unit Price', T4.[LineTotal] AS 'Net/Line Total', T0.[U_ClientNam] AS 'Client Name', T2.[Name] AS 'Division', T1.[Name] AS 'Business Unit', T3.[StreetS] AS 'Ship-to Street', T3.[CityS] AS 'Ship-to City', T3.[ZipCodeS] AS 'Ship-to Postcode'
    FROM OINV T0
    LEFT JOIN [dbo].[@BUSINESSUNITS]  T1 ON T0.U_Bizunits = T1.Code
    LEFT JOIN [dbo].[@DIVISIONS]  T2 ON T0.U_Division = T2.Code
    INNER JOIN INV12 T3 ON T0.DocEntry = T3.DocEntry
    INNER JOIN INV1 T4 ON T0.DocEntry = T4.DocEntry
    INNER JOIN OITM T5 ON T4.ItemCode = T5.ItemCode
    INNER JOIN OITB T6 ON T5.ItmsGrpCod = T6.ItmsGrpCod
    WHERE T0.[DocDate] BETWEEN [%0] AND [%1]  AND T0.[CardCode] = [%2]
    It just doesn't give the same totals as the sales analysis report but I can't reproduce the sales analysis report. How would I go about getting the right figures? Because what we ideally need is to filter the sales analysis results by some of our custom fields:
    [U_ClientNam], [Name] etc.
    How would I go about this? Can I extract parts of the sales analysis report somehow and run it as a query I can manipulate?
    Thanks.

    Hi, not sure if you meant to link to a thread? Based on the query you have given on this thread no totals appear to match however it is much closer than the simple query.
    SELECT Div, BusUnit, isnull([1],0) as Jan, isnull([2],0) as Feb, [3] as Mar, isnull([4],0) as Apr, isnull([5],0) as May, isnull([6],0) as june, isnull([7],0) as July, isnull([8],0) as Aug, isnull([9],0) as Sept, isnull([10],0) as Oct, isnull([11],0) as Nov, isnull([12],0) as Dec
    from
    (SELECT T1.[LineTotal] as Total, month(T0.[DocDate])as month, T8.[Name] AS BusUnit, T9.[Name] AS Div FROM OINV T0 INNER JOIN INV1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN [dbo].[@BUSINESSUNITS]  T8 ON T0.U_Bizunits = T8.Code INNER JOIN [dbo].[@DIVISIONS]  T9 ON T0.U_Division = T9.Code
    WHERE year(T0.[DocDate]) = 2013 and T0.[CardCode] = 'NOR0001'
    union all
    (SELECT -T1.[LineTotal] as Total, month(T0.[DocDate])as month, T8.[Name] AS BusUnit, T9.[Name] AS Div FROM ORIN T0 INNER JOIN RIN1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN [dbo].[@BUSINESSUNITS]  T8 ON T0.U_Bizunits = T8.Code INNER JOIN [dbo].[@DIVISIONS]  T9 ON T0.U_Division = T9.Code
    WHERE year(T0.[DocDate]) = 2013 and T0.[CardCode] = 'NOR0001')) S
    Pivot
    (sum(S.Total) For Month IN ([1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12])) P
    Is what I've just used. Still well off the mark though.

  • Sales Analysis Report per Sales Employee with BP Reference No

    Hi All,
    I need your assistance in creating a query that balances back to Sales Analysis Report but I require the BP Reference No to show per row.  I have created 2 queries through Query Generator.  The 1st contains the OINV and OSLP tables with Fields:  DocNum, NumAtCard, SlpName, DocDate, CardCode, CardName, DocTotal
    The 2nd contains the ORIN and OSLP tables withe the same Fields.
    I need to combine these 2 queries and I need assistance with the DocTotal.  I need the amount before tax.
    This report needs to balance back to the SAP B1 Sales Analysis Report.
    Your assistance would be appreciated.
    Regards,
    Desiré Janse van Rensburg

    Thank you for your assistance!  After googling a few pages I came across this query.  I adjusted it to comply to my needs.
    Herewith query if you guys are interested:
    SELECT
    T0.DocNum AS 'Invoice Nr',
    T0.NumAtCard AS 'Customer Ref Nr',
    T1.SlpName AS 'Salesperson',
    --T0.SlpCode AS 'SP Code',
    T0.DocDate AS 'Posting Date',
    T0.CardCode AS 'Customer Code',
    T0.CardName AS 'CustomerName',
    'Credit Memos' AS 'Doc Type',
    ((T0.DocTotal) * -1) AS 'Total Docs',
    (((T0.DocTotal - T0.VatSum) - T0.TotalExpns) * -1) AS 'Product Sales',
    ((T0.GrosProfit) * -1) AS 'Gross Profit',
    CASE
    WHEN (((T0.DocTotal - T0.VatSum) - T0.TotalExpns) * -1) = 0.00 THEN 0.00
    ELSE (((T0.GrosProfit) * -1)/(((T0.DocTotal - T0.VatSum) - T0.TotalExpns) * -1)) * 100
    END AS 'Gross Profit %',
    ((T0.PaidToDate) * -1) AS 'Paid To Date',
    ((T0.DocTotal - T0.PaidToDate) *-1) AS 'Open on Docs'
    FROM ORIN T0
    INNER JOIN OSLP T1
    ON T0.SlpCode = T1.SlpCode
    WHERE
    (T1.SlpName LIKE '%%[%0]%%' OR '[%0]' = ' ')
    AND T0.TaxDate >= '[%1]'
    AND T0.TaxDate <= '[%2]'
    UNION
    SELECT
    T0.DocNum AS 'Invoice Nr',
    T0.NumAtCard AS 'Customer Ref Nr',
    T1.SlpName AS 'Salesperson',
    --T0.SlpCode AS 'SP Code',
    T0.DocDate AS 'Posting Date',
    T0.CardCode AS 'Customer Code',
    T0.CardName AS 'CustomerName',
    'Invoices' AS 'Doc Type',
    (T0.DocTotal) AS 'Total Docs',
    ((T0.DocTotal - T0.VatSum) - T0.TotalExpns) AS 'Product Sales',
    (T0.GrosProfit) AS 'Gross Profit',
    CASE
    WHEN (((T0.DocTotal - T0.VatSum) - T0.TotalExpns)) = 0.00 THEN 0.00
    ELSE ((T0.GrosProfit)/((T0.DocTotal - T0.VatSum) - T0.TotalExpns)) * 100
    END AS 'Gross Profit %',
    (T0.PaidToDate) AS 'Paid To Date',
    (T0.DocTotal - T0.PaidToDate) AS 'Open on Docs'
    FROM OINV T0
    INNER JOIN OSLP T1
    ON T0.SlpCode = T1.SlpCode
    WHERE
    (T1.SlpName LIKE '%%[%0]%%' OR '[%0]' = ' ')
    AND T0.TaxDate >= '[%1]'
    AND T0.TaxDate <= '[%2]'
    Thanks again for the replies!

  • Standard Sales Analysis Report

    Is it possible to amend the Sales Analysis Report By Item Annual to inlcude the CardCode and Price List Name
    thank you
    Elaine

    If u take report by Total By customer in selection creteria,then card code will include in report.
    u can't amend price list.

  • Sales Analysis Report service warehouse wise

    Dear Experts,
    I've configured 4 service warehouses to an item  in SAP B1 8.8 PL:16.  And now I want to see sales analysis report of that particular item against each service warehouse. But from the Sales Analysis or purchase analysis report I can't able to see service warehouse wise sales quantity & amount.
    N.B.-Those items are created as Sales & Expense item only, no inventory.
    Plz help.
    Subrata

    Hi Subrata,
    in this case you need a customized report trough Query or through Crystal Report.
    regards,
    Fidel

  • Hide Particular Item Group from Selection Criteria of Sales Analysis Report

    Hello Experts,
    Is this possible to Hide Particular Item Group from Selection Criteria of Sales Analysis Report?
    I have one Item Group as 'Special Items'.
    Now, when I open  Item wise sales analysis report, I want to hide above mentioned group from selection criteria.
    Thanks in advance.
    Best Regards,
    Pankit Sheth

    Hi,
    1. Not possible to put validation for selection criteria windows.
    2. In standard, I don't think it is possible to hide only one item group.
    3. Alternatively don't give authorization to user for running sales reports. If still need create customized query and ask user run every month.
    Thanks & Regards,
    Nagarajan

  • Query vs Sales Analysis Report

    I wrote a query that does virtually the same thing as a sales analysis report -- add up all invoice totals and calculate a gross sales number.
    In the sales analysis report ItemXXX has a total sales of $1456.94
    My query ItemXXX has a total sales of $1457.73
    A $.79 discrepancy which I assumed was a result of the fact that my query doesn't include A/R Credit Memos. Only some items have this discrepancy.
    The problem is that if I do an inventory posting list on the item there are no A/R Credit Memos listed. Only A/R Invoices, A/P Invoices, and A/P Goods Receipts.
    What other documents could be affecting this number? Any other things that could be causing this?
    Thanks,
    -Steve

    Hi Nagarajan,
    Im user of Sap Business One, i need the completly query for obtain the Sales Analysis Report
    i have this but in some items dont match
    SELECT  ItemCode,   
            Sum(TotFac) - SUM(TotNC) as  'FacturadoNeto',   
            Sum(GBrutaFac)-SUM(GbrutaNC) as  'GBruta',   
            Round((Sum(GBrutaFac)-SUM(GbrutaNC))/case when  (Sum(TotFac) - SUM(TotNC))= 0 then 1 else (Sum(TotFac) - SUM(TotNC)) end  *100,2) as '% Margen'   
    FROM (   
    SELECT    
    ItemCode = T1.ItemCode, 
    Marca = (Select T2.FirmName from OMRC T2 JOIN OITM T3 on T2.FirmCode = T3.FirmCode where T3.ItemCode=T1.Itemcode), 
    TotFac = Sum(T1.Linetotal),    
    GBrutaFac = SUM(T1.GrssProfit),   
    TotNc= 0,   
    GbrutaNC = 0   
    FROM OINV T0 (NOLOCK) INNER JOIN INV1 T1 (NOLOCK) ON T0.DocEntry = T1.DocEntry                                    
    WHERE (T0.[DocDate] >='20140101' AND  T0.[DocDate] <='20141231') 
      and T0.DocType  = 'I' -- solo facturas por articulos   
    Group by  T1.ItemCode  
    Union   
    SELECT    
    ItemCode = T1.ItemCode,   
    Marca = (Select T2.FirmName from OMRC T2 JOIN OITM T3 on T2.FirmCode = T3.FirmCode where T3.ItemCode=T1.Itemcode), 
    TotFac = 0,   
    GBrutaFac = 0,   
    TotNc= Sum(T1.LineTotal),    
    GbrutaNC = SUM(T1.GrssProfit)   
    FROM ORIN T0 (NOLOCK) INNER JOIN RIN1 T1 (NOLOCK) ON T0.DocEntry = T1.DocEntry                                    
    WHERE (T0.[DocDate] >='20140101' AND  T0.[DocDate] <='20141231')
      and T0.DocType  = 'I' -- solo NC por articulos   
    Group by T1.ItemCode 
    Union
    SELECT    
    ItemCode = T1.ItemCode,   
    Marca = (Select T2.FirmName from OMRC T2 JOIN OITM T3 on T2.FirmCode = T3.FirmCode where T3.ItemCode=T1.Itemcode), 
    TotFac = 0,   
    GBrutaFac = 0,   
    TotNc= Sum(T1.LineTotal),    
    GbrutaNC = SUM(T1.GrssProfit)   
    FROM ODPI T0 (NOLOCK) INNER JOIN DPI1 T1 (NOLOCK) ON T0.DocEntry = T1.DocEntry                                    
    WHERE (T0.[DocDate] >='20140101' AND  T0.[DocDate] <='20141231')     
      and T0.DocType  = 'I' -- solo Fact Anticipos por articulos   
    Group by T1.ItemCode
    ) T   
    Group by  ItemCode, Marca

  • Sales Analysis Report Problem

    Hi all.
    I would be glad if I could get a response for this question from someone at SAP. Though all responses are very welcome.
    There seems to be an error on the Sales Analysis report. The report runs fine with selection criteria for Customers and Sales Employees but when you run it with the Items Selection Criteria it returns the correct rows but wrong amounts in the Gross Profit and Gross Profit % columns which also means that the totals are also wrong.
    I have tried to follow the issue but everything seems to be OK.
    My last resolution is that there may be something wrong with the stored proc that B1 runs to produce this report.
    Please help! Urgent.

    Wilfred,
    You should create a message with SAP Support on this issue.
    Eddy

  • Sales Analysis Report based on Supplier-wise

    Hi Experts,
    My client requirement is ,We are into trading so , we want a Sales analysis report based on Supplier-wise. like,
    Selection critieria is
    1)Supllier name
    2)From and To date.
    Heading are
    Item name     Sales UoM    Jan(quantity)   Feb(quanitity)   mar(quantity)   April(quanitiy).........
    here, i need only the sum of the quantity for the items for that particular month based on the date giving in selection criteria.
    Regards,
    Dwarak
    Edited by: Dwarak@SMS on Aug 23, 2010 4:29 PM

    Hi experts,
    For my clients requirement,
    I could able to alter my previous query(find below).
    My object is
    1)To get sales report based on Manufacturer.
    2)To get the TOTAL SALES QUANTITY OF THE MONTHS in the report. I go that in the below query, and only thing is that is have to minus the total Credit note for items to get the ACTUAL TOTAL SALES OF THE MONTHS. so , can anyone help me to alter the query to get me the ACTUAL TOTAL SALES OF THE MONTHS.
    the query is
    SELECT T0.ITEMCODE,T0.ItemName,T0.OnHand,
    (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())-0) AS 'JAN ',
    (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())-0)  AS 'FEB ',
    (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())-0)  AS 'MAR ',
    (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())-0)  AS 'APR ',
    (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())-0)  AS 'MAY ',
    (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())-0)  AS 'JUN ',
    (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())-0)  AS 'JUL ',
    (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())-0)  AS 'AUG ',
    (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())-0)  AS 'SEP ',
    (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())-0)  AS 'OCT ',
    (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())-0)  AS 'NOV ',
    (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())-0)  AS 'DEC '
    FROM dbo.OITM T0
    LEFT JOIN dbo.INV1 T1 ON T1.ItemCode = T0.ItemCode WHERE T0.SellItem = 'Y' and T0.[FirmCode] =[%0]
    GROUP BY T0.ItemCode,T0.Itemname,T0.OnHand,YEAR(T1.DOCDATE) HAVING YEAR(T1.DOCDATE) =
    YEAR(GETDATE())-0
    ORDER BY T0. ITEMCODE

Maybe you are looking for

  • SELECT bulc collect into takes to long

    Hi, by the following statement I get Data from a Remote Database and do a update on a local table via a sql procedure This part of the proecure takes about 70 seconds. select /*+ RULE */ id, messaging_state, recipient, messaging_type, manual, node, m

  • Bad sound from hard-drive music?

    The music stored in iTunes on my mac mini does not reproduce with good fidelity.  E.g., If I import a commercial CD to iTunes, using wav, output is substantially inferior to the source CD -- to the point that it's unlistenable on a decent stereo syst

  • StopMediaTransmission rx 92, successful 46, failed 92 -- seeking a fix for this failed message?

    Profile Identifier: 2, Service Type: Conferencing TCP packets rx 2549, tx 2439 Unsupported pkts rx 0, Unrecognized pkts rx 0 Register tx 1, successful 1, rejected 0, failed 0 Unregister tx 0, successful 0 KeepAlive tx 2322, successful 2322, failed 0

  • Ssrs 2012 - dataset does not populate in designer

    Hi, Stored proc. (sp) returns fields in the query designer of SSRS 2012. but the dataset does not populate fields in the designer. in case it makes any difference, note that the sp uses functions in several places. Any suggestions please? Thanks

  • Printer problem  "Output Device LP01 is Locked by R/3"

    Hi BASIS Experts, user is printed Spoolrequest showing Status="-" , outputrequest is not generated, in SP01 listof spoolrequest selecting the Spool no(Check box)  and Clicking PrintDirectly it is showing message "Output Device LP01 is Locked by R/3"