Quantity Report

Hi all,
           I need a report to know how much Qty of material ive sold to my customers (month wise). With the following fields.
Cust Name, April Qty, may Qty, June Qty, July Qty, Aug Qty.............and So on. till jan31st 2009.
Ive Tried extracting this data from Sales analysis, but I could get the report with sale values, but not with Qty's. I need a report with Qty's.
Plzz somebody gimme the query.
Thanks in advance.

Hi,
I just tweak the query:
SELECT customer,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 t2.CardName [customer],
             t0.itemcode [itemcode],
               t1.quantity [quantity],
               MONTH(t1.docdate) [month]
        FROM   dbo.oitm t0
               LEFT JOIN dbo.inv1 t1
                 ON t1.itemcode = t0.itemcode
               LEFT JOIN dbo.oinv t2
                 ON t2.docentry = t1.docentry
        WHERE  t0.sellitem = 'Y') AS source
       PIVOT
       (SUM(quantity)
        FOR [month] IN ( [1],[2],[3],[4],[5],[6],[7],[8],[9],[10],[11],[12] ) ) AS pivoted
regards,
Paul

Similar Messages

  • Pending quantity report for a manufacuting firm

    Hi Guys,
    I need a report to know the daily pending quantity report for a manufacturing company..
    I have tried a query and to some extent its working fine.. i need some more changes in the query.
    The report should be look lie below,
    ITEMCODE,ITEMNAME,ORDERED QUANTITY,ORDERED VALUE,SALES QTY(DELIVERED QTY),SALES VALUE,PENDING QTY,PENDING VALUE ,SHORTFALL(IF THE INSTOCK QTY IS LESS THAN PENDING QTY).
    Here there are using 5 different price lists.
    and the above report has to be classifed seperately for each price list seperately and also in the given period if there is a item which has not been ordered then it also be needs to list in the report with eventhoug it dont have any values .
    Could anybody pls modify the below query.
    SELECT T1.ItemCode, Max(T1.[Dscription]) As 'Item Description' ,t3.price as 'Unit Price/PC',Sum(T1.[OrderedQty]) as 'Ordered Qty' ,(Sum(T1.[OrderedQty]) * t3.price ) as 'Ordered Value' , Sum(T1.[Quantity]) as 'Del Qty',(Sum(T1.[Quantity]) * t3.price) as 'Sales Value',(Sum(T1.[Quantity]) - Sum(T1.[OrderedQty])) as 'Pending Qty',((Sum(T1.[Quantity]) - Sum(T1.[OrderedQty])) * t3.price) as 'Pending Value',T2.OnHand, (T2.OnHand - (Sum(T1.[Quantity]) - Sum(T1.[OrderedQty]))) as 'SHORT'
    FROM ODLN T0 
    INNER JOIN DLN1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OITM T2 ON T1.ITEMCODE = T2.ITEMCODE
    inner join itm1 t3 on t1.itemcode = t3.itemcode
    inner join opln t4 on t3.pricelist = t4.listnum
    WHERE T0.[DocDate] >=[%0] AND  T0.[DocDate] <=[%1] and t4.listname = '[%2]'
    Group By T1.ItemCode,T2.OnHand,t4.listname,t3.price

    Try this query
    SELECT T1.ItemCode, Max(T1.[Dscription]) As 'Item Description' ,t3.price as 'Unit Price/PC',Sum(T1.[OrderedQty]) as 'Ordered Qty' ,(Sum(T1.[OrderedQty]) * t3.price ) as 'Ordered Value' , Sum(T1.[Quantity]) as 'Del Qty',(Sum(T1.[Quantity]) * t3.price) as 'Sales Value',(Sum(T1.[Quantity]) - Sum(T1.[OrderedQty])) as 'Pending Qty',((Sum(T1.[Quantity]) - Sum(T1.[OrderedQty])) * t3.price) as 'Pending Value',T2.OnHand, (T2.OnHand - (Sum(T1.[Quantity]) - Sum(T1.[OrderedQty]))) as 'SHORT'
    FROM ODLN T0 
    INNER JOIN DLN1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OITM T2 ON T1.ITEMCODE = T2.ITEMCODE
    left join itm1 t3 on t1.itemcode = t3.itemcode
    left join opln t4 on t3.pricelist = t4.listnum
    WHERE T0.[DocDate] >='[%0]' AND  T0.[DocDate] <='[%1]' and t4.listname = '[%2]'
    Group By T1.ItemCode,T2.OnHand,t4.listname,t3.price
    union all
    select B.ItemCode, B.ItemName,D.Price,SUM(C.OnOrder), 0,0,0,0,0,SUM(C.OnHand),SUM(C.OnHand)-SUM(C.OnOrder)
    from OITM B
    INNER JOIN OITW C ON B.ItemCode = C.ItemCode
    INNER JOIN ITM1 D ON C.ItemCode=D.ItemCode
    WHERE B.ItemCode NOT IN (SELECT T1.ItemCode FROM ODLN T0 
    INNER JOIN DLN1 T1 ON T0.DocEntry = T1.DocEntry
    INNER JOIN OITM T2 ON T1.ITEMCODE = T2.ITEMCODE
    left join itm1 t3 on t1.itemcode = t3.itemcode
    left join opln t4 on t3.pricelist = t4.listnum
    WHERE T0.[DocDate] >='[%0]' AND  T0.[DocDate] <='[%1]' and t4.listname = '[%2]' )
    GROUP BY B.ItemCode, B.ItemName, D.Price
    Regards,
    Bala
    Edited by: Balakumar Viswanathan on Nov 15, 2010 4:23 PM

  • Cost center + Activity actual consumed quantity report

    Dear Friend,
    I want to see acitivities actual conumption (operation confirmation by PP) quantity with the combination of cost centers. Please provide me some reports number.
    thanks
    Ravi

    Hi Ravi,
    try  S_ALR_87013646 - Activity Types: Period Breakdown
          S_ALR_87013647 - Activity Types: Scheduled/Plan
          S_ALR_87013617 - Area: Activity Types
    S_ALR_87013629 - Activity Types: Reconciliation
    S_ALR_87013630 - Activity Types: Plan Receivers
    KSBT - Cost Centers: Activity Prices
    KL20 - Template Allocation Structure: Cost Center/Activity Type
    Hope this helps you....
    Regards,
    Sreekanth....

  • Fixed Assets Quantity Reports

    Hi All,,
    In the asset master i find the quantity of assets in the current date. But if i want to generate list of assets and their quantities on a past date, say January 31st, is there a standard report for the same?
    Please advise.
    Thanks in Advance,
    Safi

    Hi,
    I am not very sure about the report but you can down load any asset report (by class or by business area, etc) and save it to an excel sheet.
    GO to SE16, table ANLA and give the asset numbers and select the out put fileds ANLN1 and MENGE.  In the field MENGE, you can find the Qty.
    Hope this work around helps.
    Regards,
    A.Saravanan

  • Scheduled Capacity Planning Quantity Report

    Hi experts,
    Can you please guide me for any report in SAP which can show all scheduled capacity planning quantity.
    Regards,
    Ragu

    Hi
    Try CM50
    Regards,
    Anupam Sharma

  • Vendors invoice and quantity report

    Dear Experts,
    I'm looking for a MM report, that run's montly , to provide the folloing information:
    - Material
    - Vendor
    - Quantity delivered
    - Invoice
    - Invoice total amount
    I would like to know if there is already a standard report that does it  ... or ...if not aht would be the best way to link MSEG table to AP Tables in order to get it.
    Many thanks in advance for your precious help
    Kind Regard
    Jose Marques

    Hi ,
    Many thanks for your help.  This report gave exactly waht I needed.
    Regards
    Jose

  • Open contract -  remaining quantity report?

    Hello,
    I need to find a report which will show open contract quantity. T-code: VA45, VA46 has no such data. There are only information about open contracts, but I can not find data about remaining contract quantity.
    Do you know any t-code or program?
    Best regards,
    Maciej K.

    Hi,
    It looks there is no standard report that can show the open contract quantity.
    In our business, we developed an ABAP query and I used logical database table VAV.
    Couple of Z-fields were introduced to find the total release quantity (for quantity contract) and total released value (for value contract).
    To find the total released value a function module CALL FUNCTION 'SD_READ_CALL_OFF_VALUE' was used. To find the released quantity, a query was used to fetch information from VBFA table like below;
    SELECT SINGLE SUM( rfmng )
    INTO ZRELEASEDQUANTITY
    FROM vbfa
    WHERE vbelv = vbak-vbeln
    AND posnv = vbap-posnr
    AND vbtyp_n = 'C'.
    If the above two values are known, then you can subtract these fields from target quantity (VBAP-ZMENG) and target value (VBAP-ZWERT) fields to find the open quanity and value details.
    Regards

  • Material weight and quantity report

    Dear,
    Do you know if in standard SAP exists a report able to extract the material good movements and the material weight field to?
    For example; something like the MB51 but with the weight field.
    Thank you
    Regards
    Matteo

    In SAP standard, movement data is stored in base unit and unit of entry. In Oil&Gas solution, you have table MSEG2 with the movement store in every unit of measure defined for the material. If you have this industry solution, you can access that information.
    If that's not your case:
    You may create a Query or custom report (custom program) with a calculated field to translate the quantity to the desired UOM.
    You can create an Info structure using LIS, where you update your key figures based on an update formula.
    You should be aware that above solutions are very different in terms that the first one will perform conversion using current UOM translation data, and the second one, will use the conversion defined at the moment of the document update. This means that if you change your conversion factors during a period, this may have different influences.
    Now, regarding the use of querys or custom reports, I have to say that querys are actually customs reports, dynamically defined using the query transaction. But once you generate it, an abap program is created. Sometimes, this type of generated programs have issues regarding performance, because this dynamic generation of the program, not always defines the better design for performance. As you might know, not every table is the same in terms of database access, and talking about material movements, I believe that the information to manage is quite large.
    Anyway, its true that you don't require abap programmer if you use query tools, but you have to take into consideration your particular business case to define the best approach.
    Hope this helps!

  • Delivery quantity report

    Dear All, As per our new requirement from business,They are asking report delivery quantity status report based on the date,Can you please advice how to calculate open delivery quantity based on date and total OBD quantity..

    Dear Ravi
    I would like to add some more findings here.
    Open Delivery: means Delivery done--need to go for billing.
    Is it what you are asking for??
    (confirm--there is always difference between client terminology and SAP terminology)
    If so-- First you retrieve all delivery docs from LIPS table--then retrieve the status of Billing from VBUP table(FKSTA)...
    So you can easily find the open delivery Qty(again reiterating Open delivery Qty means-the Qty for which delivery happened--but not billed)
    Note: I want to add a little bit to Experts opinion here---if a material is having availability check of KP--will not be observed in VBBE.
    Please find the answer Given By Our Lakshmipathi sir in thread--VBBE table Not Updated....
    Hope this helps.
    Phanikumar

  • RE: Std report to see  Asset quantity

    Hello is there  any Standard report  to see the Quantity report which we update at the time of creating asset master. For ex we purchase 5 desktop and create only single asset master by updating the qty by 5 NOS.
    Regards
    Abhisekh Mandal

    SAP Easy Acces Menu - SAP menu - Accounting - Financial Accounting - Fixed Assets - Information System - Reports on Asset Accounting - Asset Balances - Inventory Lists - Physical Inventory List............
    S_ALR_87011979 - ... by Cost Center
    S_ALR_87011980 - ... by Location
    S_ALR_87011981 - ... by Asset Class
    S_ALR_87011982 - ... by Plant
    You will get above reports subject to maintain data in asset master .
    Srinivas

  • Reports in SAP SRM

    The client I am working with is on SAP SRM 7.01 with a standalone scenario. Only when the invoice is posted and 3-way match is done, the follow-on documents are created in SAP. This is severely limiting the client to run reports in SAP SRM for day to day use.
    The client wants to run the following reports:
    Report 1: A report that shows the following columns and can be run in SRM GUI.
    Company Code, PO #, Line #, Ordered Quantity, Unit Price, UOM, Received Quantity, Invoiced Quantity
    Report 2: A report that shows the following columns and can be run in SRM GUI.
    Company Code, Invoice #, Supplier Name, WBS/Cost Center #, Invoice Amount, Invoice Create Date, Invoice Status
    Also, the client wants to extend these reports and create new ones based on the requirements.
    Any ideas on how to create these reports are welcome.
    Thanks in advance.

    Hi Kartikeya dixit,
    Thanks for your reply.
    My Scenario is like this..
    1.Selection Criteria Screen
    1.1 RFQ number : xxxxxxxxxx
    1.2 From Date : xx/xx/xxxx To Date : xx/xx/xxxx
    2.Based on the input criteria given above, get the details from FM bbp_pd_bid_getdetail for the rfq numbers given above for object_type=”BUS2200” and process_type = “RFQU”.
    3.Get the RFQ number, Created At i.e. object_id and created date.
    4.Item details can be obtained
    5.Bidder details can be obtained for partner_fct=”00000018”.From table BUT000 the fields partner, name_org1 can be obtained to print the Supplier code and supplier name.
    6.The RFX response details can be obtained using FM BBP_PD_QUOT_GETDETAIL to get the total value for the items in the rfx response.
    The object type to be selected is BUS2202 and process type = QUOT
    7.Display summation of the values for each supplier has to be displayed for each supplier.
    Can you help me what to do ....

  • Download Background job output to Excel automatically

    Dear Experts,
    Hi there... Please note the following scenarion and give me your expert solutions on the same...
    I have created a SALES QUANTITY REPORT for exports... In this there are many conditions applied to achieve data in many of the columns of this report. If we run it for 2-3 months it is not a problem... The output comes at a marginal wait time... But the moment it is run for a whole year then it just goes on and on.... I cannot fine tune also.... because of the conditions... For better performance and fast retrieval i have used views in this report to achieve quick output...
    The thing is when i put it to execute in Background it comes within an hour or so... But the output is not readable.... so here is what i want:
    1. First of all why report executes so quickly when put in background, whereas in foreground it takes more than 4 hours and also no guarantee of output.. This is to satisfy my curiosity...
    2. I want the output to get automatically converted into excel and get stored in a specific folder the moment the job is finished in background without any format getting disturbed. The report is prepared in ALV...
    Please gurus help me out.
    Thanks...
    Jitesh

    It is giving me the following error: -
    17.02.2009 11:24:41 Job started                                                                             00           516          S
    17.02.2009 11:24:41 Step 001 started (program Z_SD_SQR_EXPORT, variant &0000000000007, user ID JBABAP)      00           550          S
    17.02.2009 11:24:45 Incorrect Print Parameter                                                               0K           091          I
    17.02.2009 11:24:45 Spool request (number 0000014520) created without immediate output                      SY           355          S
    17.02.2009 11:24:45 Excel file c:\sqr\sqrexport.xls cannot be processed                                     UX           893          E
    17.02.2009 11:24:45 Job cancelled after system exception ERROR_MESSAGE                                      00           564          A
    form DOWNLOAD .
    CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'
      EXPORTING
    *   I_FIELD_SEPERATOR          =
    *   I_LINE_HEADER              =
        i_filename                 = 'c:\sqr\sqrexport.xls'
    *   I_APPL_KEEP                = ' '
      tables
        i_tab_sap_data             = it_final
    * CHANGING
    *   I_TAB_CONVERTED_DATA       =
    * EXCEPTIONS
    *   CONVERSION_FAILED          = 1
    *   OTHERS                     = 2
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endform.                    " DOWNLOAD
    Please reply..
    Thanks,
    Jitesh

  • MEDRUCK Line ITEM_LINE_2F and ITEM_LINE_3F

    In the SAP script form MEDRUCK there are two elements ITEM_LINE_2F and ITEM_LINE_3F. normally it will print only the second element ITEM_LINE_3F to inform that quantity and unit of quantity is ordered.
    If there is a difference in the unit of quantity (report LMEDRUCKF18 when BPRME NE MEINS) then ITEM_LINE_2F will be print as second line before ITEM_LINE_3F. There is no information about why that happen in the form. What is the background about this information and how it can inform the vender in a case that he understand what happend?
    A solution only to delete this line as I read in another tread will not be a solution because there is or should be a background behind it.
    Kind regards Achim
    Edited by: Joachim Artmann on May 31, 2010 9:17 AM

    Hello all,
    I have been able to find the answer. As of now Commitment Line Item report for any master data for service charge settlement does not exist and and as such wont be available.
    Kind regards,
    Suvarghya Dutta

  • Getting the organization unit of a responsibility used ...

    Hi,
    Are there any manners to get the organization unit according to the responsility the user selected...????
    For example...
    Assume that the user has the following responsibility:
    inventory employee <-----------role as a single inv. employee(access only to view)
    admin of inventory N234 <-----------role as an admin to this particular inventory(access to view, edit, check, ...)
    admin of inventory N239 <-----------role as an admin to this particular inventory(access to view, edit, check, ...)
    e.t.c..
    How is it possible to correlate the responsibilities 2,3 (of the above list) to the organization units(units of a company) coded as 234, 239 respectively..???
    I assume that this can be done using a profile (at responsibility level and/or user level)...In this case is there any profile name i can use..or i should create a new one...??? ----{I use the MO:Organization Unit to get the business group id/company}.
    Is it possible to acheive the above through the use of a form parameter...(but the question is how to correlate the specific to an organization unit responsibility to a code representing this unit (inventory N234) without the use of a profile - as a second manner)...???
    Note: I use 11.5.10 EBS
    Many thanks,
    Sim

    Hi Sim,
    One thing you need to be carefull about is in what context you need the ID of a certain organizational unit. There are different types of orgs that are in play at different times.
    e.g. Operating Unit is the securing attribute for many subledgers such as Order Management, Accounts Receivables/Payables, Purchasing.
    Inventory Unit is relevant when you look at Inventory Transactions, Costing, Planning etc.
    If we assume that you are only interested in INV orgs then whenever you enter a form that deals with inventory related issue the user is prompted to choose an organization and the choice results in setting the context variable MFG_ORGANIZATION for the session.
    If you want to control which Inventory Organization a user or responsibility has access to you go to Inventory > Setup > Organizations > Organization Access. Here you can restrict access by Responsibility. Take a carefull look into the help text to understand implications - I have copied the first couple of paragraphs:
    +You can specify which organizations a responsibility can access by mapping responsibilities to organizations. Once this mapping is set up, a user logging into an Oracle Manufacturing product is restricted to the organizations mapped to the responsibility chosen. The Change Organization window is restricted as well.
    Attention: Until you assign an organization to a responsibility in this window, all responsibilities have access to all organizations. Once you have restricted any responsibility to an organization, you must then explicitly define the organizations which all responsibilities can access.
    Attention: This feature does not restrict access once the user is in the product. Users with access to functions that cross multiple organizations (such as ATP, Inter-organization Transfers, Item Search, Multi-organization Quantity Report, and so on) can still specify any valid organization when running these functions.+
    /Niels LM

  • MB5B Movment type and storage location is reset

    When I run the report MB5B with radio button "valuated Stock" active for a specific Plant and Movement Type, I get a Message "Movement Type is reset" and then the entered Movement Type disappears from the selection criteria.
    However the report does not give me this message when the radio button "Storage Location/ Batch Stock" is active.
    Also, When I run the report MB5B with radio button "valuated Stock" active for a specific Plant and Storage Location, I get a Message "Storage Location is reset" and then the entered Storage Location disappears from the selection criteria.
    However the report does not give me this message when the radio button "Storage Location/ Batch Stock" is active.
    Please tell me why does this happen when the radio button "valuated Stock"  is active ?

    Dear All,
    I am facing the problem as said in the thread.
    My two queries are as follows:
    Query 1:  In MB5B report When we select the valuated stock option ,We are unable to use movement type , storage location in the selection criteria nad getting the below messages.
    M7284 - Storage location is reset.
    M7298 - Movement type is reset .
    Query 2 :In MB5B report total receipts and total issues is showing incorrect values.
    Here say for example I prepared the grn, cancelled the grn and again made the grn. Here total receipts is considering in such a way that all the grn quantities are considered. and cancelled documents are considered as issues.
    ie  have received material = 100 Nos 01-12-2009
    cancelled grn:100 Nos
    Redo grn:100 Nos
    Done transfer posting 415 Q = 10 nOS = 02-12-2009
    Issued = 10 nos = 02-12-2009
    In mB5B 01-12-2009 to 02-12-2009
    We are getting Opening stock= 0 which is correct
    Total receipts = 100(GRN IST TIME)+100(GR SECOND TIME) +10(TRANSFER POSTING)=210
    Total issues = 100(CANCEL GRN)10(TRANSFER POSTING)10(GOODS ISSUE) =120
    Closing stock = 90(CORRECT)
    Here actual recipt: should be 100
             actual issue should be 10
    Here though the closing stock is correct , 415 transfer posting is considered as issue and receipt.Becoz of this total issues quantity report is going wrong.
    Please give your valuable suggestions to the above two problems seperately.
    Regards,

