@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultWorkforceAvailabilityService") public class DefaultWorkforceAvailabilityService extends Object implements WorkforceAvailabilityService
This service enables you to create, read, update, and delete the (CRUD) daily availability information into the S/4HANA system from your external HR system when you are not using the SAP SuccessFactors Employee Central system.
Reference: SAP API Business Hub
OData Service: | API_MANAGE_WF_AVAILABILITY |
API Version: | 1 |
Communication Scenario: | Employee Integration (SAP_COM_0001), External HR Workforce Integration (SAP_COM_0301), Employee Central via SAP CPI Integration (SAP_COM_0535) |
Scope Items: | Core HR with SAP SuccessFactors Employee Central (JB1), Employee Integration - SAP S/4HANA Enablement (1FD), Financial Master Data for SAP SuccessFactors Employee Central (4AJ) |
Authentication Methods: | x509 |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultWorkforceAvailabilityService()
Creates a service using
WorkforceAvailabilityService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultWorkforceAvailabilityServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
TimeOverviewCreateFluentHelper |
createTimeOverview(TimeOverview timeOverview)
Create a new
TimeOverview entity and save it to the S/4HANA system. |
TimeOverviewDeleteFluentHelper |
deleteTimeOverview(TimeOverview timeOverview)
Deletes an existing
TimeOverview entity in the S/4HANA system. |
TimeOverviewFluentHelper |
getAllTimeOverview()
Fetch multiple
TimeOverview entities. |
TimeOverviewByKeyFluentHelper |
getTimeOverviewByKey(String personworkagreementexternalid,
String companycode,
LocalDateTime calendardate)
Fetch a single
TimeOverview entity using key fields. |
TimeOverviewUpdateFluentHelper |
updateTimeOverview(TimeOverview timeOverview)
Update an existing
TimeOverview entity and save it to the S/4HANA system. |
DefaultWorkforceAvailabilityService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultWorkforceAvailabilityService()
WorkforceAvailabilityService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultWorkforceAvailabilityService withServicePath(@Nonnull String servicePath)
WorkforceAvailabilityService
withServicePath
in interface WorkforceAvailabilityService
servicePath
- Service path that will override the default.@Nonnull public DefaultWorkforceAvailabilityServiceBatch batch()
batch
in interface BatchService<WorkforceAvailabilityServiceBatch>
@Nonnull public TimeOverviewFluentHelper getAllTimeOverview()
WorkforceAvailabilityService
TimeOverview
entities.getAllTimeOverview
in interface WorkforceAvailabilityService
TimeOverview
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 public TimeOverviewByKeyFluentHelper getTimeOverviewByKey(String personworkagreementexternalid, String companycode, LocalDateTime calendardate)
WorkforceAvailabilityService
TimeOverview
entity using key fields.getTimeOverviewByKey
in interface WorkforceAvailabilityService
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
calendardate
- This field contains the date on which the corresponding data record is valid.
Constraints: Not nullable, Precision: 7
TimeOverview
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 public TimeOverviewCreateFluentHelper createTimeOverview(@Nonnull TimeOverview timeOverview)
WorkforceAvailabilityService
TimeOverview
entity and save it to the S/4HANA system.createTimeOverview
in interface WorkforceAvailabilityService
timeOverview
- TimeOverview
entity object that will be created in the S/4HANA system.TimeOverview
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public TimeOverviewUpdateFluentHelper updateTimeOverview(@Nonnull TimeOverview timeOverview)
WorkforceAvailabilityService
TimeOverview
entity and save it to the S/4HANA system.updateTimeOverview
in interface WorkforceAvailabilityService
timeOverview
- TimeOverview
entity object that will be updated in the S/4HANA system.TimeOverview
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public TimeOverviewDeleteFluentHelper deleteTimeOverview(@Nonnull TimeOverview timeOverview)
WorkforceAvailabilityService
TimeOverview
entity in the S/4HANA system.deleteTimeOverview
in interface WorkforceAvailabilityService
timeOverview
- TimeOverview
entity object that will be deleted in the S/4HANA system.TimeOverview
entity. To perform execution, call the
execute
method on the fluent helper object.Copyright © 2021 SAP SE. All rights reserved.