@Named(value="com.sap.cloud.sdk.s4hana.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: | 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 |
Business Object: | CentralPurchaseContract |
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
- The active purchasing document number of a 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 CntrlPurContrHdrDistributionFluentHelper getAllCntrlPurContrHdrDistribution()
CentralPurchaseContractService
CntrlPurContrHdrDistribution
entities.getAllCntrlPurContrHdrDistribution
in interface CentralPurchaseContractService
CntrlPurContrHdrDistribution
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 CntrlPurContrHdrDistributionByKeyFluentHelper getCntrlPurContrHdrDistributionByKey(String centralPurchaseContract, String distributionKey)
CentralPurchaseContractService
CntrlPurContrHdrDistribution
entity using key fields.getCntrlPurContrHdrDistributionByKey
in interface CentralPurchaseContractService
centralPurchaseContract
- Alphanumeric key uniquely identifying the document.
Constraints: Not nullable, Maximum length: 10
distributionKey
- Distribution Number of Central Purchasing Document
Constraints: Not nullable, Maximum length: 4
CntrlPurContrHdrDistribution
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 CntrlPurContrHeaderPartnerFluentHelper getAllCntrlPurContrHeaderPartner()
CentralPurchaseContractService
CntrlPurContrHeaderPartner
entities.getAllCntrlPurContrHeaderPartner
in interface CentralPurchaseContractService
CntrlPurContrHeaderPartner
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 CntrlPurContrHeaderPartnerByKeyFluentHelper getCntrlPurContrHeaderPartnerByKey(String centralPurchaseContract, String distributionKey, String partnerCounter)
CentralPurchaseContractService
CntrlPurContrHeaderPartner
entity using key fields.getCntrlPurContrHeaderPartnerByKey
in interface CentralPurchaseContractService
centralPurchaseContract
- Alphanumeric key uniquely identifying the document.
Constraints: Not nullable, Maximum length: 10
distributionKey
- Distribution Number of Central Purchasing Document
Constraints: Not nullable, Maximum length: 4
partnerCounter
- The sequential number that the system applies when there is more than one partner for a particular
partner function.
Constraints: Not nullable, Maximum length: 3
CntrlPurContrHeaderPartner
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 CntrlPurContrItemPartnerFluentHelper getAllCntrlPurContrItemPartner()
CentralPurchaseContractService
CntrlPurContrItemPartner
entities.getAllCntrlPurContrItemPartner
in interface CentralPurchaseContractService
CntrlPurContrItemPartner
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 CntrlPurContrItemPartnerByKeyFluentHelper getCntrlPurContrItemPartnerByKey(String centralPurchaseContract, String centralPurchaseContractItem, String distributionKey, String partnerCounter)
CentralPurchaseContractService
CntrlPurContrItemPartner
entity using key fields.getCntrlPurContrItemPartnerByKey
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
partnerCounter
- The sequential number that the system applies when there is more than one partner for a particular
partner function.
Constraints: Not nullable, Maximum length: 3
CntrlPurContrItemPartner
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 CntrlPurContrItmCndnAmountFluentHelper getAllCntrlPurContrItmCndnAmount()
CentralPurchaseContractService
CntrlPurContrItmCndnAmount
entities.getAllCntrlPurContrItmCndnAmount
in interface CentralPurchaseContractService
CntrlPurContrItmCndnAmount
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 CntrlPurContrItmCndnAmountByKeyFluentHelper getCntrlPurContrItmCndnAmountByKey(String centralPurchaseContract, String centralPurchaseContractItem, String conditionRecord, LocalDateTime conditionValidityEndDate, String conditionSequentialNumber)
CentralPurchaseContractService
CntrlPurContrItmCndnAmount
entity using key fields.getCntrlPurContrItmCndnAmountByKey
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
conditionRecord
- Number that uniquely identifies a condition record.
Constraints: Not nullable, Maximum length: 10
conditionValidityEndDate
- The date up to which the condition is valid.
Constraints: Not nullable, Precision: 0
conditionSequentialNumber
- The sequential number that uniquely identifies the condition if a condition supplement exists.
Constraints: Not nullable, Maximum length: 2
CntrlPurContrItmCndnAmount
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 CntrlPurContrItmCndnScalesFluentHelper getAllCntrlPurContrItmCndnScales()
CentralPurchaseContractService
CntrlPurContrItmCndnScales
entities.getAllCntrlPurContrItmCndnScales
in interface CentralPurchaseContractService
CntrlPurContrItmCndnScales
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 CntrlPurContrItmCndnScalesByKeyFluentHelper getCntrlPurContrItmCndnScalesByKey(String centralPurchaseContract, String centralPurchaseContractItem, String conditionRecord, String conditionSequentialNumber, LocalDateTime conditionValidityEndDate, String conditionScaleLine)
CentralPurchaseContractService
CntrlPurContrItmCndnScales
entity using key fields.getCntrlPurContrItmCndnScalesByKey
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
conditionRecord
- Number that uniquely identifies a condition record.
Constraints: Not nullable, Maximum length: 10
conditionSequentialNumber
- The sequential number that uniquely identifies the condition if a condition supplement exists.
Constraints: Not nullable, Maximum length: 2
conditionValidityEndDate
- The date up to which the condition is valid.
Constraints: Not nullable, Precision: 0
conditionScaleLine
- Identifies the sequence of lines within a scale.
Constraints: Not nullable, Maximum length: 4
CntrlPurContrItmCndnScales
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 CntrlPurContrItmCndnValdtyFluentHelper getAllCntrlPurContrItmCndnValdty()
CentralPurchaseContractService
CntrlPurContrItmCndnValdty
entities.getAllCntrlPurContrItmCndnValdty
in interface CentralPurchaseContractService
CntrlPurContrItmCndnValdty
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 CntrlPurContrItmCndnValdtyByKeyFluentHelper getCntrlPurContrItmCndnValdtyByKey(String centralPurchaseContract, String centralPurchaseContractItem, String conditionRecord, LocalDateTime conditionValidityEndDate)
CentralPurchaseContractService
CntrlPurContrItmCndnValdty
entity using key fields.getCntrlPurContrItmCndnValdtyByKey
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
conditionRecord
- Number that uniquely identifies a condition record.
Constraints: Not nullable, Maximum length: 10
conditionValidityEndDate
- The date up to which the condition is valid.
Constraints: Not nullable, Precision: 0
CntrlPurContrItmCndnValdty
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.@Nonnull public CntrlPurContrLegalTransFluentHelper getAllCntrlPurContrLegalTrans()
CentralPurchaseContractService
CntrlPurContrLegalTrans
entities.getAllCntrlPurContrLegalTrans
in interface CentralPurchaseContractService
CntrlPurContrLegalTrans
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 CntrlPurContrLegalTransByKeyFluentHelper getCntrlPurContrLegalTransByKey(String centralPurchaseContract, String legalTransaction)
CentralPurchaseContractService
CntrlPurContrLegalTrans
entity using key fields.getCntrlPurContrLegalTransByKey
in interface CentralPurchaseContractService
centralPurchaseContract
- Central Purchase Contract
Constraints: Not nullable, Maximum length: 10
legalTransaction
- Legal Transaction ID
Constraints: Not nullable, Maximum length: 10
CntrlPurContrLegalTrans
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
- The active purchasing document number of a purchasing document.
Constraints: Not nullable, Maximum length: 10
purchasingDocumentVersion
- Number uniquely identifying a version of a purchasing document.
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 SubordinateCntrlContractFluentHelper getAllSubordinateCntrlContract()
CentralPurchaseContractService
SubordinateCntrlContract
entities.getAllSubordinateCntrlContract
in interface CentralPurchaseContractService
SubordinateCntrlContract
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 SubordinateCntrlContractByKeyFluentHelper getSubordinateCntrlContractByKey(String purchasingParentDocument, String subordCntrlPurContract, String procmtHubCompanyCodeGroupingID)
CentralPurchaseContractService
SubordinateCntrlContract
entity using key fields.getSubordinateCntrlContractByKey
in interface CentralPurchaseContractService
purchasingParentDocument
- The parent document ID of a subordinate purchasing document.
Constraints: Not nullable, Maximum length: 10
subordCntrlPurContract
- The active purchasing document number of a purchasing document.
Constraints: Not nullable, Maximum length: 10
procmtHubCompanyCodeGroupingID
- The ID of the collection under which company codes of different connected systems are grouped.
Constraints: Not nullable, Maximum length: 3
SubordinateCntrlContract
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(@Nonnull String centralPurchaseContract)
CentralPurchaseContractService
Creates a fluent helper for the WithdrawFromApproval OData function import.
withdrawFromApproval
in interface CentralPurchaseContractService
centralPurchaseContract
- Central Purchase Contract
Constraints: none
Original parameter name from the Odata EDM: CentralPurchaseContract
execute
method on the fluent helper object.@Nonnull public AssignLegalTransactionFluentHelper assignLegalTransaction(@Nonnull String legalTransactionId, @Nonnull String centralPurchaseContract)
CentralPurchaseContractService
Creates a fluent helper for the AssignLegalTransaction OData function import.
assignLegalTransaction
in interface CentralPurchaseContractService
legalTransactionId
- Constraints: none
Original parameter name from the Odata EDM: LegalTransactionId
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.