@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odatav4.services.DefaultProductHierarchyNodeService") public class DefaultProductHierarchyNodeService extends Object implements ServiceWithNavigableEntities, ProductHierarchyNodeService
This synchronous inbound OData service enables external systems and other consumers to read currently active version for a given Hierarchy ID, or the version with a specified validity date. You can also use this service to read the details of a particular hierarchy, such as the node, its parent, its children and other attributes of a node, and so on. This information is used in the processes related to sales and distribution..
Reference: SAP API Business Hub
OData Service: | PRODHIERNODES_0001 |
API Version: | 1 |
Communication Scenario: | Product Integration (SAP_COM_0009) |
Scope Items: | Master Data Integration (1RO), Opportunity-to-Order with SAP Cloud for Customer (1VP) |
Authentication Methods: | Basic, x509, OAuth2 |
Service Group Name: | API_PROD_HIER_NODES_SRV |
Business Object: | Product |
ServiceWithNavigableEntities.NavigableEntity<EntityT extends VdmEntity<EntityT>>
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultProductHierarchyNodeService()
Creates a service using
ProductHierarchyNodeService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
BatchRequestBuilder |
batch()
Creates a batch request builder object.
|
CountRequestBuilder<ProdUniversalHierarchy> |
countProdUniversalHierarchy()
Fetch the number of entries from the
ProdUniversalHierarchy entity collection matching the filter and search expressions. |
CountRequestBuilder<ProdUnivHierNodeByHierID> |
countProdUnivHierNodeByHierID()
Fetch the number of entries from the
ProdUnivHierNodeByHierID entity collection matching the filter and search expressions. |
GetAllRequestBuilder<ProdUniversalHierarchy> |
getAllProdUniversalHierarchy()
Fetch multiple
ProdUniversalHierarchy entities. |
GetAllRequestBuilder<ProdUnivHierNodeByHierID> |
getAllProdUnivHierNodeByHierID()
Fetch multiple
ProdUnivHierNodeByHierID entities. |
GetByKeyRequestBuilder<ProdUniversalHierarchy> |
getProdUniversalHierarchyByKey(String prodUnivHierarchy,
LocalDate prodHierarchyValidityEndDate)
Fetch a single
ProdUniversalHierarchy entity using key fields. |
GetByKeyRequestBuilder<ProdUnivHierNodeByHierID> |
getProdUnivHierNodeByHierIDByKey(String prodUnivHierarchy,
String hierarchyNode,
LocalDate prodHierarchyValidityEndDate)
Fetch a single
ProdUnivHierNodeByHierID entity using key fields. |
String |
getServicePath()
Getter for the OData service root path.
|
DefaultProductHierarchyNodeService |
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 DefaultProductHierarchyNodeService()
ProductHierarchyNodeService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultProductHierarchyNodeService withServicePath(@Nonnull String servicePath)
ProductHierarchyNodeService
withServicePath
in interface ProductHierarchyNodeService
servicePath
- Service path that will override the default.@Nonnull public BatchRequestBuilder batch()
ProductHierarchyNodeService
batch
in interface ProductHierarchyNodeService
execute
method on the request builder object.@Nonnull public GetAllRequestBuilder<ProdUniversalHierarchy> getAllProdUniversalHierarchy()
ProductHierarchyNodeService
ProdUniversalHierarchy
entities.getAllProdUniversalHierarchy
in interface ProductHierarchyNodeService
ProdUniversalHierarchy
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<ProdUniversalHierarchy> countProdUniversalHierarchy()
ProductHierarchyNodeService
ProdUniversalHierarchy
entity collection matching the filter and search expressions.countProdUniversalHierarchy
in interface ProductHierarchyNodeService
ProdUniversalHierarchy
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<ProdUniversalHierarchy> getProdUniversalHierarchyByKey(@Nonnull String prodUnivHierarchy, @Nonnull LocalDate prodHierarchyValidityEndDate)
ProductHierarchyNodeService
ProdUniversalHierarchy
entity using key fields.getProdUniversalHierarchyByKey
in interface ProductHierarchyNodeService
prodUnivHierarchy
- Product Hierarchy
Constraints: Not nullable, Maximum length: 20
prodHierarchyValidityEndDate
- Validity End Date
Constraints: Not nullable
ProdUniversalHierarchy
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 GetAllRequestBuilder<ProdUnivHierNodeByHierID> getAllProdUnivHierNodeByHierID()
ProductHierarchyNodeService
ProdUnivHierNodeByHierID
entities.getAllProdUnivHierNodeByHierID
in interface ProductHierarchyNodeService
ProdUnivHierNodeByHierID
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<ProdUnivHierNodeByHierID> countProdUnivHierNodeByHierID()
ProductHierarchyNodeService
ProdUnivHierNodeByHierID
entity collection matching the filter and search expressions.countProdUnivHierNodeByHierID
in interface ProductHierarchyNodeService
ProdUnivHierNodeByHierID
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<ProdUnivHierNodeByHierID> getProdUnivHierNodeByHierIDByKey(@Nonnull String prodUnivHierarchy, @Nonnull String hierarchyNode, @Nonnull LocalDate prodHierarchyValidityEndDate)
ProductHierarchyNodeService
ProdUnivHierNodeByHierID
entity using key fields.getProdUnivHierNodeByHierIDByKey
in interface ProductHierarchyNodeService
prodUnivHierarchy
- Product Hierarchy
Constraints: Not nullable, Maximum length: 20
hierarchyNode
- Hierarchy node
Constraints: Not nullable, Maximum length: 50
prodHierarchyValidityEndDate
- Validity End Date
Constraints: Not nullable
ProdUnivHierNodeByHierID
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 String getServicePath()
ServiceWithNavigableEntities
getServicePath
in interface ServiceWithNavigableEntities
Copyright © 2021 SAP SE. All rights reserved.