‎2008 Feb 14 10:20 AM
I am having many values in the internal table..Key field is RNO..I want to select the highest value of RNO from the internal table..
Example :
RNO
1
2
3
4
Now i need to find the highest value which is 4.
‎2008 Feb 14 10:23 AM
Hi,
sort itab desc. "Sorting internal table in descending order.
read table itab index 1 into var. "variable var contains the highest value.
Regards,
Soumya.
‎2008 Feb 14 10:23 AM
Hi,
sort itab desc. "Sorting internal table in descending order.
read table itab index 1 into var. "variable var contains the highest value.
Regards,
Soumya.
‎2008 Feb 14 10:24 AM
Hi,
Sort your internal table by RNO decending. Then read the table with index 1.
Rgds,
Bujji
‎2008 Feb 14 10:24 AM
Hello,
U can do like this.
sort itab by rno descending.
read table index 1.
write: itab-rno.
Hope this solve ur issue.
Cheers,
Vasanth
‎2008 Feb 14 10:26 AM
Hi,
Use
APPEND ITAB SORTED BY <FIELD>.
By default, it will keep the maximum value as a first record.
U can select the first record by using index 1.
If useful, please award points.
‎2008 Feb 14 10:27 AM