Class DefaultCustomerMaterialService
java.lang.Object
com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultCustomerMaterialService
- All Implemented Interfaces:
BatchService<CustomerMaterialServiceBatch>,CustomerMaterialService
@Named("com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultCustomerMaterialService")
@Deprecated
public class DefaultCustomerMaterialService
extends Object
implements CustomerMaterialService
Deprecated.
The service and all its related classes are deprecated. Please use the odata generator to generate the
VDM.
The service contains one entity only for customer material. If there are any issues when creating, reading, updating, or deleting the customer material, the system displays error messages in the response.
Reference: SAP Business Accelerator Hub
Details:
| OData Service: | API_CUSTOMER_MATERIAL_SRV |
| API Version: | 1.0.0 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | Customer Material Info Record Integration(SAP_COM_0134) |
| Scope Items: | Sell from Stock(BD9), Sell from Stock(OD9) |
| Authentication Methods: | x509 |
| Business Object: | Customer Material |
-
Field Summary
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odata.services.CustomerMaterialService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingCustomerMaterialService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Deprecated.createCustomerMaterial(CustomerMaterial customerMaterial) Deprecated.Create a newCustomerMaterialentity and save it to the S/4HANA system.deleteCustomerMaterial(CustomerMaterial customerMaterial) Deprecated.Deletes an existingCustomerMaterialentity in the S/4HANA system.Deprecated.Fetch multipleCustomerMaterialentities.getCustomerMaterialByKey(String salesOrganization, String distributionChannel, String customer, String material) Deprecated.Fetch a singleCustomerMaterialentity using key fields.updateCustomerMaterial(CustomerMaterial customerMaterial) Deprecated.Update an existingCustomerMaterialentity 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.
-
Constructor Details
-
DefaultCustomerMaterialService
public DefaultCustomerMaterialService()Deprecated.Creates a service usingCustomerMaterialService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
Deprecated.Description copied from interface:CustomerMaterialServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfaceCustomerMaterialService- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
batch
Deprecated.- Specified by:
batchin interfaceBatchService<CustomerMaterialServiceBatch>
-
getAllCustomerMaterial
Deprecated.Description copied from interface:CustomerMaterialServiceFetch multipleCustomerMaterialentities.- Specified by:
getAllCustomerMaterialin interfaceCustomerMaterialService- Returns:
- A fluent helper to fetch multiple
CustomerMaterialentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getCustomerMaterialByKey
@Nonnull public CustomerMaterialByKeyFluentHelper getCustomerMaterialByKey(String salesOrganization, String distributionChannel, String customer, String material) Deprecated.Description copied from interface:CustomerMaterialServiceFetch a singleCustomerMaterialentity using key fields.- Specified by:
getCustomerMaterialByKeyin interfaceCustomerMaterialService- Parameters:
salesOrganization- Sales OrganizationConstraints: Not nullable, Maximum length: 4
distributionChannel- Distribution ChannelConstraints: Not nullable, Maximum length: 2
customer- Customer numberConstraints: Not nullable, Maximum length: 10
material- Product NumberConstraints: Not nullable, Maximum length: 40
- Returns:
- A fluent helper to fetch a single
CustomerMaterialentity 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 theexecutemethod on the fluent helper object.
-
createCustomerMaterial
@Nonnull public CustomerMaterialCreateFluentHelper createCustomerMaterial(@Nonnull CustomerMaterial customerMaterial) Deprecated.Description copied from interface:CustomerMaterialServiceCreate a newCustomerMaterialentity and save it to the S/4HANA system.- Specified by:
createCustomerMaterialin interfaceCustomerMaterialService- Parameters:
customerMaterial-CustomerMaterialentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
CustomerMaterialentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updateCustomerMaterial
@Nonnull public CustomerMaterialUpdateFluentHelper updateCustomerMaterial(@Nonnull CustomerMaterial customerMaterial) Deprecated.Description copied from interface:CustomerMaterialServiceUpdate an existingCustomerMaterialentity and save it to the S/4HANA system.- Specified by:
updateCustomerMaterialin interfaceCustomerMaterialService- Parameters:
customerMaterial-CustomerMaterialentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
CustomerMaterialentity. To perform execution, call theexecutemethod on the fluent helper object.
-
deleteCustomerMaterial
@Nonnull public CustomerMaterialDeleteFluentHelper deleteCustomerMaterial(@Nonnull CustomerMaterial customerMaterial) Deprecated.Description copied from interface:CustomerMaterialServiceDeletes an existingCustomerMaterialentity in the S/4HANA system.- Specified by:
deleteCustomerMaterialin interfaceCustomerMaterialService- Parameters:
customerMaterial-CustomerMaterialentity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
CustomerMaterialentity. To perform execution, call theexecutemethod on the fluent helper object.
-