Fonction SAP BAPI_PTIMEOVERVIEW_GET - BAPI 7013

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
EXTAPPLICATION BAPI7013_3-EXTAPPLICATION C 5
FROMDATE BAPI7013_3-FROM_DATE D 8
TODATE BAPI7013_3-TO_DATE D 8

Paramètre Reférence Long. Facultatif Description
EMPLOYEES BAPI7013_4 8 Import: List of personnel numbers
RETURN BAPIRET2 548 X
TIMEOVERVIEW BAPI7013_1 67 Export: Overview of time data
TIMETYPES BAPI7013_5 4 X Import: List of requested time types
TIMETYPEVALUES BAPI7013_2 24 X Export: Number per time type

Functionality
This method defines a time data overview for employees.
The time data determined can be used as a value guide for recording inanother system (such as in a time sheet or an external system).

Notes
An "asynchronous access" to R/3 Time Management data determined by themethod PTimeOverview.Replicatespecifies the employees for whom a time data overview is to be created.
A "sysnchronous access" to R/3 Time Management data determined by thetime period entered and the external application specifies theemployees for whom a time data overview is to be created.
The employees selected are returned in the EMPLOYEES parameter. A listof the time types for these employees also to be included in theoverview is returned in the TIMETYPES parameter.
The time data overviews are returned in the TIMEOVERVIEW parameter.
The selected time types and the applicable number of hours are returnedin the TIMETYPEVALUES parameter.
The overviews are transferred to the other systems by the methodPTimeOverview.SaveReplica.

Description
For more information on external applications, see the correspondingdata element documentation on the external application.
Time data recorded in an external application can not beincluded in the time data overview. Enter an appropriate application.

Description
The FROMDATE parameter determines the point in time as of whichemployee time data overviews can be created.

Description
The TODATE parameter determines the point in time up to which employeetime data overviews can be created.

Description
for more informaton on personnel numbers, see the corresponding dataelement documentation on the Personnel number.

Description
Method return code

Value range
If an error occurs, this structure contains, for example, the followinginformation:
Message type (TYPE field)
Message code (CODE field)
Message text (MESSAGE field)

Default
Critical errors are indicated by E (error) and A (abort),warnings by W, and information and success messages by Iand S respectively.

Description
Detail entries for the time data overview are returned in a specifcstructure. For more information on the individual parameters, see thecorresponding data element documentation.

Structure:
EMPLOYEENUMBER Personnel number
VALIDITYDATE Validity date
EXTAPPLICATION External application
REGULARHOURS Normal working hours of an employee onone day
REGULARBEGIN Normal start of employee's workingtime
REGULAREND Normal end of employee's working time
HOLIDAYCLASS Public holiday class
NONWORKING Indicator: Employee does not need towork
REGWORKTIMETEXT Text for normal working time on oneday
ATTENDANCEHOURS Attendance hours of an employee onone day
ABSENCEHOURS Absence hours of an employee on oneday
OVERTIMEHOURS Overtime hours of an employee on oneday

Description
For more information on time types, see the corresponding data elementdocumentation on the Time type of an employee.

Description
The desired time types are returned in a specific structure.

Structure:
EMPLOYEENUMBER Personnel number
VALIDITYDATE Validity date
TIMETYPE Time type of an employee
TIMETYPEVALUE Value of an employee's time type on oneday