Application Development and Automation 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: 
Read only

Report Display

Former Member
0 Likes
668

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
622

Hi

U should create a query on change document tables: CDHDR e CDPOS. The object class should be MATERIAL

Max

4 REPLIES 4
Read only

Former Member
0 Likes
623

Hi

U should create a query on change document tables: CDHDR e CDPOS. The object class should be MATERIAL

Max

Read only

Former Member
0 Likes
622

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.

Read only

0 Likes
622

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.

Read only

Former Member
0 Likes
622

solved