public interface ServiceRequestService extends BatchService<ServiceRequestServiceBatch>
The service contains header, reference object, person responsible, reason, order, defect, and text entities. The information is sent in the request as a payload. All information is used when creating, updating or deleting a service request data, including appropriate checks for restricted values and authorizations. Once the service request has been created or updated, the service request information is sent in the response. If there are any issues when the service request is created or updated, the system returns error messages. In each API call, you can use the following operations: - Retrieve service requests. - Create service requests. Note: You must use “deep insert” requests (a header plus the following entities: person responsible, text, reason, defect, and reference object). - Create new reference object, person responsible, text, reason, defect, for existing service requests. - Update the header, person responsible, text, reason, and defect for existing service requests. - Delete the person responsible, text, reason, defect, and reference object for existing service requests. .
Reference: SAP API Business Hub
OData Service: | OP_API_SERVICE_REQUEST_SRV_0001 |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Business Object: | Service Request |
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. |
batch
static final String DEFAULT_SERVICE_PATH
withServicePath(String)
method, this is the default service path
used to access the endpoint.@Nonnull ServiceRequestService withServicePath(@Nonnull String servicePath)
servicePath
- Service path that will override the default.@Nonnull ServiceRequestFluentHelper getAllServiceRequest()
ServiceRequest
entities.ServiceRequest
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 ServiceRequestByKeyFluentHelper getServiceRequestByKey(String serviceRequest)
ServiceRequest
entity using key fields.serviceRequest
- Transaction ID
Constraints: Not nullable, Maximum length: 10
ServiceRequest
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 ServiceRequestCreateFluentHelper createServiceRequest(@Nonnull ServiceRequest serviceRequest)
ServiceRequest
entity and save it to the S/4HANA system.serviceRequest
- ServiceRequest
entity object that will be created in the S/4HANA system.ServiceRequest
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull ServiceRequestUpdateFluentHelper updateServiceRequest(@Nonnull ServiceRequest serviceRequest)
ServiceRequest
entity and save it to the S/4HANA system.serviceRequest
- ServiceRequest
entity object that will be updated in the S/4HANA system.ServiceRequest
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull ServiceRequestDefectFluentHelper getAllServiceRequestDefect()
ServiceRequestDefect
entities.ServiceRequestDefect
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 ServiceRequestDefectByKeyFluentHelper getServiceRequestDefectByKey(String serviceRequest, String srvcDocTypeDefectCodeProfType, Short serviceDefectSequence)
ServiceRequestDefect
entity using key fields.serviceDefectSequence
- Sort Field
Constraints: Not nullable
serviceRequest
- Transaction ID
Constraints: Not nullable, Maximum length: 10
srvcDocTypeDefectCodeProfType
- Subject Profile Category
Constraints: Not nullable, Maximum length: 2
ServiceRequestDefect
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 ServiceRequestDefectCreateFluentHelper createServiceRequestDefect(@Nonnull ServiceRequestDefect serviceRequestDefect)
ServiceRequestDefect
entity and save it to the S/4HANA system.serviceRequestDefect
- ServiceRequestDefect
entity object that will be created in the S/4HANA system.ServiceRequestDefect
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull ServiceRequestDefectUpdateFluentHelper updateServiceRequestDefect(@Nonnull ServiceRequestDefect serviceRequestDefect)
ServiceRequestDefect
entity and save it to the S/4HANA system.serviceRequestDefect
- ServiceRequestDefect
entity object that will be updated in the S/4HANA system.ServiceRequestDefect
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull ServiceRequestDefectDeleteFluentHelper deleteServiceRequestDefect(@Nonnull ServiceRequestDefect serviceRequestDefect)
ServiceRequestDefect
entity in the S/4HANA system.serviceRequestDefect
- ServiceRequestDefect
entity object that will be deleted in the S/4HANA system.ServiceRequestDefect
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull ServiceRequestOrderFluentHelper getAllServiceRequestOrder()
ServiceRequestOrder
entities.ServiceRequestOrder
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 ServiceRequestOrderByKeyFluentHelper getServiceRequestOrderByKey(String serviceRequest, String serviceOrder)
ServiceRequestOrder
entity using key fields.serviceRequest
- Transaction ID
Constraints: Not nullable, Maximum length: 10
serviceOrder
- Transaction ID
Constraints: Not nullable, Maximum length: 10
ServiceRequestOrder
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 ServiceRequestPersonRespFluentHelper getAllServiceRequestPersonResp()
ServiceRequestPersonResp
entities.ServiceRequestPersonResp
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 ServiceRequestPersonRespByKeyFluentHelper getServiceRequestPersonRespByKey(String serviceRequest, String personResponsible)
ServiceRequestPersonResp
entity using key fields.personResponsible
- Business Partner Number
Constraints: Not nullable, Maximum length: 10
serviceRequest
- Transaction ID
Constraints: Not nullable, Maximum length: 10
ServiceRequestPersonResp
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 ServiceRequestPersonRespCreateFluentHelper createServiceRequestPersonResp(@Nonnull ServiceRequestPersonResp serviceRequestPersonResp)
ServiceRequestPersonResp
entity and save it to the S/4HANA system.serviceRequestPersonResp
- ServiceRequestPersonResp
entity object that will be created in the S/4HANA system.ServiceRequestPersonResp
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull ServiceRequestPersonRespUpdateFluentHelper updateServiceRequestPersonResp(@Nonnull ServiceRequestPersonResp serviceRequestPersonResp)
ServiceRequestPersonResp
entity and save it to the S/4HANA system.serviceRequestPersonResp
- ServiceRequestPersonResp
entity object that will be updated in the S/4HANA system.ServiceRequestPersonResp
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull ServiceRequestPersonRespDeleteFluentHelper deleteServiceRequestPersonResp(@Nonnull ServiceRequestPersonResp serviceRequestPersonResp)
ServiceRequestPersonResp
entity in the S/4HANA system.serviceRequestPersonResp
- ServiceRequestPersonResp
entity object that will be deleted in the S/4HANA system.ServiceRequestPersonResp
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull ServiceRequestReasonFluentHelper getAllServiceRequestReason()
ServiceRequestReason
entities.ServiceRequestReason
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 ServiceRequestReasonByKeyFluentHelper getServiceRequestReasonByKey(String serviceRequest)
ServiceRequestReason
entity using key fields.serviceRequest
- Transaction ID
Constraints: Not nullable, Maximum length: 10
ServiceRequestReason
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 ServiceRequestReasonCreateFluentHelper createServiceRequestReason(@Nonnull ServiceRequestReason serviceRequestReason)
ServiceRequestReason
entity and save it to the S/4HANA system.serviceRequestReason
- ServiceRequestReason
entity object that will be created in the S/4HANA system.ServiceRequestReason
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull ServiceRequestReasonUpdateFluentHelper updateServiceRequestReason(@Nonnull ServiceRequestReason serviceRequestReason)
ServiceRequestReason
entity and save it to the S/4HANA system.serviceRequestReason
- ServiceRequestReason
entity object that will be updated in the S/4HANA system.ServiceRequestReason
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull ServiceRequestReasonDeleteFluentHelper deleteServiceRequestReason(@Nonnull ServiceRequestReason serviceRequestReason)
ServiceRequestReason
entity in the S/4HANA system.serviceRequestReason
- ServiceRequestReason
entity object that will be deleted in the S/4HANA system.ServiceRequestReason
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull ServiceRequestRefObjectFluentHelper getAllServiceRequestRefObject()
ServiceRequestRefObject
entities.ServiceRequestRefObject
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 ServiceRequestRefObjectByKeyFluentHelper getServiceRequestRefObjectByKey(String serviceRequest, String serviceReferenceEquipment, String serviceRefFunctionalLocation)
ServiceRequestRefObject
entity using key fields.serviceRequest
- Transaction ID
Constraints: Not nullable, Maximum length: 10
serviceRefFunctionalLocation
- Functional Location
Constraints: Not nullable, Maximum length: 40
serviceReferenceEquipment
- Equipment Number
Constraints: Not nullable, Maximum length: 18
ServiceRequestRefObject
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 ServiceRequestRefObjectCreateFluentHelper createServiceRequestRefObject(@Nonnull ServiceRequestRefObject serviceRequestRefObject)
ServiceRequestRefObject
entity and save it to the S/4HANA system.serviceRequestRefObject
- ServiceRequestRefObject
entity object that will be created in the S/4HANA system.ServiceRequestRefObject
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull ServiceRequestRefObjectDeleteFluentHelper deleteServiceRequestRefObject(@Nonnull ServiceRequestRefObject serviceRequestRefObject)
ServiceRequestRefObject
entity in the S/4HANA system.serviceRequestRefObject
- ServiceRequestRefObject
entity object that will be deleted in the S/4HANA system.ServiceRequestRefObject
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull ServiceRequestTextFluentHelper getAllServiceRequestText()
ServiceRequestText
entities.ServiceRequestText
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 ServiceRequestTextByKeyFluentHelper getServiceRequestTextByKey(String serviceRequest, String language, String longTextID)
ServiceRequestText
entity using key fields.serviceRequest
- Transaction ID
Constraints: Not nullable, Maximum length: 10
language
- Language Key
Constraints: Not nullable, Maximum length: 2
longTextID
- Text ID
Constraints: Not nullable, Maximum length: 4
ServiceRequestText
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 ServiceRequestTextCreateFluentHelper createServiceRequestText(@Nonnull ServiceRequestText serviceRequestText)
ServiceRequestText
entity and save it to the S/4HANA system.serviceRequestText
- ServiceRequestText
entity object that will be created in the S/4HANA system.ServiceRequestText
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull ServiceRequestTextUpdateFluentHelper updateServiceRequestText(@Nonnull ServiceRequestText serviceRequestText)
ServiceRequestText
entity and save it to the S/4HANA system.serviceRequestText
- ServiceRequestText
entity object that will be updated in the S/4HANA system.ServiceRequestText
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull ServiceRequestTextDeleteFluentHelper deleteServiceRequestText(@Nonnull ServiceRequestText serviceRequestText)
ServiceRequestText
entity in the S/4HANA system.serviceRequestText
- ServiceRequestText
entity object that will be deleted in the S/4HANA system.ServiceRequestText
entity. To perform execution, call the
execute
method on the fluent helper object.Copyright © 2021 SAP SE. All rights reserved.