Get the Stock for a given Material no

Hi,
     I'm an ABAP consultant, new to MM.
     I have a requirement - For a given Production Order I have to find the Material and respective BOM Explosion. Once that is done I have to get the Stock for those Materials [Child Materials].
I have used AUFK and AFPO to get the material from the Production Order and Used MAST table to get the other details and passed it to FM - 'CS_BOM_EXPL_MAT_V2' - This gives me the Child materials.
Now I want to know how can I find the Stock for a given Material. I want to get the Overall Unrestricted stock. Which Table do I have to use. Is there any standard Function Module [FM] or BAPI to get it.
Please help.
Thanks & Regards,
Ashish

I have gone through  the MARD table. I want to confirm - for a Material no there are more than 1 plant and for each plant there are more than storage location. So I have to add the Unrestricted Stock of all those to get the Full Unrestricted Stock.
Please refer Transaction MMBE - I have to use that output.

Similar Messages

  • Check the stock for a particular material belonging to a material group.

    Hi,
    Is it possible to check the stock for a particular material belonging to a material group.
    Your help will be appreciated.
    Regards,
    kavita.

    Hi Kavita,
    go to transaction MB52 , in the selection screen enter the material and the material group  that you want the results for, and execute. You will get desired results.
    Regards
    Mangesh
    Reward points if it helps
    Message was edited by:
            Mangesh More

  • Transistion in SAP to know The Stock For List Of Material

    Dear Sir,
    Is there any transistion in SAP.
    To know the stock for list of material.
    For Ex=
    I want to know the stock for below material in one shot
    1) A
    2) B
    3) C
    4) D
    Pls solve my problem soon
    Thanks & Regards
    Ajay Pareek

    Hi Ajay,
    Following are the some of Useful T.Codes for the stock Report.
    LT51 Maintain Preallocated Stock
    LVASE Exit stock from Work Center
    LX02 Stock list
    LX23 Stock comparison IM - WM
    LX27 Stock levels by shelf life exp.date
    MB52 List of Warehouse Stocks on Hand
    MB53 Display Plant Stock Availability
    MB54 Consignment Stocks
    MB5B Stocks for Posting Date
    MB5K Stock Consistency Check
    MB5L List of Stock Values: Balances
    MB5OA Display Valuated GR Blocked Stock
    MB5T Stock in transit CC
    MB5TD Stock in Transit on Key Date
    MB5W List of Stock Values
    MBBS Display valuated special stock
    MBLB Stocks at Subcontractor
    MBSF Release Blocked Stock via Mat. Doc.
    MBW1 Special stocks via WWW
    MC.1 INVCO: Plant Anal. Selection: Stock
    MC.5 INVCO: SLoc Anal. Selection, Stock
    MC.9 INVCO: Material Anal.Selection,Stock
    MC.D INVCO: MRP Cntrllr.Anal.Sel. Stock
    MC.H INVCO: Business Area Anal.Sel. Stock
    MC.L INVCO: Mat.Group Analysis Sel. Stock
    MC.P INVCO: Division Analysis Sel. Stock
    MC.T INVCO: Mat.Type Anal.Selection Stock
    MC48 INVCO: Anal. of Current Stock Values
    MC49 INVCO: Mean Stock Values
    MC50 INVCO: Analysis of Dead Stock
    MC8M Read Opening Stocks
    MCB) INVCO: Long-Term Stock Selection
    MCC4 Set Up INVCO Info Structs.from Stock
    MCH: RIS: STRPS/Mvmts + Stock - Selection
    MCKJ Selection version tree: Stock
    MCKR User-spec. sel. vers. tree: Stock
    MCNB BW: Initialize Stock Balances
    MCSK Call Standard Analyses of Stocks
    MD04 Display Stock/Requirements Situation
    ME27 Create Stock Transport Order
    ME2O SC Stock Monitoring (Vendor)
    MF65 Stock Transfer for Reservation
    MI35 Batch Input: Post Zero Stock Balance
    MILL_ Cutting Stock Transfer
    MIQ1 Batch Input: PhInvDoc. Project Stock
    MM73 Special Stocks: Preparation
    MM74 Archive Special Stocks
    MM75 Display Archive of Special Stocks
    MMBE Stock Overview
    MMBE_ Stock Overview
    MMCL Stock Overview by Characteristic
    Or you can refer the thread [stock overview;, search there are several threads already available regarding this.
    Regards,
    Shyamal

  • Projected Stock for a given Material and Location (System: SCM-APO)

    Hello Experts,
    Appreciate, if anybody can help me in getting a time-series key-figure data (Stock-On-Hand for a given Material and Location) for a given period.
    I am working on a report to display the projected stock (Material & Location are known) for a given period (1 month).
    I am able to view the above data in my planning book.
    Thanks in advance.
    Regards,
    Prasanna
    Edited by: Prasanna Gunji on Apr 9, 2010 3:42 PM

    Hi Prasanna,
    9ASOQMQTY - Stock in quality inspection
    9ASOTRSQTY - Stock in transit
    9AAVLSTCK - Projected Stock
    Hope this helps
    Regards
    R. Senthil Mareeswaran.

  • I need a function to get the objectlinks of a given material

    Hi!
    I need a function (remote able) to get all object links for a given material. I found the function "BAPI_DOCUMENT_GETOBJECTLINKS" to read all links from a document but I need it for a material.
    Thanks,
    Konrad

    Hi,
    Yes, you misundertood.
    The BAPI name says PROJECT, but it also validates WBS. Use the code as below:
    PARAMETERS p_wbs TYPE char24.
    DATA e_return                 TYPE bapireturn1.
    DATA i_wbs_element_table    TYPE STANDARD TABLE OF bapi_wbs_elements.
    APPEND p_wbs TO i_wbs_element_table.
    CALL FUNCTION 'BAPI_PROJECT_GETINFO'  "add your RFC destination
      IMPORTING
        return                       = e_return
      TABLES
        i_wbs_element_table          = i_wbs_element_table.
    IF e_return IS NOT INITIAL.
       MESSAGE ID e_return-id
               TYPE e_return-type
               NUMBER e_return-number
               WITH e_return-message_v1 e_return-message_v2 e_return-message_v3 e_return-message_v4.
    ENDIF.
    Cheers,
    Custodio

  • Check the Stock of a particular material is available in SAP R/3 from Java

    Hi all,
    We have both SAPR/3 and Java Based Systems and going to integrate with XI.
    For Java user is it possible to check the Stock of a particular material is available in SAP R/3 system or not.
    For this requirement can we create any scenario and get the stock available info from SAPR3?
    If so then which type of adapters we have to use in this case.
    The Java user don't want to store any data here and there but just view the stock is available or not just from his end only.
    bye
    regards
    konala

    You can use synchronous Java Proxy-XI-RFC.
    Code the RFC to get the stock of R/3 material and route the response back to proxy.

  • How to get the stock

    hi,
    How to get the stock corresponding to particular material, if movement type is 101 and 102 .
    plz reply........

    Hi
    EKBE is linked to purchase order only, so here you can find all 101 and 102 generated for a PO, but the stock can be filled by several way, if you check only EKBE you'll have a partial count.
    I think it's better to read MSEG table, here u'll be sure to read all 101 amd 102.
    Max

  • Material opening and closing stock for a given day- Tables or FM

    Dear Friends
             i have to make a report  , related to Material opening and closing stock for a given day  , i check the T-Code- MB5B ,
    it is not giving correct date . is any functional module is available  ? . i checked some table like mbew , mard . it is also not giving correct requirement . Please help

    Hi
    Goto transaction MC.9, Give your Material and,Plant and the date which you need to know the closing stock. Do make sure that in the high and low values you are giving the same date there. I guess no such FM are available for this. You can refer the  [Link|https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=15856]  for some help.
    Regards
    Vinodh
    Edited by: Vinodh_AN on Dec 15, 2010 9:19 AM
    Edited by: Vinodh_AN on Dec 15, 2010 9:25 AM

  • How to get classification for a given material and material type in MM

    Hello Friends,
    One of my developer colleagues is struggling to find out : how to get classification for a given material and material type in MM?
    He is looking for probable table and table fields to Select from.
    I would appreciate seriously any help in this regard.
    ~Yours Sincerely

    Hi
    Below given the flow and table details for a given class and class type.
    - Table KLAH --> This contains the "Internal class no" [ for the given Class & Class type ]
    - Table KSML --> This contains the " internal character numbers " [ nothing but characteristics attached to the class ] , which can be fetched with the above fetched internal class no
    - Table AUSP --> This table contains the objects ( material ) attached to the internal characters of that class
    - Table CABNT --> This table contains the "Description" for the internal character numbers.
    - award points if this is ok

  • How to get the date on which a material has gone into stock

    Dear All,
    Suppose that I have some 20 unrestricted stock for a material. I want to know on which date the same has gone into stock ..Maybe 15 might have gone before 2 weeks and 5 might have gone a couple of days ago.
    How can we get the details for the same .
    Thanking you in advance,
    Shankar

    Although you can look at the materia documents created for this material in recent past but that is not a way to track this kind of information. Batch management can be used for enabling tracking of this kind of information. Take for example following situation -
        1st January 100 PC IN
        10th January 50 PC IN
        1st Feburary 75 PC OUT
        2nd Feburary 25 PC OUT
    You get only this kind of information from material documents but with this information it is not possible to know what you are looking for. If this is the requirement then Batch Management should be enabled.
    Cheers,
    Sanjeev

  • FM/Class to find the class and characterstics for a given material

    Hi All,
    Is there any Class/FM to find the class and characterstics for a given material.I tried some BAPI_OBJCL* BAPI's but lot of the BAPI's need classnum as input parameter. But i need a BAPI or tables or class which can give the class and its characterstic values for a given material.

    Hi Ben
             Try ..
    BAPI_OBJCL_GETCLASSES
    BAPI_OBJCL_CREATE

  • Where can i find the Datewise stock for a particular material

    Hello friends,
    In which table i can find the stock of a particular material on particular date?.MARD, MCHB these all tables gives the current stock of material.But i want to find the stock of material on particular date.In Report MB5B and MC.9 we can find the stock on particular date but is there any table from where these reports fetch the data?
    Thanking you guys in advance.

    Dear Jitendra,
    Check once again in this thread whether are you able to find out some help.
    But I'm sure MB5B is not getting the info from a single table,it's getting the information from info
    structures and few tables.
    table to see stock on particular date
    Regards
    Mangalraj.S

  • How to get start date of the period for a given date from cube

    I have a situation where i need to find the start day of the period for a given date. is there a way to know that. i want to use that in my report. i enter the date from my report(i have date parameter), depends on the date, i want to display the start day
    of the period. how can i write expression for that in my report?
    ram

    Hi ramprasad74,
    According to your description, you are using Analysis Services as a data source for the report, the cube has hierarchy: Fyear, FQuarter, FPeriod, fweek, Fdate. You want to add a date parameter to the report, after you changed value of the parameter, the
    report will return the first day of FPeriod.
    To achieve your goal, we need to add a parameter to the report, then use the parameter in mdx query. For detail information, please refer to the following steps:
    In the Report Data pane, right-click on a dataset created from a SQL Server Analysis Services data source type, and then click Query. The MDX query designer opens in Design mode.
    On the toolbar, click Design to toggle to Query mode.
    On the MDX query designer toolbar, click Query Parameters symbol. The Query Parameters dialog box opens.
    In the Parameter column, click <Enter Parameter>, and then type the name of a parameter.
    In the Dimension column, choose a value from the drop-down list.
    In the Hierarchy column, choose a value from the drop-down list.
    In the Default column, from the drop-down list, select a single value.
    Click OK. 
    In query designer dialog box, type the mdx query like below:
    with member [Measures].[FirstChild]
    as
    [Date].[Fiscal].currentmember.parent.firstchild.name
    select {[Measures].[FirstChild]} on 0,
    [Date].[Fiscal].[Date].members on 1
    from
    ( SELECT ( STRTOSET(@ParameterName, CONSTRAINED) ) on 0
    from
    [Cube]
    Here are relevant threads you can reference:
    https://social.msdn.microsoft.com/forums/sqlserver/en-US/c7146ac3-40ea-4d53-b321-c707aebbd405/how-to-pass-date-parameter-to-mdx-query
    https://social.msdn.microsoft.com/forums/sqlserver/en-US/fd12a865-bc90-4a65-af42-ce38a8cfa29b/pass-date-time-parameter-to-mdx-query-ssrs
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu
    If you have any feedback on our support, please click
    here.

  • Batch wise stock for a given period or month

    Hi,
    My company wants to implement stock ageing report in MM.
    We manage the stocks in Batches. For us the main criteria for stock ageing is batch creation date.
    The report should run stock ageing based upon the date range given as an input screen
    For ex : date range in input can be of today or as of 30.06.2010.
    If the report is run as of today then I am able to get the batch stock from table MCHB . Quantity from field "CLABS"  and the batch creation date from the field "ERSDA"
    But if the report to be run as of 30-06-2010. Then I am not able to get the data from MCHBH as of 30.06.2010.
    I have checked for one material in the table and as per stock it should be 351 as of 30-06-2010 but in the MCHBH table for the month 06. year 2010 it is showing as 136 pcs only.
    As our LIS tables are not getting populated correctly I am not able to check those tables too.
    Can any one guide me with the logic or the table where I can get the batch stocks for a particular month.
    I need Material, Batch, Quantity month and year .
    Please advice how can i get the data and from which table.
    Thanks you for your support in advance.
    Regards
    Fazal

    Hi Jurgen,
    Thanks for your reply. I am not looking for any analysis report or LIS report.
    i am looking for simple ageing report for a date entered by the user. I got the logic and tables for the current date but if i need to refer the stock ageing of previous date like my stock ageing at 30-06-2010. I am not able to get any tables where i can have the batch stock for a given date or a month.
    The report output format to be
    stock <=30 days
    stock>30 and <=90
    stock>90 and <=180
    stock>180 days
    The criteria for calculation will be the date entered by the user in the input screen. If the user enters the date as 30-06-2010 then all the stock received in the month of june and still lying in my storage location will fall the category <=30 and display in the report.
    Stocks received in the month of march, april and may will fall under the category "stock >30 and <=90".
    If I can get the batch wise stock for a particular month , I can pick the posting date of the Goods receipt from the batch number and calcuate my ageing (i.e date entered in the input scren of the report 30-06-2010 - batch posting date).
    I am also referring to the note which you have sent but in the mean while if you can help me to identify the tables where I can get the batch stock for a particular month.
    Thanks
    Fazal.

  • Logic to build report to get the stock on a particular date

    Dear Guru's,
    We are trying to build a report for getting the stock on a particular date. It is not possible to copy MB5B that option is ruled out. We have also tried to get the data from MBEWH but that is also  not helping as the table is not updated for all the periods.
    Please advice
    Thanks,
    Sam

    Dear Sameer,
    You can copy MB5B report and can modify as per your reuirement.
    If you want get stock a paticular date.It is hard to get, why because you have to fetch all the Material documents
    and you have to use MBEW table to get the current date stock and you have to do add/subtract from calculated stock.
    Due to this there will performance issues also.
    So try to copy MB5B and change as per your requirement.
    regards
    Subhash

Maybe you are looking for