Interface EHSIncidentCreateService
- All Superinterfaces:
BatchService<EHSIncidentCreateServiceBatch>
- All Known Implementing Classes:
DefaultEHSIncidentCreateService
This service contains the basic information about an incident as the main entity, and persons involved, location, and attachments as dependent entities. For create operations, the information is sent in the request as a payload, except for attachment-related data. You can add attachments to the newly created incident in separate calls. Once the incident has been created, the incident data and global identification are sent in the response. For read operations, filter information can be sent according to the OData protocol. While creating an incident or retrieving incident data, the system performs checks for restricted values and authorization. If there are any issues, the system displays error messages in the response..
Reference: SAP Business Accelerator Hub
Details:
| OData Service: | API_EHS_REPORT_INCIDENT_SRV |
| API Version: | 1.0.0 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | Environment, Health and Safety - Incident Reporting Integration(SAP_COM_0369) |
| Scope Items: | Lean Incident Management Reporting(3FP), Lean Incident Management Reporting(PFP) |
| Authentication Methods: | x509 |
| Business Object: | EHS Incident business object |
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.If no other path was provided via thewithServicePath(String)method, this is the default service path used to access the endpoint. -
Method Summary
Modifier and TypeMethodDescriptioncreateAttachment(Attachment attachment) Deprecated.Create a newAttachmententity and save it to the S/4HANA system.createIncident(Incident incident) Deprecated.Create a newIncidententity and save it to the S/4HANA system.createPerson(Person person) Deprecated.Create a newPersonentity and save it to the S/4HANA system.Deprecated.Fetch multipleCurEHSLocationInclRootHierentities.Deprecated.Fetch multipleEHSLocationTypeentities.Deprecated.Fetch multipleEHSLocationValueHelpentities.Deprecated.Fetch multipleEHSLocClassifierTextentities.Deprecated.Fetch multipleEHSLocClassifierVHentities.Deprecated.Fetch multipleEHSPersonValueHelpentities.Deprecated.Fetch multipleIncidententities.Deprecated.Fetch multipleLocationentities.getCurEHSLocationInclRootHierByKey(UUID eHSLocationUUID) Deprecated.Fetch a singleCurEHSLocationInclRootHierentity using key fields.getEHSLocationTypeByKey(String eHSLocationType) Deprecated.Fetch a singleEHSLocationTypeentity using key fields.getEHSLocationValueHelpByKey(UUID eHSLocationUUID) Deprecated.Fetch a singleEHSLocationValueHelpentity using key fields.getEHSLocClassifierTextByKey(UUID eHSLocationUUID, UUID eHSLocClassifierUUID, UUID eHSLocClassifierRefUUID) Deprecated.Fetch a singleEHSLocClassifierTextentity using key fields.getEHSLocClassifierVHByKey(UUID eHSClassifierUUID) Deprecated.Fetch a singleEHSLocClassifierVHentity using key fields.getEHSPersonValueHelpByKey(String businessPartner) Deprecated.Fetch a singleEHSPersonValueHelpentity using key fields.getIncidentByKey(UUID incidentUUID) Deprecated.Fetch a singleIncidententity using key fields.getLocationByKey(UUID locationUUID) Deprecated.Fetch a singleLocationentity using key fields.withServicePath(String servicePath) Deprecated.Overrides the default service path and returns a new service instance with the specified service path.Methods inherited from interface com.sap.cloud.sdk.datamodel.odata.helper.batch.BatchService
batch
-
Field Details
-
DEFAULT_SERVICE_PATH
Deprecated.If no other path was provided via thewithServicePath(String)method, this is the default service path used to access the endpoint.- See Also:
-
-
Method Details
-
withServicePath
Deprecated.Overrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
getAllCurEHSLocationInclRootHier
Deprecated.Fetch multipleCurEHSLocationInclRootHierentities.- Returns:
- A fluent helper to fetch multiple
CurEHSLocationInclRootHierentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getCurEHSLocationInclRootHierByKey
@Nonnull CurEHSLocationInclRootHierByKeyFluentHelper getCurEHSLocationInclRootHierByKey(UUID eHSLocationUUID) Deprecated.Fetch a singleCurEHSLocationInclRootHierentity using key fields.- Parameters:
eHSLocationUUID- LocationConstraints: Not nullable
- Returns:
- A fluent helper to fetch a single
CurEHSLocationInclRootHierentity 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 theexecutemethod on the fluent helper object.
-
getAllEHSLocationValueHelp
Deprecated.Fetch multipleEHSLocationValueHelpentities.- Returns:
- A fluent helper to fetch multiple
EHSLocationValueHelpentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getEHSLocationValueHelpByKey
Deprecated.Fetch a singleEHSLocationValueHelpentity using key fields.- Parameters:
eHSLocationUUID- LocationConstraints: Not nullable
- Returns:
- A fluent helper to fetch a single
EHSLocationValueHelpentity 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 theexecutemethod on the fluent helper object.
-
getAllEHSLocClassifierVH
Deprecated.Fetch multipleEHSLocClassifierVHentities.- Returns:
- A fluent helper to fetch multiple
EHSLocClassifierVHentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getEHSLocClassifierVHByKey
Deprecated.Fetch a singleEHSLocClassifierVHentity using key fields.- Parameters:
eHSClassifierUUID- NodeIDConstraints: Not nullable
- Returns:
- A fluent helper to fetch a single
EHSLocClassifierVHentity 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 theexecutemethod on the fluent helper object.
-
getAllEHSPersonValueHelp
Deprecated.Fetch multipleEHSPersonValueHelpentities.- Returns:
- A fluent helper to fetch multiple
EHSPersonValueHelpentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getEHSPersonValueHelpByKey
Deprecated.Fetch a singleEHSPersonValueHelpentity using key fields.- Parameters:
businessPartner- Business Partner NumberConstraints: Not nullable, Maximum length: 10
- Returns:
- A fluent helper to fetch a single
EHSPersonValueHelpentity 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 theexecutemethod on the fluent helper object.
-
getAllEHSLocationType
Deprecated.Fetch multipleEHSLocationTypeentities.- Returns:
- A fluent helper to fetch multiple
EHSLocationTypeentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getEHSLocationTypeByKey
Deprecated.Fetch a singleEHSLocationTypeentity using key fields.- Parameters:
eHSLocationType- Location TypeConstraints: Not nullable, Maximum length: 40
- Returns:
- A fluent helper to fetch a single
EHSLocationTypeentity 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 theexecutemethod on the fluent helper object.
-
getAllEHSLocClassifierText
Deprecated.Fetch multipleEHSLocClassifierTextentities.- Returns:
- A fluent helper to fetch multiple
EHSLocClassifierTextentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getEHSLocClassifierTextByKey
@Nonnull EHSLocClassifierTextByKeyFluentHelper getEHSLocClassifierTextByKey(UUID eHSLocationUUID, UUID eHSLocClassifierUUID, UUID eHSLocClassifierRefUUID) Deprecated.Fetch a singleEHSLocClassifierTextentity using key fields.- Parameters:
eHSLocClassifierRefUUID- NodeIDConstraints: Not nullable
eHSLocClassifierUUID- NodeIDConstraints: Not nullable
eHSLocationUUID- NodeIDConstraints: Not nullable
- Returns:
- A fluent helper to fetch a single
EHSLocClassifierTextentity 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 theexecutemethod on the fluent helper object.
-
createAttachment
Deprecated.Create a newAttachmententity and save it to the S/4HANA system.- Parameters:
attachment-Attachmententity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
Attachmententity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllIncident
Deprecated.Fetch multipleIncidententities.- Returns:
- A fluent helper to fetch multiple
Incidententities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getIncidentByKey
Deprecated.Fetch a singleIncidententity using key fields.- Parameters:
incidentUUID- Incident Global IdentificationConstraints: Not nullable
- Returns:
- A fluent helper to fetch a single
Incidententity 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 theexecutemethod on the fluent helper object.
-
createIncident
Deprecated.Create a newIncidententity and save it to the S/4HANA system. -
getAllLocation
Deprecated.Fetch multipleLocationentities.- Returns:
- A fluent helper to fetch multiple
Locationentities. This fluent helper allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the fluent helper object.
-
getLocationByKey
Deprecated.Fetch a singleLocationentity using key fields.- Parameters:
locationUUID- Location Global IdentificationConstraints: Not nullable
- Returns:
- A fluent helper to fetch a single
Locationentity 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 theexecutemethod on the fluent helper object.
-
createPerson
Deprecated.Create a newPersonentity and save it to the S/4HANA system.
-