Skip to Content
0
Nov 02, 2012 at 09:36 PM

Using a standard table as an array

96 Views

Hi,


I have one table and it has a 1000 entries
I'd like to take the records from it and split it across to tables so that each of them will have 500 entries.
** /abs/tbl_Exec_Rec is a standard table from the Table Types in the Dictionary

whole type /abs/tbl_Exec_Rec "This one has 1000 entries

part1 type /abs/tbl_Exec_Rec "This one will have 500 entries
part2 type /abs/tbl_Exec_Rec "This one will have 500 entries

In JAVA I don't need a loop to do this I can simply do:


T[] subArray Arrays.copyOfRange(T[] array, int start, int end)

so for my table it'll be something like that:

T[] part1 Arrays.copyOfRange(T[] big, 0, 499)

T[] part2 Arrays.copyOfRange(T[] big, 500, 999)

How can do it in SAP I don't want to use any loops?

Thanks .