@Named public class DefaultManageWorkforceTimesheetService extends Object implements ManageWorkforceTimesheetService
This service enables you to create, read, update and delete (CRUD) data related to Timesheet of a workforce (Employees or Contingent Workers) with the data provided in a payload, in an API call. This service also supports automatic posting of Timesheet data to Controlling synchronously.
Reference: SAP API Business Hub
OData Service: | API_MANAGE_WORKFORCE_TIMESHEET |
API Version: | 1 |
Communication Scenario: | Workforce Timesheet Integration (SAP_COM_0027), Workforce Timesheet Integration (SAP_COM_0027) |
Scope Items: | Time Recording (1Q4), Time Recording - Project-Based Services (J12) |
Constructor and Description |
---|
DefaultManageWorkforceTimesheetService() |
Modifier and Type | Method and Description |
---|---|
TimeSheetEntryCreateFluentHelper |
createTimeSheetEntry(TimeSheetEntry timeSheetEntry)
Create a new
TimeSheetEntry entity and save it to the S/4HANA system. |
TimeSheetEntryFluentHelper |
getAllTimeSheetEntry()
Fetch multiple
TimeSheetEntry entities. |
TimeSheetEntryByKeyFluentHelper |
getTimeSheetEntryByKey(String personWorkAgreementExternalID,
String companyCode,
String timeSheetRecord)
Fetch a single
TimeSheetEntry entity using key fields. |
public DefaultManageWorkforceTimesheetService()
public TimeSheetEntryFluentHelper getAllTimeSheetEntry()
ManageWorkforceTimesheetService
TimeSheetEntry
entities.getAllTimeSheetEntry
in interface ManageWorkforceTimesheetService
TimeSheetEntry
entities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call the execute
method on the fluent helper object.public TimeSheetEntryByKeyFluentHelper getTimeSheetEntryByKey(String personWorkAgreementExternalID, String companyCode, String timeSheetRecord)
ManageWorkforceTimesheetService
TimeSheetEntry
entity using key fields.getTimeSheetEntryByKey
in interface ManageWorkforceTimesheetService
personWorkAgreementExternalID
- Work Agreement External IDConstraints: Not nullable, Maximum length: 20
companyCode
- The company code is an organizational unit within financial accounting.Constraints: Not nullable, Maximum length: 4
timeSheetRecord
- The system assigns time sheet records a counter. The counter represents a record's unique database ID.Constraints: Not nullable, Maximum length: 12
TimeSheetEntry
entity using key fields. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call the execute
method on the fluent helper object.public TimeSheetEntryCreateFluentHelper createTimeSheetEntry(TimeSheetEntry timeSheetEntry)
ManageWorkforceTimesheetService
TimeSheetEntry
entity and save it to the S/4HANA system.createTimeSheetEntry
in interface ManageWorkforceTimesheetService
timeSheetEntry
- TimeSheetEntry
entity object that will be created in the S/4HANA system.TimeSheetEntry
entity. To perform execution, call the execute
method on the fluent helper object.Copyright © 2018 SAP SE. All rights reserved.