|
Open all | Close all
|
Retrieve employees work schedule
The below code shows how HR_PERSONAL_WORK_SCHEDULE is used. Export to the FM a personnel
number, period and it will retrieve the employees work schedule for that period.
|
data: it_ptpsp type standard table of t_ptpsp initial size 0,
wa_ptpsp type t_ptpsp.
CALL FUNCTION 'HR_PERSONAL_WORK_SCHEDULE'
EXPORTING
pernr = pernr-pernr
begda = pn-begda
endda = pn-endda
* KUG =
* REFRESH = 'X'
* WORKING_HOURS = 'X'
* SWITCH_ACTIV =
* MODIFY_ENTRIES = 'X'
* I0001_I0007_ERROR = '0'
* READ_CLUSTER =
IMPORTING
warning_occured = gd_warning
TABLES
* I0000 =
* I0001 =
* I0002 =
* I0007 =
* I0049 =
* I2001 =
* I2002 =
* I2003 =
perws = it_ptpsp "Stores employees work schedule
* I0003 =
EXCEPTIONS
error_occured = 1
abort_occured = 2
OTHERS = 3.
|
Number of SAP Development Users currently online

|
|