Alert for inventory movement

I want to fire an alert when the quantity of inventory goes below the minimum inventory.I created query as
if (SELECT onhand from oitm where itemcode='CHPESS0002') < 1000
print 'The quanatity has gone below the minimum inventory.'
The alert does not fire for the above query.It fires for,
SELECT onhand from oitm where itemcode='CHPESS0002'
I want to fire it for specific condition and display user defined message i.e.'The quanatity has gone below the minimum inventory.

You can try this:
SELECT 'The quanatity has gone below the minimum inventory.',t.onhand
from oitm t where t.itemcode='CHPESS0002' and t.onhand < 1000

Similar Messages

  • Precisely workflow for Inventory Movement

    Dear All SAP Expert,
    I have such complicated problem for our system performance.
    Lately, our system running so slow. Mostly, while our staff generating report inventory posting list.
    For monthly closing references, the other staff i.e :
    1. Purchasing could not open marketing document window (PQ / PO).
    2. Accounting could not create AP Invoice from GR PO.
    3. Even BOD could not generating other report.
    This problem occurred since last years (2014),
    Which is we just run this SAP for least than 2 years (start from mid of 2012).
    Then we ask our SAP Partner for check this problem out.
    Based on their analytic on our SAP Server using RSP,
    Our SAP Server was lack of memory and storage.
    Then referred to their result, we upgrade our SAP Server specification.
    And it helped till January 2015.
    Then our issue come up again, on the previous month (March 2015)
    Our SAP Server performance running down.
    So we contact our SAP Partner for checking this issue.
    They was wondering how could this issue come up again in such short time,
    Meanwhile they predict our SAP Server could handle data processing at least 2 years.
    Since our last upgrade, its just about 7 months.
    Thought our SAP Server specification beyond far for ordinary Retail workflow,
    But as fast as our business growing, it couldn't handle.
    Then our SAP Partner suggest to redesigning our Inventory workflow.
    Here is the problem,
    We are a Fast food Restaurant Retailer. Which is still develop to bigger and more.
    Our Inventory Workflow describe as :
    1. Our Store request their Material (Semi Finish for food and Raw for Non-Food) to our Central Warehouse.
    2. Our Central WH check their stock and send to requestor Outlet in case availability.
    3. WH Admin will create IM document using this method as their delivery.
        But they didn't posting directly to Outlet's WH but Good In Transit WH (As a transit - analogy as out delivering truck).
    4. As soon as delivering truck arrived from Outlet, the driver give the receipt within correction or not (manually adjusted quantity
        - if quantity didn't receive correctly or damaged partially and signed our Outlet's Supervisor Staff)
    5. Referred to revised paper (delivery note), then our WH Staff would create another IM document as finalization delivery note
        Posting our item from GIT (Good In Transit) WH directly to our Outlet.
    This workflow results progressive massively IM document in a years.
    Here is increasing rate our Database since 2012 :
    1. December 2012 : 20 GB
    2. December 2013 : 35 GB
    3. December 2014 : 55 GB
    4. March       2015 : 85 GB
    In case to prevent our SAP Server performance which decreasing to any further.
    Is there any workaround for our Inventory process.
    So that it could decrease our massive Inventory data.
    And increase our SAP Server performance.
    Thanks for your time and cooperation.
    Regards,
    As'ari

    Dear Frank,
    Here is our HW spec :
    Processor : Intel Xeon CPU E5-4620 (4 Core @ 2.20 GHz)
    Memory : 72 GB (2 @ 4 GB Installed on CPU [8 GB] & Additional 8 @ 8 GB)
    HDD : 300 GB (Main Disk for OS Win Server 2012) + 4 TB (NAS)
    RAID : 1 for Main OS & 10 for Data (NAS)
    Database Size :
                    - Primary : 72 GB
                    - Log : 86 GB
                    - Overall : 158 GB
                    - Backup Size (Compressed) : 14 GB
    SW spec :
    OS : Windows Server 2012 R2
    SAP Version : 8.82.075 PL 11
    Allocation for SQL Server memory is default by System : 2,147,483,647 MB
    Also on task manager consumed memory overall 96,60% from 72 GB (68,8 GB).
    Thanks and regards,
    As'ari

  • Error during search for WM movement type (999   E  )

    Dear ALL,
    I am try to reverse transaction 313. i use movement 314 but there is error message during creating delivery. the message is
    "Error during search for WM movement type (999   E  )"
    Could someone help me please ?
    Thanks & Best regrads,
    Saiful arif

    Hi,
    Please check the reference  movement type  in table V_156S_WM for inventory movement 314 and for your case of qty and value update indicators
    For qty updation indicator checked, you will have a reference movement type 3XX and not equal to 999
    for  qty updation indicator not checked, you will have reference movement type 999
    qty updation indicator checked means stock / quantity controlled in which case
    check your set up in transaction OMLR , reference movement 3XX from above table should be assigned to a proper WM movement type 3YY
    then check for WM movement 3YY in Transaction OMLJ which should have source storage  type maintained.
    qty updation indicator not checked means stock / quantity not controlled or updated in which case reference movement type is 999 which has no maitenance in OMLR,  moreover it is no stock / qty and no stock transfers situation
    If 3XX happens to be 999 in your case, then check for 3YY movement in OMLR and check for storage type determination for 3YY in OMLJ
    Please note 999 as WM movement  is used for manual transfer within warehouse but not for warehouse movements resulting from IM.
    Hope this should solve your problem.
    Regds
    Shrihari

  • Is there any way to raise alerts for stock outages in inventory

    Is there any way to raise alerts for stock outages in inventory

    You can use the Check Material Shortages attribute in the Org items under Inventory tab. Oracle will trigger shortage alert notifucations for the checked items. This works in the conjuntion with the Shortage Parameters defined at the Inv ORg level (these parameters are nothing but what business wants to consider as a shortage in WIP and OM). You can notify the cmp planner/buyer , assy planner/job creator..

  • Posting Goods Movement for Inventory Difference

    Hi,
    I need that when posting the Goods Movement for Inventory Difference (WI document, transaction MI07)  it is wanted that the cost center can be different for each storagelocation , it has to user exit or substitution  ?
    Regards
    Dayana

    it is posting to particular G/L Account based on your movement type and account determination

  • Querry based alert for minimum inventory

    Dear All,
    I want to set an alert for minimum inventory. for that alert i want to set a querry.
    If there are 10 items in my stock and my minimum inventory is 2. Now if i am going to creat sales quotation or sales order for 15 quantity thn it will have to show me alert popup for creating Purchase order. please help me to create such querry.
    Thanks & regards
    Swapy

    Hi SWAPY,
    There is a system built-in alert "Mininum Stock Deviation", which can meet your requirement. So you don't need to create an new query for this purpose.
    Please find it from Administration->Alerts Management, tick 'Active' and choose the user you want to send Alert to.
    Hope it help.
    Regards,
    Steven Li
    SAP Business One Forums Team

  • How to set Inventory movement block for Material w/o phy inv document?

    Hi,
    I am working on an enhancement for inventory management. I have a requirement to set posting block/inventory block on a material. In doing so I don't wana create a Physical inventory document, my requirement is to set inventory block on a material without generating Physical inventory.
    I am trying to use a function module MB_UPDATE_INVENTORY_DOCUMENT but this is creating a Physical inventory document.
    Is there any other way of setting this block on material without having to create a Physical inventory document.
    Thanks in advnce,
    SAC

    hi
    in material master for a material u can set the block
    go to MM02 here in basic dat 1 screen the field X-plant matl status  choose entry as u need (  01 Blocked for procment/w it will block ur inventory also)
    regards
    kunal

  • Report for Inventory Ageing

    Our client wants a report for Inventory Ageing. (we are not using batch management)
    Use tried to sell Standard report MC46 but they are not convinced with the results.
    The issue is if the material is not consumed for last 399 days but today if some movement is there in that particular material, then the material is not shown as non moving. Actually the material was not at all used for last 399 days.
    In mc.5 report there are key figures like last consumption, last good issue etc but the same problem is there with it.
    We are trying to develop a customised report.
    Please help.
    Thanks in advance.

    Hi,
    The Stock Aging Report displays the description of material that are stocked for n-number of periods at particular inventory locations( may be trading plant or manufacturing Plant). The details, which are displayed, are about the aging period for the selected items.
    There are reports and T code are
    MC.A ,
    MC.9,
    MM5B,
    MMBE,
    MB5M,
    MC50 - Dead Stock ,
    MC46 - Slow-moving items,
    If the above reports not meet your requirement, you should develop your own ABAP program to meet your specific business requirement.
    This is define in overall stock on value based, suppose a material is received in Feb-month, same material is received in Jan-2007 , DEC-2007  also.The total value of this inventory is say 90 lakhs, ( 30 lakhs of each month) so  system will show inventory aging as below
    stock aging less than 30 days, 90 lakhs
    stock aging more than 30 days but below 60 days 60 lakhs
    stock ageing more than 60 days but below 90 days 30 lakhs
    Assuming that no issue taken place if issue is taken place, it will be deducted by default FIFO method.
    You may have to develop an ABAP report.
    However, look into the path: information system > logistics > inventory managment > material and explore all like MC.9,MC.A,MC.B & MC.C
    Regards,
    Biju K

  • Physical Inventory Movement Block not Rest at Storage Location Level

    Hi,
    We are facing a typical problem in our Production System and the issue is as follows:
    1. We have created a Physical Inventory Document for a material with Freeze Book Inventory and Posting Block indicators.
    2. We completed the count and entered the same with reference to the PI Document.
    3. We reconciled and posted the differences in the system.
    4. We still find that in Material Master the Physical Inventory block for material movements was not reset automatically at the Storage Location stock view.
    Please help us urgently as all our Goods movements for this material are held up.
    Thanks

    Hi,
    I am able to see 4 PIDs in MI22 for my material.
    2 docs pertaining to the latest Annual Physical Inventory in 2010.
    These documents are for the same material in the same plant but for different Storage Locations. Out of which when i see the Material Master - Storage Location view, i see that the Physical Inventory Block "X" is set for one of the Storage Locations.
    The PID for the Storage Location with this Physical Inventory Block for Movements indicator, is already settled (Count done and no differences in physical and book stock in this storage location).
    The problem persists and i need to remove the posting block which was not reset.

  • Automatic TO Creation for 321 movement (WM and QM integration)

    Dear experts,
    Can anybody guide for how to create auto transfer orders with reference to posting change number for 321 movement document?
    Best Regards,
    Anand Rao

    This has to be done in WM. Activate the automatic TO creation for the releavnt Inventory/warehouse movement . Its under interafces - inventory management in the WM component in config.
    Thanks,
    Ram

  • How to define certain document type (BKPF-BLART) for certain movement (101)

    Sometimes ( I think it is becuase of the tcode)  certain purchase 101 movements create a WA type FI document and some other times purchase 101 movements create WE type FI documents. I have seen a table ( accessing from omba transaction) in which for diffenent tcode´s we have either WE or WA. If we always use migo transaction why sometimes in bkpf we have migo_tr, migo_gi, ....;....
    How should I do in order to create always WE FI documents for purchase 101 movements?
    Thanks in advance.

    Check the settings in SPRO-MM-Inventory Management-Number assignemnt-Define number ranges for accounting documents.
    Here you assign accounting document type to tcodes.
    Normally , WA is used in receipts for MB1C/MIGO_GI tcode - for e.g for 561 mvmt type.
    SAP recomends keeping this setting as it is.
    SAP help text copied here for reference:
    Define Number Assignment for Accounting Documents
    In this step, you set the number ranges for the accounting documents which are created when goods movements or inventory differences are posted.
    Accounting documents in inventory management
    For accounting-relevant goods movements, the system creates two different documents:
    material document
    accounting document
    Both the material documents and the accounting documents have their own document numbers. When inventory differences are posted, the system also creates an accounting document for the physical inventory document.
    In this step, you only maintain the number assignment for accounting documents.
    Document types
    Accounting documents are split into document types to allow differentiated document number assignment, which is the basis for distinguishing between the various accounting operations. A number range is assigned to each document type. In a company code, you have to define number intervals for each number range and fiscal year.
    In inventory management, the transaction determines which document type is used.
    Example: Goods receipt for purchase order
    Requirements
    You have already defined the company code.
    Default Settings
    In the standard SAP System, the following document types are predefined for inventory management:
    WA  for goods issues, transfer postings, other goods receipts
    WE  for goods receipts with reference to purchase orders
    WF  for goods receipts with reference to production orders
    WI  for inventory differences
    WL  for goods issues with reference to deliveries (SD)
    WN  for net posting of goods receipts
    PR  for revaluation documents
    Each document type is already assigned a number range. In company code 0001, number intervals are defined for each number range both for the current and the previous fiscal year.
    Number range 49 with the year-related interval 4900000000 to 4999999999 is assigned to the document types for all goods movements, except goods movements with reference to purchase/production orders.
    Document type WE is used for goods receipts with reference to purchase orders and production orders. This document type is assigned number range 50 with the year-related interval 5000000000 to 5099999999.
    Please note that net postings of goods receipts (document type WN) are not active in the standard SAP System. If you want to post goods receipts net, you have to assign document type WN (instead of WE) to the transaction MB01.
    Document type WI is used for posting inventory differences. This document type is assigned the number range 01 with the year-related interval 0100000000 to 019999999999.
    SAP Recommendation
    Activities
    1. Check whether you can use the standard settings.
    2. If not, you have to add new document types to satisfy your requirements:
    a) Define a new document type under Financial accounting document
    b) types.
    c) Assign a number range to the document type.
    d) Under Financial accounting number ranges, define the year-related number intervals for the given number range in your company code. If you do not want to use the year-related number assignment method, enter 9999 in the Year field.
    e) Under Allocate document type to transaction, assign the relevant document type to the transaction codes of inventory management.
    Document type PR (revaluation documents) is already assigned.
    Notes on transport
    You transport number range objects as follows:
    Choose Interval -> Transport in the accounting document Number Range screen.
    All intervals for the selected number range object are deleted in the target system first. After the import, only the intervals you export are present. The number statuses are imported with their values at the time of export.
    Dependent tables are not transported or converted.
    All other activities are linked to the automatic transport.
    Edited by: Saurav on Jan 24, 2011 6:03 PM

  • In MIGO quantity & Item OK check box should be supressed for 543 movement

    Dear all,
    I am doing Subcontracting goods receipt. when the item OK check box for the PO item with movement type 101 is checked, it automatically applied for the line items with movement type 543.
    But the quantity & Item OK check box can be edited for the line items with movement type 543. I want to suppress the same only for line items with movement type 543.
    So the quantity consumed of the send items will be same as per BOM quantity.
    How to do this?

    Hi,
    In SPRO- MM-Inventory Management-Setting for Enjoy Transaction-Setting for Good Movement - Field selection per Mvt type ,add the neccessary fields and select the radio button "Suppress"
    Thanks and Regards,
    Maheshwari

  • Amount not turning up for material movement type : 601 from 2lis_03_bf

    Hi all,
    i have loaded the inventory cube from 2lis_03_bx the quantity is turning up for movement type 601 but the amount is not getting reflected it is always blank.
       If   (  SOURCE_FIELDS-BWVORG EQ '000'         "Other Issues
       OR    SOURCE_FIELDS-BWVORG EQ '101'        "Returns / Vendor
       OR   SOURCE_FIELDS-BWVORG EQ '104'         "Material Transfer
       OR  SOURCE_FIELDS-BWVORG EQ '105'          "Stock Adjustment InvD
       OR   SOURCE_FIELDS-BWVORG EQ '106'         "Stock Ajdustment Other
       OR  SOURCE_FIELDS-BWVORG EQ '110' )
       "Issues from stock transfer
       AND SOURCE_FIELDS-BWAPPLNM EQ 'MM'
    only movements which are relevant for stock control
       AND SOURCE_FIELDS-BWBREL EQ '1'
       AND SOURCE_FIELDS-BWGEO  <> 0
    SEE OSS NOTE 630254
       AND (  SOURCE_FIELDS-BSTTYP IS INITIAL OR
                   (  SOURCE_FIELDS-BSTTYP CA 'EQ'  AND
                      SOURCE_FIELDS-KZBWS CA 'AM' ) ).
    *IF THE RETURNCODE IS NOTE EQUAL ZERO, THE RESULT WILL NOT BE UPDATED
         RESULT = SOURCE_FIELDS-BWGEO.
    and i can see for other movement type like 641 the amount is turning up.
    Can anyone advise me on this
    thanks

    does the material movement type : 601 will be updated from this data source : 2lis_03_bx nor it is from 2lis_03_um??
    Can anyone advise me on this!!
    thanks

  • How to capture the change in the update mode (for Inventory) in a transport

    Hi all,
    I recently changed the update mode for Inventory Controlling  from Unserialized V3 Update to Queued delta in R/3 DEV environment. When I was doing the change it did not prompt for a transport request. Now I have to somehow capture this in a transport and move it to R/3 Quality environment. How do I capture this change in a transport.
    Thanks in advance,
    Ram Kumar.

    there are 2 options
    1) try changing back and forth and see if it prompts for a request
    2) Create a customizing request and add the following entry into the request
    Program ID - R3TR; Object type - TABU; Object name -  TMCEXUPD
    and make the entry ...How ?? Click on the key that you see under the column 'Function'
    client/application component.. if client is 100 and application component is 11
    then the table entry should be 10011
    Assign points if it helps
    P.S:if you check the table TMCEXUPD shows you the update mode
    Edited by: KK on May 28, 2008 1:52 PM

  • Non-Cumulative vs. Cumulative KeyFigures for Inventory Cube Implementation?

    A non-cumulative is a non-aggregating key figure on the level of one or more objects, which is always displayed in relation to time. Generally speaking, in SAP BI data modeling, there are two options for non-cumulative management. First option is to use non-cumulative management with non-cumulative key figures. Second option is to use non-cumulative management with normal key figures (cumulative key figures). For SAP inventory management, 0IC_C03 is a standard business content cube based upon the option of non-cumulative management with non-Cumulative key figures. Due to specific business requirements (this cube is designed primarily for detailed inventory balance reconciliation, we have to enhance 0IC_C03 to add additional characteristics such as Doc Number, Movement type and so on. The original estimated size of the cube is about 100 million records since we are extracting all history records from ECC (inception to date). We spent a lot of time to debate on if we should use non-cumulative key figures based upon the  standard business content of 0IC_C03 cube. We understand that, by using Non-Cumulative key figures, the fact table will be smaller (potentially). But, there are some disadvantages such as following:
    (1) We cannot use the InfoCube together with another InfoCube with non-cumulative key figures in a MultiProvider.
    (2) The query runtime can be affected by the calculation of the non-cumulative.
    (3) The InfoCube cannot logically partition by time characteristics (e.g. fiscal year) which makes it difficult for future archiving.
    (4) It is more difficult to maintain non-cumulative InfoCube since we have added more granularity (more characteristics) into the cube.
    Thus, we have decided not to use the Cumulative key figures. Instead, we are using cumulative key figures such as Receipt Stock Quantity (0RECTOTSTCK) ,  Issue Stock Quantity(0ISSTOTSTCK)
    , Receipt Valuated Stock Value (0RECVS_VAL) and Issue Valuated Stock Value (0ISSVS_VAL). All of those four key figures are available in the InfoCube and are calculated during the update process. Based upon the study of reporting requirements, those four key figures seems to be sufficient to meet all reporting requirements.
    In addition, since we have decided not to use cumulative key figures, we have removed non-cumulative key figures from the 0IC_C03 InfoCube and logically partitioned the cube by fiscal year. Furthermore, those InfoCube are fiscally partitioned by fiscal year/period as well.
    To a large extent, we are going away from the standard business content cube, and we have a pretty customized cube here. We'd like to use this opportunity to seek some guidance from SAP BI experts. Specifically, we want to understand what we are losing here by not using non-cumulative key figures as provided by original 0IC_C03  business content cube. Your honest suggestions and comment are greatly appreciated!

    Hello Marc,
    Thanks for the reply.
    I work for Dongxin, and would like to add couple of points to the original question...
    Based on the requirements, we decided to add Doc Number and Movement type along few other characteristics into the InfoCube (Custom InfoCube - article movements) as once we added these characteristics the Non Cumulative keyfigures even when the marker was properly set were not handling the stock values (balance) and the movements the right way causing data inconsistency issues.
    So, we are just using the Cumulative keyfigures and have decided to do the logical partitioning on fiscal year (as posting period is used to derive the time characteristics and compared to MC.1 makes more sense for comparison between ECC and BI.
    Also, I have gone through the How to manual for Inventory and in either case the reporting requirement is Inception to date (not just weekly or monthly snapshot).
    We would like to confirm if there would be any long term issues doing so.
    To optimize the performance we are planning to create aggregates at plant level.
    Couple of other points we took into consideration for using cumulative keyfigures are:
    1. Parallel processes possible if non-cumulative keyfigures are not used.
    2. Aggregates on fixed Plant possible if non-cumulative keyfigures are not used. (This being as all plants are not active and some of them are not reported).
    So, since we are not using the stock keyfigures (non cumulative) is it ok not to use 2LIS_03_BX as this is only to bring in the stock opening balance....
    We would like to know if there would be any issue only using BF and UM and using the InfoCube as the one to capture article movements along with cumulative keyfigures.
    Once again, thanks for your input on this issue.
    Thanks
    Dharma.

Maybe you are looking for