public interface ServiceContractService extends BatchService<ServiceContractServiceBatch>
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 |
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 ServiceContractService withServicePath(@Nonnull String servicePath)
servicePath
- Service path that will override the default.@Nonnull ServiceContractFluentHelper getAllServiceContract()
ServiceContract
entities.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 ServiceContractByKeyFluentHelper getServiceContractByKey(String serviceContract)
ServiceContract
entity using key fields.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 ServiceContractItemFluentHelper getAllServiceContractItem()
ServiceContractItem
entities.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 ServiceContractItemByKeyFluentHelper getServiceContractItemByKey(String serviceContract, String serviceContractItem)
ServiceContractItem
entity using key fields.serviceContractItem
- Shortened Item Number in Document
Constraints: Not nullable, Maximum length: 6
serviceContract
- Number that identifies the transaction document. It is unique for each business transaction category.
Constraints: Not nullable, Maximum length: 10
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 ServiceContractTextFluentHelper getAllServiceContractText()
ServiceContractText
entities.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 ServiceContractTextByKeyFluentHelper getServiceContractTextByKey(String serviceContract, String language, String longTextID)
ServiceContractText
entity using key fields.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 ServiceContrItemObjectListFluentHelper getAllServiceContrItemObjectList()
ServiceContrItemObjectList
entities.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 ServiceContrItemObjectListByKeyFluentHelper getServiceContrItemObjectListByKey(String serviceContract, String serviceContractItem, String serviceRefObjectSequenceNumber)
ServiceContrItemObjectList
entity using key fields.serviceContractItem
- Shortened Item Number in Document
Constraints: Not nullable, Maximum length: 6
serviceContract
- Number that identifies the transaction document. It is unique for each business transaction category.
Constraints: Not nullable, Maximum length: 10
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 ServiceContrItmReleasedOrderFluentHelper getAllServiceContrItmReleasedOrder()
ServiceContrItmReleasedOrder
entities.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 ServiceContrItmReleasedOrderByKeyFluentHelper getServiceContrItmReleasedOrderByKey(UUID serviceDocumentItmRelationUUID, String serviceDocItmRltnSqncNumber)
ServiceContrItmReleasedOrder
entity using key fields.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.