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: 

Free memory after Function call

Former Member
0 Kudos

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

Former Member
0 Kudos

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

former_member192616
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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