1, 工作日加减
BKK_ADD_WORKINGDAY
1 2 3 4 5 6 7 |
CALL FUNCTION 'BKK_ADD_WORKINGDAY' EXPORTING i_date = l_date "日期 i_days = -1 "日期减一天 i_calendar1 = g_calendar "工厂日历ID IMPORTING e_date = l_new_date. "计算后的日期 |
2, 检查是否是工作日
DATE_CHECK_WORKINGDAY
1 2 3 4 5 6 7 8 9 10 11 12 13 |
CALL FUNCTION 'DATE_CHECK_WORKINGDAY' EXPORTING date = l_date "日期 factory_calendar_id = g_calendar "工厂日历ID message_type = 'I' EXCEPTIONS date_after_range = 1 date_before_range = 2 date_invalid = 3 date_no_workingday = 4 factory_calendar_not_found = 5 message_type_invalid = 6 OTHERS = 7. |
其他关于工厂日历的文章:根据工厂日历转换日期[DATE_CONVERT_TO_FACTORYDATE]
以上。
发表评论