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

EXSORT_NOT_ENOUGH_MEMORY

Former Member
0 Likes
1,607

Hello Experts,

I have a problem with internal table data.

I am trying to sort one internal table in my ABAP program. At the sort statement I am getting short dumps saying 'EXSORT_NOT_ENOUGH_MEMORY' and 'EXSORT_FWRITE_FAILED'.

The error analysis says that : 'The running program wanted to sort a internal table. For reasons of capacity, it was not possible to sort the internal table in available main memory. The external sort was therefore called. Could not write the sorted data to the temporary file '. And the error text given was 'No space left on device'.

It seems to be purely a memory issue.

Using ABAP Code, I tried to split the data into few internal tables. I can sort individual internal tables, but finally when I append all these data into one internal table again it was in unsorted order.

Is there any possibility to overcome this by doing some changes in ABAP code itself? please suggest if nothing can be done by ABAP and it is purely a BASIS issue.

Regards.

5 REPLIES 5
Read only

former_member156446
Active Contributor
0 Likes
1,015

the max you can do in ABAP is to try clearing any unwanted data, variable, memory if you feel its not needed and if still this happens.... then your basis team need to look into it.... generally in DEV the memory allocation would be less... in PRD it will be more comparatively...

J@Y

Read only

0 Likes
1,015

hi,

why cant u try with field groups with that u can sort easily.

~linganna

Read only

0 Likes
1,015

Hi Linganna and Jay,

Thanks for your quick replies.

Hi Linganna,

Can you be more specific? So if i use a field group instead of internal table can I sort any amount of huge data? Is it not going to call external sort? Is it possible for me to get the data back to internal table fromn the field group?

Please let me know your kind suggestions.

Regards.

Read only

0 Likes
1,015

Have you tried using a SORTED table?

matt

Read only

Former Member
0 Likes
1,015

Please see Note 310712