Inactive stock

Hi - Below is my original thread with the solution kindly provided by Gordon.
Client needs a report for inactive stock - that is any stock that has shown no movement for a certain period in the past
(sales orders, deliveries, invoices, credit notes).
The fields required are - ItemCode, ItemGroup, Warehouse, Last Purchase Price, StockValue
The standard report in SBO (Inactive Items) does not give all the required info and I have no idea how to go about this.
Can anyone help with a query please?
I forgot to mention that the client is on FIFO and Gordon provided the query below -
SELECT T0.ItemCode, T2.ItmsGrpNam, T0.WhsCode, T1.LastPurPrc, T0.OnHand*T0.AvgPrice 'Stock Value'
FROM dbo.OITW T0
INNER JOIN dbo.OITM T1 ON T1.ItemCode = T0.ItemCode
INNER JOIN dbo.OITB T2 ON T2.ItmsGrpCod = T1.ItmsGrpCod
WHERE T0.Onhand > 0 AND T1.ItemCode NOT IN (SELECT Distinct T3.ItemCode
FROM OINM T3 WHERE T3.DocDate Between [%0] AND [%1]
AND T3.TransType BETWEEN 13 AND 17)
My concern is the following - The client changed over from 'Moving Average'  to 'FIFO' about  2 years ago. Is the 'stock value' still determined by multiplying Onhand with AvgPrice in case of FIFO? I have noticed that there is a field 'StockValue' in OITW. Won't that field be the correct one to use in the above query?

Hi,
By FIFO method, you should first track last remaining qty in the OINM table. Total value will be sum of Price * Qty of every remaining FIFO layer (just like FIFO concept).
Cheers

