Query for Material Received Vs Material Return

Good Afternoon Experts,
How much cumulative Qty received update date for a particular warehouse  -- Item Wise  and returned Qty from a particular warehouse vice versa. Please help me in writing this Query.
Regards,
Umamahesh.

Hi Uma,
As Julie said, try to use System's report.
Since querying OINM table requires more system resources if your database size is large.
If not so, then you can try this query,
SELECT T0.[ItemCode], max(T0.[Dscription]), T0.[DocDate], sum(isnull(T0.[InQty],0)) [Receipt], sum(isnull(T0.[OutQTY],0)) [Issue],T0.[Warehouse] FROM OINM T0 where T0.DocDate >= [%0] and T0.DocDate <= [%1]
Group by T0.[ItemCode], T0.[DocDate], T0.[Warehouse]
Order by T0.[ItemCode], T0.[Warehouse], T0.[DocDate]
Regards,
Bala

Similar Messages

  • Plan query for hierarhial queries inlude materialized views?

    I have this problem;
    I have a tree with more levels . In nodes of this tree I have a I have a measure . For leafs I have MV . What's happend with non-leaf nodes? Querying this measure for non-leafs nodes use MV from leafs?
    Thanks in advance,
    Aurel

    Hello Daniel,
    Even this problem seems a olap one , I think is choosing an execution plan one. Please have patience :)
    I have a 10.2.0.3 Oracle Database and I want to build an OLAP (ROLAP more exactly) application for one client of the firm I work for.
    I have 2 dimensions , time_dim and products_dim and a cube(sales) with these two dimensions and a fact table .
    Aggregation on products dimension is a little dificult.
    I have three tables : products,hierarchy and productsXhierarchy
    Hierarchy has a hierarchy
    create table Hierarchy(
         id number,
         name varchar2(30),
         idOfParent number,
         path varchar2(30))
    obviously path column is redundat but this structure is legacy.
    Data look like bellow
    217158 name1
    234154 name2 217158 name1
    345671 name3 234154 name1 -> name2
    134567 name4 345671 name1 -> name2 -> name3
    134568 name5 345671 name1 -> name2 -> name3
    134569 name6 345671 name1 -> name2 -> name3
    Products table is
    create table Products(
         idProduct number,
         nameOfProduct varchar2(30),
    Data look like
    10001 nameofproduct
    The last table is an intersection table of the first two tables
    create table productsXhierarchy{
         id number,
         idhierarchy number,
         idProduct number)
    data looks like
    1345 134567 10001
    1346 134567 10002
    1347 134568 10002
    1348 134568 10002
    1349 134569 10002
    Unfortunatelly hierarchy table is a large table , about 8000 records .
    There is applicable a solution with materialized view in this case? I though to build MVs only for products ie rows in Products table
    My question is : for an intermediate node in hierarchy ie rows in Hierarchy table , lets say name3 row , for calculating sum of sales for this category optimizer will choose to use MVs for products in this category (ie products in m4,m5,m6 categories - 1345,1346,1347,1348,1349)?
    Thanks for your patience for reading this,
    Aurel

  • Query for Customer Receivables Aging Report

    What is the query to the Customer Receivables Aging Report? I cannot seem to reproduce the same results that SAP has in my Crystal Report.
    Thanks

    To reproduce it by query would not be an easy job.  Crystal Report is a better tool for report.
    Thanks,
    Gordon

  • ICM SQL QUERY FOR CALL RECEIVED

    I am in need of a report detailing all calls received into call center for the duration of FY13
    with as much data that can be retreived is appreciated, but minimum needed data points are as follows:
    Date, Time, Call Direction, Calling Phone Number, Receiving Agent, Skill Group

    Dear Anupma,
    Try below query
    select * from Termination_Call_Detail where DateTime between ''start date' and "end date"
    you can refer the ICM DB schema for the field description.
    Date Time format as 2013-09-22 00:00:00
    hope above will serve your purpose.
    Regards,
    Shalid K.C
    Rate usefull posts...

  • IOS 5 OTA: Device query for mac address

    Device query for attribute "MAC_ADDRESS_EN0" doesn't return any value on iOS 5. It use to work fine on iOS 4. Does anyone know the new attribute to query mac address on iOS 5. Appreciate any help.
    Thanks,
    Juzer.

    That attribute was deprecated in iOS 4, and has been removed in iOS 5. There is no replacement for it.

  • Movement type for customer supplied packing material returns

    Hi,
         The scenario is like this,customer will give the packing material to the company.Company does the service required  &  return that packing material to customer.Presently we are using 624V movement type can you suggest some other movement type for this.
    Regards,
    Rajesh

    hi,
    this is to inform you that,
    if customer is supplying the packaging material to us receive it through 501 - M and Issue 502 - M, manually if you want to track the packing material wise take the material into NON VALUATED ITEM.
    you can create a Z report for the same and the fields in that is,
    material number, packing material associated with that, quantity received thru 501 - M and consumed against 502 - M and GI quantity.
    balajia

  • Stk posting change for Material received in movement type 101

    Experts,
    A material received in Mov type:101 / Inspection type : 01 and rejected during Inspection was posted in To Reserves instead of Return Delivery.
    How to change the posting to Return delivery stock from Reserves stock.
    Regards,
    RPV.

    Dear,
    First check reservation is created against reserv stock of material.
    You can check reservation with MB23.
    If yes than delete it first and than create return delivery for material with MIGO.
    Regards,
    Mahesh Wagh.

  • Purpose & Net Value of Return PO - For Damaged or Recycled Material or both

    Dear all
    As far as I know about the Return PO, they are summarized as follows:
    Examples for returns for purchase order:
    . You procure filters from a vendor. You return the dirty filters to the vendor for recycling.
    . You have agreed with your cable vendors that you can return cable remnants to them. You then receive a credit memo for the value of the copper contained in the cables.
    This is always happen after we have posted Invoice Verification (MIRO) in the system and make the Outgoing Payment (F-53).
    Question 01:
    Does return PO cover both scenario such as
    (a)Return the damaged material to vendor which we discover its defect after invoice verification or post outgoing  payment has been made?
    (b) Return the recycle material to vendor after invoice verification or post outgoing  payment has been made?
    Question 02:
    We are using Info Record for the material.
    (a) In the case of Return the damaged material to vendor, the return PO will have the net value suggested from info record
          and it makes sense since we want our AP (account payable) to be reduced.
    (b) In the case of Return the recycle material to vendor,  the return PO will have the net value suggested from info record but
          iit makes no sense as vendor will not agree to have the recycle material same price as the first purchase price.
    Please advise.
    Thanks.
    Edited by: Daimos on Oct 12, 2009 3:28 PM

    Hi,
    Q-1
    a) Return the damaged material to vendor which we discover its defect after invoice verification or post outgoing payment has been made?
    For damaged returns, you need to cancel the Gr Posted , movement type  102 and thenreturn it to vendor using movement type 122. So return P.o. function is not applicable here.
    b) Return the recycle material to vendor after invoice verification or post outgoing payment has been made?
    Yes , for recycled material as stated by you it is applicable.
    We use  return purchase order, when purchase order is made. Here we tick the Returns indicator in the item overview of purchase order screen.Movement type for return indicaort is 161.
    Also would like to add a example here;
    Q-2) In the case of Return the recycle material to vendor, the return PO will have the net value suggested from info record but
    iit makes no sense as vendor will not agree to have the recycle material same price as the first purchase price.
    Supopose you order a printer cartridges from your vendor for which you are creating retun P.O. then you must define top two material number one with full printer cartridges, for which you pay vendor and other material number for empty cartridges for which you create a credit memo when you return them..
    So when here you can create a Purchasing info record for empty cartridges with a price agreed with your vendor, and can create a credit memo.
    So now you have two info records one for full filed cartridges and other one for empty cartridges . So price issue will ntoa rise.
    Regards,
    Tushar Patankar
    Edited by: Tushar Patankar on Oct 13, 2009 11:47 AM

  • Help needed in query for Materialized View

    Hi,
    I want to create a materialized view which has some precalcultaed values.
    I have four dimension tables out of which one is a Time Dimension table with levels as Year->Quarter->Month.
    The precalculations are the moving averages and cummulative values of Sales Amt on the dimension values over a period of 4 Months.
    The dimension tables are Clients, Products, Channel, Time.
    Fact Table is Sales_Fact which will have the sales amount for different members of the dimension.
    Since my fact table is very huge, i want to create a materialized view where i could store the required calculated measures, here Moving Average of Sales Amt for each Client, Product, Channel dimensions over a period of 4 Months.
    Can anybody help with writing the query for this..Any help in this regard will be appreciated..
    Please give me suggestions for this..

    Check this link.
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14223/aggreg.htm#sthref1612
    Regards
    Raj

  • How to find the material received in warehouse for work order through table

    Dear All ,
    I am creating alerting system We have  requrirement that if the notification or work order is pending for 10 days then alert to be sent to planner and 20 days to his senior and 30n days to his senior
    We have created FM for this  every day program will run and check open work orders and notification pending for some days
    Now my question in the FM I want to add fields for material receipt
    Idea is say for refuebsihment order pending material is received in warehouse now when this is received alert to be send in the work order planner that material is arrived
    From which tables I can track this and how to know for the alerting system that material is arrived in warehouse so alert to be send
    please reply
    Regards
    pratap
    Edited by: Pratap bhikai  Ingole on Jun 5, 2010 9:20 AM

    Hi ,
    With reference to your second point , if your looking for some alret then whenever you have goods receipt or goods issue of stock material you can have a mail triggerred through workflow .. in our project what we did was , we had a user status ALMR - All Material received and this is SET by a  Z programme which checks whether all stock materials or non stock materials against the order have been received and sets the user status and this programme is run as a batch job with 30min frequency ....
    regrds
    pushpa

  • SAP query for Material pricing group changes in material.

    Dear all,
    I'm trying to generate a query for Material Pricing group changes in material. For that I've to retrieve data from follwing three tables MVKE, CDHDR & CDPOS.
    Firstly while generating infoset -
    I tried it by joining tables MVKE & CDHDR, but system is not allowing it, also table CDPOS can't bejoined.
    Then I tried by reading dirctly from table MVKE and then adding additional fields in it. query created using this infoset is giving the output, however it's giving only 1 entry per material entered in input.
    for multiple entries in output for MPG changes in same material I tried creating addtional structure for table CDHDR & CDPOS but again I'm getting only 1 entry per material.
    please suggest how I can get MPG changes done in specified time period for a material.
    Thanks.

    Hi
    Check the report RSSCD100 and run it for object MAT_FULL for table MVKE. Use this report as a template for your own development.
    I hope this helps you
    Regards
    Eduardo
    PD: sorry, the table is DMVKE
    Edited by: E_Hinojosa on Sep 2, 2011 9:37 AM

  • Tutor Material for Account Receivable

    Please help with Tutor Material ( study material) for account Receivable. I preparing to study this module but i do not have a study material. If someone has this material or know were i can download please share.

    Hi,
    It depends what type of information you are after. You can download the Oracle E-Business suite documentation CD from Metalink (or view the library online). In there you will find the Receivables User Guide, Tax manual and API reference guides amongst others (eg. Vertex Integration Guide).
    Outside of the standard product docs, there are several books out there, such as the Financials Handbook (McGraw-Hill) that contain good sources of information for the core financials modules.

  • Customer return for make to order material

    Dear All,
    I am doing return process for make to order material.
    while doing return delivery, delivery qty has not come.
    when i enter it manually it shows error
    Only 0 NOS of material ABC001  available
    Message no. VL150
    Can anyone tell me the solution for this................
    Thanks in advance.............
    Babs

    Dear Babs,
    Pls go thru following thread:
    https://forums.sdn.sap.com/click.jspa?searchID=20199089&messageID=5745458
    Regards,
    Abhee.

  • Query for calculating raw material requirements for the remaining quantities in sale order.

    Dear SAP Experts,
    Clients requirement :
                                         Client wish to know the quantities of raw materials needs to run the production order inorder to complete the remaining quantities in sale order.
    Need Clarification:
                                  I"m using the below query for this requirement. I wish to know whether this query suits for my clients requirement or not. If its so, I need to know how to group by T4.[Code] (Raw material Name)   and need to get the sum of    T4.[Quantity]  (BOM quantity)      and  (T1.[OpenQty]*T4.[Quantity]) as TOTALQTY under each raw material group
    SELECT T0.[DocNum], T0.[DocDate], T0.[CardCode],T0.[CardName], T1.[ItemCode], T1.[Dscription], T1.[Quantity] as salesorderQty , T1.[OpenQty], T2.onhand, T4.[Code] as Raw material Name,T4.[Quantity] as BOMQTY,  (T1.[OpenQty]*T4.[Quantity]) as TOTALQTY FROM ORDR T0  INNER JOIN RDR1 T1 ON T0.[DocEntry] = T1.[DocEntry] INNER JOIN OITM T2 ON T1.[ItemCode] = T2.[ItemCode] INNER JOIN OITT T3 ON T2.[ItemCode] = T3.[Code] INNER JOIN ITT1 T4 ON T3.[Code] = T4.[Father] WHERE  T0.[DocStatus] ='o' 

    You're posting in the Portuguese B1 space.
    You might want to post in the English one: SAP Business One Application

  • Why can't I create a report for standard price by material

    Any ideas? All reporting I have tried in SQO1 and even in SE16 returns 0 value for standard prices?
    Firstly why is this? and secondly is there another way I can pull a report by material showing standard price?
    Points awarded, many thanks

    hi,
    In MM60, u can get report for  materials having standard & moving average price based on ur input in selection screen like material,plant,material type,material group & created by only. As of my knowledge,
    there is no option to get list of materials with standard price in std.SAP.
    There are two options to generate report for materials with standard price.
    1. It is better go for customization . selection screen must contains price control field. if u enter price control like 'S' or 'V' in intial screen , report is generated.
    2. create a ABAP query for this.
    I hope this info is helpful to u.

