2009 Feb 24 7:49 AM
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
2009 Feb 24 8:11 AM
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
2009 Feb 24 9:31 AM
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
2009 Feb 27 4:57 PM
Have you tried SUBMIT AND RETURN to encapsulate your function calls?