Similar Messages

  • Inactive Stock query

    Client needs a report for inactive stock - that is any stock that has shown no movement for a certain period in the past
    (sales orders, deliveries, invoices, credit notes).
    The fields required are - ItemCode, ItemGroup, Warehouse, Last Purchase Price, StockValue
    The standard report in SBO (Inactive Items) does not give all the required info and I have no idea how to go about this.
    Can anyone help with a query please?
    Regards

    Dear Mr Gijzen,
    I wrote the wrong report name. I was thinking about the Inventory Valuation Report.
    In the selection criteria you can choose Calc. Method by Price list and choose Last Purchase price under Price source.
    The columns of this report are the warehouse, the item, the quantity, the cumulative value according the criteria you have previously chosen and the system date.
    Please, note that this report is used for managerial reasons and will not update the change the valuation method chosen for the items.
    Apologies for the previous mistake.
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • Deactivation and Deletion Flag

    Hi guys
                 what is the difference between deletion flag , deactivate and mark deletion and what is the impact of these status ?
    regards

    Hello Jitendra,
    Apart from it if we take the example of technical object then
    If you inactive it then u will not be able to do the following function
    Assignment to delivery     
    Assignment to inspection sto
    Blocked condition          
    Copy partners - delivery   
    Copy partners - order    
    Create Equi under construc
    Delete assign. to inspectn
    Delete assignment (Bump/Ve
    Delete assignment in quote
    Delete assignment to deliv
    Delete assignment to order
    Deliv to custmr retn packa
    Deliv. to customer consign
    Delivery note assignment 
    Delivery to Customer: Canc
    Delivery to customer     
    Dissolve equipment hierarc
    Enter PM processing data 
    Goods issues             
    Goods receipts            
    Handling unit assignment  
    Inwd movemt to consgnmt  cu
    Inwd movemt to custr retn p
    License split             
    License split (new license)
    Lock PRT from use         
    Order assign. (version chg.
    Order assignment          
    Order assignment  (bump)  
    Outw movemt fm consigmt cus
    Outw movemt fm retn pakg cu
    PP order assignment       
    Quote assign. (version chan
    Quote assignment          
    Quote assignment          
    Quote assignment (bump)   
    Release PRT for use       
    Release equipment for use 
    Return    fm custr consignm
    Return    fm custr retn pac
    Return to stock           
    Rush order (bump)         
    Rush order (version change)
    Service contract assignment
    Set object inactive       
    Stock transfer            
    Stock transfer (one-step) 
    Structure equipment hierarc
    Use production resources/to
    And after You put the deletion flag then  at the time of archiving process this will be archived from the system.
    Similarly for the order and notifications the last point applicable.
    For maintenance plan it is already being explained.
    Regards
    Naveen

  • Inactive Item report to show Item bought within a specific period and not sold within a specific period by whse and have stock

    Hi
    I'm trying to come up with query report to show Inactive Item bought within a specific period and not sold within a specific period by whse and have stock
    The report should show  Item Number, Item Name ,Item cost,Retail Price [Based on a price list], Qty in Whse, Last Purchase Date, Last sale Date etc.
    e.g item bought between 2011-2013 and have not been sold with the same date range or the last 12 months.
    Regards
    Brian Ndunda.

    Hi,
    Try this query:
    SELECT T0.[ItemCode], T0.[ItemName], T0.[OnHand], T0.[AvgPrice], T0.[LastPurPrc], T0.[LstSalDate] FROM OITM T0  left JOIN INV1 T1 ON T0.ItemCode = T1.ItemCode left JOIN OINV T2 ON T1.DocEntry = T2.DocEntry WHERE T1.[Quantity] is null and  T0.[OnHand] >0 GROUP BY T0.[ItemCode], T0.[ItemName], T0.[OnHand], T0.[AvgPrice], T0.[LastPurPrc], T0.[LstSalDate]
    Thanks & Regards,
    Nagarajan

  • Macro 'Target stock level (BW)' is inactive

    Hi Experts
    I got an error in a background job "Macro 'Target stock level (BW)' is inactive"
    Kindly help me how to resolve it
    Thanks
    Samurai

    Hi Samurai,
    As the error suggests that macro is inactive - Can you please check the macro in corresponding planning book/data view in Macro Workbench in transaction /SAPAPO/ADVM
    Check there if the macro is inactive (Red Mark) - If inactive, then please activate the same and then check the background job by running it again.
    Hope it helps.
    Regards,
    Alok

  • OSX inactive memory management problems

    On my 2010 Macbook Air 11" running OSX 10.8 Mountain Lion, I have run into some major issues with memory management. This problem persists across both my Mac machines and multiple generations of OSX. I have a 2007 2.2 Ghz Core 2 Duo Macbook Pro Running Lion (upgraded from Tiger) with 3 gb 667Mhz DDR2 RAM and my 2010 Air 1.4Ghz Core 2 Duo (Upgraded from Snow Leopard to Mountain Lion) with 2gb 1067mhz DDR3 RAM. On both machines, for some time now, during normal usage; especially web browsing using Chrome and Safari (respectively); the inactive RAM on both machines will grow to consume around 30% of all RAM and force time consuming page outs to the mass storage drives on both machines. The Pro has a slower hard drive and the problem is the worst here, the air has a much faster SSD. I have found myself constantly having a window of Activity Monitor up on at least one of my desktops watching my RAM usage, using terminal to purge ram upwards of 10 times an hour to prevent costly page outs, especially on the Pro. I know Apple claims that inactive RAM is essentially free RAM that is temporarily storing recently used information for ease of access later and that it's supposed to be released as free memory when needed, but this obviously is not happening. Right now on my air my swap file is over 650Mb and I've seen it top 2Gb before. The air is exponentially better than the Pro due to the faster SSD, but I do notice substantial UI lag and a massive drop in fluidity as soon as my meager 2Gb is full and I start paging. The Pro is another story entirely, the entire system will essentially become unusable, having to wait several seconds for mouse clicks to even register. That's why I upgraded the stock 2Gb of RAM it comes with to 3Gb hoping that a 150% increase in RAM would help, but it just prolonged the inevitable. I still end up paging out just as bad across both systems if un checked. Even when I keep a close eye on memory usage and purge often, I still end up paging out because I'm not vigilant enough.
    I have to limit my browsing to less than 5 tabs and keep my number of open programs less than 2 on both machines. My active and wired memory rarely seem to top 70%, meaning the rest gets taken by inactive, which isn't functioning as Apple claims. Even if my conclusions aobut what is happening under the hood are incorrect, something is going terribly wrong. I can't upgrade the RAM on my Air at all, and the RAM on my Pro is capped at 4Gb. I'm holding on upgrading because I don't think the excess hardware will solve this software memory problem. Whatever is happening is causing a serious drop in performance for me (yes I do know I have underpowered machines), but there has to be something I can do to speed performance. I've read about disabling the dynamic page file entirely, which just seems to crash the system when free memory is gone, and I've read about programs that claim to free memory. Those programs seem to work by taking a high priority in the process heigharchy of the OS and then proceeding to eat up large portions of RAM and releasing them as needed in an attempt to replicate the true intentions of inactive RAM, but I've heard of problems with this method as well. Does anyone have a viable solution? Monitoring my RAM usage myself and ensuring I don't end up paging out is costly, time consuming, annoying, and inefficient since I fail to catch the problem before I page if I get particularly busy. There is no other OS I've ever been acquainted with that has this problem, not any flavor of Linux, not even the dreaded windows. I seriously hope Apple can do something to manage this runaway memory problem. I'd like to be able to open more than 3 windows in Safari. I've had to purge 3 seperate times while writing this on my Air, and I now have 678 inactive memory, 741 inactive, 582 wired, and less than 14Mb free out of 2Gb with a growing swap at 680Mb. Each purge becomes less and less effective and the last one I did freed up only about 100Mb and it got eaten up again by inactive in less than 10 seconds. On my Air, the memory hog is Safari right now at 700Mb between the web content and flash player with only Facebook, youtube, and this Apple Supprt tab open. I have NO other applications running in the fore or background other than Activity Monitor and Terminal. On my Pro the memory hog is always kernel task, I use Chrome and Safari both. While the memory used by the browser does not usually take up the most substantial portion of the total used RAM out of any process, the more tabs I open, the more RAM I use. The browser is usually the second heaviest RAM hog to Kernel Task. So it seems that across the two machines there are two lsightly different manifestations of the same problem with the same results: massive performance drops and extremely annoying and costly page outs no matter the reason. I just want this problem to go away. I've used underpowered windows laptops that can open a dozen tabs in a heavier browser like IE or Firefox while using other programs like Word or Excel and more with no memory lag issues. There's no way in **** I could manage to open that many pages in a browser while using Pages and/or Numbers on either of my machines and expect reliable (swap free performance). This is just kind of sad in my opinion. Does anyone have a way to get my OSX machine running smooth so that I can remove the one thing that windows and Linux fan boys get the right to laugh at my Macs for?

    Hi Zephryl,
    I was actually able to get an initial response from Sun on this a few months ago. However, the Sun Swing team has not followed up on a resolution for this pervasive problem, even though they noticed the same problem when running a test applet I had created for them. Apparently, I.E. is not releasing memory from the heap.
    Below is a quote from a Sun rep. on this in an e-mail sent to me on Dec 4, 2002:
    "I suspected the leak is in the native code because the # of handles and GDI objects keep increasing but no obvious Java objects are left behind in the Java heap during page switch."
    So, until Sun and/or Microsoft work out a solution to this, anyone who uses I.E. 6 and applets for their UI seems to be in a lot of trouble.
    As a note, trying to invoke the Garbage Collector does not do anything, but generally a very small amount of memory will be released (like maybe 5-10% of the memory allocated for the applet).
    Cheers!
    Avi Gray
    Global Computer Enterprises

  • Goods Receipt of a material in Quality aswell as Unrestricted stock

    Hi All,
    When receiving material against PO from different vendors ,stock from few vendors should go into Quality stock whereas receipts from other vendors should be received into Unrestricted stock.
    Please suggest how to achieve this.
    Regards

    Hi,
    Thanks for your replies but i had made the selections as per senthil's suggestions but still the Inspection lot is being created and the stock is posted into Quality.I am not sure which CTRL Key to select i have tried the underlined ones from below ..should i be selecting some other key and are there any more settings that need to be done.
    0000 No active functions
    0001 Vendor release (with Warning)
    0002 Vendor release, tech. delivery terms
    0003 Vend.release, tech.del.terms, QA agreem.
    0004 Vend.rel,TechDelT.,QA agreement,certif.
    0005 Vendor release, certificate
    0006 Delivery release, documentation required
    0007 Delivery release, invoice block
    0051 Vendor release, certificate,Inv Block
    0052 Vendor release, Inv Block
    0053 Inv Block
    0054 Vendor release, certificate, error mess
    0055 Vendor release, certif, inv block, error
    0056 Vendor release (with Error)
    0057 Certificate,Inv Block (with Warning)
    0058 PBB - VenRel/Cert + Sub Spec Mgmt
    0059 PBB - VenRel/Cert + Packing/SMI
    0060 certificate required
    8888 Vendor block inactive
    9999 All functions active with error message
    Regards

  • Close Open STO with inactive plant

    Hello Experts,
    I have an issue in closing one STO. This STO was created in 2000, and no further action was taken since 2001. All the items in this STO (total of 20 items) are flagged for deletion. And the supplying plant in this case is inactive (not to be used) since many years now.
    Out of those 20 items, 15 are completely delivered with proper GR entry. 4 are partially delivered and 1 item is yet to be proceeded with delivery (no PO history).
    Whenever I tried to change this STO (to mark delivery completion indicator), it gives me an error of "Material is flagged for deletion, no shipping data found for material". And this is for all the line item materials.
    Even I'm unable to lock those line items.
    Please suggest some way to close this STO.
    Thanks a lot in advance,
    Anurag.

    Thanks Jurgen.
    There is no stock in transit for any of the line item.
    Perhaps, it is not allowing to delete those line items who have delivered qty by shipping is same as PO qty (via outbound del), but not yet shipped (partial GI) and also not received (partial GR).
    How to conclude on this situation?
    Thanks a lot for your help,
    Anurag.

  • Stock posting in block stock after grn for source inspection

    Hi All,
    I have following scenario
    I am doing source inspection at vendor site i have maintained control key 0005 in material master & necessary certificate with certificate check required at GRN & UD stage
    i am creating a source inspection lot for a release po through t.code qi07 & then processing that lot before GRN
    Now when i am doing GRN for same PO it is giving me the following message  stage
    <b>A category ZC01(user sp. category) inspected certificate is required</b>
    Message no. QA312
    Diagnosis
    An inspected certificate must exist at the first goods receipt for a purchase order item.
    Procedure
    Check whether a suitable certificate exists for the purchase order and delivery, and create a certificate record with the status "Certificate checked and stored".
    If there is no certificate or no suitable certificate, this does not comply with the requirements in the material master record. If there is no inspection lot for this goods movement, the system posts the quantity to blocked stock or does not post the goods receipt.
    If you have created an inspection lot, the system marks the certificate check with the status "In lot". You must confirm the availability of an inspected certificate by the time you make the usage decision.
    after doing the GRN stock is being posted to block stock
    if i do not process the source inspection lot then the stock is posted to quality stock but this does fulfill the requirement of source inspection
    plz suggest soultion
    It's urgent
    Regards
    Ashutosh Shende
    9860681314

    Hello Ashutosh,
    In the material master you have defined certificate type with the customizing setting indicator for  'Enhanced Certificate Processing' active.
    If you set this indicator, extended certificate processing is active for
    this certificate type. You can then manage the inbox for quality        
    certificates independent of the goods receipt.                          
    The electronic inbox of certificates for the purchase order is only     
    possible if this indicator is set.                                                                               
    This means you have to create a certificate in QM (Transaction QC51),   
    before you can update your PO with cert. enclosed.  
    If you do not want the enhanced certificate processing you have change  
    the indicator into inactive.    
    Another problem known here is if you have activated the 05 Inspection type in the material master, that it is not activated in all plants relevant although QM in Procurement is set in all plants.                                        
    I hope that this resolves the described issue.
    Regards,
    Isabelle

  • Non-Moving /Slow Moving stocks

    Hi
    Is any Standard Oracle Report available which give
    us the Sub_inventory wise/Item wise stock which are
    not moved (i.e. No transactions are happening since a
    given date).
    I hv check the Inactive Item Report available in
    Inventory. What is exactly this report ?
    Can anybody help us.
    Regards.
    Navdeep

    hi,
    The reports gives you an idea abt which stock is not used from many days or which is not even used or had no movements for the same...When you see the report you can give the periods in between which the system evaluates the materials movements...if the material has no movement in the given period it is called dead stock...and if the material is consumed out of it for given period then it is called slow moving stock..
    Pls check both the reports carefully...
    Check MC46 - slow moving items
    MC50  - Dead stock(You can say dead stock as non moving stock )
    If there is no selection shown by the system then it means that all the material/stock is used properly on time and is consumed properly...
    Regards
    Priyanka.P
    Edited by: Priyanka Paltanwale on Dec 2, 2008 7:27 AM

  • Maintaining Item Stock Project wise.

    Hi All,
    I am implementing SBO 2005 B for the Project base company. They get the order & each order is treated as a Project.
    Now the question is material tracking is required Project wise i.e. which item is available & under which Project.
    Scenarios are:
    1. Project wise stock should be available.
    2. Transferring the Stock from one project another (i.e. if material is not required for the particular project)
    3. At the time of delivery the item should reduce the stock from the Particular Project as selected.
    In all the related transaction at line level I am capturing the Project code.
    Currently work around planned is to maintain the Stock warehouse wise i.e. for each Project a separate warehouse is to be created. (In this case can we make the warehouse inactive after the project is completed, so that it will not be available in any transaction)
    Kindly let me know the details & solution for above.
    Thanks & Regards,
    Yogesh Jadav.

    Dear Yogesh,
    I would like to throw light on a couple of things you want to achieve.  Certainly Projects are a great way to handle AR and AP transactions.
    Since this is also extending to inventory in your case, adding Warehouses for each project can probably work but you should also consider the long term impact on the Business One application.  Let us say you have 100 projects in a month, will you scenario require creating 100 warehouses.
    If so, managing warehouses would become a daunting task.
    If possible please share with my a little more in details the inventory side of business and I shall be glad to help you.
    Best wishes
    Suda

  • Inactive Items

    Hi all,
    What are inactive items by SAP.
    when I run inactive items from inventory reports by giving date range as 1 mar - 2008 till date with
    quotations
    deliveries
    orders
    down payments
    and invoices check boxes selected.
    the reports lists me 2500 items. some of them are in stock and some of them are not in stock.
    In order to cross check i dragged few of the items on order , invoice and delivery and i found the transactions.
    All those transactions were old transactions.
    Now if i want to delete those items which are not in stock then how do i delete them ?
    by passing delete from oitm from query generator won't be of any help.
    There are related tables from where the same has to be done.
    Pls. help me in this
    Thanks
    Malhaar

    HI
    Items will become 'Inactive" when you assign any Inactive period for that item in item master data...
    The item also become 'inactive' when the 'Active period' got expired for that item..
    You will find that active and Inactive period for that item in item master data..
    People will be using this for specific purpose.....
    You don't need to worry about the inactive since it wont affect your Inventory Audit Report....
    and it wont appear in any of the transaction...
    you cannot delete those items when the transactions has been posted to that...
    Don't delete anything from back end in B1 tables it will lead to serious data inconsistencies and lose your SAP support
    Edited by: kambadasan on Jun 13, 2011 5:15 PM

  • Stocktaking and inactive items

    Hello Everyone,
    Like a lot of businesses we have been having problems with the change of treatment of inactive items in SAP B1 8.8, we are now preparing to take stock and have found that whilst the stock audit report will show inactive items readily, the stock take screen under initial quantities/stocktaking/stock posting does not show the inactive items.
    We do have stock of some inactive items and therefore need to count them, but the absence of the items from the above function makes the job difficult. has anyone else come across this issue and found a workable solution???
    Thnaks in advance for your help
    Dave Jackson

    Thnaks Gordon, just what I needed, I was picking up the incorrect field to describe inactive, have modded the query to get to individual wharehouses so it ends up like this
    SELECT T0.[ItemCode], T0.[ItemName], T0.[frozenFor], T1.[WhsCode], T1.[OnHand] FROM OITM T0  INNER JOIN OITW T1 ON T0.ItemCode = T1.ItemCode WHERE T0.[frozenFor] = 'Y' AND  T1.[OnHand] > 0 ORDER BY T1.[WhsCode]
    Suprised that SAP basic functionality doesnt allow inactive items to be counted though!  that should focus attention on obsolete stock!!!
    Thanks again for your help
    Best Regards
    Dave Jackson

  • Block Stock

    Hello together,
    In our plant QM is inactive.
    When we do good receipt the material goes to Q stock. Then Qality person checks the material and if he find the rejection then he uses the movt type 350 & transfer the material rej. material to block stock.
    But when our account cleak does MIRO then evn though the material shows in block stock he can able to do the MIRO.
    Now i want your help that i want to restrict MIRO if the material is in block stock.
    Or istheir any other confiuration so that while transfering the stock from Q stock to block stock, i can able to do with respect to purchase order ( 350)
    Please suggest me the best solution so that i can avoide MIRO if the material is isn block stock,
    Thanks in advance,
    Shailesh

    While stock Transferring from Quality to Rejected Refer Purchase order number in MIGO Transfer posting or MB1B transfer posting.
    Regards,
    Ashok

  • QI Stock without Insp Lots

    Hi QM Champs,
    My problem is that as per requirement of my client i mapped Inventory Posting VMENGE08 to post Other Quantity( NON-Valuated stock ) to Un-restricted use stock with movement type 311 from Q stock specified in QM config. This scenario is running fine in development and quality Servers, but after Live when i look at the posting done at VMENGE08 are gone to Quality Inspection Stock and there is no Inspection Lot for that.
    Is there anything gone wrong ??
    Sanjeev Sehgal

    My guess is that in your develpment/quality systems, the tick box for "QM inactive" is ticked on for MT 311 while in production it is not.
    Please check that in config for material movements.
    If you look via QA32 for lots with a CRTD status I suspect you'll find some '08' inspection lots sitting out there.
    You might have the material mastes set up differently.  It might be possible that you have the 08 inspection type set up in production, but not in the development/quality systems.  And it may be that the 08 SHOULD be set up for other business processes so that doesn't mean that is really wrong.  Only the business would know that.
    Craig

Maybe you are looking for

  • Help with Kernel Panic log

    I've been troubleshooting intermittent kernel panics that have been happening on my late 2013 27" iMac. I had upgraded the stock RAM with 32 GB of RAM from Crucial and in the past the only time I have had similar issues was because of faulty RAM. So

  • Reading a fixed length file

    Hi All, I am trying to read a fixed length file with .DAT extension through an FTP Adapter. I am using a read(polling) operation. In the file there are three records(H,D,T). The length of all the three records is more than 100.When I am trying to bui

  • Upload problem in Safari with Flash Player

    Hi All, Had this problem for ages and was thinking to sort it out now. I can't upload files thru flash uploader such as google email, soundcloud and other sites. Getting following error messages: Google - Attachment failed. This may be due to a proxy

  • Missing media that isn't missing... FCPX (10.1.1)

    I recently got an updated copy of my web series back from my director/editor who had been working in Final Cut Pro X (10.1.1).  I was using FCP 10.0.9 so before trying to open the file on the hard drive he'd sent me, I upgrade to the latest version o

  • Run-time error '7': Out of memory - Cisco Clean Access problem

    Hi all, I hope this question is in the appropriate place. I'm trying to use my company's vpn service. Here's how the process should work: 1) Log on with username/password using Cisco AnyConnect VPN Client 2) Log-in to the portal. During this step the