메뉴 건너뛰기

SAP 한국 커뮤니티

OPEN SQL 메모리 OVERLOAD 덤프시..

sapjoy 2007.04.04 09:26 조회 수 : 3603 추천:40

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>
 INTO TABLE itab
 PACKAGE SIZE <n>.
 
IF sy-subrc EQ 0.
*" Process the n records
ENDIF.
 
ENDSELECT.