Skip to Content
author's profile photo Former Member
Former Member

Free memory after Function call

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Feb 24, 2009 at 08: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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 24, 2009 at 09: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2009 at 04:57 PM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.