public interface WorkforceTimesheetService extends BatchService<WorkforceTimesheetServiceBatch>
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 the controlling module synchronously.
Reference: SAP API Business Hub
OData Service: | API_MANAGE_WORKFORCE_TIMESHEET |
API Version: | 1 |
Communication Scenario: | Workforce Timesheet Integration (SAP_COM_0027) |
Scope Items: | Time Recording (1Q4), Time Recording - Project-Based Services (J12) |
Authentication Methods: | Basic, x509 |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SERVICE_PATH
If no other path was provided via the
withServicePath(String) method, this is the default service path
used to access the endpoint. |
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. |
WorkforceTimesheetService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
batch
static final String DEFAULT_SERVICE_PATH
withServicePath(String)
method, this is the default service path
used to access the endpoint.@Nonnull WorkforceTimesheetService withServicePath(@Nonnull String servicePath)
servicePath
- Service path that will override the default.@Nonnull TimeSheetEntryFluentHelper getAllTimeSheetEntry()
TimeSheetEntry
entities.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.@Nonnull TimeSheetEntryByKeyFluentHelper getTimeSheetEntryByKey(String personWorkAgreementExternalID, String companyCode, String timeSheetRecord)
TimeSheetEntry
entity using key fields.personWorkAgreementExternalID
- Work Agreement External ID
Constraints: 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.@Nonnull TimeSheetEntryCreateFluentHelper createTimeSheetEntry(@Nonnull TimeSheetEntry timeSheetEntry)
TimeSheetEntry
entity and save it to the S/4HANA system.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 © 2020 SAP SE. All rights reserved.