Class DefaultMaterialSerialNumberService
- All Implemented Interfaces:
OperationsOnEntityCollections,ServiceWithNavigableEntities,MaterialSerialNumberService
This service contains information about material serial numbers and partner functions. The information is sent in the request as a payload. All the information in the payload is used to create or update the material serial number and includes appropriate checks for restricted values and authorizations. Once the material serial number has been created, the material serial number is sent in the response along with the related data. If the input in the request is not as expected when you create or update a material serial number, the system displays appropriate error or warning messages in the response. .
Reference: SAP Business Accelerator Hub
Details:
| OData Service: | CE_API_MATERIALSERIALNUMBER_0001 |
| API Version: | 1.0.0 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | Asset Management Master Data Integration(SAP_COM_0395) |
| Scope Items: | Service Order Management and Monitoring(3D2), Service Contract Management(3MO), In-House Repair(3XK), Reactive Maintenance(4HH), Proactive Maintenance(4HI), Improvement Maintenance(4VT), Operational and Overhead Maintenance(4WM), Corrective Maintenance(BH1), Emergency Maintenance(BH2), Preventive Maintenance(BJ2), Reactive Maintenance(OHH), Proactive Maintenance(OHI), PSM: Preventive Maintenance(OJ2), Improvement Maintenance(OVT), Operational and Overhead Maintenance(OWM), Service Order Processing with SAP Field Service Management(49X), Service Quotation(4GA) |
| Authentication Methods: | x509 |
| Service Group Name: | API_MATERIALSERIALNUMBER |
| Business Object: | Equipment |
-
Field Summary
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odatav4.services.MaterialSerialNumberService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingMaterialSerialNumberService.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 theMaterialSerialNumberentity collection matching the filter and search expressions.Deprecated.Fetch the number of entries from theMaterialSerialNumberPartnerentity collection matching the filter and search expressions.createMaterialSerialNumber(MaterialSerialNumber materialSerialNumber) Deprecated.Create a newMaterialSerialNumberentity and save it to the S/4HANA system.createMaterialSerialNumberPartner(MaterialSerialNumberPartner materialSerialNumberPartner) Deprecated.Create a newMaterialSerialNumberPartnerentity and save it to the S/4HANA system.Deprecated.Fetch multipleMaterialSerialNumberentities.Deprecated.Fetch multipleMaterialSerialNumberPartnerentities.getMaterialSerialNumberByKey(String material, String serialNumber) Deprecated.Fetch a singleMaterialSerialNumberentity using key fields.getMaterialSerialNumberPartnerByKey(String material, String serialNumber, String equipment, String partnerFunction, String equipmentPartnerObjectNmbr) Deprecated.Fetch a singleMaterialSerialNumberPartnerentity using key fields.Deprecated.updateMaterialSerialNumber(MaterialSerialNumber materialSerialNumber) Deprecated.Update an existingMaterialSerialNumberentity and save it to the S/4HANA system.updateMaterialSerialNumberPartner(MaterialSerialNumberPartner materialSerialNumberPartner) Deprecated.Update an existingMaterialSerialNumberPartnerentity 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
-
DefaultMaterialSerialNumberService
public DefaultMaterialSerialNumberService()Deprecated.Creates a service usingMaterialSerialNumberService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
Deprecated.Description copied from interface:MaterialSerialNumberServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfaceMaterialSerialNumberService- 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:MaterialSerialNumberServiceCreates a batch request builder object.- Specified by:
batchin interfaceMaterialSerialNumberService- Returns:
- A request builder to handle batch operation on this service. To perform execution, call the
executemethod on the request builder object.
-
getAllMaterialSerialNumber
Deprecated.Description copied from interface:MaterialSerialNumberServiceFetch multipleMaterialSerialNumberentities.- Specified by:
getAllMaterialSerialNumberin interfaceMaterialSerialNumberService- Returns:
- A request builder to fetch multiple
MaterialSerialNumberentities. 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.
-
countMaterialSerialNumber
Deprecated.Description copied from interface:MaterialSerialNumberServiceFetch the number of entries from theMaterialSerialNumberentity collection matching the filter and search expressions.- Specified by:
countMaterialSerialNumberin interfaceMaterialSerialNumberService- Returns:
- A request builder to fetch the count of
MaterialSerialNumberentities. 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.
-
getMaterialSerialNumberByKey
@Nonnull public GetByKeyRequestBuilder<MaterialSerialNumber> getMaterialSerialNumberByKey(String material, String serialNumber) Deprecated.Description copied from interface:MaterialSerialNumberServiceFetch a singleMaterialSerialNumberentity using key fields.- Specified by:
getMaterialSerialNumberByKeyin interfaceMaterialSerialNumberService- Parameters:
material- Material NumberConstraints: Not nullable, Maximum length: 18
serialNumber- Serial NumberConstraints: Not nullable, Maximum length: 18
- Returns:
- A request builder to fetch a single
MaterialSerialNumberentity 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.
-
createMaterialSerialNumber
@Nonnull public CreateRequestBuilder<MaterialSerialNumber> createMaterialSerialNumber(@Nonnull MaterialSerialNumber materialSerialNumber) Deprecated.Description copied from interface:MaterialSerialNumberServiceCreate a newMaterialSerialNumberentity and save it to the S/4HANA system.- Specified by:
createMaterialSerialNumberin interfaceMaterialSerialNumberService- Parameters:
materialSerialNumber-MaterialSerialNumberentity object that will be created in the S/4HANA system.- Returns:
- A request builder to create a new
MaterialSerialNumberentity. To perform execution, call theexecutemethod on the request builder object.
-
updateMaterialSerialNumber
@Nonnull public UpdateRequestBuilder<MaterialSerialNumber> updateMaterialSerialNumber(@Nonnull MaterialSerialNumber materialSerialNumber) Deprecated.Description copied from interface:MaterialSerialNumberServiceUpdate an existingMaterialSerialNumberentity and save it to the S/4HANA system.- Specified by:
updateMaterialSerialNumberin interfaceMaterialSerialNumberService- Parameters:
materialSerialNumber-MaterialSerialNumberentity object that will be updated in the S/4HANA system.- Returns:
- A request builder to update an existing
MaterialSerialNumberentity. To perform execution, call theexecutemethod on the request builder object.
-
getAllMaterialSerialNumberPartner
@Nonnull public GetAllRequestBuilder<MaterialSerialNumberPartner> getAllMaterialSerialNumberPartner()Deprecated.Description copied from interface:MaterialSerialNumberServiceFetch multipleMaterialSerialNumberPartnerentities.- Specified by:
getAllMaterialSerialNumberPartnerin interfaceMaterialSerialNumberService- Returns:
- A request builder to fetch multiple
MaterialSerialNumberPartnerentities. 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.
-
countMaterialSerialNumberPartner
Deprecated.Description copied from interface:MaterialSerialNumberServiceFetch the number of entries from theMaterialSerialNumberPartnerentity collection matching the filter and search expressions.- Specified by:
countMaterialSerialNumberPartnerin interfaceMaterialSerialNumberService- Returns:
- A request builder to fetch the count of
MaterialSerialNumberPartnerentities. 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.
-
getMaterialSerialNumberPartnerByKey
@Nonnull public GetByKeyRequestBuilder<MaterialSerialNumberPartner> getMaterialSerialNumberPartnerByKey(String material, String serialNumber, String equipment, String partnerFunction, String equipmentPartnerObjectNmbr) Deprecated.Description copied from interface:MaterialSerialNumberServiceFetch a singleMaterialSerialNumberPartnerentity using key fields.- Specified by:
getMaterialSerialNumberPartnerByKeyin interfaceMaterialSerialNumberService- Parameters:
material- Material NumberConstraints: Not nullable, Maximum length: 18
serialNumber- Serial NumberConstraints: Not nullable, Maximum length: 18
equipment- Equipment NumberConstraints: Not nullable, Maximum length: 18
partnerFunction- Partner FunctionConstraints: Not nullable, Maximum length: 2
equipmentPartnerObjectNmbr- Counter for differentiation 6-digitConstraints: Not nullable, Maximum length: 6
- Returns:
- A request builder to fetch a single
MaterialSerialNumberPartnerentity 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.
-
createMaterialSerialNumberPartner
@Nonnull public CreateRequestBuilder<MaterialSerialNumberPartner> createMaterialSerialNumberPartner(@Nonnull MaterialSerialNumberPartner materialSerialNumberPartner) Deprecated.Description copied from interface:MaterialSerialNumberServiceCreate a newMaterialSerialNumberPartnerentity and save it to the S/4HANA system.- Specified by:
createMaterialSerialNumberPartnerin interfaceMaterialSerialNumberService- Parameters:
materialSerialNumberPartner-MaterialSerialNumberPartnerentity object that will be created in the S/4HANA system.- Returns:
- A request builder to create a new
MaterialSerialNumberPartnerentity. To perform execution, call theexecutemethod on the request builder object.
-
updateMaterialSerialNumberPartner
@Nonnull public UpdateRequestBuilder<MaterialSerialNumberPartner> updateMaterialSerialNumberPartner(@Nonnull MaterialSerialNumberPartner materialSerialNumberPartner) Deprecated.Description copied from interface:MaterialSerialNumberServiceUpdate an existingMaterialSerialNumberPartnerentity and save it to the S/4HANA system.- Specified by:
updateMaterialSerialNumberPartnerin interfaceMaterialSerialNumberService- Parameters:
materialSerialNumberPartner-MaterialSerialNumberPartnerentity object that will be updated in the S/4HANA system.- Returns:
- A request builder to update an existing
MaterialSerialNumberPartnerentity. To perform execution, call theexecutemethod on the request builder object.
-
getServicePath
Deprecated.- Specified by:
getServicePathin interfaceServiceWithNavigableEntities
-