@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultCentralPurchaseContractService") public class DefaultCentralPurchaseContractService extends Object implements CentralPurchaseContractService
This service is based on the OData protocol. It allows purchasers from various parts of the company at different locations to take advantage of the negotiated global agreement with suppliers. This service contains header, item, item distribution entities, distribution messages, header notes, item notes, and version history. .
Reference: SAP API Business Hub
OData Service: | OP_API_CENTRAL_PURCHASECONTRACT_SRV |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Business Object: | Central Purchase Contract |
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
- Active Purchasing Document
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 CntrlPurContractHeaderNotesFluentHelper getAllCntrlPurContractHeaderNotes()
CentralPurchaseContractService
CntrlPurContractHeaderNotes
entities.getAllCntrlPurContractHeaderNotes
in interface CentralPurchaseContractService
CntrlPurContractHeaderNotes
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 CntrlPurContractHeaderNotesByKeyFluentHelper getCntrlPurContractHeaderNotesByKey(String purchasingDocumentNoteObjectID, String purchasingDocumentNoteType, String purchasingDocumentNoteLanguage)
CentralPurchaseContractService
CntrlPurContractHeaderNotes
entity using key fields.getCntrlPurContractHeaderNotesByKey
in interface CentralPurchaseContractService
purchasingDocumentNoteObjectID
- Application Object ID
Constraints: Not nullable, Maximum length: 90
purchasingDocumentNoteType
- Name of Note Type
Constraints: Not nullable, Maximum length: 20
purchasingDocumentNoteLanguage
- Language
Constraints: Not nullable, Maximum length: 2
CntrlPurContractHeaderNotes
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 CntrlPurContractItemNotesFluentHelper getAllCntrlPurContractItemNotes()
CentralPurchaseContractService
CntrlPurContractItemNotes
entities.getAllCntrlPurContractItemNotes
in interface CentralPurchaseContractService
CntrlPurContractItemNotes
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 CntrlPurContractItemNotesByKeyFluentHelper getCntrlPurContractItemNotesByKey(String purchasingDocumentNoteObjectID, String purchasingDocumentNoteType, String purchasingDocumentNoteLanguage)
CentralPurchaseContractService
CntrlPurContractItemNotes
entity using key fields.getCntrlPurContractItemNotesByKey
in interface CentralPurchaseContractService
purchasingDocumentNoteObjectID
- Application Object ID
Constraints: Not nullable, Maximum length: 90
purchasingDocumentNoteType
- Name of Note Type
Constraints: Not nullable, Maximum length: 20
purchasingDocumentNoteLanguage
- Language
Constraints: Not nullable, Maximum length: 2
CntrlPurContractItemNotes
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
- Purchasing Document Number
Constraints: Not nullable, Maximum length: 10
centralPurchaseContractItem
- Item Number of Purchasing Document
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.@Nonnull public CntrlPurContrVersionHistoryFluentHelper getAllCntrlPurContrVersionHistory()
CentralPurchaseContractService
CntrlPurContrVersionHistory
entities.getAllCntrlPurContrVersionHistory
in interface CentralPurchaseContractService
CntrlPurContrVersionHistory
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 CntrlPurContrVersionHistoryByKeyFluentHelper getCntrlPurContrVersionHistoryByKey(String centralPurchaseContract, String purchasingDocumentVersion)
CentralPurchaseContractService
CntrlPurContrVersionHistory
entity using key fields.getCntrlPurContrVersionHistoryByKey
in interface CentralPurchaseContractService
centralPurchaseContract
- Active Purchasing Document
Constraints: Not nullable, Maximum length: 10
purchasingDocumentVersion
- Version number in Purchasing
Constraints: Not nullable, Maximum length: 8
CntrlPurContrVersionHistory
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 WithdrawFromApprovalFluentHelper withdrawFromApproval(String centralPurchaseContract)
CentralPurchaseContractService
Creates a fluent helper for the WithdrawFromApproval OData function import.
withdrawFromApproval
in interface CentralPurchaseContractService
centralPurchaseContract
- Constraints: none
Original parameter name from the Odata EDM: CentralPurchaseContract
execute
method on the fluent helper object.Copyright © 2021 SAP SE. All rights reserved.