标签:round 并且 size 员工 work cep day base att
*员工每日工作计划表T550A
*获取一个员工的工作计划调用函数:HR_PERSONAL_WORK_SCHEDULE,获取多个员工工作计划调用函数:HR_PERSON_READ_WORK_SCHEDULE,并且后者是包括缺勤/出勤/待命责任等的人员
*轮班日程表。
DATA: l_tab_perws LIKE TABLE OF ptpsp WITH HEADER LINE.
CALL FUNCTION ‘HR_PERSONAL_WORK_SCHEDULE‘ "获取个人每日工作计划到l_tab_perws
EXPORTING
pernr = gwa_out-pernr”一个员工号
begda = pn-begda " 选择时间段
endda = pn-endda
TABLES
perws = l_tab_perws
EXCEPTIONS
no_plvar_found = 1
no_entry_found = 2
OTHERS = 3
.
DATA: lt_pernr LIKE TABLE OF pdpnr WITH HEADER LINE,"功能模块调用的含人员编号的结构
lt_psp LIKE TABLE OF pdpsp WITH HEADER LINE,"包括缺勤/出勤/待命责任等的人员轮班日程表
lt_daypsp LIKE TABLE OF pdsppsp WITH HEADER LINE." 缺勤/出勤少于一天的人员
CALL FUNCTION ‘HR_PERSON_READ_WORK_SCHEDULE‘”批量获取日工作计划到lt_psp
EXPORTING
begin_date = pn-begda
end_date = pn-endda
* GROUPING_DWS =
* GROUPING_ATTENDENCE =
* GROUPING_SUBSTITUTE =
* READ_FROM_DATABASE = ‘ ‘
* IM_READ_NO_LOCKED_RECORDS =
TABLES
pernr_tab = lt_pernr”多个员工号存放的表
psp = lt_psp”个人工作计划表
day_psp = lt_daypsp
* CHANGING
* CH_AUTH_INFTY_TAB =
* EXCEPTIONS
* ERROR_IN_BUILD_PSP = 1
* OTHERS = 2
.
声明:转载请标明出处!
标签:round 并且 size 员工 work cep day base att
原文地址:http://www.cnblogs.com/Risky-1206/p/7735681.html