Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Program dumps due to insufficient memory

Former Member
0 Likes
777

SAP Experts,

I am using a SELECT query on a database table. Since the number of records in the table is very large, <b>the program dumps due to insufficient memory</b>. How can I solve this?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
736

Hi,

Use the Primary key field or use index fields or both in where condition and avoid the select * instead of all give field name according to the table field sequence

dont use into corresponding fields of

dont use table appending

Use INTO Internal table

or create seperate secondary index and use the index.

Try to give more where conditions without more validation < >= like this

Dont use Count / Min / Max functions in select query

use Joint

try to get primary key values from the header table fields and use it.

Regards,

nandha

Reward if it helps

5 REPLIES 5
Read only

Former Member
0 Likes
736

Hi,

Can you paste your query?

There are no. of ways of tuning performance.

Read only

Former Member
0 Likes
736
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
736

HI,

use the option <b>PACKAGE SIZE</b> to tell the packet size you want to use so that query fetches the data in packets of the size you mentioned.

Then process the each package in the SELECT ENDSELECT.

and clear you memory in the loop after the data is processed

Regards,

Sesh

Read only

0 Likes
736

thanks a lot

Read only

Former Member
0 Likes
737

Hi,

Use the Primary key field or use index fields or both in where condition and avoid the select * instead of all give field name according to the table field sequence

dont use into corresponding fields of

dont use table appending

Use INTO Internal table

or create seperate secondary index and use the index.

Try to give more where conditions without more validation < >= like this

Dont use Count / Min / Max functions in select query

use Joint

try to get primary key values from the header table fields and use it.

Regards,

nandha

Reward if it helps