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

Free Memory consumed in a Standard FM

Hi All,

We've developed a custom interface to download all documents data to a file in XML. Basically the process is as follows:

1. Select documents identifiers.

2. Getting document info (using a standard function module) and generating XML string.

3. Save the string in the file and FREE all data.

4. After all documents has been retrieved we close the file.

We take special care in freeing our internal tables and data since this process extracts a huge amount of information.

However, when we test memory dumps occurs. After debugging we realize that internal tables used in the standard function module are never freed, so after processing several blocks there's no more memory.

Is there any method or function module to free that memory?

Thanks in advance

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Mar 24, 2006 at 02:44 PM

    It depends on the standard FM that you are using. Look in the function group of that FM and see if there is a separate one to free the internal tables used in the one you are using.

    Rob

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      The reason for your memory shortage might be due to your XML processing. AFAIK the DOM representation of the XML document needs huge amounts of memory.

      If possible destroy the occurding XML-objects ... or have a look at ST (SimpleTransformation)...

  • Posted on Mar 24, 2006 at 01:38 PM

    Hi,

    Have you tried using the FREE MEMORY statement?

    Regards,

    Suresh Datti

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 24, 2006 at 01:42 PM

    Hi,

    The problem is not located in the data declared in the report, the tables that are causing the overflow are declared in the standard function module, so I cannot free them.

    Thanks,

    David

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 24, 2006 at 04:49 PM

    What are these standard function modules that you are calling?

    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.