‎2016 Apr 21 10:22 AM
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
‎2016 Apr 21 10:54 AM
https://scn.sap.com/thread/1097646Before starting a selection of data, refresh memory using function module
BUFFER_REFRESH_ALL. Check this link too.
‎2016 Apr 21 11:26 AM
hi,
You can use ST02 checks for buffers and memory related parameters and there utilization.
‎2016 Apr 22 12:00 AM
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
‎2016 Apr 22 2:55 AM
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.
‎2016 Apr 22 7:40 AM
‎2016 Apr 22 7:47 AM