Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Last updated item number.

radhushankar
Participant
0 Kudos

Hi All,,

I need to get the last item number updated in the EKPO table for a particular PO.Can any one please let me know how to do that??

Thanks,

3 REPLIES 3

Former Member
0 Kudos

Hi,

Check table CDHDR & CDPOS tables.

Former Member
0 Kudos

use this fm

call function 'ME_CHANGES_READ'
  exporting
    document_category = is_ekko-bstyp
    document_number   = is_ekko-ebeln
    date_of_change    = itab-datvr
    time_of_change    = itab_nast-uhrvr
  tables
    xcdhdr            = it_cdhdr.


sort it_cdhdr by udate descending utime descending.
"Now pick first entry from the table which is the latest change, get the changenr and query on cdpos 
"with the changenr where tabname is ekpo, u'll get the fieldname which has been changed along wid old
 "and new values.

кu03B1ятu03B9к

Edited by: kartik tarla on Jan 30, 2009 8:44 AM

Former Member
0 Kudos

Hi

Check out this link on [Modification|].

Hope this helps

Regards,

Jayanthi.K