메뉴 건너뛰기

SAP 한국 커뮤니티

안녕 하세요 E-ABAP으로 열심히 공부하는 마늘맛쿨피스 입니다.


 


ABAP프로그램을 짜는데 


 




gs_amt_profit-amt_1 =  ( gs_amt_fix04-amt_10  / gs_amt_fix-amt_10  )


 


위 소스에서 gs_amt_fix04-amt_10  / gs_amt_fix-amt_10 둘중에 하나의 값이 0일경우 계산이 안되 오류가 납니다.


 


저런 계산식이 엄청나게 많아서 그런데 나누는 값이 0일때는 어떻게 처리 해야 될까 궁금 합니다.


 


IF문을 써서 0을 가려 내려 했지만 식이 너무 많아서 그것도 힘들거 같고 좋은 방법 있을까요 ??


 


 


Error in the ABAP Application Program


The current ABAP program "YREPORT_011" had to be terminated becau
come across a statement that unfortunately cannot be executed.


 


An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_SY_ZERODIVIDE', was not caught in
procedure "COMPARISON04" "(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:
In the current program "YREPORT_011", an arithmetic operation ('DIVIDE',
'/', 'DIV' or 'MOD') with a type P operand attempted to divide
by 0.

번호 제목 글쓴이 날짜 조회 수
4199 [re] <img src=2.gif> FIELD-SYMBOLS 관련 질문입니다. [1] 요요 2009.11.14 1744
4198 <img src=3.gif>write문으로 이루어진 list를 pdf파일로 저장하는 부분의 궁금증 [5] file 튀밥 2009.11.13 1855
4197 <img src=3.gif>엑셀 다운로드시 숫자가 2.00911E+12나오는데 방법이 없을까요? [6] 귤탱 2009.11.13 6012
4196 <img src=3.gif>ALV에서 F4 구현시 도메인의 Range값 가져오는 법? [2] 부산갈매기 2009.11.13 2155
4195 <img src=2.gif>ws_download을써서 header가 나오게 하고싶습니다. [2] CoolGuy 2009.11.13 1080
4194 <img src=1.gif>Intertable의 데이터를 cvs파일로 다운로드 CoolGuy 2009.11.12 1218
4193 <img src=2.gif>[질문수정]사용자의 SAP GUI 버전 정보 시스템 변수 또는 펑션이 있나요? [3] 도마슈노 2009.11.12 1244
4192 <img src=2.gif>Grid에서 0.000000 을 0으로 보이게... [3] CoolGuy 2009.11.12 1268
4191 <img src=3.gif>SAP GUI 710 설치 후 스크린페인터 오류 [6] 부산갈매기 2009.11.12 2829
4190 <img src=3.gif>SUBMIT 관련 해서 질문 입니다. ^^ [4] rainbow1 2009.11.12 1661
4189 <img src=3.gif>OPEN SQL에 대해 질문드립니다~ ^^; [6] 이카루스 2009.11.12 1557
4188 <img src=2.gif> SET LANGUAGE 질문입니다 ㅠㅜ [7] 아밥콩` 2009.11.12 2487
4187 <img src=1.gif>SALV HIERSEQ에서 필드 구분자 넣는 방법.. 은미짱 2009.11.12 1690
4186 <img src=3.gif>SALV HIERSEQ에서 컬럼 OUTPUT LENGTH 설정.. [3] 은미짱 2009.11.11 1387
4185 <img src=2.gif>혹시 as/400 db데이터를 sap으로 가지고 오는 방법 아시는분 계신가요 [2] 처서련 2009.11.11 1058
4184 <img src=2.gif>프로그램 실행시 'CNDP' 덤프가 나는데 이유를 잘 모르겠습니다 원인과 해결책을 부탁드립니다. [2] file rune 2009.11.10 2346
» <img src=3.gif>0을 값으로 나눌때 생기는 에러 해결 어떻게 해야 하나요 ??? [8] 마늘맛쿨피스 2009.11.10 1727
4182 <img src=2.gif>[T-CODE]T-CODE의 변경일 생성일을 알수 있는 테이블이 어케 되나요? [2] 드라곤 2009.11.10 1326
4181 <img src=2.gif>[User-exit] BOM ( check bom data before saving ) [3] 찬호사랑 2009.11.10 2307
4180 <img src=2.gif>bom/routing BAPI 질문드립니다. [4] 신수도 2009.11.10 1774