Table to get "stock of material on a past date "

Hi Guru's,
Can anyone tell me "how to get stock of material on a past date".
Pls tell me from which Table you can fetch these values and in what logic.
Any Input is highly appreciated.
Thanks and Regards,
Selva

Hello,
You can get the stock from the table MARDH, MCHBH period wise.
this table is use for history stocks.
Regards
Bhima

Similar Messages

  • Tables/FM for opening/closing stock for material on given posting date

    Hi All,
    I had requirement of find the opening/closing stock for material on given posting date. The values we can find out using TCode - MB5B.
    But I cannt use MB5B to extract data because I need to find detials for thousands of material.
    Can you please adivce if their is any FM or tables through which i can find this detial on any given date apart from current date.
    Thanks & Regards,

    Hi,
    [https://forums.sdn.sap.com/click.jspa?searchID=19631709&messageID=6593903]
    [https://forums.sdn.sap.com/click.jspa?searchID=19631709&messageID=6630975]

  • Mc46 - can we get stock of material in this report

    Dears Experts,
    Mc46 - can we get stock of material in this report. I think only stock value is available.

    Hi,
    You can check the stock of material within the report by selecting the material and later click Edit - Detailed Display - select  stock overview and click continue.
    S. Kumar

  • Calculate stock of material on a particular date ..very urgent (have points

    Hi all,
    My requirement is to calulate stock of a material on a particular date..
    See.
    I need a function mudule that will accept..
    matnr, date, werks....n give me stock as output..
    Please help me reg. this..
    Have ur points...

    hai pradeep,
    As there is no function module as u said but u can create the function moudule as per ur requimrent in SE37. Just you need the tables from where you want the stock and from which you are giving matnr, date and werks.
    Take the import paramters as matnr, date and werks and export parameter as stock. In source code write the select qurey depending up on the input. i think u know how to write the qurey depending up on the tables from where you want the stock .
    hope this will help you.
    <b>reward if useful</b>
    regards,
    sunil kairam.

  • To get stock status as per the delivery date

    Dear All,
    Order creating date is 01.03.2009 and delivery date is 20.03.2009.
    When I create delivery, some stocks cant get delivered because of shelf life, mrp st.date (or availablity) etc... as per the material master.
    To ease my process, can i get a stock overview as per my delivery date.
    I aware we can't predict the stock status, but just i want to give a date while taking ATP or any T- code to check the above things.
    Please guide me.
    Regards,
    Viswanathan.G

    Hi Narendra,
    Thxs for quik response,
    I created Purchasing value key with Negative indicator like first reminder is -8.second is -4 and third is -2 and assigned the respetive material master and w r t material PO created.  When i am doing ME9F exceuting its showing error No suitable purchasing documents found,while i am exceucting  i select PO No,Purchase Org,application EF and message type MAHN but its shoing error ..kindly let me know how i can proceade.
    Please note, My client requirment is once PO delivery date falls with the reminder period its should remind vendor through mail,
    Regards
    Santosh

  • Table for onorder stock

    Hi All,
    Please tell me the table where onorder stock for material will be stored.
    Thanks and Regards
    Pavan

    Hi,
       On order stock is your open PO qty.
    u can make use of table EKKO, EKPO, and EKET   in EKET u can get details along with scdheule line filed MENGE is your order qty and WEMNG is goods recvd. qty  MENGE - WEMNG gives the pending PO qty.
    regards,
      zafar

  • Stock as on past dates

    Hi all,
    I have a requirement to audit stock differences that had happened few months back between SAP and BI.
    The stock in BI has a cumulative figure of all stock categories viz. unrestricted, in transit, blocked and QI.
    In SAP, I can get the unrestricted stock on a particular day using MB5B but I don't know how to find the blocked stock/QI stock/in-transit stock on a past date say as on 15/Jan/2009.
    Could you please help me out?
    Thanks
    Rana

    Hi,
    MB5OA doesn't serve my purpose. I need to find what was the stock break-up for all the stock categories (blocked, UR, QI, In-transit) for a material on a past date. For example, I need to know what was the stock of material ABC in QI, in Blocked and in unrestricted stock on 15th of Jan 2009.
    Could you please help me?
    Thanks,
    Rana.

  • Stock qty on past date (yesterday)

    Hi,i would like to see the qty of the stock on previous day (or past date).is there any option in sap?

    YS,
    You can use T code MB5B for this purpose.
    Input has to be given like material, Plant (if required), storage location (if required) & date 'under selection date' on which you want to see the stock.
    Under 'Settings' mark 'Total only- Non hierarchical representation layout' & execute.
    You will data  of opening stock, receipt, issue & closing stock.
    Hope this helps you.
    SmanS

  • FM or table to get the batches and stock of material as in MMBE or MB51

    Hi Gurus,
                  Please help me with function module or table to get the current batches
    and unrestricted stock for the respective material and plant. And the reference transaction with is MMBE or MB51.
                   I want the same data as in MMBE or MB51 transaction.
                   Please reply me as soon as possible.
    Regards,
    Sagar

    Hi,
    I dont think there is any BAPI for this (on 46C).
    Instead, you can check following tables:
    EINA, EINE,  A017(Plant)/A018, KONH, KONP, KONM, KONW for Purchasing Info Records / conditions associated with it.
    Hope this helps.
    Best Regards, Murugesh AS

  • How to get a opening stock of a material on a particular date

    Hi,
    Could you pls provide me the logic of how to get the opening stock of the material on a particular date. I searched the forum and found the logic to fetch the closing stock at a given period but not for a date.
    An immediate response would be really appreciated.
    Thanks
    Harris

    Dear,
    Please read following part of my code
    FORM GET_OPENING .
       IF IT_FINAL[] IS NOT INITIAL.
         SELECT *  FROM MARD
           INTO CORRESPONDING FIELDS OF TABLE IT_MARD
           FOR ALL ENTRIES IN IT_FINAL
           WHERE MATNR = IT_FINAL-MATNR
           AND   WERKS = '1000'.
         SELECT A~MBLNR A~MJAHR A~BUDAT B~WAERS B~ZEILE B~BWART B~MATNR B~WERKS B~LGORT B~CHARG B~SHKZG B~MENGE B~MEINS B~BUSTM B~XAUTO
           INTO CORRESPONDING FIELDS OF TABLE IT_MKPF
           FROM  MKPF AS A JOIN MSEG AS B
           ON A~MANDT = B~MANDT
           AND A~MBLNR = B~MBLNR
           AND A~MJAHR = B~MJAHR
           FOR ALL ENTRIES IN IT_FINAL
           WHERE B~MATNR = IT_FINAL-MATNR
           AND   A~BUDAT GE P_BUDAT-LOW
           AND   B~WERKS = '1000'.
       ENDIF.
       AKTDAT = SY-DATLO + 30.
       IF NOT ( P_BUDAT-HIGH IS INITIAL OR P_BUDAT-HIGH > AKTDAT ).
         LOOP AT IT_MKPF INTO WA_MKPF WHERE BUDAT > P_BUDAT-HIGH.
           MOVE-CORRESPONDING WA_MKPF TO IT_MKPF1.
           APPEND IT_MKPF1.
           DELETE IT_MKPF.
         ENDLOOP.
       ENDIF.
       SORT IT_MKPF1 BY WERKS MATNR SHKZG.
       LOOP AT IT_MKPF1.
         IF ( IT_MKPF1-XAUTO IS INITIAL ) OR
             ( IT_MKPF1-BUSTM <> 'MA02' AND  IT_MKPF1-BUSTM <> 'MA05' ) .
           MOVE-CORRESPONDING IT_MKPF1 TO IT_MAT.
           COLLECT IT_MAT.
         ELSE.
           DELETE IT_MKPF1.
         ENDIF.
       ENDLOOP.
       SORT IT_MKPF BY WERKS MATNR SHKZG DESCENDING.
       LOOP AT IT_MKPF INTO WA_MKPF.
         IF ( WA_MKPF-XAUTO IS INITIAL ) OR
            ( WA_MKPF-BUSTM <> 'MA02' AND
            WA_MKPF-BUSTM <> 'MA05' ).
           MOVE-CORRESPONDING WA_MKPF TO T_MAT.
           COLLECT T_MAT.
         ELSE.
           DELETE IT_MKPF.
         ENDIF.
       ENDLOOP.
       LOOP AT IT_MARD.
         CLEAR IT_MAT-MENGE.
         MOVE-CORRESPONDING IT_MARD TO FINAL.
         READ TABLE IT_MAT WITH KEY WERKS = IT_MARD-WERKS
                                    LGORT = IT_MARD-LGORT
                                    MATNR = IT_MARD-MATNR
                                    SHKZG = 'S'.
         FINAL-ENDMENGE = IT_MARD-LABST + IT_MARD-INSME + IT_MARD-SPEME + IT_MARD-EINME + IT_MARD-RETME - IT_MAT-MENGE.
         CLEAR IT_MAT-MENGE.
         READ TABLE IT_MAT WITH KEY WERKS = IT_MARD-WERKS
                                    LGORT = IT_MARD-LGORT
                                    MATNR = IT_MARD-MATNR
                                    SHKZG = 'H'.
         FINAL-ENDMENGE = FINAL-ENDMENGE + IT_MAT-MENGE.
         COLLECT FINAL.
       ENDLOOP.
       LOOP AT FINAL.
         CLEAR T_MAT-MENGE.
         READ TABLE T_MAT WITH KEY WERKS = FINAL-WERKS
                                    MATNR = FINAL-MATNR
                                    SHKZG = 'S'.
         MOVE T_MAT-MENGE TO FINAL-SOLL.
         CLEAR T_MAT-MENGE.
         READ TABLE T_MAT WITH KEY WERKS = FINAL-WERKS
                                    MATNR = FINAL-MATNR
                                    SHKZG = 'H'.
         MOVE T_MAT-MENGE TO FINAL-HABEN.
         FINAL-ANFMENGE = FINAL-ENDMENGE - FINAL-SOLL + FINAL-HABEN.
         MODIFY FINAL.
       ENDLOOP.
       LOOP AT FINAL.
         WA_FINAL1-MATNR = FINAL-MATNR.
         WA_FINAL1-MEINS = FINAL-MEINS.
         WA_FINAL1-OP_MENGE = FINAL-ANFMENGE.
         WA_FINAL1-RE_MENGE = FINAL-SOLL.
         WA_FINAL1-IS_MENGE = FINAL-HABEN.
         WA_FINAL1-CL_MENGE = FINAL-ENDMENGE.
    *  WA_FINAL-LGORT = FINAL-LGORT.
    *    READ TABLE IT_MAKT WITH KEY MATNR = FINAL-MATNR.
    *    MOVE IT_MAKT-MAKTX TO WA_FINAL-MAKTX.
         APPEND WA_FINAL1 TO IT_FINAL1.
       ENDLOOP.
    ENDFORM.                    " GET_OPENING

  • Function module to get detials of blocked stock of Material

    Hi al.....
    I like to know the function module to get details of blocked stock of material
    for particular plant.... like blocked by sales order or damaged material ..etc..
    Thanks...

    Hello ,
    just check this FM
    please just read the document of the FM.....
    ME_CONFIRMATION_READ_GR_BLOCK
    RV_MATERIAL_STATUS_BLOCK
    MATERIAL_MAINTAIN_DARK_DB
    MATERIAL_MAINTAIN_DARK
    MATERIAL_MAINTAIN_DARK_PR
    MATERIAL_MAINTAIN_DIALOGUE
    MATERIAL_MAINTAIN_DIAL_RETAIL
    MATERIAL_MAINTAIN_DARK_RETAIL
    This May help....u.....
    Thank u,
    santhosh

  • Any function module to get Stock and value of material on a given date?

    Hi Friends
    Is there any function module available to get Stock/and  value of material on a given date?
    Thanks
    Harish

    Sorry I didn't elaborate the requirement.
    I am asked to develop a custom report for inventory management. For range of materials it is required to display stock and value on particular date and GRs GIs for the range.
    I need function module to use in Zreport.
    Thanks
    Harish

  • Schedule line getting created for material whose stocks are maintained

    Hi Friends,
    I am having an unusual problem of schedule line getting created for material whose stocks are there in the system. I have created an SO for some material, and all the material is having sufficient qty in the system but still the system is generating schedule line.
    Can someone please advice what could be the problem and the solution to it.
    Regards,
    Wasim.

    Hello Wasim,
    - In TCode MM02, Check Scheduling in MRP2 Tab of Material master (if MRP is active.)
    - In Tcode OVZ9 - AvC control, for your Availability check maintain (eg. 02) in material & Checking Rule:A-SD order.
    Whether Check availability without replenishment lead time is unchecked, as this Indicates whether, during the availability check, the system checks the replenishment lead time. So, Items for which the delivery date falls within the replenishment lead time, but for which there is no inventory, are confirmed for delivery after the replenishment lead time. In the case of items for which the delivery date falls after the end of the replenishment lead time, the system assumes that everything can be confirmed.
    Thanks & Regards
    JP

  • Table: Stock for material

    Dear All ,
    which table can i find the entry whether the material stock exist or not which we see in the MMBE .
    Regards

    hi,
    check table A501 - plant/material...
    MARC - plant data for material
    MARD - storage loc data for material
    Or check report : MB52..
    Hope it helps..
    Regards
    Priyanka.P
    Edited by: Priyanka Paltanwale on Oct 13, 2008 9:48 AM

  • BAPI for get last few month's stock of material

    hi gurus,
    From T-code mc.9, we can see the last few month stock of material. I want a BAPI that can help me to get a gata for last few months.
    Anybody has an idea.
    regards
    Nirdesh

    HI,
    Refer to the link.
    RFC bapi function to get stock quantity
    This Might Help.
    Regards
    Sumit Agarwal

Maybe you are looking for