Class DefaultEHSIncidentCreateService
- All Implemented Interfaces:
BatchService<EHSIncidentCreateServiceBatch>,EHSIncidentCreateService
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
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odata.services.EHSIncidentCreateService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingEHSIncidentCreateService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Deprecated.createAttachment(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.
-
Constructor Details
-
DefaultEHSIncidentCreateService
public DefaultEHSIncidentCreateService()Deprecated.Creates a service usingEHSIncidentCreateService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
Deprecated.Description copied from interface:EHSIncidentCreateServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfaceEHSIncidentCreateService- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
batch
Deprecated.- Specified by:
batchin interfaceBatchService<EHSIncidentCreateServiceBatch>
-
getAllCurEHSLocationInclRootHier
Deprecated.Description copied from interface:EHSIncidentCreateServiceFetch multipleCurEHSLocationInclRootHierentities.- Specified by:
getAllCurEHSLocationInclRootHierin interfaceEHSIncidentCreateService- 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 public CurEHSLocationInclRootHierByKeyFluentHelper getCurEHSLocationInclRootHierByKey(UUID eHSLocationUUID) Deprecated.Description copied from interface:EHSIncidentCreateServiceFetch a singleCurEHSLocationInclRootHierentity using key fields.- Specified by:
getCurEHSLocationInclRootHierByKeyin interfaceEHSIncidentCreateService- 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.Description copied from interface:EHSIncidentCreateServiceFetch multipleEHSLocationValueHelpentities.- Specified by:
getAllEHSLocationValueHelpin interfaceEHSIncidentCreateService- 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
@Nonnull public EHSLocationValueHelpByKeyFluentHelper getEHSLocationValueHelpByKey(UUID eHSLocationUUID) Deprecated.Description copied from interface:EHSIncidentCreateServiceFetch a singleEHSLocationValueHelpentity using key fields.- Specified by:
getEHSLocationValueHelpByKeyin interfaceEHSIncidentCreateService- 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.Description copied from interface:EHSIncidentCreateServiceFetch multipleEHSLocClassifierVHentities.- Specified by:
getAllEHSLocClassifierVHin interfaceEHSIncidentCreateService- 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
@Nonnull public EHSLocClassifierVHByKeyFluentHelper getEHSLocClassifierVHByKey(UUID eHSClassifierUUID) Deprecated.Description copied from interface:EHSIncidentCreateServiceFetch a singleEHSLocClassifierVHentity using key fields.- Specified by:
getEHSLocClassifierVHByKeyin interfaceEHSIncidentCreateService- 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.Description copied from interface:EHSIncidentCreateServiceFetch multipleEHSPersonValueHelpentities.- Specified by:
getAllEHSPersonValueHelpin interfaceEHSIncidentCreateService- 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
@Nonnull public EHSPersonValueHelpByKeyFluentHelper getEHSPersonValueHelpByKey(String businessPartner) Deprecated.Description copied from interface:EHSIncidentCreateServiceFetch a singleEHSPersonValueHelpentity using key fields.- Specified by:
getEHSPersonValueHelpByKeyin interfaceEHSIncidentCreateService- 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.Description copied from interface:EHSIncidentCreateServiceFetch multipleEHSLocationTypeentities.- Specified by:
getAllEHSLocationTypein interfaceEHSIncidentCreateService- 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.Description copied from interface:EHSIncidentCreateServiceFetch a singleEHSLocationTypeentity using key fields.- Specified by:
getEHSLocationTypeByKeyin interfaceEHSIncidentCreateService- 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.Description copied from interface:EHSIncidentCreateServiceFetch multipleEHSLocClassifierTextentities.- Specified by:
getAllEHSLocClassifierTextin interfaceEHSIncidentCreateService- 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 public EHSLocClassifierTextByKeyFluentHelper getEHSLocClassifierTextByKey(UUID eHSLocationUUID, UUID eHSLocClassifierUUID, UUID eHSLocClassifierRefUUID) Deprecated.Description copied from interface:EHSIncidentCreateServiceFetch a singleEHSLocClassifierTextentity using key fields.- Specified by:
getEHSLocClassifierTextByKeyin interfaceEHSIncidentCreateService- Parameters:
eHSLocationUUID- NodeIDConstraints: Not nullable
eHSLocClassifierUUID- NodeIDConstraints: Not nullable
eHSLocClassifierRefUUID- 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.Description copied from interface:EHSIncidentCreateServiceCreate a newAttachmententity and save it to the S/4HANA system.- Specified by:
createAttachmentin interfaceEHSIncidentCreateService- 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.Description copied from interface:EHSIncidentCreateServiceFetch multipleIncidententities.- Specified by:
getAllIncidentin interfaceEHSIncidentCreateService- 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.Description copied from interface:EHSIncidentCreateServiceFetch a singleIncidententity using key fields.- Specified by:
getIncidentByKeyin interfaceEHSIncidentCreateService- 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.Description copied from interface:EHSIncidentCreateServiceCreate a newIncidententity and save it to the S/4HANA system.- Specified by:
createIncidentin interfaceEHSIncidentCreateService- Parameters:
incident-Incidententity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
Incidententity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllLocation
Deprecated.Description copied from interface:EHSIncidentCreateServiceFetch multipleLocationentities.- Specified by:
getAllLocationin interfaceEHSIncidentCreateService- 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.Description copied from interface:EHSIncidentCreateServiceFetch a singleLocationentity using key fields.- Specified by:
getLocationByKeyin interfaceEHSIncidentCreateService- 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.Description copied from interface:EHSIncidentCreateServiceCreate a newPersonentity and save it to the S/4HANA system.- Specified by:
createPersonin interfaceEHSIncidentCreateService- Parameters:
person-Personentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
Personentity. To perform execution, call theexecutemethod on the fluent helper object.
-