@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultDefectService") public class DefaultDefectService extends Object implements DefectService
A defect is any property or attribute of a material that does not meet the specifications of an inspection characteristic. A defect can be encountered during a quality inspection. This service enables you to record or process a defect that is not assigned to a quality notification, for example, a generic defect. You record defects using predefined defect codes. .
Reference: SAP API Business Hub
OData Service: | OP_API_DEFECT_SRV_0001 |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Business Object: | Defect |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultDefectService()
Creates a service using
DefectService.DEFAULT_SERVICE_PATH to send the requests. |
Modifier and Type | Method and Description |
---|---|
DefaultDefectServiceBatch |
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. |
DefaultDefectService |
withServicePath(String servicePath)
Overrides the default service path and returns a new service instance with the specified service path.
|
public DefaultDefectService()
DefectService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultDefectService withServicePath(@Nonnull String servicePath)
DefectService
withServicePath
in interface DefectService
servicePath
- Service path that will override the default.@Nonnull public DefaultDefectServiceBatch batch()
batch
in interface BatchService<DefectServiceBatch>
@Nonnull public DefectFluentHelper getAllDefect()
DefectService
Defect
entities.getAllDefect
in interface DefectService
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)
DefectService
Defect
entity using key fields.getDefectByKey
in interface DefectService
defectInternalID
- Notification Number
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)
DefectService
Defect
entity and save it to the S/4HANA system.createDefect
in interface DefectService
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)
DefectService
Defect
entity and save it to the S/4HANA system.updateDefect
in interface DefectService
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)
DefectService
Defect
entity in the S/4HANA system.deleteDefect
in interface DefectService
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 © 2021 SAP SE. All rights reserved.