2007 Sep 13 6:17 AM
Hi ,
I have a small query related to internal table , can we dump millions of records to an internal .
The actual requirment is like i need to develop a report in BI side where i have to dump records into an internal table from PSA tables without filtering .
Can we do so ....
or do we have any other option to dump the data to an internal tables .
need some tips on the same .
Thanks ,
VInay.
2007 Sep 13 6:24 AM
Hi
yes you can dump all the data into an internal table
<b>select * from table into table itab where .....</b>
no need to write the where condition also
it will get all the data into internal table at a time
reward if usefull
2007 Sep 13 6:28 AM
Hi Naresh ,
will the internal table can handle millions of records at a time do we have to have like you know like sorted or harshed table like .
if you explain me a little bit more could be help ful
Thanks ,
Vinay .
2007 Sep 13 6:31 AM
Hello Vinay,
I believe the following extract will give you a brief idea on the size limitations for an internal table.......
Internal tables are dynamic data objects, since they can contain any number of lines of a particular type. The only restriction on the number of lines an internal table may contain are the limits of your system installation. <u><i>The maximum memory that can be occupied by an internal table (including its internal administration) is 2 gigabytes. A more realistic figure is up to 500 megabytes. An additional restriction for hashed tables is that they may not contain more than 2 million entries.</i></u>
Hope it proved useful
Reward if helpful
Regards
Byju
2007 Sep 13 6:33 AM
Hi,
Yeah you can do that... but then ther might be performance issue..So better you binary search while accessing such internal. if possible make use of all key while reading..
Enjoy SAP.
Pankaj Singh.
2007 Sep 13 6:36 AM
hi,
u can dump so many records as u can to internal table as they are runtime entities.
using select statement u can dump all records from PSA tables to internal tables.
data: bwdump like STANDARD TABLE OF PSA WITH HEADER LINE.
select * from PSA into table bwdump where ...................................
if helpful reward some points.
with regards,
Suresh Aluri.
2007 Sep 13 6:48 AM
Hi ,,
Since the PSA table contains large number of records like 1.5 million per day .
do the internal table handle this much of records .
Need your advice on this .
Thanks ,
Vinay .
2007 Sep 13 7:38 AM
Hello ,
if you select millions of records in internal table it will give short dump.
In select clause there is provision to fetch data step by step
..........
2007 Sep 13 7:16 AM