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

Similar Messages

  • FM or Table to get the BP ID of Root org unit

    Hello All
    We are triggering code from ECC which replicates Ship to Address to SRM.
    We want to know an FM or Table which will provide us with the BP # of the root org unit. ( Purchasing company)
    It is preferable if we don't have to hard code this.
    Thanks
    Kedar

    Hi Kedar,
    Create a custom table to store the business partner  of the root org unit or the company code and then use that table to get the BP and create ship to address for that org.
    The could BP will be different in different environmnet so you cannot hard code that .. also there is no function module to get the BP of the Root  org id or compnay code...
    there are FM and table to get all id of company code etc but all reuqire input busines spartner which you willhave to enter ...
    Thanks
    Iftekhar Alam

  • How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?

    How can I get the "Open" and "Save As" dialog boxes to open at larger than their default size?  I would like them to open at the size they were previously resized like they used to in previous operating systems.  They currently open at a very small size and the first colum is only a few letters wide necessitating a resize practically every time one wants to use it.  Any help would be appreciated.

    hi Prasanth,
    select werks matnr from ZVSCHDRUN into table it_plant.
    sort it_plant by matnr werks.
    select
            vbeln
            posnr
            matnr
            werks
            erdat
            kbmeng
            vrkme
            from vbap
            into table it_vbap
            for all entries in it_plant
            where matnr = it_plant-matnr and
                  werks = it_plant-werks.
    and again i have to write one more select query for vbup.
    am i right?

  • What is the table to get the all planned orders related to a sale order

    Hi,
    May i know what is the table to get the all planned orders related to a sale order. My scenario is make to order scenario. we can get my out put final product by completing the nearly 916 planned orders.(Like major assemble,sub assemble). From this scenario i want the total orders related to a sale order. ( The planned orders from sale order to sale order will change. i.e 1 sale order will have 916 planned orders and one sale orders will generate 920 like that will chage when running mrp.). Now i want to pick the total planned orders for a sale order in a report. please guide me.
    Regards,
    Mastan.

    Hi,
    Use the table PLAF... in this table pass the sale order no in the filed KDAUF and then execute...issue here is once the planned orders are converted production orders, these planned orders are deleted from the system....so you will not able to see them.....
    Thanks
    Kumar

  • How to get the latest and valid BOM item entry from STPO

    hi,
    may i know with what condition we can get the latest and valid BOM item entry from STPO table?
    i have STLNR and IDNRK as a input. But i realized that it would return multiple entry due to the combination of  valid-from and valid till date.
    can i use stlnr,idnrk and stpoz (with the latet counter) to get the latest and valid BOM entry?
    thank you.

    Hi
    You can get the latest BOM either by using the latest valid from date DATUV or latest internal counter STPOZ
    Regards
    Shiva

  • Purchased Lion, installed it - once I log in - i get the curtain and message to hold the power button till it shuts down.  Worked with the disk repair utility - fixed permissions - still can't get past the "black curtain of death"  any suggestions?

    purchased Lion, installed it - once I log in - i get the curtain and message to hold the power button till it shuts down.  Worked with the disk repair utility - fixed permissions  to hold the power button till it shuts down.  Worked with the disk repair utility - fixed permissions - still can't get past the "black curtain of death"  any suggestions?
    My machine was patched to date 10.x.x.  I was lucky to get an internet connection and I selected the option to re-download Lion... its curruently being downloaded.  What if that doesn't work?
    Any thougths would be appreciated.
    Joe

    And you have a workstation? not a notebook. 
    Usually a driver or hardware, nothing that Disk utility will fix.
    You know of course what a Prohititory Sign is?
    prohibitory sign, kernel panic
    Forum devoted to Lion:
    Mac OS X v10.7 Lion Communities
    Tips and FAQs
    FAQ kernelpanic
    Resolving Kernel Panics
    Avoiding eliminating Kernel panics
    Lion App Compatibility Table - RoaringApps
    RoaringApps Mac OS X Lion Application Compatibility
    did you make sure your apps, drivers, and hardware support Lion?

  • How to get the Title and Tcode of a Program during run time

    Hello,
    I am new to abap and I have this question please. Is the a way to get the title, Tcode and Author of a program during run time? I would like to get the name and title of a program or a view or an include during run time.
    Using table TADIR, you can only get the object_name and the author. Is the a way for me to get the Title of the repository object and any Tcode if any is available for the case of a program?
    I loop forward for your respond.
    Thank you.
    Sabina

    You can get it by accessing SYST.
    SY-TITLE for Title
    SY-TCODE for Tcode
    I don't think there is any field in SYST for the Author.
    To get the author name you can use the TRDIR table.
    Regards,
    Naimesh Patel

  • How to get the table_name and its count(*) in a SQL

    Hi,
    Can anybody tell me how to write a sql to get the table_name and its count(*) in a SQL:
    Output should be:
    table_name count(*)
    XXX 261723
    YYY 3343
    Regards,
    G. Rajakumar.

    hello
    there r a lot ways
    i'll suggest u two of them
    1) the following dynamic sql procedure
    DECLARE
    TYPE array_type IS TABLE OF VARCHAR(30);
    TYPE cur_typ IS REF CURSOR;
    c1 cur_typ;
    count1 integer;
    tab_arr array_type;
    querystr varchar2(200);
    begin
    SELECT table_name bulk collect into tab_arr FROM sys.all_all_tables ;
    FOR I IN tab_arr.first..tab_arr.last LOOP
    DBMS_OUTPUT.PUT(TAB_ARR(I));
    querystr := 'select count(*) from ' ||TAB_ARR(I);
    open c1 for querystr;
    fetch c1 into count1;
    EXIT WHEN c1%NOTFOUND;
    dbms_output.put_line(count1);
    END LOOP;
    close c1;
    END;
    2) or use ANALYZE to analyze the tables and get the number of rows in the NUM_ROW column of DBA_TABLES view.
    if u still have any problem mail me at [email protected]
    shalini

  • To get the approver and Verifier details

    Hi Experts,
    I am working on the Travel and expenses module. We are having 2 workflows. One is for the Travel Request and the other is for Travel Expenses.
    The employee raises a TR and it gets approved. After it is approved, the employee goes and submit the expenses. It goes to the verifier who after approving the same goes to the approver. The approver approves the TE.
    The person who approves the TR and who approves the TE can be different. In the existing application, we are not able to get in the DB tables as to who the approver of TR and TE is as the value is overwritten in the DB table.
    Now they want to develop a report program which shud tell us as to who is the approver of TR , the approver of TE and who is the Verifier. This report program is run at the end of the month.
    I have been told that we can get teh data from the work items and display the same in the report. There will be work item ID's created in SWI1 and we can use them to get the details for the same.
    Could you please guide me as to what the approach and the DB tables would be to get the data of the same. In essence, i would like to know as to the workflow tables through which I can get the data.
    First of all, i would like to know if this approach would be feasible......as along with these fields there are many other fields that are to be displayed in the report.....
    Is it possible to use the work item details and the SAP workflow tables to get the data? Will it be possible to get the data from the work item .....i would like to know as to how we can query on the work item data to get the relevant approvers and verifiers.....pls note that the report wud be run at the month end to get all the data pertaining to the Travel and Expenses.
    Thanks in advance for all the help.

    Hi
      As your business is more bothered about the report generation at the end of every month  about who is approver's of TR and TE then as soon as the work item is executed why you do not try to update a custom table with all the travel related details and the approver's. you can achieve this by making use of Program exits..I think this is more reliable way to handle your requirement and there will not be any  kind of ambiguity in getting the information regarding the approver's
    I seriously suggest you to make use of the Program exits technique in the workflow. So that you can access all the travel specific information and store it in a Z table.
    Check this [link|http://wiki.sdn.sap.com/wiki/display/ABAP/ProgramExitsIn+Workflow]
    Regards
    Pavan

  • How to get the Folders and subfolders collection in Project Manager

    Hi,
    I am trying to get the folders and subfolders collection in Project Manager, so that I will be able to loop through the collection and be able to create a project under the appropriate folder.
    Any suggestions?
    Thanks.
    Bhanu

    Anything you do without submitting to form has to be done on the client side (ususally by JavaScript) using data which has been send already from the server.
    With JavaScript you can do quite a bit. You can download tables which don't necessarilly appear on the screen, loading them into JavaScript arrays by dynamically generating javascript. Then you can pick up events like drop-box selection and use these tables to chose what you do next (e.g. preloading other fields, setting drop box content etc.).
    Or, you can cause forms to be submitted when actions like a selection happen without the user clicking a button. It's generally a matter of how much data you'd need to transmit.
    Another posibility is to use a Java applet, which can generate requests to the server and handle the results as it chooses. That are a number of problems with that but occasionally it's the best solution.
    What you can't do is to handle user input inside a JSP. The JSP has come and gone before the user even gets to see your form.

  • Table name reqd for batches and unrestricted stocks records

    Hi friends,
    I required table name of which having consolidated stocks with batch wise.
    ****reports avialable in T.Code:MMBE (here it displays the batches and unrestricted stocks by storage location wise)....
    These details,i want to see in tables.
    MCHA : will list only materials,plant and batche details.
    MARD: will display Storage location data for material with total quantity.
    LIke these, i want to view the table batches and unrestircted stock details of each material.
    Pls, post ur comments and answer as much as possible.
    Thanks & regards
    sankar.

    Got answered from other forum
    thanks

  • Get the x- and y-coord of a pointobject  (heijden@speerit.nl)

    Can anybody tell me how I simply can get the x- and y-coord of a pointobject using sql
    I need to update the X and Y field in a spatial table based upon the spatial object in the same table.
    It must be a simple SQL, but I can't find it. My email : [email protected]

    SELECT      t.<geometry_col>.SDO_POINT.x,t.<geometry_col>.SDO_POINT.y
    FROM <table> T
    Note that you must use the table alias.

  • How to get the department and interim company of the personnel number

    Hello guys,
    Could you please let me know the table or function module to get the department and interim company of the personnel number.
    Thanks in advance
    Rajesh

    hi
    you can go to HRP1001 table
    bye
    naveen

  • I am trying to download a book on my ipad. It says I need to install itunes. I have itunes already. I frequently get a message to re-install itunes. I do, but I still get the message, and I still can't get the book on my ipad.

    I am trying to download a book on my ipad. It says I need to install itunes. I have itunes already. I frequently get a message to re-install itunes. I do, but I still get the message, and I still can't get the book on my ipad.

    you can download a new installer and serial number from Adobe at Adobe - CS2 Downloads

  • I found an old iPod classic of mine.  It's not synced to my new MacBook Pro.  How can I get the music and photos off of it and on to my new computer?  When I plug it in to my new computer it wants to erase what is on it and transfer from my new computer.

    I found an old iPod classic of mine that is synced to a computer that is long gone.  I want to get the music and photos from this old iPod onto my new computer.  Every time I hook the iPod up to my new computer it wants to delete what is on the iPod and replace with the contents of the iTunes that is currently on the new computer.  I don't want to do that.  I want to keep what is on the old iPod and transfer it to iTunes.  Any help?  Thanks!

    See this excellent user tip from another forum member turingtest2 outlining the different methods and software available to help you copy content from your iPod back to your PC and into iTunes.
    Recovering your iTunes library from your iPod or iOS device
    B-rock

Maybe you are looking for