Maybe you are looking for

  • JMS receiver adapter is red / error?

    hi experts, i have a JMS receiver adapter and the connection to WebSphere MQseries is ok. If i sent message to Receiver JMS adapter i will get following error (red light): The XI message: 14a8be90-e8fc-11df-9103-0016353eb4a3 was already sucessfully p

  • W540 - Get 75Mz Refresh rates on 3k screen?

    The W540 with a K2100 and a 3k screen has a maximum refresh rate of 60Mz. It is not currently possible to lower the screen resolution and get a higher refresh rate of 75 or higher. If I got to Screen Resolution > Monitor Properties > Display All Mode

  • How can I use freehand drawing in a PC?

    How can I use freehand drawing in Adobe Reader XI in Surface Pro 3?

  • Method contruction

    Why does the Return s; statement not compile as 'cannot resolve symbol' it is defined just previously, right? public boolean atimer(int time) {      Date now = new Date(System.currentTimeMillis());      SimpleDateFormat timeFormat = new SimpleDateFor

  • IBM WEBSPHERE EXCEPTION

    I'm getting the following exception while starting the IBM websphere server administrator's console: Exception: Namecom.ibm.ejs.sm.exception.AttributeNotSetException: Name      at com.ibm.ejs.sm.beans.Attributes.getGeneric(Compiled Code)      at com.