TABLES:tcurr.
DATA:dd LIKE tcurr-gdatu,
ukurs LIKE tcurr-ukurs.
DATA:cc(10).
DATA:gv_tcurr LIKE tcurr OCCURS 0 WITH HEADER LINE.
dd = 20080331.
CALL FUNCTION 'CONVERSION_EXIT_INVDT_OUTPUT'
EXPORTING
input = dd
IMPORTING
output = cc.
CONCATENATE cc+0(4) cc+5(2) cc+8(2) INTO cc.
SELECT SINGLE ukurs INTO (ukurs) "* INTO CORRESPONDING FIELDS OF TABLE gv_tcurr
FROM tcurr WHERE fcurr = 'USD' AND tcurr = 'CNY' AND kurst = 'M' AND gdatu = cc.
WRITE ukurs.
FIMA_DAYS_AND_MONTHS_AND_YEARS
得到两个日期差(年,月,日)
DAY_ATTRIBUTES_GET
可以得到两个日期之间的工作日(可以指定Calendar)
HOLIDAY_GET
获得休息日
RP_LAST_DAY_OF_MONTHS
得到某一日期所属月份的最后一天
END_OF_MONTH_DETERMINE
得到某一日期所属月份的最后一天
阅读(1027) | 评论(0) | 转发(0) |