@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultCustomerMaterialService") public class DefaultCustomerMaterialService extends Object implements CustomerMaterialService
This service enables external applications to integrate with read methods for processing customer materials in SAP S/4HANA Cloud. It enables you to retrieve customer material info records in an API call.
Reference: SAP API Business Hub
OData Service: | API_CUSTOMER_MATERIAL_SRV |
API Version: | 1 |
Communication Scenario: | Customer Material Info Record Integration (SAP_COM_0134) |
Scope Items: | Sell from Stock (BD9) |
Business Object: | CustomerMaterial |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultCustomerMaterialService()
Creates a service using
CustomerMaterialService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
CustomerMaterialFluentHelper |
getAllCustomerMaterial()
Fetch multiple
CustomerMaterial entities. |
CustomerMaterialByKeyFluentHelper |
getCustomerMaterialByKey(String salesOrganization,
String distributionChannel,
String customer,
String material)
Fetch a single
CustomerMaterial entity using key fields. |
DefaultCustomerMaterialService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultCustomerMaterialService()
CustomerMaterialService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultCustomerMaterialService withServicePath(@Nonnull String servicePath)
CustomerMaterialService
withServicePath
in interface CustomerMaterialService
servicePath
- Service path that will override the default.@Nonnull public CustomerMaterialFluentHelper getAllCustomerMaterial()
CustomerMaterialService
CustomerMaterial
entities.getAllCustomerMaterial
in interface CustomerMaterialService
CustomerMaterial
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 CustomerMaterialByKeyFluentHelper getCustomerMaterialByKey(String salesOrganization, String distributionChannel, String customer, String material)
CustomerMaterialService
CustomerMaterial
entity using key fields.getCustomerMaterialByKey
in interface CustomerMaterialService
salesOrganization
- An organizational unit responsible for the sale of certain products or services. The responsibility of a sales organization may include legal liability for products and customer claims.Constraints: Not nullable, Maximum length: 4
distributionChannel
- The way in which products or services reach the customer. Typical examples of distribution channels are wholesale, retail, or direct sales.Constraints: Not nullable, Maximum length: 2
customer
- The customer to whom the condition or the customer-material info record applies.Constraints: Not nullable, Maximum length: 10
material
- Alphanumeric key uniquely identifying the material.Constraints: Not nullable, Maximum length: 40
CustomerMaterial
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 © 2018 SAP SE. All rights reserved.