‎2006 Feb 14 9:27 AM
Hi. I am running a program that very often brings up the following error. Even if I try limiting the table search to a few items I sometimes get the error.
The current program had to be terminated because of an error when installing the R/3 system. The program had already requested XXXXXXXXXXX bytes from the operating system with 'malloc' when the operating system reported after a further memory request that there was no more memory space available.
Is there any help out there?
Rapula
‎2006 Feb 14 10:11 AM
Hi,
Are you using 'FOR ALL ENTRIES' with your program?.
It might makes the program require more memory allocation.
You can avoid using that key word if you are using it.
It might resolve your problem.
Thank you.
Regards,
Karun M
‎2006 Feb 14 12:39 PM
Thanks Karum. I do have the 'FOR ALL ENTRIES' in my program like this:
...
SELECT * FROM DBERCHZ INTO TABLE T_DBERCHZ
FOR ALL ENTRIES IN ITAB
WHERE BELNR = ITAB-BELNR.
LOOP AT ITAB WHERE BELEGDAT > '20011204'.
...
I disabled the 'FOR ALL ENTRIES' line because with the LOOP statement it actually looks like a repetition. Is it a repetition?
I just tested with the disabled line and it seems to work. I will do some further tests and see.
Thanks again
Rapula
‎2006 Feb 16 1:16 PM
Oops. I tried taking off the line with the 'FOR ALL ENTRIES' but - new problem, the program then does not pick up anything from the table, even the information that I know exists, it behaves as if the table is empty.
HELP TO SOLVE BOTH PROBLEMS PLEASE
‎2006 Mar 01 12:39 PM
Someone gave me a solution to this. See the cone below and I hope if anyone has this problem theis can help...
Include the DESCRIBE TABLE and the IF...ENDIF statements as below.
DESCRIBE TABLE ITAB LINES sy-index.
IF sy-index GT 0.
SELECT * FROM DBERCHZ INTO TABLE T_DBERCHZ
FOR ALL ENTRIES IN ITAB
WHERE BELNR = ITAB-BELNR.
ENDIF.
‎2006 Mar 01 12:55 PM
Better :
IF NOT ITAB[] IS INITIAL.
SELECT * FROM DBERCHZ INTO TABLE T_DBERCHZ
FOR ALL ENTRIES IN ITAB
WHERE BELNR = ITAB-BELNR.
ENDIF.
It's better than overwritting SAP system field
Regards,
Erwan.
Message was edited by: Erwan LE BRUN --> ITAB ( not T_DBERCHZ before the 'Initial' )
‎2006 Mar 01 1:13 PM