Notice
Recent Posts
Recent Comments
Link
250x250
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- abap #sap #conversion #currency #conversion_currency
- abap move corresponding #abap data이동 #abap correspond mapping
- abap #initial #null #abap inital vs null
- sap #abap #화폐단위 #sap conversion #inr conversion
- abap #sql #sap #query 실행 순서 #query 작성 순서
- abap #동적 where #동적 select
- abap #정규표현식 #regular expression
- abap #abap_move
- abap #sap #layout #layout 설정
- abap #sap #search hlep #f4 #f4if_int_table_value_request #change column name
- sap #abap #cl_gui_alv_grid #function code #alv
- abap #sap #color #row #layout
- abap #sap #hotspotclick #do_sum
- abap #sap #se16h #data #tcode
- abap #sap #free #alv #clear #refresh
- abap #se39 #srepo #sap #development #compare code
- #apostrophe
- grave #abap #sap #backquote
- abap #sap #sy-datlo #sy-datum #syst #system variable # 시스템변수
- sap #cts #abap #release #merge cts #request no
- abap #wildcard #와일드카드 #sql #select #where조건
- open sql #sap #abap #where exists #where not exists
- abap #sap #conversion #currency #cfield #waers
- abap #sap #sy-index #sy-tabix #syst
- sap #abap #data exists #read table #xsdbool #line exists
Archives
- Today
- Total
0v0__DEV
[09] 인도 화폐단위(INR.루피) 로 conversion하기 본문
728x90
오랜만에 컴백!
최근
금액을 인도에서 사용하는 화폐 단위인 '루피'로 컨버전해달라는 요청사항을 받았습니다!
인도 화폐단위의 특이한 점은 백 단위, 천단위, 십만단위, 천만단위 등
각 단위마다 'Hundred, Thousand, Lakh, Crore' 등의 명칭이 있다는 것입니다!
이 때, SAP 스탠다드 펑션인 'HR_IN_CHG_INR_WRDS' 을 사용하면 쉽게 변환할 수 있습니다~
DATA lv_amt_in_num type PC207-BETRG. (Curr 15.2)
DATA lv_amt_inr type C. (필요한 길이만큼, Char 설정)
CALL FUNCTION 'HR_IN_CHG_INR_WRDS'
EXPORTING
amt_in_num = lv_amt_in_num " HR Payroll: Amount
IMPORTING
amt_in_words = lv_amt_in_words
EXCEPTIONS
data_type_mismatch = 1 " The imported amount too long
OTHERS = 2.
사용한 예시를 보겠습니다
INPUT 값으로 254,654,64.00 을 입력하면
결과는 위와 같이
CRORE, LAKH, THOUSAND 등의 단위를 사용한 Rupees로 변경되어 결과가 출력됩니다!
참 쉽쥬?
728x90
'ABAP project' 카테고리의 다른 글
[08]CTS 병합 (0) | 2024.09.03 |
---|---|
[07] ABAP 동적 WEHRE조건, Select 필드 (1) | 2024.08.14 |
[06] FREE 구문 (0) | 2024.08.07 |
[05] CL_GUI_ALV_GRID 의 Attributes (0) | 2024.07.29 |
[04] Currency Conversion SQL Func (2) | 2024.07.24 |