2007 May 22 1:22 AM
Hi Friends,
I want to select maximum amount record from the internal table, can any one tell me how to extract that maximum record.
Regards,
Line
Hi Friends,
I want to select maximum amount record from the internal table, can any one tell me how to extract that maximum record.
Regards,
Line
2007 May 22 1:23 AM
Hi Friends,
I coded in this way but cannot
SELECT MAX( trans ) status
INTO (v_trans v_status ) from lt_final.
Regards,
Line
2007 May 22 1:28 AM
Hi Line,
Try this.
SELECT MAX( trans ) status
INTO (v_trans v_status ) from lt_final.
GROUP BY trans
Reward points if useful.
Regards,
Atish
2007 May 22 1:29 AM
Hi Line Turbin,
Let me tell you one simple way..
sort the internal table descending by the amount.
then loop at the internable table and if sy-tabix = 1. then exit
example:
sort i_tab by wmbtr descending.
loop at i_tab.
if sy-tabix = 1.
move the hight value into variable or the row into something
exit.
endloop.
award points if useful
2007 May 22 1:36 AM
Hi there,
Can we move a record by using one statement.
Regards,
Line
2007 May 22 1:38 AM
Hi Line,
The best way is to select the maximum value using select query itself so that there will be less amount of data selected in the internal table and no need to do further processing on it.
Regards,
Atish
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |