@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultServiceRequestService") public class DefaultServiceRequestService extends Object implements ServiceRequestService
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 |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultServiceRequestService()
Creates a service using
ServiceRequestService.DEFAULT_SERVICE_PATH to send the requests. |
public DefaultServiceRequestService()
ServiceRequestService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultServiceRequestService withServicePath(@Nonnull String servicePath)
ServiceRequestService
withServicePath
in interface ServiceRequestService
servicePath
- Service path that will override the default.@Nonnull public DefaultServiceRequestServiceBatch batch()
batch
in interface BatchService<ServiceRequestServiceBatch>
@Nonnull public ServiceRequestFluentHelper getAllServiceRequest()
ServiceRequestService
ServiceRequest
entities.getAllServiceRequest
in interface ServiceRequestService
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 public ServiceRequestByKeyFluentHelper getServiceRequestByKey(String serviceRequest)
ServiceRequestService
ServiceRequest
entity using key fields.getServiceRequestByKey
in interface ServiceRequestService
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 public ServiceRequestCreateFluentHelper createServiceRequest(@Nonnull ServiceRequest serviceRequest)
ServiceRequestService
ServiceRequest
entity and save it to the S/4HANA system.createServiceRequest
in interface ServiceRequestService
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 public ServiceRequestUpdateFluentHelper updateServiceRequest(@Nonnull ServiceRequest serviceRequest)
ServiceRequestService
ServiceRequest
entity and save it to the S/4HANA system.updateServiceRequest
in interface ServiceRequestService
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 public ServiceRequestDefectFluentHelper getAllServiceRequestDefect()
ServiceRequestService
ServiceRequestDefect
entities.getAllServiceRequestDefect
in interface ServiceRequestService
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 public ServiceRequestDefectByKeyFluentHelper getServiceRequestDefectByKey(String serviceRequest, String srvcDocTypeDefectCodeProfType, Short serviceDefectSequence)
ServiceRequestService
ServiceRequestDefect
entity using key fields.getServiceRequestDefectByKey
in interface ServiceRequestService
serviceRequest
- Transaction ID
Constraints: Not nullable, Maximum length: 10
srvcDocTypeDefectCodeProfType
- Subject Profile Category
Constraints: Not nullable, Maximum length: 2
serviceDefectSequence
- Sort Field
Constraints: Not nullable
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 public ServiceRequestDefectCreateFluentHelper createServiceRequestDefect(@Nonnull ServiceRequestDefect serviceRequestDefect)
ServiceRequestService
ServiceRequestDefect
entity and save it to the S/4HANA system.createServiceRequestDefect
in interface ServiceRequestService
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 public ServiceRequestDefectUpdateFluentHelper updateServiceRequestDefect(@Nonnull ServiceRequestDefect serviceRequestDefect)
ServiceRequestService
ServiceRequestDefect
entity and save it to the S/4HANA system.updateServiceRequestDefect
in interface ServiceRequestService
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 public ServiceRequestDefectDeleteFluentHelper deleteServiceRequestDefect(@Nonnull ServiceRequestDefect serviceRequestDefect)
ServiceRequestService
ServiceRequestDefect
entity in the S/4HANA system.deleteServiceRequestDefect
in interface ServiceRequestService
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 public ServiceRequestOrderFluentHelper getAllServiceRequestOrder()
ServiceRequestService
ServiceRequestOrder
entities.getAllServiceRequestOrder
in interface ServiceRequestService
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 public ServiceRequestOrderByKeyFluentHelper getServiceRequestOrderByKey(String serviceRequest, String serviceOrder)
ServiceRequestService
ServiceRequestOrder
entity using key fields.getServiceRequestOrderByKey
in interface ServiceRequestService
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 public ServiceRequestPersonRespFluentHelper getAllServiceRequestPersonResp()
ServiceRequestService
ServiceRequestPersonResp
entities.getAllServiceRequestPersonResp
in interface ServiceRequestService
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 public ServiceRequestPersonRespByKeyFluentHelper getServiceRequestPersonRespByKey(String serviceRequest, String personResponsible)
ServiceRequestService
ServiceRequestPersonResp
entity using key fields.getServiceRequestPersonRespByKey
in interface ServiceRequestService
serviceRequest
- Transaction ID
Constraints: Not nullable, Maximum length: 10
personResponsible
- Business Partner Number
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 public ServiceRequestPersonRespCreateFluentHelper createServiceRequestPersonResp(@Nonnull ServiceRequestPersonResp serviceRequestPersonResp)
ServiceRequestService
ServiceRequestPersonResp
entity and save it to the S/4HANA system.createServiceRequestPersonResp
in interface ServiceRequestService
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 public ServiceRequestPersonRespUpdateFluentHelper updateServiceRequestPersonResp(@Nonnull ServiceRequestPersonResp serviceRequestPersonResp)
ServiceRequestService
ServiceRequestPersonResp
entity and save it to the S/4HANA system.updateServiceRequestPersonResp
in interface ServiceRequestService
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 public ServiceRequestPersonRespDeleteFluentHelper deleteServiceRequestPersonResp(@Nonnull ServiceRequestPersonResp serviceRequestPersonResp)
ServiceRequestService
ServiceRequestPersonResp
entity in the S/4HANA system.deleteServiceRequestPersonResp
in interface ServiceRequestService
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 public ServiceRequestReasonFluentHelper getAllServiceRequestReason()
ServiceRequestService
ServiceRequestReason
entities.getAllServiceRequestReason
in interface ServiceRequestService
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 public ServiceRequestReasonByKeyFluentHelper getServiceRequestReasonByKey(String serviceRequest)
ServiceRequestService
ServiceRequestReason
entity using key fields.getServiceRequestReasonByKey
in interface ServiceRequestService
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 public ServiceRequestReasonCreateFluentHelper createServiceRequestReason(@Nonnull ServiceRequestReason serviceRequestReason)
ServiceRequestService
ServiceRequestReason
entity and save it to the S/4HANA system.createServiceRequestReason
in interface ServiceRequestService
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 public ServiceRequestReasonUpdateFluentHelper updateServiceRequestReason(@Nonnull ServiceRequestReason serviceRequestReason)
ServiceRequestService
ServiceRequestReason
entity and save it to the S/4HANA system.updateServiceRequestReason
in interface ServiceRequestService
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 public ServiceRequestReasonDeleteFluentHelper deleteServiceRequestReason(@Nonnull ServiceRequestReason serviceRequestReason)
ServiceRequestService
ServiceRequestReason
entity in the S/4HANA system.deleteServiceRequestReason
in interface ServiceRequestService
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 public ServiceRequestRefObjectFluentHelper getAllServiceRequestRefObject()
ServiceRequestService
ServiceRequestRefObject
entities.getAllServiceRequestRefObject
in interface ServiceRequestService
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 public ServiceRequestRefObjectByKeyFluentHelper getServiceRequestRefObjectByKey(String serviceRequest, String serviceReferenceEquipment, String serviceRefFunctionalLocation)
ServiceRequestService
ServiceRequestRefObject
entity using key fields.getServiceRequestRefObjectByKey
in interface ServiceRequestService
serviceRequest
- Transaction ID
Constraints: Not nullable, Maximum length: 10
serviceReferenceEquipment
- Equipment Number
Constraints: Not nullable, Maximum length: 18
serviceRefFunctionalLocation
- Functional Location
Constraints: Not nullable, Maximum length: 40
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 public ServiceRequestRefObjectCreateFluentHelper createServiceRequestRefObject(@Nonnull ServiceRequestRefObject serviceRequestRefObject)
ServiceRequestService
ServiceRequestRefObject
entity and save it to the S/4HANA system.createServiceRequestRefObject
in interface ServiceRequestService
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 public ServiceRequestRefObjectDeleteFluentHelper deleteServiceRequestRefObject(@Nonnull ServiceRequestRefObject serviceRequestRefObject)
ServiceRequestService
ServiceRequestRefObject
entity in the S/4HANA system.deleteServiceRequestRefObject
in interface ServiceRequestService
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 public ServiceRequestTextFluentHelper getAllServiceRequestText()
ServiceRequestService
ServiceRequestText
entities.getAllServiceRequestText
in interface ServiceRequestService
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 public ServiceRequestTextByKeyFluentHelper getServiceRequestTextByKey(String serviceRequest, String language, String longTextID)
ServiceRequestService
ServiceRequestText
entity using key fields.getServiceRequestTextByKey
in interface ServiceRequestService
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 public ServiceRequestTextCreateFluentHelper createServiceRequestText(@Nonnull ServiceRequestText serviceRequestText)
ServiceRequestService
ServiceRequestText
entity and save it to the S/4HANA system.createServiceRequestText
in interface ServiceRequestService
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 public ServiceRequestTextUpdateFluentHelper updateServiceRequestText(@Nonnull ServiceRequestText serviceRequestText)
ServiceRequestService
ServiceRequestText
entity and save it to the S/4HANA system.updateServiceRequestText
in interface ServiceRequestService
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 public ServiceRequestTextDeleteFluentHelper deleteServiceRequestText(@Nonnull ServiceRequestText serviceRequestText)
ServiceRequestService
ServiceRequestText
entity in the S/4HANA system.deleteServiceRequestText
in interface ServiceRequestService
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.