Class DefaultServiceContractService
- All Implemented Interfaces:
BatchService<ServiceContractServiceBatch>,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 text, item, item object list, item product list, item price element, item released order, and billing request line. 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 Business Accelerator Hub
Details:
| OData Service: | API_SERVICE_CONTRACT_SRV |
| API Version: | 1.0.0 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | Service Contract OData Integration(SAP_COM_0558) |
| Scope Items: | Service Contract Management(3MO) |
| Authentication Methods: | x509 |
| Business Object: | Service Contract |
-
Field Summary
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odata.services.ServiceContractService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingServiceContractService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Deprecated.Deprecated.Fetch multipleServiceContractentities.Deprecated.Fetch multipleServiceContractItementities.Deprecated.Fetch multipleServiceContractItemTextentities.Deprecated.Fetch multipleServiceContractTextentities.Deprecated.Fetch multipleServiceContrItemObjectListentities.Deprecated.Fetch multipleServiceContrItemPriceElemententities.Deprecated.Fetch multipleServiceContrItmReleasedOrderentities.Deprecated.Fetch multipleSrvcContrBillgReqItmPrcElmntentities.Deprecated.Fetch multipleSrvcContrItemProductentities.Deprecated.Fetch multipleSrvcContrItmBillgReqItementities.getServiceContractByKey(String serviceContract) Deprecated.Fetch a singleServiceContractentity using key fields.getServiceContractItemByKey(String serviceContract, String serviceContractItem) Deprecated.Fetch a singleServiceContractItementity using key fields.getServiceContractItemTextByKey(String serviceContract, String serviceContractItem, String language, String longTextID) Deprecated.Fetch a singleServiceContractItemTextentity using key fields.getServiceContractTextByKey(String serviceContract, String language, String longTextID) Deprecated.Fetch a singleServiceContractTextentity using key fields.getServiceContrItemObjectListByKey(String serviceContract, String serviceContractItem, String serviceRefObjectSequenceNumber) Deprecated.Fetch a singleServiceContrItemObjectListentity using key fields.getServiceContrItemPriceElementByKey(String serviceContract, String serviceContractItem, String pricingProcedureStep, String pricingProcedureCounter) Deprecated.Fetch a singleServiceContrItemPriceElemententity using key fields.getServiceContrItmReleasedOrderByKey(UUID serviceDocumentItmRelationUUID, String serviceDocItmRltnSqncNumber) Deprecated.Fetch a singleServiceContrItmReleasedOrderentity using key fields.getSrvcContrBillgReqItmPrcElmntByKey(String serviceContract, String billingRequestItem, String pricingProcedureStep, String pricingProcedureCounter) Deprecated.Fetch a singleSrvcContrBillgReqItmPrcElmntentity using key fields.getSrvcContrItemProductByKey(String serviceContract, String serviceContractItem, String serviceProductListItem) Deprecated.Fetch a singleSrvcContrItemProductentity using key fields.getSrvcContrItmBillgReqItemByKey(String serviceContract, String serviceContractItem, String billingRequestItem) Deprecated.Fetch a singleSrvcContrItmBillgReqItementity 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
-
DefaultServiceContractService
public DefaultServiceContractService()Deprecated.Creates a service usingServiceContractService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
Deprecated.Description copied from interface:ServiceContractServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfaceServiceContractService- 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<ServiceContractServiceBatch>
-
getAllServiceContract
Deprecated.Description copied from interface:ServiceContractServiceFetch multipleServiceContractentities.- Specified by:
getAllServiceContractin interfaceServiceContractService- Returns:
- A fluent helper to fetch multiple
ServiceContractentities. 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.
-
getServiceContractByKey
Deprecated.Description copied from interface:ServiceContractServiceFetch a singleServiceContractentity using key fields.- Specified by:
getServiceContractByKeyin interfaceServiceContractService- Parameters:
serviceContract- Transaction IDConstraints: Not nullable, Maximum length: 10
- Returns:
- A fluent helper to fetch a single
ServiceContractentity 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.
-
getAllServiceContractItem
Deprecated.Description copied from interface:ServiceContractServiceFetch multipleServiceContractItementities.- Specified by:
getAllServiceContractItemin interfaceServiceContractService- Returns:
- A fluent helper to fetch multiple
ServiceContractItementities. 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.
-
getServiceContractItemByKey
@Nonnull public ServiceContractItemByKeyFluentHelper getServiceContractItemByKey(String serviceContract, String serviceContractItem) Deprecated.Description copied from interface:ServiceContractServiceFetch a singleServiceContractItementity using key fields.- Specified by:
getServiceContractItemByKeyin interfaceServiceContractService- Parameters:
serviceContract- Transaction IDConstraints: Not nullable, Maximum length: 10
serviceContractItem- Shortened Item Number in DocumentConstraints: Not nullable, Maximum length: 6
- Returns:
- A fluent helper to fetch a single
ServiceContractItementity 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.
-
getAllServiceContractItemText
Deprecated.Description copied from interface:ServiceContractServiceFetch multipleServiceContractItemTextentities.- Specified by:
getAllServiceContractItemTextin interfaceServiceContractService- Returns:
- A fluent helper to fetch multiple
ServiceContractItemTextentities. 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.
-
getServiceContractItemTextByKey
@Nonnull public ServiceContractItemTextByKeyFluentHelper getServiceContractItemTextByKey(String serviceContract, String serviceContractItem, String language, String longTextID) Deprecated.Description copied from interface:ServiceContractServiceFetch a singleServiceContractItemTextentity using key fields.- Specified by:
getServiceContractItemTextByKeyin interfaceServiceContractService- Parameters:
serviceContract- Transaction IDConstraints: Not nullable, Maximum length: 10
serviceContractItem- Shortened Item Number in DocumentConstraints: Not nullable, Maximum length: 6
language- Language KeyConstraints: Not nullable, Maximum length: 2
longTextID- Text IDConstraints: Not nullable, Maximum length: 4
- Returns:
- A fluent helper to fetch a single
ServiceContractItemTextentity 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.
-
getAllServiceContractText
Deprecated.Description copied from interface:ServiceContractServiceFetch multipleServiceContractTextentities.- Specified by:
getAllServiceContractTextin interfaceServiceContractService- Returns:
- A fluent helper to fetch multiple
ServiceContractTextentities. 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.
-
getServiceContractTextByKey
@Nonnull public ServiceContractTextByKeyFluentHelper getServiceContractTextByKey(String serviceContract, String language, String longTextID) Deprecated.Description copied from interface:ServiceContractServiceFetch a singleServiceContractTextentity using key fields.- Specified by:
getServiceContractTextByKeyin interfaceServiceContractService- Parameters:
serviceContract- Transaction IDConstraints: Not nullable, Maximum length: 10
language- Language KeyConstraints: Not nullable, Maximum length: 2
longTextID- Text IDConstraints: Not nullable, Maximum length: 4
- Returns:
- A fluent helper to fetch a single
ServiceContractTextentity 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.
-
getAllServiceContrItemObjectList
Deprecated.Description copied from interface:ServiceContractServiceFetch multipleServiceContrItemObjectListentities.- Specified by:
getAllServiceContrItemObjectListin interfaceServiceContractService- Returns:
- A fluent helper to fetch multiple
ServiceContrItemObjectListentities. 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.
-
getServiceContrItemObjectListByKey
@Nonnull public ServiceContrItemObjectListByKeyFluentHelper getServiceContrItemObjectListByKey(String serviceContract, String serviceContractItem, String serviceRefObjectSequenceNumber) Deprecated.Description copied from interface:ServiceContractServiceFetch a singleServiceContrItemObjectListentity using key fields.- Specified by:
getServiceContrItemObjectListByKeyin interfaceServiceContractService- Parameters:
serviceContract- Transaction IDConstraints: Not nullable, Maximum length: 10
serviceContractItem- Shortened Item Number in DocumentConstraints: Not nullable, Maximum length: 6
serviceRefObjectSequenceNumber- Reference Object CounterConstraints: Not nullable, Maximum length: 8
- Returns:
- A fluent helper to fetch a single
ServiceContrItemObjectListentity 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.
-
getAllServiceContrItemPriceElement
Deprecated.Description copied from interface:ServiceContractServiceFetch multipleServiceContrItemPriceElemententities.- Specified by:
getAllServiceContrItemPriceElementin interfaceServiceContractService- Returns:
- A fluent helper to fetch multiple
ServiceContrItemPriceElemententities. 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.
-
getServiceContrItemPriceElementByKey
@Nonnull public ServiceContrItemPriceElementByKeyFluentHelper getServiceContrItemPriceElementByKey(String serviceContract, String serviceContractItem, String pricingProcedureStep, String pricingProcedureCounter) Deprecated.Description copied from interface:ServiceContractServiceFetch a singleServiceContrItemPriceElemententity using key fields.- Specified by:
getServiceContrItemPriceElementByKeyin interfaceServiceContractService- Parameters:
serviceContract- Transaction IDConstraints: Not nullable, Maximum length: 10
serviceContractItem- Shortened Item Number in DocumentConstraints: Not nullable, Maximum length: 6
pricingProcedureStep- Step NumberConstraints: Not nullable, Maximum length: 3
pricingProcedureCounter- Condition CounterConstraints: Not nullable, Maximum length: 3
- Returns:
- A fluent helper to fetch a single
ServiceContrItemPriceElemententity 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.
-
getAllServiceContrItmReleasedOrder
Deprecated.Description copied from interface:ServiceContractServiceFetch multipleServiceContrItmReleasedOrderentities.- Specified by:
getAllServiceContrItmReleasedOrderin interfaceServiceContractService- Returns:
- A fluent helper to fetch multiple
ServiceContrItmReleasedOrderentities. 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.
-
getServiceContrItmReleasedOrderByKey
@Nonnull public ServiceContrItmReleasedOrderByKeyFluentHelper getServiceContrItmReleasedOrderByKey(UUID serviceDocumentItmRelationUUID, String serviceDocItmRltnSqncNumber) Deprecated.Description copied from interface:ServiceContractServiceFetch a singleServiceContrItmReleasedOrderentity using key fields.- Specified by:
getServiceContrItmReleasedOrderByKeyin interfaceServiceContractService- Parameters:
serviceDocumentItmRelationUUID- Object Relationship Service : GUID binary linkConstraints: Not nullable
serviceDocItmRltnSqncNumber- Sequential Number of Segment in IDoc TypeConstraints: Not nullable, Maximum length: 4
- Returns:
- A fluent helper to fetch a single
ServiceContrItmReleasedOrderentity 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.
-
getAllSrvcContrBillgReqItmPrcElmnt
Deprecated.Description copied from interface:ServiceContractServiceFetch multipleSrvcContrBillgReqItmPrcElmntentities.- Specified by:
getAllSrvcContrBillgReqItmPrcElmntin interfaceServiceContractService- Returns:
- A fluent helper to fetch multiple
SrvcContrBillgReqItmPrcElmntentities. 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.
-
getSrvcContrBillgReqItmPrcElmntByKey
@Nonnull public SrvcContrBillgReqItmPrcElmntByKeyFluentHelper getSrvcContrBillgReqItmPrcElmntByKey(String serviceContract, String billingRequestItem, String pricingProcedureStep, String pricingProcedureCounter) Deprecated.Description copied from interface:ServiceContractServiceFetch a singleSrvcContrBillgReqItmPrcElmntentity using key fields.- Specified by:
getSrvcContrBillgReqItmPrcElmntByKeyin interfaceServiceContractService- Parameters:
serviceContract- Transaction IDConstraints: Not nullable, Maximum length: 10
billingRequestItem- Shortened Item Number in DocumentConstraints: Not nullable, Maximum length: 6
pricingProcedureStep- Step NumberConstraints: Not nullable, Maximum length: 3
pricingProcedureCounter- Condition CounterConstraints: Not nullable, Maximum length: 3
- Returns:
- A fluent helper to fetch a single
SrvcContrBillgReqItmPrcElmntentity 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.
-
getAllSrvcContrItemProduct
Deprecated.Description copied from interface:ServiceContractServiceFetch multipleSrvcContrItemProductentities.- Specified by:
getAllSrvcContrItemProductin interfaceServiceContractService- Returns:
- A fluent helper to fetch multiple
SrvcContrItemProductentities. 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.
-
getSrvcContrItemProductByKey
@Nonnull public SrvcContrItemProductByKeyFluentHelper getSrvcContrItemProductByKey(String serviceContract, String serviceContractItem, String serviceProductListItem) Deprecated.Description copied from interface:ServiceContractServiceFetch a singleSrvcContrItemProductentity using key fields.- Specified by:
getSrvcContrItemProductByKeyin interfaceServiceContractService- Parameters:
serviceContract- Transaction IDConstraints: Not nullable, Maximum length: 10
serviceContractItem- Shortened Item Number in DocumentConstraints: Not nullable, Maximum length: 6
serviceProductListItem- Counter for CRMS4D_ORDPRP_I product listConstraints: Not nullable, Maximum length: 6
- Returns:
- A fluent helper to fetch a single
SrvcContrItemProductentity 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.
-
getAllSrvcContrItmBillgReqItem
Deprecated.Description copied from interface:ServiceContractServiceFetch multipleSrvcContrItmBillgReqItementities.- Specified by:
getAllSrvcContrItmBillgReqItemin interfaceServiceContractService- Returns:
- A fluent helper to fetch multiple
SrvcContrItmBillgReqItementities. 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.
-
getSrvcContrItmBillgReqItemByKey
@Nonnull public SrvcContrItmBillgReqItemByKeyFluentHelper getSrvcContrItmBillgReqItemByKey(String serviceContract, String serviceContractItem, String billingRequestItem) Deprecated.Description copied from interface:ServiceContractServiceFetch a singleSrvcContrItmBillgReqItementity using key fields.- Specified by:
getSrvcContrItmBillgReqItemByKeyin interfaceServiceContractService- Parameters:
serviceContract- Transaction IDConstraints: Not nullable, Maximum length: 10
serviceContractItem- Shortened Item Number in DocumentConstraints: Not nullable, Maximum length: 6
billingRequestItem- Billing Request Item NoConstraints: Not nullable, Maximum length: 6
- Returns:
- A fluent helper to fetch a single
SrvcContrItmBillgReqItementity 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.
-