@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultDefectProcessingService") public class DefaultDefectProcessingService extends Object implements DefectProcessingService
This service enables you to create, read, update and delete defects from the SAP S/4HANA Cloud system. It is part of the integration scenario Defect Processing Integration.
Reference: SAP API Business Hub
OData Service: | API_DEFECT_SRV |
API Version: | 1 |
Communication Scenario: | Defect Processing Integration (SAP_COM_0153) |
Scope Items: | Quality Management in Stock Handling (1MR) |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultDefectProcessingService()
Creates a service using
DefectProcessingService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefectCreateFluentHelper |
createDefect(Defect defect)
Create a new
Defect entity and save it to the S/4HANA system. |
DefectDeleteFluentHelper |
deleteDefect(Defect defect)
Deletes an existing
Defect entity in the S/4HANA system. |
DefectFluentHelper |
getAllDefect()
Fetch multiple
Defect entities. |
DefectByKeyFluentHelper |
getDefectByKey(String defectInternalID)
Fetch a single
Defect entity using key fields. |
DefectUpdateFluentHelper |
updateDefect(Defect defect)
Update an existing
Defect entity and save it to the S/4HANA system. |
DefaultDefectProcessingService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultDefectProcessingService()
DefectProcessingService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultDefectProcessingService withServicePath(@Nonnull String servicePath)
DefectProcessingService
withServicePath
in interface DefectProcessingService
servicePath
- Service path that will override the default.@Nonnull public DefectFluentHelper getAllDefect()
DefectProcessingService
Defect
entities.getAllDefect
in interface DefectProcessingService
Defect
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 DefectByKeyFluentHelper getDefectByKey(String defectInternalID)
DefectProcessingService
Defect
entity using key fields.getDefectByKey
in interface DefectProcessingService
defectInternalID
- Notification NoConstraints: Not nullable, Maximum length: 12
Defect
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.@Nonnull public DefectCreateFluentHelper createDefect(@Nonnull Defect defect)
DefectProcessingService
Defect
entity and save it to the S/4HANA system.createDefect
in interface DefectProcessingService
defect
- Defect
entity object that will be created in the S/4HANA system.Defect
entity. To perform execution, call the execute
method on the fluent helper object.@Nonnull public DefectUpdateFluentHelper updateDefect(@Nonnull Defect defect)
DefectProcessingService
Defect
entity and save it to the S/4HANA system.updateDefect
in interface DefectProcessingService
defect
- Defect
entity object that will be updated in the S/4HANA system.Defect
entity. To perform execution, call the execute
method on the fluent helper object.@Nonnull public DefectDeleteFluentHelper deleteDefect(@Nonnull Defect defect)
DefectProcessingService
Defect
entity in the S/4HANA system.deleteDefect
in interface DefectProcessingService
defect
- Defect
entity object that will be deleted in the S/4HANA system.Defect
entity. To perform execution, call the execute
method on the fluent helper object.Copyright © 2018 SAP SE. All rights reserved.