@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odatav4.services.DefaultProductSubstitutionService") public class DefaultProductSubstitutionService extends Object implements ServiceWithNavigableEntities, ProductSubstitutionService
This service enables you to create plant, application and time range specific product substitution. Additionally, these substitutions can be sequenced, and grouped using predefined groups.
Reference: SAP API Business Hub
OData Service: | PRODUCTSUBSTITUTION_0001 |
API Version: | 1 |
Communication Scenario: | Master Data - Product Substitution Integration (SAP_COM_0707) |
Scope Items: | Advanced Available-to-Promise Processing (1JW) |
Authentication Methods: | Basic, x509 |
Service Group Name: | API_PRODUCTSUBSTITUTION |
Business Object: | ProductSubstitution |
ServiceWithNavigableEntities.NavigableEntity<EntityT extends VdmEntity<EntityT>>
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultProductSubstitutionService()
Creates a service using
ProductSubstitutionService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
BatchRequestBuilder |
batch()
Creates a batch request builder object.
|
CountRequestBuilder<ProdSubstn> |
countProdSubstn()
Fetch the number of entries from the
ProdSubstn entity
collection matching the filter and search expressions. |
CreateRequestBuilder<ProdSubstn> |
createProdSubstn(ProdSubstn prodSubstn)
Create a new
ProdSubstn entity and save it to the S/4HANA system. |
DeleteRequestBuilder<ProdSubstn> |
deleteProdSubstn(ProdSubstn prodSubstn)
Deletes an existing
ProdSubstn entity in the S/4HANA system. |
GetAllRequestBuilder<ProdSubstn> |
getAllProdSubstn()
Fetch multiple
ProdSubstn entities. |
GetByKeyRequestBuilder<ProdSubstn> |
getProdSubstnByKey(UUID mDSubstnUUID)
Fetch a single
ProdSubstn entity using key fields. |
String |
getServicePath()
Getter for the OData service root path.
|
UpdateRequestBuilder<ProdSubstn> |
updateProdSubstn(ProdSubstn prodSubstn)
Update an existing
ProdSubstn entity and save it to the S/4HANA system. |
DefaultProductSubstitutionService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEntity
public DefaultProductSubstitutionService()
ProductSubstitutionService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultProductSubstitutionService withServicePath(@Nonnull String servicePath)
ProductSubstitutionService
withServicePath
in interface ProductSubstitutionService
servicePath
- Service path that will override the default.@Nonnull public BatchRequestBuilder batch()
ProductSubstitutionService
batch
in interface ProductSubstitutionService
execute
method on the request builder object.@Nonnull public GetAllRequestBuilder<ProdSubstn> getAllProdSubstn()
ProductSubstitutionService
ProdSubstn
entities.getAllProdSubstn
in interface ProductSubstitutionService
ProdSubstn
entities. This request builder allows methods which modify the underlying query to be called before
executing the query itself. To perform execution, call the
execute
method on the request builder object.@Nonnull public CountRequestBuilder<ProdSubstn> countProdSubstn()
ProductSubstitutionService
ProdSubstn
entity
collection matching the filter and search expressions.countProdSubstn
in interface ProductSubstitutionService
ProdSubstn
entities. This request builder allows methods which modify the underlying query to be called before
executing the query itself. To perform execution, call the
execute
method on the request builder object.@Nonnull public GetByKeyRequestBuilder<ProdSubstn> getProdSubstnByKey(@Nonnull UUID mDSubstnUUID)
ProductSubstitutionService
ProdSubstn
entity using key fields.getProdSubstnByKey
in interface ProductSubstitutionService
mDSubstnUUID
- Substitution UUID
Constraints: Not nullable
ProdSubstn
entity using key fields. This request builder allows methods which modify the underlying query to be
called before executing the query itself. To perform execution, call the
execute
method on the request builder object.@Nonnull public CreateRequestBuilder<ProdSubstn> createProdSubstn(@Nonnull ProdSubstn prodSubstn)
ProductSubstitutionService
ProdSubstn
entity and save it to the S/4HANA system.createProdSubstn
in interface ProductSubstitutionService
prodSubstn
- ProdSubstn
entity object that will be created in the S/4HANA system.ProdSubstn
entity. To perform execution, call the
execute
method on the request builder object.@Nonnull public UpdateRequestBuilder<ProdSubstn> updateProdSubstn(@Nonnull ProdSubstn prodSubstn)
ProductSubstitutionService
ProdSubstn
entity and save it to the S/4HANA system.updateProdSubstn
in interface ProductSubstitutionService
prodSubstn
- ProdSubstn
entity object that will be updated in the S/4HANA system.ProdSubstn
entity. To perform execution, call the
execute
method on the request builder object.@Nonnull public DeleteRequestBuilder<ProdSubstn> deleteProdSubstn(@Nonnull ProdSubstn prodSubstn)
ProductSubstitutionService
ProdSubstn
entity in the S/4HANA system.deleteProdSubstn
in interface ProductSubstitutionService
prodSubstn
- ProdSubstn
entity object that will be deleted in the S/4HANA system.ProdSubstn
entity. To perform execution, call the
execute
method on the request builder object.@Nonnull public String getServicePath()
ServiceWithNavigableEntities
getServicePath
in interface ServiceWithNavigableEntities
Copyright © 2021 SAP SE. All rights reserved.