2008 May 07 8:07 AM
2008 May 07 8:43 AM
hi
Use MAX( itabfield ) and MIN( itabfield ) to accomplish the same.
Swetha Singh
2008 May 07 8:24 AM
if you are using an internal table to hold these values then sort the table by that field in assending order and read the table using index 1, you will get the minimum no. Then again sort it in decending order and read the table using index 1, you will get the maximum no.
Hope this will help you.
2008 May 07 8:40 AM
sort itab1 by matnr ascending.
sort itab1 by matnr ascending.
read table itab1 index 1.
read table itab2 index 1.
if itab1-matnr LT itab2-matnr.
itab1 matnr is min.
else.
itab2-matnr is min.
endif.
You can do the same thing for Maximum but sort the tables by descending and do the same proceedure
Regards
Kiran
2008 May 07 8:43 AM
hi
Use MAX( itabfield ) and MIN( itabfield ) to accomplish the same.
Swetha Singh