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

Runtime Error: : TSV_TNEW_PAGE_ALLOC_FAILED

former_member282968
Contributor
0 Likes
4,508

Hi,

I am using the dynamic ALV in the program and created the dynamic internal table with reference to class cl_abap_tabledescr. The program processes large volume of data and when executing the program for a particular variant I am getting a dump of category "Resource Shortage" with the runtime error: TSV_TNEW_PAGE_ALLOC_FAILED. It says that "No more storage space available for extending an internal table."  & "

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


In the error analysis I have the below info:


The internal table "{A:88*\TYPE=%_T00003S00000099O0000007920}" could not be

  further extended. To enable

error handling, the table had to be delete before this log was written.

As a result, the table is displayed further down or, if you branch to

the ABAP Debugger, with 0 rows.

At the time of the termination, the following data was determined for

the relevant internal table:

Memory location: "Session memory"

Row width: 2200

Number of rows: 4122424

Allocated rows: 4122424

Newly requested rows: 4 (in 1 blocks)

Last error logged in SAP kernel

At one point the memory crosses the extended memory as well as the heap memory and gives this dump.

The amount of storage space (in bytes) filled at termination time was:

Roll area...................... 2718272

Extended memory (EM)........... 3745674048

Assigned memory (HEAP)......... 6000090384

Short area..................... " "

Paging area.................... 90112

Maximum address space.......... " "

How to track when the memory crosses the heap memory,what is the cause and whats the solution to this error.

With thanks & regards,

Naveen

6 REPLIES 6
Read only

Former Member
0 Likes
2,143

https://scn.sap.com/thread/1097646Before starting a selection of data, refresh memory using function module

BUFFER_REFRESH_ALL. Check this link too.

Read only

Former Member
0 Likes
2,143

hi,

  You can use ST02 checks for buffers and memory related parameters and there utilization.

Read only

Former Member
0 Likes
2,143

Hi Naveen,

You can always use The ABAP Memory Inspector to better analyze the memory usage of a program.

The ABAP Memory Inspector - Test and Analysis Tools in ABAP - SAP Library

Regards,

Felipe

Read only

former_member186741
Active Contributor
0 Likes
2,143

I don't know if such a mythical beast exists, but what would be very useful here (and in lots of other cases as this runtime error has caused lots of threads to be created) )would be a mechanism(function module, class method) for a program to detect whiole it is running that storage is getting low and that this type of runtime error is imminent. If this can be caught a simple....please refine your parameters message could be shown which has got to be better than a shortdump.

Read only

Former Member
0 Likes
2,143

This message was moderated.

Read only

RajPal_SAP
Participant
0 Likes
2,143

This message was moderated.