Need to obtain material last consumption date

Greetings, Experts!
I am writing a report, and one of the requirements is supplying the date a material was last consumed. I will also be using this date as a date range selection.
Where can I find the last consumption date of a material? Not a period, but an actual date.
Many thanks!
Cheryl

Hi,
You may get the data consumption of movement data from the below 2 tables.
MKPF     material document
MSEG     material document (item level)
Other than this, you may also use the transaction MB51 to pull the data for all the movement related.
For BSIM table, which contains material movement and also the value direct posted to GL, i don't know if you required this.
Thank you very much,
Regards,
Chee Wee

Similar Messages

  • Need FM to get the last consumption date and value

    Hello Friends,
       i am developing a report for non moving material , i have got the relevant fields from MSEG,MKPF, MCHB, MCH1,,, but i need the last consumption date for that non moving material batch and value (total amount ) of that batch...
    so i need a Function Modules, to get this values .
    Please help me out
    Regards
    Mukesh

    You have to join MSEG and MKPF ( where MKPF has the posting date ) , ( day,month,year ) . You can calculate the month.moreover, also see S031,S032,S033
    else.
    check it at Mseg-lgort, and movement types for the given matnr.
    from there u can find the consumtion according to movement types .
    for particular period carry mblnr from mkpf and check the movement types which r equal to this mblnr and matnr in mseg.
    so u get the all movement types in that period for particular matnr.
    consumtion = issues - receipt.
    hope this helps u

  • How can we show the last consumption dates?

    Hi BEx  Gurus,
    I have consumption dates and quantites for a material and a time interval in my query.
    In the selection screen i specify a time interval. Then i execute query. I can see last consumption quantity due to calculated key figure(enhancement> last quantity due to calendar day(consumption date)).
    Up to now eveything is OK. But i want to see also last consumption date. I tried formula variable with key "date", set it to the last . I drag it to the calculated key figure. Put it to the colums. But when i executed i saw that last date is the date that i specified in selection screen. It is not the date that last consumption is exist.
    Could you please help me?

    var letter:Number = Number(new Number(0x2714).toString(10));
                        trace(String.fromCharCode(letter))
    Source : Adobe Website
    If you cannot still cannot display it, just change the font family,
    simple way is by copying the character into the text field, then change the font family until the character show up correctly, then just input that code i give to u to the script
    PS : Just done it

  • Need FM to get Last change date of Objects in package

    Hi All,
      Is there any Function module to get Last changed date of all Objects in a package .
      How to get the last change date of class,methods,function module.....
      I can get last change date of programs from TRDIR....UDAT....Similarly how can I get for Function Module and Class Methods. 
    With Thanks,
    Dina.
    Message was edited by: Dinamol Sasidharan

    Go/double click on the affected cubes you want to see the time stamp.
    click the Extras(tab on the upper of part of SAP) or simply 'Ctrl + F5'.
    Box will appear.
    Click on Logs for Save/Activate so you will see the linfo for the users who used this cube.
    Then put time restriction for From and To(always the current day and time).
    Then execute, all of the users who changed then saved/activated that cube will appear on that timeframe you view.
    Hope this help.

  • Need to get the Last Changed date in Purchase Order.

    Dear Experts,
    I need to get a table which stores the last/ latest change for a Purchase Order.
    For a Purcahse Order, last date  Changes need to be captured , where there was some sort of activity associated with that order. That activity could be a goods receipt, an invoice payment or a change to the Purchase order.
    Thanks in advance.

    Hi,
    You can use EKPO-AEDAT.
    Tables CDHDR and CDPOS contain what chnages you have made.
    Thanks,
    Ramakrishna
    Message was edited by: Ramakrishna Prasad Ramisetti

  • Need to obtain a handle to Data Controls through a java pgm in Oracle ADF

    Hi
    Through my java pgm i want to access the Data Control which i have created over a Web Service.The reason i need to do that is, once i can obtain a handle to the Data Control i will be able to invoke methods exposed on the Web Service and i want to do it through my pgm.
    I am aware that if i can drag and drop a DC of a web service onto a JSF page, it will be associated with a btn and on click of a btn the webservice method will be called.But my requirement is that i need to do the same through my pgm.
    Thanks !!!

    Hi Ansh
    Thanks for the reply
    I have followed the same link and created a sample app and i am facing some error, error given below.
    jdeveloper 11.1.1.6.0  Warning 'http://xmlns.oracle.com/oracleas/schema/11/
    if you have any solution for this , pls revert.
    Thanks in advance

  • Last Consumption & Last receipt date logic

    Hi
    I am facing some issue while developing BI Stock report where user wants last consumption date & last receipt date in the report.
    But issue is that when i am going to develop BI query how can i differentiate date for both consumption & receipt because consumption & receipt has differentiate with movement type (suppose Mov type : 101 is for receipt & 261 is for consumption then if i use exceptional aggregation and put last value & reference char as Mov type then all 101 & 261 mov type data will come.
    Please guide for developing last consuption & last receipt date logic
    Regards,
    Gaurav

    Hi Anshu
    Thanks for your helpful reply.
    This is my last option as you suggested. But i will share you my concern that i have developed report on 0IC_C03 & in our business scenario, If i change ETL Structure then we need to delete target data, & we have millions of records if i reconstruct the data then it will take 4-5 days times. Also, some times our marker is interrupted then we need to again the same activity so i want to avoid the same activity in Workbench side and do all required changes in BI Query side.
    Can we use customer variable for time characteristics for the same issue.
    If there is any other idea in your mind, Please share.

  • Last Activity Date in Opportunity Report

    Hi Guys,
    Would like to knoe if there's a way to retrieve the Last Activity Date in a historical Opportunity report?
    Regards,
    Teena

    Basically, I need to show all opportunities with or without activities. If there are activities attached to an opportunity, then I need to get the Last Activity Date.
    I tried using the Activity object in reporting but if there's no activity linked to an opportunity, it is not being displayed in the report.
    Regards,
    Teena

  • Customer's last payment date.

    Hi everybody, I need to obtein the last payment date of a customer, somebody know if are there any function module or bapi that get that information? Regards.

    Listo

  • Reportable Last Modified Date and Time Field

    Reportable Last Modified Date and Time Field
    Hello,
      We need a reportable RequestCenter 'last modified date/time' database field that is refreshed when the 'Comments and History' field is updated.  Any ideas would be appreciated.  Thanks! 

    No, unless you can use an FTP client.

  • SQL to generate last weeks date(not a stored procudure)

    I need SQL to generate last weeks dates starting from Monday to Sunday. I don't want to use any table data or stored procedure. I need inline SQL. Please help me with your suggestions. Thanks in advance for the help.

    varun wrote:
    I need SQL to generate last weeks dates starting from Monday to Sunday. I don't want to use any table data or stored procedure. I need inline SQL. Please help me with your suggestions. Thanks in advance for the help.below should get you started
      1* SELECT SYSDATE-LEVEL from dual CONNECT BY LEVEL < 8
    SQL> /
    SYSDATE-L
    21-APR-13
    20-APR-13
    19-APR-13
    18-APR-13
    17-APR-13
    16-APR-13
    15-APR-13
    7 rows selected.

  • Last GR Date

    Hi !
    Two questions regarding Last GR date:
    1. We need to display the Last GR date on a report. Is this date stored in any table from where it could be readily read? Or, do we need to scan through MSEG for movement 101 to determine this date?
    2. What is the best strategy to bring over the last GR date from the legacy system at the time of cutover?
    Thanks!
    Anisha.

    Hi Anisha,
    Study through EKBE table, should give you the details as well. Yes MSEG table is a good place to get the info, just ensure that for a given 101 mvt document, there is no cancellation & also check for the posting date in descending order, should give you the latest receiving date.
    Also refer to ME2M, ME2N, ME2L, with appropriate value in the field Selection Parameters on the input screen eg: WE101, to get the output as needed.
    Hope the above helps.
    Regards,
    Vivek

  • Material wise Last Receipt Date v/s Last Issue Date report

    Dear Sir,
    We are in a need of a report which can provide us Material code wise the last material recipt date and last issuance date .
    Kindly guide us if there is any standard report available in  SAP . Incase we need to go for a z report then which tables should be referred to get the desired information .
    Regards
    Sania agarwal

    Dear Sonia,
    Execute the reports,MC.1,MC.A,MC.9,after executing these reports,click on choose key figures (F6) and select the options for
    Last consumption
    Last goods issue
    Last goods movement
    Last Receipt
    and check the same.
    Regards
    S Mangalraj

  • How to get material's last posting date of issuing to production order?

    Hi,
    In my scenario, I need to get material's last posting date of issuing to production order (e.g. mov. typ. 261).
    I tried to select the material documents whose movement type is 261, and restrict the posting date from month to month each time, until the first material document is selected.
    But this method seems quite inefficient.
    What kind of algorithm is more effient to do this?
    Thanks
    Wesley

    Hi,
    select max( budat )
      from mkpf
      into gv_budat
      where mblnr in ( select mblnr
                         from aufm
                        where aufnr = gv_aufnr "(Prod. Order)
                            and  matnr = gv_matnr "(Issued Material)
                            and bwart = '261' ).
    Edited by: Azeem Ahmed Matte on Mar 12, 2010 12:33 PM

  • How to calculate the days between last movement of material till today date

    Hello Experts,
    Could someone help me please?
    I have a key figure in the InfoCube 0IC_C03 witch contain the last date of movement of material.
    (it is a key figure created in format date and contain the max value).
    How can I to calculate the number of days between this date (last movement),  till today date (system date).
    I need to show:
    material........last movement.....days without movements.
    xxxxxxxxxxx.....dd/mm/yyyy..........9999
    Im trying to do this calculation in bex using variable formula but it doesn't work becouse current date (customer exit) brings sy-datum in format yyyymmdd and the kf-last-mov is in format number (I dont know what kind of number)
    Thanks in advance,
    Points are assured.
    Regards,
    Silvio Meurer.
    Message was edited by:
            Silvio Meurer

    Hi Parth,
    Here we are using the version 7.0 and SP 10, I'm afraid I could not understand you. I Can't find the function DATE_DIFF (Where is it?)
    I'm using the formula and it doesn't work. Coud you see the result is:
    last movement date     Today date        result
    02.04.2007                  20.070.625       19.337.856
    18.05.2007                  20.070.625       19.337.810
    the "today date" is from customer exit and the result is a strange number to me.
    Could you help me?

Maybe you are looking for

  • Remote faxing error - A fax number was not provided.

    I have a USRobotics 5637 Fax / Modem attached to a Mac Mini. I can send and receive faxes on the Mini. I have enabled printer sharing on the Mini. User rights are everyone is allowed to print. When I try to print to the shared fax from my MacBook Air

  • How can I create an electronic signature to use on my email?

    ''locking as a duplicate - https://support.mozilla.com/en-US/questions/811562'' When I have completed an email, I would like to have a signature print automatically my name, title, address, etc. How do I create this "signature"?

  • Single Click in OS X: is that possible?

    Hello, Is it possible to switch from double click to single click in OS X? I don't find anywhere in system preferences giving me this option! Thanks, Ramin

  • Maximum size of a PDF

    I've been adding to a dbase for years. It's currently at 423 records, and just a bit smaller than a 10 meg PDF. I don't really want to split it, and it loads fine and browses and searches fine. But I'm wondering if I'm not near the limit on size, and

  • Why does google appear in miniature when I try to use it

    when I enter a google search in the top rh search box on my screen it then appears in microscopic form in the middle of my screen , it is unreadable , how can I change this ?