@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultServiceContractService") public class DefaultServiceContractService extends Object implements ServiceContractService
You can use this service to integrate external applications with service contract processing in SAP S/4HANA Cloud. The service contains entities of service contract header, header text, item, item object list, and item released order. In each API call, you can use the operation to retrieve service contracts. You can apply any of the filters provided or retrieve all existing data..
Reference: SAP API Business Hub
OData Service: | API_SERVICE_CONTRACT_SRV |
API Version: | 1 |
Communication Scenario: | Service Contract OData Integration (SAP_COM_0558) |
Scope Items: | Service Contract Management (3MO) |
Authentication Methods: | Basic |
Business Object: | ServiceContract |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultServiceContractService()
Creates a service using
ServiceContractService.DEFAULT_SERVICE_PATH to send the requests. |
public DefaultServiceContractService()
ServiceContractService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultServiceContractService withServicePath(@Nonnull String servicePath)
ServiceContractService
withServicePath
in interface ServiceContractService
servicePath
- Service path that will override the default.@Nonnull public DefaultServiceContractServiceBatch batch()
batch
in interface BatchService<ServiceContractServiceBatch>
@Nonnull public ServiceContractFluentHelper getAllServiceContract()
ServiceContractService
ServiceContract
entities.getAllServiceContract
in interface ServiceContractService
ServiceContract
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 ServiceContractByKeyFluentHelper getServiceContractByKey(String serviceContract)
ServiceContractService
ServiceContract
entity using key fields.getServiceContractByKey
in interface ServiceContractService
serviceContract
- Number that identifies the transaction document. It is unique for each business transaction category.
Constraints: Not nullable, Maximum length: 10
ServiceContract
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 ServiceContractItemFluentHelper getAllServiceContractItem()
ServiceContractService
ServiceContractItem
entities.getAllServiceContractItem
in interface ServiceContractService
ServiceContractItem
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 ServiceContractItemByKeyFluentHelper getServiceContractItemByKey(String serviceContract, String serviceContractItem)
ServiceContractService
ServiceContractItem
entity using key fields.getServiceContractItemByKey
in interface ServiceContractService
serviceContract
- Number that identifies the transaction document. It is unique for each business transaction category.
Constraints: Not nullable, Maximum length: 10
serviceContractItem
- Shortened Item Number in Document
Constraints: Not nullable, Maximum length: 6
ServiceContractItem
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 ServiceContractTextFluentHelper getAllServiceContractText()
ServiceContractService
ServiceContractText
entities.getAllServiceContractText
in interface ServiceContractService
ServiceContractText
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 ServiceContractTextByKeyFluentHelper getServiceContractTextByKey(String serviceContract, String language, String longTextID)
ServiceContractService
ServiceContractText
entity using key fields.getServiceContractTextByKey
in interface ServiceContractService
serviceContract
- Number which identifies the transaction document. It is unique for the respective business transaction
category.
Constraints: Not nullable, Maximum length: 10
language
- The language key indicates
Constraints: Not nullable, Maximum length: 2
longTextID
- The text ID defines the various types of texts related to a text object. For example, the object
"TEXT" (standard texts) can have the following text IDs:
Constraints: Not nullable, Maximum length: 4
ServiceContractText
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 ServiceContrItemObjectListFluentHelper getAllServiceContrItemObjectList()
ServiceContractService
ServiceContrItemObjectList
entities.getAllServiceContrItemObjectList
in interface ServiceContractService
ServiceContrItemObjectList
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 ServiceContrItemObjectListByKeyFluentHelper getServiceContrItemObjectListByKey(String serviceContract, String serviceContractItem, String serviceRefObjectSequenceNumber)
ServiceContractService
ServiceContrItemObjectList
entity using key fields.getServiceContrItemObjectListByKey
in interface ServiceContractService
serviceContract
- Number that identifies the transaction document. It is unique for each business transaction category.
Constraints: Not nullable, Maximum length: 10
serviceContractItem
- Shortened Item Number in Document
Constraints: Not nullable, Maximum length: 6
serviceRefObjectSequenceNumber
- Reference Object Counter
Constraints: Not nullable, Maximum length: 8
ServiceContrItemObjectList
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 ServiceContrItmReleasedOrderFluentHelper getAllServiceContrItmReleasedOrder()
ServiceContractService
ServiceContrItmReleasedOrder
entities.getAllServiceContrItmReleasedOrder
in interface ServiceContractService
ServiceContrItmReleasedOrder
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 ServiceContrItmReleasedOrderByKeyFluentHelper getServiceContrItmReleasedOrderByKey(UUID serviceDocumentItmRelationUUID, String serviceDocItmRltnSqncNumber)
ServiceContractService
ServiceContrItmReleasedOrder
entity using key fields.getServiceContrItmReleasedOrderByKey
in interface ServiceContractService
serviceDocumentItmRelationUUID
- Object Relationship Service : GUID binary link
Constraints: Not nullable
serviceDocItmRltnSqncNumber
- Sequential Number of Segment in IDoc Type
Constraints: Not nullable, Maximum length: 4
ServiceContrItmReleasedOrder
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.Copyright © 2020 SAP SE. All rights reserved.