Class DefaultWorkforceTimesheetService
java.lang.Object
com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultWorkforceTimesheetService
- All Implemented Interfaces:
BatchService<WorkforceTimesheetServiceBatch>,WorkforceTimesheetService
@Named("com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultWorkforceTimesheetService")
@Deprecated
public class DefaultWorkforceTimesheetService
extends Object
implements WorkforceTimesheetService
Deprecated.
The service and all its related classes are deprecated. Please use the odata generator to generate the
VDM.
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 Business Accelerator Hub
Details:
| OData Service: | API_MANAGE_WORKFORCE_TIMESHEET |
| API Version: | 1.0.0 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | Workforce Timesheet Integration(SAP_COM_0027) |
| Scope Items: | Time Recording(1Q4), Time Recording - Project-Based Services(J12), Time Recording(OQ4) |
| Authentication Methods: | x509 |
| Business Object: | TimeSheet |
-
Field Summary
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odata.services.WorkforceTimesheetService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingWorkforceTimesheetService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Deprecated.createTimeSheetEntry(TimeSheetEntry timeSheetEntry) Deprecated.Create a newTimeSheetEntryentity and save it to the S/4HANA system.Deprecated.Fetch multipleTimeSheetEntryentities.getTimeSheetEntryByKey(String personWorkAgreementExternalID, String companyCode, String timeSheetRecord) Deprecated.Fetch a singleTimeSheetEntryentity using key fields.withServicePath(String servicePath) Deprecated.Overrides the default service path and returns a new service instance with the specified service path.
-
Constructor Details
-
DefaultWorkforceTimesheetService
public DefaultWorkforceTimesheetService()Deprecated.Creates a service usingWorkforceTimesheetService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
Deprecated.Description copied from interface:WorkforceTimesheetServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfaceWorkforceTimesheetService- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
batch
Deprecated.- Specified by:
batchin interfaceBatchService<WorkforceTimesheetServiceBatch>
-
getAllTimeSheetEntry
Deprecated.Description copied from interface:WorkforceTimesheetServiceFetch multipleTimeSheetEntryentities.- Specified by:
getAllTimeSheetEntryin interfaceWorkforceTimesheetService- Returns:
- A fluent helper to fetch multiple
TimeSheetEntryentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getTimeSheetEntryByKey
@Nonnull public TimeSheetEntryByKeyFluentHelper getTimeSheetEntryByKey(String personWorkAgreementExternalID, String companyCode, String timeSheetRecord) Deprecated.Description copied from interface:WorkforceTimesheetServiceFetch a singleTimeSheetEntryentity using key fields.- Specified by:
getTimeSheetEntryByKeyin interfaceWorkforceTimesheetService- Parameters:
personWorkAgreementExternalID- Person Work Agreement External IDConstraints: Not nullable, Maximum length: 20
companyCode- Company CodeConstraints: Not nullable, Maximum length: 4
timeSheetRecord- Time Sheet RecordConstraints: Not nullable, Maximum length: 12
- Returns:
- A fluent helper to fetch a single
TimeSheetEntryentity 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 theexecutemethod on the fluent helper object.
-
createTimeSheetEntry
@Nonnull public TimeSheetEntryCreateFluentHelper createTimeSheetEntry(@Nonnull TimeSheetEntry timeSheetEntry) Deprecated.Description copied from interface:WorkforceTimesheetServiceCreate a newTimeSheetEntryentity and save it to the S/4HANA system.- Specified by:
createTimeSheetEntryin interfaceWorkforceTimesheetService- Parameters:
timeSheetEntry-TimeSheetEntryentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
TimeSheetEntryentity. To perform execution, call theexecutemethod on the fluent helper object.
-