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

memory low

Hi experts !

i m develping a report in which i used following code

LOOP AT IT_atten INTO WA_ATTEN.

WA_ATTEN-total_REST_HOLIDAY = WA_ATTEN-REST_HOLIDAY + WA_ATTEN-total_REST_HOLIDAY .

APPEND WA_ATTEN TO IT_ATTEN .

ENDLOOP.

becoz of this code short dump is coming with error " Memory Low " . plz help me in solving this should i use some hash table or sort table instead of standard table ..

DATA: BEGIN OF IT_ATTEN OCCURS 1,

PERNR LIKE P0000-PERNR,

REST_HOLIDAY(3) TYPE P DECIMALS , ACT_WORK_DAY(3) TYPE P DECIMALS 2,

LWP(3) TYPE P DECIMALS 2,

." here i have other 14 fields "

END OF IT_ATTEN .

DATA : WA_ATTEN LIKE LINE OF IT_ATTEN .

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 28, 2008 at 08:56 AM

    Hi ,

    It is dumping as it is creating an infintie loop , as you are looping on IT_ATTEN and inside that loop you are appending a record in that internal table.

    So with each iteration of the loop , a new records is added and hence there is no way you can end/exit the loop

    Please correct it , then you program will not give a dump for this reason.

    Regards

    Arun

    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.