11-19-2008 5:04 AM
Hi! Please tell me how to select last 100 vbelns.
Thanks and Regards,
Jagan.
11-19-2008 5:06 AM
HI JAGAN,
Sort your internal table by descending. And select the first 100 records .
sort itab by vbeln descending.
Thanks & Regards
11-19-2008 5:06 AM
HI JAGAN,
Sort your internal table by descending. And select the first 100 records .
sort itab by vbeln descending.
Thanks & Regards
11-19-2008 5:07 AM
Select all vebeln in to an internal table. Sort that internal table by assending or descending or descending. Then in a loop you can select your required entries. Hope it helps you out
11-19-2008 5:09 AM
Hi
SORT the internal table Decending order and write the select statment SELECT UPTO 100 rows
11-19-2008 5:11 AM
Hi,
In the SELECT QUERY use the additions UPTO 100 ROWS AND ORDER BY VBELN DESCENDING
But i think this causes a bit performance issue as the soring will be done at the database level.
With regards,
Dwaraka.S
11-19-2008 5:21 AM
Hi,
Try like below.
SELECT * FROM mseg INTO TABLE itab UP TO 100 ROWS ORDER BY mblnr
DESCENDING.
11-19-2008 6:04 AM
Hello,
Sort your internal table by the following code.
SORT itab by vbeln descending.
Then select the first 100 rows of itab.
Regards
Arindam