‎2006 Oct 20 8:55 AM
Hi,
Here i getting for the one material only,but i want to show for multiple material no.the index is taking for the first material no of the latest updated data and last updated dated date based on sort by descending the date.but my requirement is to display for all the material no i want to show the latest and last updated data.help me to solve it.
Thanks,
Raj.
‎2006 Oct 20 9:15 AM
Hi
U should create a query on change document tables: CDHDR e CDPOS. The object class should be MATERIAL
Max
‎2006 Oct 20 9:15 AM
Hi
U should create a query on change document tables: CDHDR e CDPOS. The object class should be MATERIAL
Max
‎2006 Oct 20 9:23 AM
sort is by matlno docno descending date descending.
loop at ih.
clear is.
loop at is where matlno = ih-matlno.
--If you remove the exit in the loop you would be able to loop through all the records in descending order. So if you wish to display you can do it here by just taking out the exit statement and applying your code. In short the first record in the loop would be the one with latest date.
<u>Exit.</u>
endloop.
if sy-subrc <> 0.
no data in is
else.
is data with latest date.
endif.
endloop.
‎2006 Oct 25 3:41 AM
Hi,
Here i am getting for the first material no only,but i want to show for multiple material no.the index is taking for the first material no of the latest updated data and last updated dated date based on sort by descending the matl no and date.but my requirement is to display for all the material no i want to show the latest and last updated data.help me to solve it.
Thanks,
Raj.
‎2009 Sep 17 2:56 AM