메뉴 건너뛰기

SAP 한국 커뮤니티

안녕하세요.


SAP 운영을 맡은지가 얼마 안돼서 어떻게 처리해야 할지 몰라서 올립니다.


집계 쿼리를 아래와 같이 되어 있습니다.


 


오더에 대한 정산처리 건수를 집계하는 부분입니다.


조회조건의  GR_OBJER 건수가 1만건이 넘어가는 경우에 에러가 납니다. 1만건 이하일때는 정상작동합니다.


달리 처리 할수 있는 방법 없을까요?


 


 

SELECT OBJNR
      SUM( WTG001 ) AS WTG001   SUM( WTG002 ) AS WTG002
      SUM( WTG003 ) AS WTG003   SUM( WTG004 ) AS WTG004
      SUM( WTG005 ) AS WTG005   SUM( WTG006 ) AS WTG006
      SUM( WTG007 ) AS WTG007   SUM( WTG008 ) AS WTG008
      SUM( WTG009 ) AS WTG009   SUM( WTG010 ) AS WTG010
      SUM( WTG011 ) AS WTG011   SUM( WTG012 ) AS WTG012
      SUM( WTG013 ) AS WTG013   SUM( WTG014 ) AS WTG014
      SUM( WTG015 ) AS WTG015   SUM( WTG016 ) AS WTG016
      INTO CORRESPONDING FIELDS OF TABLE GT_COSP
      FROM COSP
      WHERE OBJNR IN  GR_OBJNR
      GROUP BY  OBJNR.
  SORT  GT_COSP  BY OBJNR.


 


 


아래는 오류 메시지 내용 및 시스템 환경 입니다.


 


** 오류 분석내요 ** 메세지


An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_OPEN_SQL_DB', was not caught
 in
procedure "LAST_SELECT_DATA" "(FORM)", nor was it propagated by a RAISING
 clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The SQL statement generated from ABAP/4 Open SQL violates a
restriction imposed by the database system used in R/3.
You can usually find details in the system log and in developer
trace. The following error scenarios may be database-specific:
------
ORACLE
------
The maximum size of an SQL statement has been exceeded. In Oracle
6.* this is 8 KB, in Oracle 7.* 64 KB.
The Native SQL statement generated from an ABAP/4 Open SQL statement
must not take up more than the permitted space.


 


 


** 오류 수정방버 ** 메세지


 The ABAP/4 Open SQL statement concerned must be divided into several
 smaller units.
 If the problem occurred due to the use of an excessively large table
 in an IN itab construct, you can use FOR ALL ENTRIES instead.
 -
 When you use this addition, the statement is split into smaller units
 according to the restrictions of the database system used.
 -


 If you cannot solve the problem yourself, please send the
 following documents to SAP:


 1. A hard copy print describing the problem.
    To obtain this, select the "Print" function on the current screen.
 -


 2. A suitable hardcopy prinout of the system log.
    To obtain this, call the system log with Transaction SM21
    and select the "Print" function to print out the relevant
    part.


 3. If the programs are your own programs or modified SAP programs,
    supply the source code.
    To do this, you can either use the "PRINT" command in the editor or
    print the programs using the report RSINCL00.


 


4. Details regarding the conditions under which the error occurred
   or which actions and input led to the error.
Internal call code.........: "[RSQL/OPEN/COSP ]"
Please check the entries in the system log (Transaction SM21).


 


You may able to find an interim solution to the problem
in the SAP note system. If you have access to the note system yourself,
please use the following search criteria:


 


"ZPMMA_BL_026" "DBIF_RSQL_INVALID_RSQL"


 


If you cannot solve the problem yourself, please send the
following documents to SAP:


1. A hard copy print describing the problem.
   To obtain this, select the "Print" function on the current screen.
-


2. A suitable hardcopy prinout of the system log.
   To obtain this, call the system log with Transaction SM21
   and select the "Print" function to print out the relevant
   part.


3. If the programs are your own programs or modified SAP programs,
   supply the source code.
   To do this, you can either use the "PRINT" command in the editor or
   print the programs using the report RSINCL00.


4. Details regarding the conditions under which the error occurred
   or which actions and input led to the error.
The exception must either be prevented, caught within proedure
"LAST_SELECT_DATA" "(FORM)", or its possible occurrence must be declared in the
RAISING clause of the procedure.
To prevent the exception, note the following:


 


 


