메뉴 건너뛰기

SAP 한국 커뮤니티



엑셀파일 업로드시 컨벼젼 에러안나게하는 펑션

SCPPP 2011.12.15 14:18 조회 수 : 18822

  <style type="text/css"> SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L1S31 { font-style: italic; color: #808080; } .L1S32 { color: #3399FF; } .L1S33 { color: #4DA619; } .L1S52 { color: #0000FF; } </style>    CATCH SYSTEM-EXCEPTIONS  conversion_errors  = 1.
        REPLACE ALL OCCURRENCES OF '.' IN:
               gt_xls-value  WITH space.
        REPLACE ALL OCCURRENCES OF '/' IN:
               gt_xls-value  WITH space.
        REPLACE ALL OCCURRENCES OF '-' IN:
               gt_xls-value  WITH space.
        CONDENSE gt_xls-value  NO-GAPS.
        gt_xls-value  = gt_xls-value.
    ENDCATCH.

 

 

 

catch -  endcatch사이에

수식을 넣을때 계산값이 소수점이 나와 덤프방지를 할때도 사용합니다.

ex)    <style type="text/css"> SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L1S31 { font-style: italic; color: #808080; } .L1S32 { color: #3399FF; } .L1S33 { color: #4DA619; } .L1S52 { color: #0000FF; } </style>    CATCH SYSTEM-EXCEPTIONS  conversion_errors  = 1.
       gt_itab-uprice = gv_nprice / gv_xprice       

    ENDCATCH.

번호 제목 글쓴이 날짜 조회 수
1244 디버깅!!! [51] file 플래툰K 2012.01.18 17070
1243 <img src=d.gif>SAP ecc6.0에서의 변형을 통한 동적변수만들기[추천:e-abap] [8] file 양키 2010.06.23 17015
1242 as02 자산마스터에 Long Text 를 저장하고 읽는 방법입니다. [4] file 칸스 2010.09.16 16986
1241 T-code로 User-Exit 조회하는 프로그램 [33] file 양키 2010.07.08 16984
1240 ABAP Debug Tip & Tricks [44] file 희주2 2013.08.13 16958
1239 Authorisation creating and modifying simple profile [31] file ksj 2007.01.17 16925
1238 ALE QuickStart for Distributed HR file magenta 2007.12.28 16841
1237 <img src=c.gif>SAP screen에 그림파일 조회하기(7)[추천:보나][추천:유리선율] [29] file 춘풍 2011.03.11 16831
1236 스마트 폼 [13] file 청화산 2011.03.28 16827
1235 SAP ICON 이미지 Gif 파일 [6] file 양키 2012.12.04 16772
1234 <img src=c.gif>대한민국우편번호 업로드하는 프로그램입니다. (현행 우편번호도 같이 묶었습니다)[추천:e-abap][추천:無念군] [6] file 칸스 2010.10.14 16749
1233 각 모듈별 테이블 목록 [12] file 재윤아빠 2010.12.05 16698
1232 Excel DOI에 관한 소스 입니다. ^^ [14] file Giant 2012.01.18 16697
1231 SAP Mobile 개발을 위한 java(jar) tool [13] file 양키 2011.02.07 16626
1230 ABAP [Dictionary] Other Database Object [6] 문바이 2011.10.22 16624
1229 legacy와 interface 하는 fuction예제 [3] SCPPP 2011.12.15 16542
1228 인포타입 생성방법입니다. [8] file 녹스노바 2010.07.22 16537
1227 Interactive Programming 예제 [5] file 양키 2010.12.22 16376
1226 class_builder [20] file sapjoy 2007.01.29 16370
1225 <img src=c.gif>LSMW를 이용한 vendor master 마이그레이션[추천:e-abap][추천:유리선율] [26] file 양키 2010.06.28 16361