Maybe you are looking for

  • Black ink cartridge on photosmart printer 7250 not working

    the black ink cartridge on my photosmart 7250 printer is not working.  I've tried everything.  I've aligned the cartridges and tried reprinting several times to see if the ink cartridge will start printing.  Everything has failed.  Does anyone know h

  • MS AD in SAP EP SP12 (groups are found but not users)

    Hi, I have a problem with configuring MS AD for SAP EP SP12 (6.40). At the moment, in the portal I cannot logon with my AD users, but I can search for groups in AD. I've tried various different .xml config files, but now I am using the same settings

  • Video problem with Satellite X200-25G (PSPB9E)

    Hello I'm having this laptop about a year, and I have this problem with Windows Vista (genuine), Windows XP (with modification with video driver). Video driver is newest without problems, except one. I'm working with SolidWorks, and the problem is on

  • Not working in jspx page

    Hi., I am using jdev11.1.5 I had created a EO [Finyear] with that corresponding VO I had created a VO [finperiod VO name] using read only Querry with the given querry select distinct fp_bu,fp_year,fp_period, decode(gdh_status,'R','Yes','No') distribu

  • Do we require an OLTP DB and Data Mart?

    Our data sources are as follows: - An mdb file (downloaded every hour) - Multiple xls files (downloaded every week) Our aim is to develop a BI solution using BISM, Data Mart, OLAP cubes etc. From my understanding, we do not necessarily require an OLT