Professional Documents
Culture Documents
I am using a SELECT query on a database table. Since the number of records in the table is very
large,
the program dumps due to insufficient memory. How can I solve this?
In this case you could use the PACKAGE SIZE addition in the SELECT query to process in limited
amount of data,
thus avoiding the memory overloads.
Eg:
SELECT *
FROM <table>
IF sy-subrc EQ 0.
ENDIF.
ENDSELECT.
tables : mara.
data : it_mara like mara occurs 0 with header line.
loop at it_mara.
write : / sy-tabix, it_mara-matnr.
endloop.
EXPORTING
AMOUNT = v_int
LANGUAGE = SY-LANGU
IMPORTING
IN_WORDS = words.
WRITE words-word.
DATA words LIKE SPELL. " SPELL IS A STRUCTURE