public interface DefectProcessingService
This service enables you to create, read, update, and delete defects that are not assigned to a quality notification. 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 Procurement (1FM), Quality Management in Sales (1MP), Quality Management in Stock Handling (1MR), Quality Management in Discrete Manufacturing (1E1) |
Authentication Methods: | Basic, x509, OAuth2 |
Business Object: | Defect |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SERVICE_PATH
If no other path was provided via the
withServicePath(String) method, this is the default service path
used to access the endpoint. |
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. |
DefectProcessingService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
static final String DEFAULT_SERVICE_PATH
withServicePath(String)
method, this is the default service path
used to access the endpoint.@Nonnull DefectProcessingService withServicePath(@Nonnull String servicePath)
servicePath
- Service path that will override the default.@Nonnull DefectFluentHelper getAllDefect()
Defect
entities.@Nonnull DefectByKeyFluentHelper getDefectByKey(String defectInternalID)
Defect
entity
using key fields.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 DefectCreateFluentHelper createDefect(@Nonnull Defect defect)
Defect
entity
and save it to the S/4HANA system.@Nonnull DefectUpdateFluentHelper updateDefect(@Nonnull Defect defect)
Defect
entity and save it to the S/4HANA system.@Nonnull DefectDeleteFluentHelper deleteDefect(@Nonnull Defect defect)
Defect
entity in the S/4HANA system.Copyright © 2018 SAP SE. All rights reserved.