How to total sales per merchandise category wise

Dear all,
We are into Retail sector, and using SAP IS-Retail for our business process, we want to see sales reports based Merchandise Category level.
is there any standard report which shows list of sales order per merchandise category wise.
if not can we develop a Zreport using Query or ALV report.
then which Tables need to be used.
Please help me to solve this issue, Your help will be highly appreciated.
Thank you,
Raghu ram.

Hi,
if you want more flexible, you could try this modified Istvan's query:
SELECT top 10 T1.ItemCode, T2.ItemName, T3.ItmsGrpNam,   SUM(T1.Quantity) as "Total Qty Sold",
  SUM(T1.TotalSumSy) as "Total Amount" ,
  (select sum (r.Quantity) from ODLN h
     inner join DLN1 r on h.DocEntry=r.DocEntry  
     where h.DocDate>='[%4]' and h.DocDate<='[%5]'
         and r.ItemCode=T1.ItemCode) '2007 Sold',
  (select sum (r.TotalSumSy) from ODLN h
     inner join DLN1 r on h.DocEntry=r.DocEntry  
     where h.DocDate>='[%6]' and h.DocDate<='[%7]'
         and r.ItemCode=T1.ItemCode) '2007 Amount'
FROM ODLN T0 INNER JOIN DLN1 T1 ON T0.DocEntry = T1.DocEntry INNER JOIN OITM T2 ON T1.ItemCode = T2.ItemCode INNER JOIN OITB T3 ON T2.ItmsGrpCod = T3.ItmsGrpCod
WHERE T0.DocDate >='[%0]' AND T0.DocDate <='[%1]' AND T3.ItmsGrpNam between '[%2]'  and '[%3]'
GROUP BY T1.ItemCode, T2.ItemName, T3.ItmsGrpNam
ORDER by SUM(T1.Quantity) DESC
Rgds,

