Selection and processing data from internal table
i am having a internal table of 5000 records which are not distinct... out of which I am selecting 1500 records for blocking..
it should calculate 500 distinct records out of those 1500 records and first it should block the 1st 500 and in the second slot the second 500 and in the final shot the last 500 records...
101 should be considered as 1 record and 102 as 2nd record and so on with the rest of the records
If my selection reaches more than 500 records
in 1st slot first 500 records has to be processed and in the second slot next 500 records has to be processed...
this is how it should be working
please let me know how to identify and process out of 1500 records 1st 500 records ,....2nd next 500 so on...