@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultWarehouseResourceService") public class DefaultWarehouseResourceService extends Object implements WarehouseResourceService
In every API call, you can make use of the following operations: - You can retrieve warehouse resources. Apply any of the filters provided or retrieve all existing data. - You can create and delete warehouse resources. - You can update existing warehouse resources (log on, log off)..
Reference: SAP API Business Hub
OData Service: | API_WAREHOUSE_RESOURCE |
API Version: | 1 |
Communication Scenario: | Warehousing - Process Warehouse Task Integration (SAP_COM_0353) |
Scope Items: | Resource Management in Warehousing (3W0) |
Authentication Methods: | Basic, x509, OAuth2 |
Business Object: | WarehouseResource |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultWarehouseResourceService()
Creates a service using
WarehouseResourceService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultWarehouseResourceServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
WarehouseResourceCreateFluentHelper |
createWarehouseResource(WarehouseResource warehouseResource)
Create a new
WarehouseResource entity and save it to the S/4HANA system. |
WarehouseResourceDeleteFluentHelper |
deleteWarehouseResource(WarehouseResource warehouseResource)
Deletes an existing
WarehouseResource
entity in the S/4HANA system. |
WarehouseResourceFluentHelper |
getAllWarehouseResource()
Fetch multiple
WarehouseResource entities. |
WarehouseResourceByKeyFluentHelper |
getWarehouseResourceByKey(String warehouse,
String warehouseResource)
Fetch a single
WarehouseResource entity using key fields. |
LogoffFromWarehouseResourceFluentHelper |
logoffFromWarehouseResource(String warehouse,
String warehouseResource)
Creates a fluent helper for the LogoffFromWarehouseResource OData function import.
|
LogonToWarehouseResourceFluentHelper |
logonToWarehouseResource(String warehouse,
String warehouseResource)
Creates a fluent helper for the LogonToWarehouseResource OData function import.
|
DefaultWarehouseResourceService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultWarehouseResourceService()
WarehouseResourceService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultWarehouseResourceService withServicePath(@Nonnull String servicePath)
WarehouseResourceService
withServicePath
in interface WarehouseResourceService
servicePath
- Service path that will override the default.@Nonnull public DefaultWarehouseResourceServiceBatch batch()
batch
in interface BatchService<WarehouseResourceServiceBatch>
@Nonnull public WarehouseResourceFluentHelper getAllWarehouseResource()
WarehouseResourceService
WarehouseResource
entities.getAllWarehouseResource
in interface WarehouseResourceService
WarehouseResource
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 WarehouseResourceByKeyFluentHelper getWarehouseResourceByKey(String warehouse, String warehouseResource)
WarehouseResourceService
WarehouseResource
entity using key fields.getWarehouseResourceByKey
in interface WarehouseResourceService
warehouse
- Alphanumeric key that identifies a complex, physical warehouse within the warehouse management system.
Constraints: Not nullable, Maximum length: 4
warehouseResource
- Resource (Means of Transportation or User)
Constraints: Not nullable, Maximum length: 18
WarehouseResource
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 WarehouseResourceCreateFluentHelper createWarehouseResource(@Nonnull WarehouseResource warehouseResource)
WarehouseResourceService
WarehouseResource
entity and save it to the S/4HANA system.createWarehouseResource
in interface WarehouseResourceService
warehouseResource
- WarehouseResource
entity object that will be created in the S/4HANA system.WarehouseResource
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public WarehouseResourceDeleteFluentHelper deleteWarehouseResource(@Nonnull WarehouseResource warehouseResource)
WarehouseResourceService
WarehouseResource
entity in the S/4HANA system.deleteWarehouseResource
in interface WarehouseResourceService
warehouseResource
- WarehouseResource
entity object that will be deleted in the S/4HANA system.WarehouseResource
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public LogoffFromWarehouseResourceFluentHelper logoffFromWarehouseResource(String warehouse, String warehouseResource)
WarehouseResourceService
Creates a fluent helper for the LogoffFromWarehouseResource OData function import.
logoffFromWarehouseResource
in interface WarehouseResourceService
warehouse
- Warehouse Number
Constraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: Warehouse
warehouseResource
- Resource
Constraints: Not nullable, Maximum length: 18
Original parameter name from the Odata EDM: WarehouseResource
execute
method on the fluent helper object.@Nonnull public LogonToWarehouseResourceFluentHelper logonToWarehouseResource(String warehouse, String warehouseResource)
WarehouseResourceService
Creates a fluent helper for the LogonToWarehouseResource OData function import.
logonToWarehouseResource
in interface WarehouseResourceService
warehouse
- Warehouse Number
Constraints: Not nullable, Maximum length: 4
Original parameter name from the Odata EDM: Warehouse
warehouseResource
- Resource
Constraints: Not nullable, Maximum length: 18
Original parameter name from the Odata EDM: WarehouseResource
execute
method on the fluent helper object.Copyright © 2020 SAP SE. All rights reserved.