Class DefaultProductAssignmentToDistributionCenterService
- All Implemented Interfaces:
OperationsOnEntityCollections,ServiceWithNavigableEntities,ProductAssignmentToDistributionCenterService
You can use this service to manage product assignments to distribution centers. By defining relationships between products and a distribution center, you can form the overall assortment of a distribution center. Note that distribution centers are handled as a special type of assortment users. Thus, when defining relationships between products and distribution centers, you do not have to create assortment modules. Instead, you can assign the products directly to the distribution centers without using visible assortment modules. The process of defining such relationships is referred to as listing. On each API call, you can perform the following operations: - You can create product assignments to distribution centers. - You can read product assignments to distribution centers. - You can update product assignments to distribution centers, more specifically, you can update a product’s assignment period for a distribution center. - You can delete product assignments to distribution centers..
Reference: SAP Business Accelerator Hub
Details:
| OData Service: | CE_API_RFM_PROD_DC_LISTING_0001 |
| API Version: | 1.0.0 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | Product Assignment to Distribution Center Integration(SAP_COM_0792) |
| Scope Items: | Assortments(3I5) |
| Authentication Methods: | x509 |
| Service Group Name: | API_RFM_PROD_DC_LISTING |
| Business Object: | Product |
-
Field Summary
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odatav4.services.ProductAssignmentToDistributionCenterService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingProductAssignmentToDistributionCenterService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Deprecated.Creates a batch request builder object.Deprecated.Fetch the number of entries from theProductDistrCtrListingentity collection matching the filter and search expressions.createProductDistrCtrListing(ProductDistrCtrListing productDistrCtrListing) Deprecated.Create a newProductDistrCtrListingentity and save it to the S/4HANA system.deleteProductDistrCtrListing(ProductDistrCtrListing productDistrCtrListing) Deprecated.Deletes an existingProductDistrCtrListingentity in the S/4HANA system.Deprecated.Fetch multipleProductDistrCtrListingentities.getProductDistrCtrListingByKey(String product, String assortmentModuleUser, String site) Deprecated.Fetch a singleProductDistrCtrListingentity using key fields.Deprecated.updateProductDistrCtrListing(ProductDistrCtrListing productDistrCtrListing) Deprecated.Update an existingProductDistrCtrListingentity and save it to the S/4HANA system.withServicePath(String servicePath) Deprecated.Overrides the default service path and returns a new service instance with the specified service path.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sap.cloud.sdk.datamodel.odatav4.core.ServiceWithNavigableEntities
applyAction, applyAction, applyFunction, applyFunction, forEntity, withFunction, withFunction
-
Constructor Details
-
DefaultProductAssignmentToDistributionCenterService
public DefaultProductAssignmentToDistributionCenterService()Deprecated.Creates a service usingProductAssignmentToDistributionCenterService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
@Nonnull public DefaultProductAssignmentToDistributionCenterService withServicePath(@Nonnull String servicePath) Deprecated.Description copied from interface:ProductAssignmentToDistributionCenterServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfaceProductAssignmentToDistributionCenterService- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
batch
Deprecated.Description copied from interface:ProductAssignmentToDistributionCenterServiceCreates a batch request builder object.- Specified by:
batchin interfaceProductAssignmentToDistributionCenterService- Returns:
- A request builder to handle batch operation on this service. To perform execution, call the
executemethod on the request builder object.
-
getAllProductDistrCtrListing
Deprecated.Description copied from interface:ProductAssignmentToDistributionCenterServiceFetch multipleProductDistrCtrListingentities.- Specified by:
getAllProductDistrCtrListingin interfaceProductAssignmentToDistributionCenterService- Returns:
- A request builder to fetch multiple
ProductDistrCtrListingentities. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
countProductDistrCtrListing
Deprecated.Description copied from interface:ProductAssignmentToDistributionCenterServiceFetch the number of entries from theProductDistrCtrListingentity collection matching the filter and search expressions.- Specified by:
countProductDistrCtrListingin interfaceProductAssignmentToDistributionCenterService- Returns:
- A request builder to fetch the count of
ProductDistrCtrListingentities. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
getProductDistrCtrListingByKey
@Nonnull public GetByKeyRequestBuilder<ProductDistrCtrListing> getProductDistrCtrListingByKey(String product, String assortmentModuleUser, String site) Deprecated.Description copied from interface:ProductAssignmentToDistributionCenterServiceFetch a singleProductDistrCtrListingentity using key fields.- Specified by:
getProductDistrCtrListingByKeyin interfaceProductAssignmentToDistributionCenterService- Parameters:
product- Structured materialConstraints: Not nullable, Maximum length: 18
assortmentModuleUser- Assortment UserConstraints: Not nullable, Maximum length: 10
site- PlantConstraints: Not nullable, Maximum length: 4
- Returns:
- A request builder to fetch a single
ProductDistrCtrListingentity 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 theexecutemethod on the request builder object.
-
createProductDistrCtrListing
@Nonnull public CreateRequestBuilder<ProductDistrCtrListing> createProductDistrCtrListing(@Nonnull ProductDistrCtrListing productDistrCtrListing) Deprecated.Description copied from interface:ProductAssignmentToDistributionCenterServiceCreate a newProductDistrCtrListingentity and save it to the S/4HANA system.- Specified by:
createProductDistrCtrListingin interfaceProductAssignmentToDistributionCenterService- Parameters:
productDistrCtrListing-ProductDistrCtrListingentity object that will be created in the S/4HANA system.- Returns:
- A request builder to create a new
ProductDistrCtrListingentity. To perform execution, call theexecutemethod on the request builder object.
-
updateProductDistrCtrListing
@Nonnull public UpdateRequestBuilder<ProductDistrCtrListing> updateProductDistrCtrListing(@Nonnull ProductDistrCtrListing productDistrCtrListing) Deprecated.Description copied from interface:ProductAssignmentToDistributionCenterServiceUpdate an existingProductDistrCtrListingentity and save it to the S/4HANA system.- Specified by:
updateProductDistrCtrListingin interfaceProductAssignmentToDistributionCenterService- Parameters:
productDistrCtrListing-ProductDistrCtrListingentity object that will be updated in the S/4HANA system.- Returns:
- A request builder to update an existing
ProductDistrCtrListingentity. To perform execution, call theexecutemethod on the request builder object.
-
deleteProductDistrCtrListing
@Nonnull public DeleteRequestBuilder<ProductDistrCtrListing> deleteProductDistrCtrListing(@Nonnull ProductDistrCtrListing productDistrCtrListing) Deprecated.Description copied from interface:ProductAssignmentToDistributionCenterServiceDeletes an existingProductDistrCtrListingentity in the S/4HANA system.- Specified by:
deleteProductDistrCtrListingin interfaceProductAssignmentToDistributionCenterService- Parameters:
productDistrCtrListing-ProductDistrCtrListingentity object that will be deleted in the S/4HANA system.- Returns:
- A request builder to delete an existing
ProductDistrCtrListingentity. To perform execution, call theexecutemethod on the request builder object.
-
getServicePath
Deprecated.- Specified by:
getServicePathin interfaceServiceWithNavigableEntities
-