@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultDefectProcessingService") public class DefaultDefectProcessingService extends Object implements DefectProcessingService
A defect is a deviation due to which a requirement cannot be fulfilled (for example, encountered during a quality inspection)..
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 Discrete Manufacturing (1E1), Quality Management in Procurement (1FM), Quality Management in Sales (1MP), Quality Management in Stock Handling (1MR), Nonconformance Management (2QN) |
Authentication Methods: | Basic, x509, OAuth2 |
Business Object: | Defect |
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 |
---|---|
DefaultDefectProcessingServiceBatch |
batch()
Instantiate a new FluentHelper instance for a single OData batch request.
|
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 DefaultDefectProcessingServiceBatch batch()
batch
in interface BatchService<DefectProcessingServiceBatch>
@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
- Number that identifies the notification.
Constraints: 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 © 2020 SAP SE. All rights reserved.