Last transaction date

hi experts,
I want to write a daily report to show a item's history, not only last sales, purchase date, but also last transaction date(includes production, inventory transfer, issues and receipts).
I know OITM and OITW can get Stock, unit price, last purchase date and last sales date, but where can I get the last transaction date and info such as item post list? Thanks...

Try this one:
SELECT   T0.ItemCode, T0.ItemName, T0.Onhand, Max(T1.DocDate) 'Last Trans Date'
FROM        dbo.OITM T0
INNER JOIN dbo.OINM T1 ON T1.ItemCode = T0.ItemCode
WHERE T0.ItemCode Like '[%0\]%'
GROUP BY T0.ItemCode, T0.ItemName, T0.Onhand
Thanks,
Gordon

Similar Messages

  • Vendor last transaction date

    Hi,
      I want to show vendor last transaction date. How we can get it.
      Thanks in advance.
      Regards,
    Moderator message : Requirements dumping not allowed, thread locked.
    Edited by: Vinod Kumar on Dec 9, 2011 5:42 PM

    Hi,
    You can take the report of the  FI accounting document for all vendors based on the company code and the posting date ( input the present date) in the T code- S_ALR_87012991.
    regards,
    Kannan B

  • Need a report_Batchwise Mvt type last transaction date qty

    Dear Gurus
    Please suggest me any standard report or Table for display below report.
    Batchwise>Mvt type>last transaction date>qty
    thanks in advance
    Mayur

    Hi,
    MB51 --- Material documents list.
    Regards,

  • Vendor with last transaction date

    Hi,
    Can I generate any report which contains all vendors with last transaction date? THis is for audit purpose.
    Thanks & Regards,
    Rajaneesh.C

    Hi,
    You can take the report of the  FI accounting document for all vendors based on the company code and the posting date ( input the present date) in the T code- S_ALR_87012991.
    regards,
    Kannan B

  • Storage Location last transaction date

    Hi All
    What particular transaction code or report will I can find storage location last transaction date?
    We'll be using this for our PID
    Thank you
    Jesielle

    Hi  Shiva Ram         
    Aside from tcodes MB51 and MB5B. Is there any other report wherein it only shows the storage location codes with last transaction date?
    Thanks
    Jesielle

  • Item details with Last Transaction Date ?

    Hi,
    Please help someone to fine tune this query :-
    Select ILLITM,ILDOC, ILDCT, ILTRDJ
    FROM CRPDTA.F4111
    where ILTRDJ in (Select max(ILTRDJ) FROM CRPDTA.F4111);
    The above query is returning the latest transaction date with Item details.
    But expected output is: Every Item with last transactional date.
    Hope I am clear on the above requirement please.
    Thanks in advance.
    RAM

    you can use table alias for this
    Select ILLITM,ILDOC, ILDCT, ILTRDJ
    FROM CRPDTA.F4111 tab1
    where tab1.ILTRDJ in (Select max(tab2.ILTRDJ) FROM CRPDTA.F4111 tab2);
    or if you are using this query inside any PL-SQL block , you can use a variable to hold max(ILTRDJ) and then use this variable in query.

  • Last Transaction Date Report

    hi
    I'm trying to run a report in order to audit our database of suppliers (over 1000) (supplier records managed in symmetry)
    I need to see against every supplier the last date that we paid them so that I can identify the ones not used in the last 2yrs and disable them.
    the closest report I'm getting is one that shows every payment date for every supplier and is so large that I'm running out of space in excel when exporting the report.
    Any advice on what items to select and parameters to set in order to get this report would be much appreciated!!!!!

    My suggestion is to use the vendors table (PO_VENDORS) and the checks table (AP_CHECKS_ALL). Bring in vendor id, vendor name, and check date. Use a Last_Value function on check date to return the last check date for the vendor. See if that might work out. Or if having trouble with that, define the join in the business area between the vendors table and the checks table to be an outer join on detail, that will return master rows with no detail and master rows with matching detail. Take out check date from the format and add sum of amount to the format. Then edit for a check date (say >= '01-Jan-2008') that if you don't have any activity for after that date, then you want to get rid of those vendors. Run the workbook and any vendor with no activity will show as a NULL value for sum of check amounts (so have to add Amount(SUM) from the checks table to the workbook item list). Vendors with activity after that check date will show a numeric amount (might be 0 if in and out). You can then add a condition to filter for amount IS NULL and get the list of vendors that you want to look at disabling. Worked like a charm when I tested that here.
    John Dickey
    Edited by: John Dickey, McCarthy on Nov 3, 2009 12:13 PM
    Edited by: John Dickey, McCarthy on Nov 3, 2009 12:19 PM
    Edited by: John Dickey, McCarthy on Nov 3, 2009 12:22 PM

  • Standard report to show last transaction date posted to an asset

    Is there any standard report in asset accounting which shows- to view the last posting of transactions to an asset (if there were up or down movement on the asset values) excluding the depreciation posted.

    Try individual Asset transactions report , you can specify posting date ranges here and display report Asset wise -- S_ALR_87012048 - Asset transactions ,S_ALR_87012050 - Asset Acquisitions ,S_ALR_87012054 - Intracompany Asset Transfers ,S_ALR_87012052 - Asset Retirements
    Also check S_ALR_87012058 - List of Origins of Asset Debits .
    Lastly you can go with the Query SQ01 or SQVI reports.
    Regards
    Mukta

  • Last transaction date on any table for monitoring operation on it

    Hi All,
    I will be very thankful to you, if suggest some method for knowing the
    latest date-time of dml operation on any table.
    best rgds

    Investigate LogMiner @ OTN. How to use it depends greatly on your Oracle version.
    If you have a very specific need to know this for some very specific tables, you are better off writing triggers and writing some logging information to a table.

  • Inventory - last purchase date

    This is my first post, so my apologies if all is not correct.
    We were recently taken over and the new owners are trying to put a realistic value on the stock and it has fallen to me to provide the information. I need to ascertain the age of the stock and could do this 2 ways if the information was available:
    1. Use the last purchase date to determine how long we have held the stock. Acceptable but the last purchase field in OITM is not the last purchase date. For items it is, for others it is the last stock transaction date and for the rest I have no idea what the date relates to.
    2. Use a last transaction date, if only SAP had one. Our old system had this date and it made life very simple.
    I can find dates for last issue, receipt and sale but not for production order transactions. If I could then I can get the information merging a few spreadsheets.
    A last transaction date must be stored somewhere, maybe in the financials?
    Any help would be gratefully received.
    Regards
    Stewart Clark
    We are using 2005 SP1 PL45.

    Stewart Clark,
    To expand on what Petr has mentioned most of the information you are looking for is available in SAP Business One.
    The Inventory posting list contains an entry for every inventory transaction that has been processed inclusing Goods Issue, Receipt, Delivery, Production, .....
    The table these values are stored is OINM (warehouse journal).  If you could manage using SQL you could query this table and get the details you need.
    Let me know if you need further assistance with anything to help you move forward
    Suda

  • Last transaction

    Hi
    Could any one tell me how the extract the date of last transaction made by a list of vendors. The purpose is to block the inactive vendors.
    regards
    Hari

    Hi Hari,
    Please check the below thread, it might help you.
    Vendors Last Transaction date
    Regards,
    Akhila.

  • How to get the date of the last transaction in a mounted standby database?

    Hello,
    Could you tell me how to get the date of the last transaction recorded in a MOUNTED standby database?
    The following query doesn't work...because the database is not open...
    select scn_to_timestamp(current_scn) from v$database;
    Thanks

    Hi,
    You should be able to run the following command in mounted mode on standby database.
    select current_scn from v$database;
    then run the following to convert it to timestamp.
    select scn_to_timestamp(99999999) from dual; *<-- Replace here the SCN value you got above. This needs to be run on the primary database due to standby database in mount mode.*
    Alternatively you can also check at the alert.log file to find the last scn which has been applied.
    Regards
    Edited by: skvaish1 on Jan 19, 2010 11:15 AM

  • Last execution date and time of a transaction

    Hi,
    Could anyone let me know the procedure to find the last execution date and time of a transaction (for example MM01/MM02). We are currently working on ECC6.0
    Raja

    Hi Raja,
    Check table CDHDR, fetch data against T code MM01/MM02 and get MAX(UDATE) and MAX(UTIME).
    You will get last execution date and time.
    Please reqward ponits if it useful.
    Regards
    Krish

  • How to get the last transaction in a row in SQL Developer?

    What syntax would I use to get the last transaction of a row in SQL developer?
    The way I have my query set-up currently it is not returning the correct data, here is my current syntax:
    select ssn, max(tran_id), chng_type,tran_id
    from pda_tran
    where ssn = 'xxx-xxx-0011'
    and chng_type = 'C'
    group by ssn, chng_type,tran_id;
    It returns a 'C' chng_type but it is not the last one. when I query on this ssn this is what I get:
    ssn tran_id chng_type
    xxx-xxx-0011 001 A
    xxx-xxx-0011 002 E
    xxx-xxx-0011 003 C
    xxx-xxx-0011 004 S
    xxx-xxx-0011 005 C
    xxx-xxx-0011 006 T
    I only want to return the ssn's with a last transaction chng_type of 'C'. How can I get the correct information returned. Please advise.

    From what I see and read... there is one to many group by
    You wrote
    select ssn, max(tran_id), chng_type,tran_id
    from pda_tran
    where ssn = 'xxx-xxx-0011'
    and chng_type = 'C'
    group by ssn, chng_type,tran_id;
    If you want the max(tran_id), remove it from the "group by"
    select ssn, chng_type, max(tran_id)
    FROM
    (SELECT 'xxx-xxx-0011' ssn, '001' tran_id, 'A' chng_type FROM DUAL UNION
    SELECT 'xxx-xxx-0011' ssn, '002' tran_id, 'E' chng_type FROM DUAL UNION
    SELECT 'xxx-xxx-0011' ssn, '003' tran_id, 'C' chng_type FROM DUAL UNION
    SELECT 'xxx-xxx-0011' ssn, '004' tran_id, 'S' chng_type FROM DUAL UNION
    SELECT 'xxx-xxx-0011' ssn, '005' tran_id, 'C' chng_type FROM DUAL UNION
    SELECT 'xxx-xxx-0011' ssn, '006'tran_id, 'T' chng_type FROM DUAL )
    where ssn = 'xxx-xxx-0011'
    and chng_type = 'C'
    group by ssn, chng_type;

  • Inventory report with the last transaction details of each material

    Hi,
    is there any standard inventory report in SAP which gives us  the last transaction details of each
    Material,along with last procurement qty, value, date and last issue
    details of Qty, Value & date.
    Thansk in advance.

    Hi
    try following t-code
    MB5B u2013 Stock on Posting Date
    or
    2   s_p00_07000139 u2013 Stock Card and Inventory Material Report
    Regards
    Kailas Ugale

Maybe you are looking for

  • I am getting a certificate error message and there is no link on the page to add this site as an exception.

    I am trying to open up the web page where we log into our employee email. Evidently the security certificate has been changed. I am getting a certificate error message, but I am not seeing a link provided where I can click to add this web site as an

  • How choose which partition of my external drive I use for my network

    Hi, I just bought a Linksys E3200 router for my network house. The setup was easy and everything work fine... well.. almost everything. I have a Iomega 1To external drive whit 2 partition ; the first one is a mac os extend for my Time Machine backup

  • Hi can you tell me how to remove the icons in safari on my iphone 4s?

    Hello, I am using an iphone 4s and when I tap on the Safari icon, the screen shows sites I have visited, how to I delete these icons.  I have tried soft close - top button and home button together, in settings>safari tapped on Clear Cookies and Data

  • After 6.1.2 update apps not working

    After updating my iPhone with 6.1.2, all the apps that I had downloaded from app store have stopped working. Further app store is also not responding. Please help. All other pre installed apps that comes with Iphone are working fine.

  • KE24 report

    Dear all, In our KE24 report, excise values are not appearing for some billing documents and for some billing documents it is appearing. What would be the issue? Please suggest. Regards, AR