**** 시스템 환경   **********


 


 SAP-Release 700


 Application server... "s-sap-vt1"

 Operating system..... "Windows NT"
 Release.............. "5.2"
 Hardware type........ "16x AMD64 Level"
 Character length.... 16 Bits
 Pointer length....... 64 Bits
 Work process number.. 9
 Shortdump setting.... "full"


 Database server... "S-SAP-PRD"
 Database type..... "ORACLE"


 Char.set.... "C"


 SAP kernel....... 700
 created (date)... "Jan 29 2007 00:36:16"
 create on........ "NT 5.2 3790 Service Pack 1 x86 MS VC++ 14.00"
 Database version. "OCI_10201_SHARE (10.2.0.2.0) "


 


Patch level. 95
Patch text.. " "


Database............. "ORACLE 9.2.0.*.*, ORACLE 10.1.0.*.*, ORACLE 10.2.0.*.*"
SAP database version. 700
Operating system..... "Windows NT 5.0, Windows NT 5.1, Windows NT 5.2"


Memory consumption
Roll.... 16192
EM...... 29328880
Heap.... 0
Page.... 49152
MM Used. 8456624
MM Free. 4109824


 


 

번호 제목 글쓴이 날짜 조회 수
2853 [요청]한 프로그램에 내에서 2개의 트랜잭션(bdc)를 실행할때... ?? okay맨 2008.12.17 1334
2852 <b>[완료]</b>뭐가 문제인지 알수가 없어서.. 글올려봅니다. [1] 쭈니 2008.12.18 1511
2851 <b>[완료]</b>필드들을 합치는 방법을 알고 싶습니다. [4] file 튀밥 2008.12.18 1450
2850 <b>[완료]</b>RFC한번 봐주세요~~ 이상하게 안되서 다시한번 요청드립니다. [3] 쭈니 2008.12.18 1118
2849 [요청]ALV List에서 필드 Merge 하는 방법 좀 알려 주세요. [3] SkyDream 2008.12.18 1251
2848 [요청]필드심볼에 대해서 자세하게 알고 싶습니다. [2] ABAP초짜 2008.12.18 1642
» <b>[완료]</b>[건수집계 덤프처리]건수 집계시 건수에 따라 메모리 덤프 발생 [5] 폴라리스 2008.12.18 2374
2846 <b>[완료]</b>[스마트폼] 데이터칸 제외 나머지 여백 채우기. [2] dndb 2008.12.18 1492
2845 [요청]Package(Dev Class) 전체..백업에 관하여.. [1] 띵호아빠 2008.12.17 1986
2844 <b>[완료]</b>화면 기본값 설정은 어떻게 하나요?? 초보질문입니다 ㅜㅜ [3] 초보bsp/abap 2008.12.17 1481
2843 <b>[완료]</b>인터널 테이블의 최대값 조회 관련 질문입니다. [2] 튀밥 2008.12.17 2318
2842 [요청]se78 에 이미지를 잠깐 올렸다가 삭제 하는 펑션이 있을까요?? 아밥걸 2008.12.17 1376
2841 <b>[완료]</b>ALV TOOL 에서 레이아웃 변경 등 기능 추가하려면 어떻게 해야하나요? [5] file 기쁨 2008.12.17 2869
2840 <b>[완료]</b>스크린페인터에서 텍스트 필드 제어하는 방법 [5] 곰고양이 2008.12.17 1955
2839 <b>[완료]</b>RFC펑션에 관해서 질문좀 하겠습니다. 답변좀 부탁 급해서요 [4] 쭈니 2008.12.17 975
2838 [요청]bapi로 서비스 pr 생성 하는(엑셀업로드) 프로그램 만들려는데 질문좀요~!! file 풍운사랑 2008.12.17 1846
2837 [요청]screen속성과 표준툴바에 대해.. [2] 원더걸 2008.12.17 3438
2836 [요청]Webdynpro 레이아웃 브라우저화면 나오지 않습니다. file SAP아가씨 2008.12.17 1062
2835 [요청]완전 초밥이예요..SQL관련입니다................... [3] 김수♡ 2008.12.17 1010
2834 [re] [요청]완전 초밥이예요..SQL관련입니다................... 안졸리냐 2008.12.18 1106