Skip to Content
0
Former Member
Jul 22, 2008 at 09:14 AM

reg :sorting of internal table

83 Views

Hi all ,

I have requirement of having to take the latest creation date from the internal table .In the internal table i have multiple batch numbers for a particular plant and material number .I want to take one record for each material-batch combination for the given plant.So i have taken the field creation date as criteria .But how to take a single record if there are mutliple records having different batch numbers but same plant and material number .

data :itab_mchb TYPE STANDARD TABLE OF MCHB WITH HEADER LINE.

SORT itab_mchb DESCENDING BY ersda.