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

Free memory after Function call

Former Member
0 Likes
1,580

Hi,

Is there a possibility to free the memory after a call to a function.

The call is only used for display, not to get data.

(For example - CALL FUNCTION 'FKK_BUPA_DISPLAY')

Our z-transaction delivers a way of navigating through different ISU objects (coming from an ALV list)

The user first selects a case from this list and then he receives the details. From the details screen we then call these standard function to display the ISU objects.

During the day memory usage is getting build up and it's only released when the user leaves our z-transaction.

Ideally the memory should be released when the user returns to the list and not at the end of the day when he leaves the transaction.

I've tried with FREE MEMORY but this doesn't help.

Greetings,

Ivo

3 REPLIES 3
Read only

Former Member
0 Likes
908

Hi Ivo

One thing you could try is to create a zFM in the same Function Group as of your FM. Now in this FM write FREE MEMORY statement or FREE all objects which might be causing the memory build up.

Pushpraj

Read only

HermannGahm
Product and Topic Expert
Product and Topic Expert
0 Likes
908

Hi Ivo,

sounds like a "enldess transaction" pattern.

Take multiple memory snapshots (OK-CODE /HMUSA) in your application and compare

these in transaction S_MEMORY_INSPECTOR in order to find out if there is a memory

leak. The comparison will show you where memory growth comes from... maybe this gives

you an idea what could be deleted between the steps of your endless transaction.

Kind regards,

Hermann

Read only

Former Member
0 Likes
908

Have you tried SUBMIT AND RETURN to encapsulate your function calls?