@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultHandlingUnitService") public class DefaultHandlingUnitService extends Object implements HandlingUnitService
In every API call, you can make use of the following operations: - Retrieve header information for a handling unit. For handling units processed in warehouse management, warehouse number plus handling unit number must be used as a key. For handling units not relevant for warehouse management, the handling unit number is used as a key. You can use filter criteria to retrieve information based on other selection criteria, for example, delivery reference. - Retrieve item information for a handling unit, which contains information about the products packed in the handling unit. You can apply the filters provided or retrieve all existing data..
Reference: SAP API Business Hub
OData Service: | API_HANDLING_UNIT |
API Version: | 1 |
Communication Scenario: | Delivery Insights Replication App Integration (SAP_COM_0571), Handling Unit Integration (SAP_COM_0364) |
Scope Items: | Delivery Insights (4IH), Warehouse Outbound Processing (3BS), Sell from Stock (BD9) |
Authentication Methods: | Basic, x509, OAuth2 |
Business Object: | HandlingUnit |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultHandlingUnitService()
Creates a service using
HandlingUnitService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultHandlingUnitServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
HandlingUnitFluentHelper |
getAllHandlingUnit()
Fetch multiple
HandlingUnit
entities. |
HandlingUnitItemFluentHelper |
getAllHandlingUnitItem()
Fetch multiple
HandlingUnitItem entities. |
HandlingUnitByKeyFluentHelper |
getHandlingUnitByKey(String handlingUnitExternalID,
String warehouse)
Fetch a single
HandlingUnit
entity using key fields. |
HandlingUnitItemByKeyFluentHelper |
getHandlingUnitItemByKey(String handlingUnitExternalID,
String warehouse,
UUID stockItemUUID)
Fetch a single
HandlingUnitItem entity using key fields. |
DefaultHandlingUnitService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultHandlingUnitService()
HandlingUnitService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultHandlingUnitService withServicePath(@Nonnull String servicePath)
HandlingUnitService
withServicePath
in interface HandlingUnitService
servicePath
- Service path that will override the default.@Nonnull public DefaultHandlingUnitServiceBatch batch()
batch
in interface BatchService<HandlingUnitServiceBatch>
@Nonnull public HandlingUnitFluentHelper getAllHandlingUnit()
HandlingUnitService
HandlingUnit
entities.getAllHandlingUnit
in interface HandlingUnitService
HandlingUnit
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 HandlingUnitByKeyFluentHelper getHandlingUnitByKey(String handlingUnitExternalID, String warehouse)
HandlingUnitService
HandlingUnit
entity using key fields.getHandlingUnitByKey
in interface HandlingUnitService
handlingUnitExternalID
- Specifies an external identifier for the handling unit.
Constraints: Not nullable, Maximum length: 20
warehouse
- Alphanumeric key that identifies a complex, physical warehouse within the warehouse management system.
Constraints: Not nullable, Maximum length: 4
HandlingUnit
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 HandlingUnitItemFluentHelper getAllHandlingUnitItem()
HandlingUnitService
HandlingUnitItem
entities.getAllHandlingUnitItem
in interface HandlingUnitService
HandlingUnitItem
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 HandlingUnitItemByKeyFluentHelper getHandlingUnitItemByKey(String handlingUnitExternalID, String warehouse, UUID stockItemUUID)
HandlingUnitService
HandlingUnitItem
entity using key fields.getHandlingUnitItemByKey
in interface HandlingUnitService
handlingUnitExternalID
- Specifies an external identifier for the handling unit.
Constraints: Not nullable, Maximum length: 20
warehouse
- Alphanumeric key that identifies a complex, physical warehouse within the warehouse management system.
Constraints: Not nullable, Maximum length: 4
stockItemUUID
- GUID Stock Item
Constraints: Not nullable
HandlingUnitItem
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.Copyright © 2021 SAP SE. All rights reserved.