Stock Quantity With Decimals

Hi All,
I have noted that we've got some stock items whose Quantity include Decimals yet they are suppossed to be whole numbers.
For instance: for Bread: OITM.OnHand=10.5
I want to come up with a query to display all these kind of items. Whats the right Condition in an SQL query to achieve this? Thanks
Regards,
Henry

Try this query:
Select itemcode, itemname from OITM where Onhand > Round(Onhand,0)
Thanks,
Gordon

Similar Messages

  • OLE: export quantity with decimals according to UoM

    Dear Guru,
    I encounter a problem when exporting data from Itab to Excel using OLE.
    In the itab, there are many Quantity fields (with UoM). When I export to Excel, I want the number of decimals of each quantity field must comply with UoM (for ex: PC with 0 decimal, Kgs with 3 decimals).
    I try to write the qty to text, it's ok but I also need the exporting qty is formatted as a number in Excel so user can do a sum.
    The solution for this problem seems complicated. I have to write qty to text, convert text to number...But for a large number of data, it is really slow.
    Is there anybody encounter the same problem? Please advice the solution.
    Thanks.

    > The solution for this problem seems complicated. I have to write qty to text, convert text to number...But for a large number of data, it is really slow.
    You make confusion about the real problem. Converting the quantity is not time consuming (or your program is really badly programmed ).
    What is time consuming is making many calls to OLE.
    To avoid that issue, SAP uses the Data Provider and the Desktop Office Integration (DOI). The whole data is sent to the frontend once (more or less), and sends only a few instructions to the frontend to process this data. I don't really know the exact process, but it's really, really  much faster.
    DOI can be programmed directly (there are SAP demo programs which show how it works, search forum), and there is an upper abstraction if you only need to paste data, set colors, that is indicated by Pedro.

  • How to Reduce  Finish Stock Quantity  with out sales

    Hi All
    My client wants to reduce the finish stock  with out sales, as they want it to maintain a particular Quantity for that finish from 1st of April 2010
    So how to achieve this & with which movement type , i should use in MB1A
    Or any other suggestion to map this scenario
    Thanks In advance
    Ashok

    Ashok
    in both cases the result will absolutely the sames in value, the only difference is where the amount is posted either  to Inventory difference account or to an Scrapping account.
    I would suggest no to run the Physical inventory to correct your stock, you will not be able to get around the auditor to explain why you have a huge nventory difference - like say 100.000 euro or 10.000 pieces. - it cannot be due to theft, or to erros in order picking.
    But if you scrap it, you can explain that the scrapped material was not good enough to market it and we decided to scrapp it.
    You may discuss this thouroughly with the business owners as it has a financial impact.
    Could you share why they need to decrease stock so suddenly?
    regards
    Sidi

  • How to display or write quantity with decimals?

    Exists some mask or function that make next?:
    1.- If a quantity is 1500.000 should display 1,500
    2.- If a quantity is 1500.010 should display 1,500.01
    3.- If a quantity is 1500.555 should display 1,500.555
    In others words, only display decimals if apply.

    i think below code will helpful to u :
    data: var(10) type c,
          var2 type string,
          var3 type string,
          var1 type string.
    var = '15000.000'.
    var1 = var.
    split var1 at '.' into var2 var3.
    if var3  ge '000'.
       condense var3.
       SHIFT var3 RIGHT DELETING TRAILING '0'.
       condense var3.
    endif.
    if not var3 is initial.
    concatenate var2 '.' var3 into var.
    write: / var.
    else.
    write: / var2.
    endif.

  • Items with  zero stock quantity show negative stock value in Stock reports

    When running Stock reports for controlling the stock value towards the GL accounts, some items appear with zero stock quantity, but the report still shows a stock value  (negative value in my case)
    How can this happen, and how can I correct this situation ?
    System parameters are :   negative stock is not allowed, Items with zero cost price not allowed. On item level average cost price method is used.
    P.K.Johnsen

    Hi Johnsen,
    I believe you have checked the" Manage Inventory by warehouse". I have noticed this issue in SAP B1 2005B but this is rectified in 2007B. The system behaves in this way as the system maintains item cost for the item for all warehouses and even if the stock is not present in the warehouse, the system would still show you a value for the same. Hope this helps. please search the forum. You'll find related threads.
    Thanks,
    Joseph

  • Multiple EAN maintainance with one material with its stock quantity

    Hi,
    I have a question with regards to EAN.
    Basically, I would like to maintain multiple EAN number and its correspondent stock figure of a material into the material master (see following example):
    Material: 100200
    EAN1   1234903948193 stock quantity  100pcs
    EAN2   8374772990291 stock quantity  130pcs
    EAN3   1378882990201 stock quantity  163pcs
    Does the above possible to be maintain in material master basis view in the additional view with its relevant quantity?
    The business rational for maintaining multiple EAN for this material is because this material can be produced in UK, Germany, & France:
    EAN1  UK, EAN2  Germany, EAN3  France.
    And further, business would like to keep track of how much stock quantity it has on each of these EAN:
    EAN1  100pcs, EAN2  130pcs, EAN3  163pcs.
    Please advise. Thanks
    tuffy

    Hi,
    Multiple EANs can be maintained for a material in material master but the stock number cannot be tied to it.
    For this you can use alternate methods like split valuation where in the valuation type refers to the EAN and this way you can maintain an indirect reference between EAN and stock numbers.
    Hope this helps.

  • Difference in stock value with same quantity

    Dear Friends,
    one of my user has a problem regarding difference in Stock value. when he had run the report MB52 up to 31/03/2011, and  saved his value in temp file  and now in current date he is using report MC.9 for same material up to 03/2011. now his problem is difference in stock value while stock quantity is same for particular material. and this thing is correct in all other material.
    Are MB52 and MC.9 both reports give same data for same date like up to 31/03/2011 ? if yes then where would be the problem? why difference is coming and what should i need to check? please guide me, i am new in MM.
    Thanks
    Vijay Sharma

    MC.9 is a statistic transaction which is using info structure information as basis, while MB52 basis is normal business data.
    Updates for info structure have less priority, which means that it can happen that the update fails, but this does not effect the business transaction in general, and the transaction is not rolled back, which then leads to inconsistencies between both.
    To solve this you would need to rebuild the information structure (which is only possible if no postings are made in this time of regeneration).

  • Stock Quantity at Mc.9 and MMBe is not Matching

    Hello,
    The stock Quantity for a prticular material in MMBE is not matching with stock qunatitty  in MC.9 and Mc.5
    Can you please suggest me how to resolve this.
    Thanks & Regards,
    SAGAR

    Hello,,
    MMBE is the correct value for the current stock quantity. MC.9 and the other reports use tables S031/S039 or thereabouts, which is updated incrementally each month using the previous month's record and the issues / receipts during the month. Once the file gets corrupted - and it does - in our case about 5% of records are incorrect - that incorrectness is perpetuated in the following months, and the difference remains forever.
    You can determine that the S031 record is in error by starting with the current month and looking at the Val stk rec qty and the val stk iss qty movements and the valuated stock, which will allow you to calculate what the stock at the end of the previous period should be. Run MC.9 for the previous period, check the valuated stock corresponds to that calculated, and repeat with the movements. You can do this in yearly periods until you find the error and then go down finer. I find that most of our corruption occurred in the first few months of using SAP.
    If anyone knows of a method to regenerate the whole record in the S tables
    I would be grateful for the info.
    Conclsion:MMBE reads the current stock, while MC.9 or MC.5 are transactions that are feeded from infomation structures (which are updated with lower priority than stock tables). If an update of a infostructure fails, then there is no harm to the stock table update, but your statistics are just out of sync then.
    So in short, you can trust MMBE, but no the statistic transactions
    Regards
    Mahesh Naik.

  • Stock report with the field... last stock changed at certain date?

    Is there any standard report with the date of the last change of the stock value and quantity?
    Points granted
    BR
    Saso

    Hi people,
    I want to know why MBEWH have not any material stock information for period when doesn´t exist any inventory movement for some materials, for example I have a case in 12.2006 period the material A have stock quantity 100 and value 1000 and the next period 01.2007  no stock movements were done for this reason the MBEWH had to had the same values stock 100 and value 1000 in 01.2007 period, but in MBEWH is missing, there is not any information for material A in this period.
    Anybody knows about this problem?
    Thanks.
    Lili.

  • How to calculate total stock quantity in cube

    Dear Master
        I want to verify the data between BI report and cube whether correct or not.My report name is stock summary. It's giving report for Total quantity stock (0TOTALSTCK) for paricular date. This KF(0TOTALSTCK) inflow is 0RECTOTSTCK and outflow is 0ISSTOTSTCK. Somebody telling to get the Total quantity stock (0TOTALSTCK) value, I have to use following formula 0RECVS_VAL (Value Received into Valuated Stock) - 0ISSVS_VAL (Value issued from valuated stock). Please advice me which formula should I use to get the total stock quantity?.
    Thanks a lot in advance
    Raja

    Please let met understand better, you have the following keyfigures:
    - Receipts (Cumulative)
    - Issues (Cumulative)
    - Difference (Cumulative) populated during URules = Receipts - Issues (any routine with elaborated calculation behind?
    - Stock (non-cumulative InFlow = Receipts, OutFlow = Issues)...
    Is this correct?
    Olivier.

  • How to get Item-Code wise stock quantity and value for a previous date

    Dear Sir,
    As per the government legal requirement , we are required to furnish a list for items having stock as on a date ( date is not the current date but it is some past date)  and  in the list we need to provide material wise stock quantity and value .
    We can generate a list  for the current date , but do not know how to get it for a previous date .
    We request you to kindly guide us about such a list .
    With Thanks and Regards
    Sonia Agarwal

    hi,
    might be this reports will be help full for your requirement.
    MMBE
    MB53
    MB52
    MB5M
    MB5B
    MB5T
    MBLB
    MBBS
    MB54
    ME56
    Thanking you

  • Stock Report with Batch Number

    Hi ,
    My Client requires stock report with Batch numbers .required report format is
    Item Code,BatchNumber,OpenQty,OpenVal,PurchaseQty,PurchaseVal,SalesQty,SalesVal,ClosQty,CloseVal
    I tried using query on wiki for stock report but that query is written in 2007 and Batch tables and OINM table is changes in 8.81.
    http://wiki.sdn.sap.com/wiki/display/B1/SAPB1SQLH-INItemInventoryOpeningandClosingStockper+warehouse
    can any one help with stock report- batches.
    Thanks,
    Preeti

    HI,
    use below query as basis and mofiy the fields required. it shows linking in batch and transaction tables:
    SELECT distinct T0.ItemCode,T0.ItemName ,T0.DocDate ,T0.DocType ,T0.DocNum,T0.LocCode ,t4.DistNumber as [BatchNumber], T1.Quantity ,T5.CalcPrice as [Price]  
    FROM  [OITL] T0 
              INNER  JOIN [ITL1] T1  ON  T1.[LogEntry] = T0.[LogEntry] 
              INNER JOIN  OBTN T4 on T1.MdAbsEntry=T4.AbsEntry
              INNER  JOIN [OITM] T2  ON  T2.[ItemCode] = T0.[ItemCode]   
              Inner JOin OINM T5 on T0.ItemCode =T5.ItemCode and T0.LocCode = T5.Warehouse  and T0.AppDocNum = T5.BASE_REF
    Thanks,
    Neetu

  • Stock Quantity & Stock Value at vendor on a Particular Date

    HI,
    My client requirement is to get a report for Stock Quantity & Stock Value at vendor on a Particular Date .
    Please give suggestions to get the stock & value in tables or Any standard T.codes
    Note : I am getting Stock qty on paricular date In MB5B & S_P00_07000140 , but not getting the values
    Regards,
    PR

    HI,
    we can get this report thru SAP standard without vendor selection, do the following steps
    1. goto MB5B
    2. Give plant /material details
    3. give selection date
    4. select stock type option as special stock
    5. select special stoct indicator as "O" for material provided to vendor
    excute the same , you will get a report with qty and value posted for  the vendor from the plant
    here by copying this standard program we can add one more input parameter  as vendor, then we can get this report vendorwise also.
    try this and let us know
    Regards
    Sridharan

  • T-Code for reporting stock quantity difference between IM and WM

    Hi All
    I'm probably going to kick myself for asking this quastion but is there a report to show the stock quantity differences between IM and WM?
    I have searched the forum first but cannot find info.
    We have various differences in IM and WM shown in MD04 and LS26. This is usually the result of an unplanned plant to plant transfer not being recipted in at the destination plant.
    If no standard T-code is available, which tables can I join to create my own query?
    Thanks in advance
    Darren

    compare MMBE with LS26
    Make sure you dont enter a storage location and storage type in selection screen of LS26.
    if you post a difference with LI20, then you have just posted a difference within WM, means you moved a quantity from a bin into the difference storate type 998.  The balance of both is still equal to your stock shown in MMBE. You have to clear the difference with IM by executing LI21 transaction. Only then the quantity will disappear from difference storage type and will be adjusted in MM and FI.
    LX23 will only report real inconstencies and will adjust them.
    If you do a MM movement like 303, then this creates a transfer request in WM, this TR needs to be converted into a TO. to move the stock from the bin to the interim storage type for goods issue.
    In your case you created just a negative quant in the interim storage type for goods issue and still have a positive quant in the bin, the balance is equal to the stock shown in MMBE.

  • Material on-order stock quantity calculation

    Can anyone tell me the function module or method used by SAP to determine the amount of a material on an open purchase order (not yet received)?  I need to document a BW functional spec but cannot seem to be able to document how SAP does this.
    Examples of what i am looking for are:
    MMBE, on-Order stock quantity (Per material/Plant/Storage Locaiton)
    ME2K, Selection parameters WE103 - Still to be delivered (per PO)
    Thanks.

    Ram
    I have found that function module previously but cannot seem to be able to execute it.
    Import Parameters:
    X_ELIKZ = Blank
    X_LOEKZ = Blank
    X_MATNR = my material number
    X_MEINS = Unit of Measure
    Tables:
    XTAB = <B><U><I>What do I use here?</B></U></I><BR>
    XWERKS = my plant
    No matter what I enter in XTAB (I have tried Blank, EQ, NB so far) I get an ABAP Dump:
    <I><B>The IN itab operator is used with internal tables which have the following structure:
      SIGN(1)   OPTION(2)   LOW LIKE db_field   HIGH LIKE db_field
      The OPTION column should contain only one of the following values:
       "EQ LE GE CP BT NE LT GT NP NB"
    The value 00 is not allowed here.</I></B>
    <BR><BR>
    When analyzing the error, I found table MDBS that conatians the Order Qty and GR quantity - so I think I may be able to use this instead.

Maybe you are looking for

  • Saving a file in Vi creates same file but with ~ added [SOLVED]

    Hi, I'm not sure if I pressed a key combination, but when I save a file in Vi I get another file that has the same name as the original file but with the ~ character added to the end of the filename.  For example, if I edit foo.txt and save it, then

  • MSS CO Reports

    Hi, I do have a question regarding MSS CO reports,  we have around 55 cost centres and the requirement is that each manager looks only at his own Cost Centre report. Is there any way where i can create a role that depends on OM structure whereby the

  • New computer - can I re-install Lightroom?

    I purchased Lightroom 3 for my old computer - I've now upgraded to a new computer - and want to install my copy of lightroom on the new one - how do I do this?

  • FontBook-List typefaces in a specific Library

    I'm trying to find all of the fonts in a specified Library and have that automator action output typefaces. Ultimately, I need to generate a file list for those fonts and copy to a network drive. All of my pieces work if I want to do the default "All

  • Install oracle10g AS 904 infrastructure and middle tiers on single node??

    Hi I will install oracle10g AS 904 infrastructure and middle tiers on single node. I have some question. 1.install infrastructure and middle tiers must have different home_dir , It is mean use one user (EX:oracle) or two users (EX: infra and mid ) in