@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultCentralPurchaseContractService") public class DefaultCentralPurchaseContractService extends Object implements CentralPurchaseContractService
With this inbound service, you can create a central purchase contract which allows purchasers from various parts of the company at different locations to take advantage of the negotiated global agreement with suppliers.
Reference: SAP API Business Hub
OData Service: | API_CENTRAL_PURCHASECONTRACT_SRV |
API Version: | 1 |
Communication Scenario: | SAP S/4HANA Procurement Hub - Central Contract Management Integration (SAP_COM_0243) |
Scope Items: | Central Processing of Contracts (2ME) |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultCentralPurchaseContractService()
Creates a service using
CentralPurchaseContractService.DEFAULT_SERVICE_PATH to send the requests. |
public DefaultCentralPurchaseContractService()
CentralPurchaseContractService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultCentralPurchaseContractService withServicePath(@Nonnull String servicePath)
CentralPurchaseContractService
withServicePath
in interface CentralPurchaseContractService
servicePath
- Service path that will override the default.@Nonnull public CentralPurchaseContractFluentHelper getAllCentralPurchaseContract()
CentralPurchaseContractService
CentralPurchaseContract
entities.getAllCentralPurchaseContract
in interface CentralPurchaseContractService
CentralPurchaseContract
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 CentralPurchaseContractByKeyFluentHelper getCentralPurchaseContractByKey(String centralPurchaseContract)
CentralPurchaseContractService
CentralPurchaseContract
entity using key fields.getCentralPurchaseContractByKey
in interface CentralPurchaseContractService
centralPurchaseContract
- Central Purchase ContractConstraints: Not nullable, Maximum length: 10
CentralPurchaseContract
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 CentralPurchaseContractCreateFluentHelper createCentralPurchaseContract(@Nonnull CentralPurchaseContract centralPurchaseContract)
CentralPurchaseContractService
CentralPurchaseContract
entity and save it to the S/4HANA system.createCentralPurchaseContract
in interface CentralPurchaseContractService
centralPurchaseContract
- CentralPurchaseContract
entity object that will be created in the S/4HANA system.CentralPurchaseContract
entity. To perform execution, call the execute
method on the fluent helper object.@Nonnull public CntrlPurchaseContractItemFluentHelper getAllCntrlPurchaseContractItem()
CentralPurchaseContractService
CntrlPurchaseContractItem
entities.getAllCntrlPurchaseContractItem
in interface CentralPurchaseContractService
CntrlPurchaseContractItem
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 CntrlPurchaseContractItemByKeyFluentHelper getCntrlPurchaseContractItemByKey(String centralPurchaseContract, String centralPurchaseContractItem)
CentralPurchaseContractService
CntrlPurchaseContractItem
entity using key fields.getCntrlPurchaseContractItemByKey
in interface CentralPurchaseContractService
centralPurchaseContract
- Central Purchase ContractConstraints: Not nullable, Maximum length: 10
centralPurchaseContractItem
- Central Purchase Contract ItemConstraints: Not nullable, Maximum length: 5
CntrlPurchaseContractItem
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 CntrlPurchaseContractItemCreateFluentHelper createCntrlPurchaseContractItem(@Nonnull CntrlPurchaseContractItem cntrlPurchaseContractItem)
CentralPurchaseContractService
CntrlPurchaseContractItem
entity and save it to the S/4HANA system.createCntrlPurchaseContractItem
in interface CentralPurchaseContractService
cntrlPurchaseContractItem
- CntrlPurchaseContractItem
entity object that will be created in the S/4HANA system.CntrlPurchaseContractItem
entity. To perform execution, call the execute
method on the fluent helper object.@Nonnull public CntrlPurContrItmDistributionFluentHelper getAllCntrlPurContrItmDistribution()
CentralPurchaseContractService
CntrlPurContrItmDistribution
entities.getAllCntrlPurContrItmDistribution
in interface CentralPurchaseContractService
CntrlPurContrItmDistribution
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 CntrlPurContrItmDistributionByKeyFluentHelper getCntrlPurContrItmDistributionByKey(String centralPurchaseContract, String centralPurchaseContractItem, String distributionKey)
CentralPurchaseContractService
CntrlPurContrItmDistribution
entity using key fields.getCntrlPurContrItmDistributionByKey
in interface CentralPurchaseContractService
centralPurchaseContract
- Alphanumeric key uniquely identifying the document.Constraints: Not nullable, Maximum length: 10
centralPurchaseContractItem
- Specifies the number that uniquely identifies an item in .Constraints: Not nullable, Maximum length: 5
distributionKey
- Distribution Number of Central Purchasing DocumentConstraints: Not nullable, Maximum length: 4
CntrlPurContrItmDistribution
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 CntrlPurContrItmDistributionCreateFluentHelper createCntrlPurContrItmDistribution(@Nonnull CntrlPurContrItmDistribution cntrlPurContrItmDistribution)
CentralPurchaseContractService
CntrlPurContrItmDistribution
entity and save it to the S/4HANA system.createCntrlPurContrItmDistribution
in interface CentralPurchaseContractService
cntrlPurContrItmDistribution
- CntrlPurContrItmDistribution
entity object that will be created in the S/4HANA system.CntrlPurContrItmDistribution
entity. To perform execution, call the execute
method on the fluent helper object.Copyright © 2018 SAP SE. All rights reserved.