Application Development 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: 

Runtime Error: "No memory space available ...."

Former Member
0 Kudos

Hello I encountered a runtime error in my report program and goes something like this...

<b>"No memory space available for extending table "I_PRICE"."

What Happened?

"You attempted to extend an internal table, but the required space was not available."

"The internal table "I_PRICE" could not be enlarged further. To extend the internal table "I_PRICE", 8448 bytes of memory space was needed, but none was available."

"At this point, the table "I_PRICE" had 53757232 eintries"

"To facilitate error handling, the internal table "I_PRICE" was deleted"</b>

I understand that the runtime error has something to do with the lack of memory available to run the report. My question is what exactly is the cause of this? And what would be the best way to alleviate this. Thanks again and good day.

1 ACCEPTED SOLUTION

Former Member

Even though your basis can help on this issue, it is your program that may be causing this. Look at how you are filling I_PRICE and see if it is really correct to have so many records inserted into this internal table. If possible, add more criteria to filter the records that are inserted into this internal table. Basis can only help you to a certain extent, but it is not a good programming practice to have such big internal tables in your program. Imagine looping through these millions of records that you are inserting into this table.

5 REPLIES 5

Manohar2u
Active Contributor
0 Kudos

Reason is no free allocated memory available in OS level.

Basis team might help you?

To avoid this we can try using field-symbols which is adivised for using huge data handling.

Regds

Manohar

dani_mn
Active Contributor
0 Kudos

Hi,

Ask your basis team to increase the maximum memory allocation to a program.

It will be solved.

Regards,

Wasim Ahmed

Former Member

Even though your basis can help on this issue, it is your program that may be causing this. Look at how you are filling I_PRICE and see if it is really correct to have so many records inserted into this internal table. If possible, add more criteria to filter the records that are inserted into this internal table. Basis can only help you to a certain extent, but it is not a good programming practice to have such big internal tables in your program. Imagine looping through these millions of records that you are inserting into this table.

Srinivas Adavi pointe i the right direction: You should analyze (or debug) how your internal table is filled.

- check if you append the same record repeatedly

- check if you really need all of the fields

Avoid appending records within a loop on that table because the same record might get processed again and again.

Regrads,

Clemens

hi

do check ur program and it's more to do woth ur program than basis issues as min memory allocation should be enuf to run your abap program and thus just look at the way u r filling the internal table and try separating it in 2 3 internal tables and try merging them based on search criteria...

Reward Points if it helps

Regards

Gunjan