要抓的是2010/10/1~2011/3/31範圍內的文件
可以利用HR的FM來處理,HR_HK_ADD_MONTH_TO_DATE,範例如下:
CALL FUNCTION 'HR_HK_ADD_MONTH_TO_DATE'
EXPORTING
dmm_datin = '20110331'
dmm_count = '5'
dmm_oper = '-'
dmm_pos = 'X'
IMPORTING
dmm_daout = g_date
EXCEPTIONS
unknown = 1
OTHERS = 2.
g_date+6(2) = '01'. "2010/10/01