Similar Messages

  • Fastest way to calculate total sales per material?

    I'm creating a report where I need the total sum of sales per material. 
    Is the fastest & most efficient / only way to do this by querying VBAP?  We're talking about millions of lines.
    I guess I'm hoping that there is a FM already in place or that some sort of summary table exists.
    Any ideas?

    There is no FM. In the program you should be able to use table VAPMA, which has the same data as VBAP but the primary key is MATNR.
    Depending on the requirements, it might be beneficial to create an info structure (LIS) to track summarized sales. Your SD consultant should be able to do that, there is no programming required.
    Hope this helps.

  • Storing and calculating sales per item

    The case: We have a item, on that item we have a fee. If the item has sold more than 1000 copies, the fee will drop. Therefor i need to have a place that calculates/stores total sales per item. This can then be used to set the fee when i run my stored procedure
    for sales etc. 
    Database explained shortly: 
    The sales database looks like this: 
    ItemID, SalesDate, Quantity, Name.
    Example: 
    1399, 2014-01-01, 2, Fompa.
    1081, 2014-01-01, 13, Asddd. 
    1399, 2014-01-03, 1, Fompa. 
    Etc. 
    The item database looks like this: 
    ItemID, Name, Author, etc
    Now my boss asked me if i maybe should add total sales to the item database, but how is that possible? 
    I have also tried to gather all items and show the total sales, but something goes wrong, the itemID are not grouping together..
    here is the query: select ItemID, QUANTITY from BOOK_SALES group by ItemID, QUANTITY order by MAX(quantity) DESC
    If i get this query right, is it possible to store the query within a database table? 

    Hey, thanks for a fast answer. 
    I modified your query a little, 
    select
    itemid, sum(quantity) from book_sales group by
    itemid order by MAX(quantity) DESC
    but still, all of the itemIDs are not being grouped together. 
    Results show something like this: 
    1399, 981
    1081, 344
    1399, 199
    etc..

  • Merchandise category & hierarchy upload using LSMW???

    Hi
    I am trying to upload Merchandise category and hierarcy using LSMW (BAPI/IDOC method only).
    For merhcandise category
    I used message type W_WGRP and it is helping me in changing or reclassification of articles. But I am not able to create new merchandise category with this. I used structure E1BPE1WGR01  with "function" field with value "005, LSMW is working fine idocs are created successfully but no new Merc Cat is created.
    When I used same structure with "function" field with value "009" I get error message "Class XXX does not exist or or is not valid on this date".
    For Merchandise Catrgory Hierarchy
    I used idoc CLSMAS but getting error message "Keyword missing for class XXX"
    has anybody uploded entire hierarchy structure using LSMW ?

    Sorry to say, but your problem is not resolved.
    In IS-Retail, a merchandise category must first be created as a class (CLSMAS) and then also as a merchandise category (W_WGRP).  Yes, you must process two IDoc per merchandise category, and in that order.
    To understand how to load data using LSMW, the best approach to watch what the system does naturally.  In this case, use T-Code WGSE to send the merchandise category hierarchy via ALE from one system-client to another.  For understanding, you needn't configure the entire ALE scenario, just the outbound portion.  Then watch the outbound IDocs be created; there's your example!
    For merchandise category hierarchy (including merchandise categories), there are four message types that will be sent: W_WGRP, CHRMAS, CLFMAS, and CLSMAS. 
    IDoc Serialization using message types (serialization groups) is used when several different message types are dependent on each other, as is the case here. For example, if a merchandise category is assigned to a merchandise category hierarchy level, the merchandise category hierarchy level must first exist.  How you use LSMW and IDocs is informed by the sequence.
    To understand the IDoc sequence for creating the merchandise category hierarchy (including merchandise categories), use T-Code BD44 to view the Serialization Group GRP_W_WGRP includes the 4 desired message types in sequence:
    CHRMAS04 Distr. of Characteristics with Dependencies and Long Texts
    CLFMAS02 Master object classification
    CLSMAS04 Classes with Long Texts, Document Links, and E1UPSLINK
    W_WGRP01 Distribution of material groups
    CHRMAS04 is only relevant of Characteristics are being assigned to merchandise categories.  Let us leave Characteristics aside for now.
    Step 1:  Create Merchandise Category Hierarchy Nodes
    Step 2:  Merchandise Categories - Create as a Class
    Step 3:  Merchandise Categories - Change as a Retail MC
    Step 4:  Merchandise Categories - Assign Category Hierarchy Nodes each other, and assign MC class to MCH node.
    For this, use these messages:
    Step 1:  CLSMAS04
    Step 2:  CLSMAS04
    Step 3:  W_WGRP01
    Step 4:  CLFMAS02
    - Paul
    Paul R. Gendreau, Jr.
    SAP Retail

  • Sale Qty Material grp wise

    DearAll ,
    whr we can find total  sale Qty material grp Wise Per Month ?
    Pl guide with report
    regards

    Hi,
    Using std analysis you may find LIS reports material wise.
    For material grp wise create a std/flexible report as per your requirement.
    [LIS|http://help.sap.com/printdocu/core/Print46c/en/data/pdf/LOLIS/LOLIS.pdf]
    [LIS Components|http://help.sap.com/printdocu/core/print46c/en/data/pdf/LOLIS/LOLIS_KOMPONENTEN%20DES%20LIS.pdf]
    Regards,
    Amit
    Edited by: Amit Iyer on Aug 28, 2009 12:14 AM

  • Regarding Customer Total Sales table

    Hi All SAP Experts
    I like to know which table will provide me total of each customers for year. an Actual sales for per customer. I know table VBAK with filed Net value. My question is that figure is right figure for each customer. I am looking for total sales. Report requirement is total sales it will not show line itemwise. Just total sales per customer.
    Thank you

    Welcome to the forum.  As a new member, I would like to inform you that there are certain rules and regulations applicable to this forum which you can find to your right screen where it has also been indicated that posting basic / repeated query is not allowed. Please search in this forum or Google it with the same text, so that you will find many threads discussed on the same topic.  Take the inputs from there and update still if you are not able to resolve.  Meanwhile, this thread would be locked.
    G. Lakshmipathi

  • Total net order value Customer wise

    Dear All,
    I want to extract total Net sales order value customer wise for developing a report. I need to know SAP table details to get Total sales order values customer wise.
    Standard report does not match my requirment.
    I need to extract details from VBAP, customer wise. Please advise me to build a logic.
    Thanks,
    sajeewa.

    You can get the Net value from VBAP-NETWR by line item & the sold to is on VBAK-KUNNR, then make a join on VBAK-VBELN & VBAP-VBELN, then group it by KUNNR to display totals by Customer.

  • How to Apply YTM and MTD filter to the Query Calculating "Total Sales" Amt

    Hi,
    I got the requirement to calculate "Total Sales" amount in following format,
    1. Calculate Total Sales YTM per Country
    2. Calculate Total Sales MTD per Country
    I am done with Queries to get Country wise Total Sales amount but stuck at the point, how to apply YTM (Year to Month) and MTD (Month to Date) filter. Can anyone have idea about how to apply YTM and MTD filter to query??
    Regards,
    Priyanka

    Hi,
    I got the requirement to calculate "Total Sales" amount in following format,
    1. Calculate Total Sales YTM per Country
    2. Calculate Total Sales MTD per Country
    I am done with Queries to get Country wise Total Sales amount but stuck at the point, how to apply YTM (Year to Month) and MTD (Month to Date) filter. Can anyone have idea about how to apply YTM and MTD filter to query??
    Regards,
    Priyanka

  • Regression result  Of Sale by product wise and Total Sale

    Hi ,
    I am using oracle data miner for sale forecasting.
    Following are the two scenarios.
    1)  Created the workflow for regression on sale by each eg APC,GBC,HKJ.
         The results are as follows
          PRODUCT  SALE_FORECASTED  YEAR MONTH
    ----------------------results from the workflow of the product APC
          APC           2000                            2014  1
          APC           3000                            2014   2
    ----------------------results from workflow of the product GBC
         GBC            1000                            2014   1
         GBC             2000                           2014    4
    ===============================================
    Sum of Sales Forecasted for year 2014  is 100000 for all the products
    2) Created the workflow for regression on total sale of all the products
        SALE_FORECASTED   YEAR   MONTH
        5000                             2014        1
        10000                           2014         2
    As per me the total sale in two scenarios should match when sale regression is created using oracle data miner.
    One more time thanks in advance...
    Thanks,
    HS

    Hi,
    For a background on how you might be able to use ODM for sales forecasting, see Marcos Campos blog on timeseries (link below).
    Thanks, Mark
    Oracle Data Mining and Analytics: Time Series Forecasting Series

  • How to see customers total sales orders value

    Dear all,
    How can I create a query to see all customers total sales orders value.
    I have tried MC+E transaction, it is not giving accurate values when compare for a customer with VA05N report.
    moreover it doesn't have filter option.
    Please help me to resolve the issue. Your suggestion will be highly appreciated.
    Best regards,
    Raghu ram

    Hi,
    Try S_ALR_87012171  and S_ALR_87012186.   or
    S_ALR_87012160, select customer lite items only, enter customer number.
    Click on dynamic selection (Shift+F4). enter RV in document type field and press execute.
    Regards,
    Chandra

  • How to find articles if I know merchandise category?

    Hi,
    I know merchandise category, for example, 08-03-06.
    How can I find articles ?
    Thanks.

    Dear Michael
    May be the link would be helpful to you
    [Merchandise Category Reference Articles |http://help.sap.com/saphelp_46c/helpdata/en/12/084869470311d1894a0000e8323352/frameset.htm]
    thanks
    G. Lakshmipathi

  • Total sales to date per item

    Hello folks i need some help with SQL code i think. I need to get a report showing our best selling items, but the sales analysis is only showing recent stock (even if i specify 01.01.07 - 02.06.08).
    in theory this is a simple report. i just need ItemCode, ItemName and Total Sales.
    What is the table that contains total sales?

    Thanks Petr I have used the slightly amended code below:
    select coalesce((select sum(quantity) from inv1 where itemcode = oitm.itemcode
    group by itemcode), 0)
    +
    coalesce((select sum(quantity) from ige1 where itemcode = oitm.itemcode
    group by itemcode),0), itemcode, itemname
    from oitm
    but when i export this to excel the first column (quantity) becomes invisible. How do we make it appear, for example, as 'Total Sold TD'?
    thanks

  • How to Create Merchandise Category Reference Article in IS-Retail system

    Hi Experts,
    Is there any separate Tcode to create Merchandise Category Reference articles in IS-RETAIL system.
    Whether Merchandise Category reference article is created as normal article in MM41 only?
    Whether we can assign any of the article that is created in that merchandise category as reference article in WG21 (or) is there any separate Tcode to create Reference articles.
    During Retail Implementation projects, how Merchandise Category reference article are handled???
    Any Input is highly appreciated.
    Thanks and Regards,
    Selvakumar.M

    Hi,
    With Tcode WG21 u can create MC ref. article. It is a way to create MC ref article. No need to use MM41.
    Regards,
    Rahul

  • How to all customer who are having total sales value more than 10000 usd??

    Dear all,
    How can we see all customers that are having total sales value is more than a specific amount (Ex: more than 10000 USD)
    How to list all customers who's total sales value is more than 10, 000 USD.
    Please help me to find the right solution for this problem.
    Your help will be highly appreciated.
    Best wishes,
    Raghu ram

    Dear Raghu ram
    Go to VF05N, give just Sales Organization, distribution channel and execute.  You will get the entire sales details including currency.  Sort in descending order by selecting the value column.
    thanks
    G. Lakshmipathi

  • How to get the max total sale by date on every store

    I am trying to write a query in Oracle which will return both the store_id and the maximum total sale by date

    Hi,
    Whenever you have a question, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002#9362002
    Hjava wrote:
    I am trying to write a query in Oracle which will return both the store_id and the maximum total sale by date
    Do you mean you want to see the store_id that had the maximum total sale?
    In general, this can be done with a Top-N Query, using an analytic function such as RANK.  For an example, see http://forums.oracle.com/forums/thread.jspa?messageID=3739610
    If you only want the date, the maximum total from that date, and 1 column from the same row with the maximum (e.g. store_id), then you might be able to use the aggregate LAST function instead.
    What results do you want in case of a tie?  (That is, if 2 or mote store_ids have the same total sale on a given date, and no other store_id has a higher total.)

Maybe you are looking for

  • XML Encoding from Business One - Unable to Read in a 3rd Party APP

    Hi: I have created an Add-On app that produces an XML document file when a new item is created or an existing item is updated. However, the 3rd party app that I am trying to integrate into is unable to read this XML. After doing some research, the fo

  • Help w/ Eye Diagrams and Mask Tests

    I could use some experienced help here So i have a scope capture of a representative signal that will be used in this VI. I have several problems which i could use some help with. 1) Trying to create an EYE diagram out of this waveform.  Because it i

  • Reinstall again after firmware opdate - N96

    If I make a backup of N96, doing a firmware update, how much will be restored by creating a restore? Lost everything on the phone both internal memory and the 16 Gb extra space and must installe everything again , or is there programs who still will

  • Some doubts regarding APD

    Hi Friends, I am working on APD for the first time. While working on it, I came across the following doubts/questions: 1. If we have created a query as the source for APD and transactional ODS as target in Dev. Now, I want to transport this APD in QA

  • Invoking Perl module from Apex

    I am developing an application using Apex that needs to be integrated with some other modules written in different languages. In my application I need to invoke a perl module/API based on some button action. Please suggest me the ways how I can do th