@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultCentralPurchaseContractService") public class DefaultCentralPurchaseContractService extends Object implements CentralPurchaseContractService
With this inbound service, you can read and 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 Purchase Contracts (2ME) |
Authentication Methods: | Basic, x509 |
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 DefaultCentralPurchaseContractServiceBatch batch()
batch
in interface BatchService<CentralPurchaseContractServiceBatch>
@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 Contract
Constraints: 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 Contract
Constraints: Not nullable, Maximum length: 10
centralPurchaseContractItem
- Central Purchase Contract Item
Constraints: 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 CntrlPurContrDistrMessagesFluentHelper getAllCntrlPurContrDistrMessages()
CentralPurchaseContractService
CntrlPurContrDistrMessages
entities.getAllCntrlPurContrDistrMessages
in interface CentralPurchaseContractService
CntrlPurContrDistrMessages
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 CntrlPurContrDistrMessagesByKeyFluentHelper getCntrlPurContrDistrMessagesByKey(String sequenceNumber, UUID distrResponseMessageUUID)
CentralPurchaseContractService
CntrlPurContrDistrMessages
entity using key fields.getCntrlPurContrDistrMessagesByKey
in interface CentralPurchaseContractService
sequenceNumber
- Sequence No. of Message during Contract Distribution
Constraints: Not nullable, Maximum length: 4
distrResponseMessageUUID
- Generic Data Element for GUID Fields (X16)
Constraints: Not nullable
CntrlPurContrDistrMessages
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 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 Document
Constraints: 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.Copyright © 2019 SAP SE. All rights reserved.