Interface PurchaseContractService
- All Superinterfaces:
BatchService<PurchaseContractServiceBatch>
- All Known Implementing Classes:
DefaultPurchaseContractService
This service is based on the OData protocol. It enables you to read, create, and update purchase contracts through an API call from a source system outside SAP S/4HANA Cloud. The service contains header, item, item conditions, account assignment, address and partner nodes. .
Reference: SAP Business Accelerator Hub
Details:
| OData Service: | API_PURCHASECONTRACT_PROCESS_SRV |
| API Version: | 1.1.0 |
| Minimum ERP Version: | 2208 |
| Communication Scenario: | Distributed Manufacturing Integration(SAP_COM_0077), Purchase Contract Integration(SAP_COM_0101) |
| Scope Items: | Collaborative Manufacturing with SAP Digital Manufacturing Cloud(1NX), Dynamic Customer Profiling(JC1), Consumable Purchasing(BNX), Service and Material Procurement - Project-Based Services(J13), Procurement of Direct Materials(J45), Procurement of Direct Materials(O45), Consumable Purchasing(ONX), Purchase Contract(BMD), Purchase Contract(OMD) |
| Business Object: | Purchase Contract |
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.If no other path was provided via thewithServicePath(String)method, this is the default service path used to access the endpoint. -
Method Summary
Modifier and TypeMethodDescriptionapproveDocument(String purchaseContract) Deprecated.Creates a fluent helper for the ApproveDocument OData function import.createPurchaseContract(PurchaseContract purchaseContract) Deprecated.Create a newPurchaseContractentity and save it to the S/4HANA system.createPurchaseContractItem(PurchaseContractItem purchaseContractItem) Deprecated.Create a newPurchaseContractItementity and save it to the S/4HANA system.createPurCtrAccount(PurCtrAccount purCtrAccount) Deprecated.Create a newPurCtrAccountentity and save it to the S/4HANA system.createPurCtrAddress(PurCtrAddress purCtrAddress) Deprecated.Create a newPurCtrAddressentity and save it to the S/4HANA system.createPurCtrPartners(PurCtrPartners purCtrPartners) Deprecated.Create a newPurCtrPartnersentity and save it to the S/4HANA system.Deprecated.Fetch multiplePurchaseContractentities.Deprecated.Fetch multiplePurchaseContractItementities.Deprecated.Fetch multiplePurContrItemConditionentities.Deprecated.Fetch multiplePurCtrAccountentities.Deprecated.Fetch multiplePurCtrAddressentities.Deprecated.Fetch multiplePurCtrPartnersentities.getPurchaseContractByKey(String purchaseContract) Deprecated.Fetch a singlePurchaseContractentity using key fields.getPurchaseContractItemByKey(String purchaseContract, String purchaseContractItem) Deprecated.Fetch a singlePurchaseContractItementity using key fields.getPurContrItemConditionByKey(String purchaseContract, String purchaseContractItem, LocalDateTime conditionValidityEndDate, String conditionType, String conditionRecord, String conditionSequentialNumber) Deprecated.Fetch a singlePurContrItemConditionentity using key fields.getPurCtrAccountByKey(String accountAssignment, String purchaseContractItem, String purchaseContract) Deprecated.Fetch a singlePurCtrAccountentity using key fields.getPurCtrAddressByKey(String purchaseContract, String addressID, String purchaseContractItem) Deprecated.Fetch a singlePurCtrAddressentity using key fields.getPurCtrPartnersByKey(String purchaseContract, String purchaseContractItem, String purchasingOrganization, String partnerFunction, String plant, String supplierSubrange, String partnerCounter) Deprecated.Fetch a singlePurCtrPartnersentity using key fields.rejectDocument(String purchaseContract) Deprecated.Creates a fluent helper for the RejectDocument OData function import.updatePurchaseContract(PurchaseContract purchaseContract) Deprecated.Update an existingPurchaseContractentity and save it to the S/4HANA system.updatePurchaseContractItem(PurchaseContractItem purchaseContractItem) Deprecated.Update an existingPurchaseContractItementity and save it to the S/4HANA system.updatePurCtrAccount(PurCtrAccount purCtrAccount) Deprecated.Update an existingPurCtrAccountentity and save it to the S/4HANA system.updatePurCtrAddress(PurCtrAddress purCtrAddress) Deprecated.Update an existingPurCtrAddressentity and save it to the S/4HANA system.updatePurCtrPartners(PurCtrPartners purCtrPartners) Deprecated.Update an existingPurCtrPartnersentity and save it to the S/4HANA system.withdrawFromApproval(String purchaseContract) Deprecated.Creates a fluent helper for the WithdrawFromApproval OData function import.withServicePath(String servicePath) Deprecated.Overrides the default service path and returns a new service instance with the specified service path.Methods inherited from interface com.sap.cloud.sdk.datamodel.odata.helper.batch.BatchService
batch
-
Field Details
-
DEFAULT_SERVICE_PATH
Deprecated.If no other path was provided via thewithServicePath(String)method, this is the default service path used to access the endpoint.- See Also:
-
-
Method Details
-
withServicePath
Deprecated.Overrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
getAllPurchaseContract
Deprecated.Fetch multiplePurchaseContractentities.- Returns:
- A fluent helper to fetch multiple
PurchaseContractentities. 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.
-
getPurchaseContractByKey
Deprecated.Fetch a singlePurchaseContractentity using key fields.- Parameters:
purchaseContract- Purchasing Contract HeaderConstraints: Not nullable, Maximum length: 10
- Returns:
- A fluent helper to fetch a single
PurchaseContractentity 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.
-
createPurchaseContract
@Nonnull PurchaseContractCreateFluentHelper createPurchaseContract(@Nonnull PurchaseContract purchaseContract) Deprecated.Create a newPurchaseContractentity and save it to the S/4HANA system.- Parameters:
purchaseContract-PurchaseContractentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
PurchaseContractentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updatePurchaseContract
@Nonnull PurchaseContractUpdateFluentHelper updatePurchaseContract(@Nonnull PurchaseContract purchaseContract) Deprecated.Update an existingPurchaseContractentity and save it to the S/4HANA system.- Parameters:
purchaseContract-PurchaseContractentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
PurchaseContractentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllPurchaseContractItem
Deprecated.Fetch multiplePurchaseContractItementities.- Returns:
- A fluent helper to fetch multiple
PurchaseContractItementities. 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.
-
getPurchaseContractItemByKey
@Nonnull PurchaseContractItemByKeyFluentHelper getPurchaseContractItemByKey(String purchaseContract, String purchaseContractItem) Deprecated.Fetch a singlePurchaseContractItementity using key fields.- Parameters:
purchaseContract- Purchasing Contract HeaderConstraints: Not nullable, Maximum length: 10
purchaseContractItem- Item Number of Purchasing ContractConstraints: Not nullable, Maximum length: 5
- Returns:
- A fluent helper to fetch a single
PurchaseContractItementity 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.
-
createPurchaseContractItem
@Nonnull PurchaseContractItemCreateFluentHelper createPurchaseContractItem(@Nonnull PurchaseContractItem purchaseContractItem) Deprecated.Create a newPurchaseContractItementity and save it to the S/4HANA system.- Parameters:
purchaseContractItem-PurchaseContractItementity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
PurchaseContractItementity. To perform execution, call theexecutemethod on the fluent helper object.
-
updatePurchaseContractItem
@Nonnull PurchaseContractItemUpdateFluentHelper updatePurchaseContractItem(@Nonnull PurchaseContractItem purchaseContractItem) Deprecated.Update an existingPurchaseContractItementity and save it to the S/4HANA system.- Parameters:
purchaseContractItem-PurchaseContractItementity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
PurchaseContractItementity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllPurContrItemCondition
Deprecated.Fetch multiplePurContrItemConditionentities.- Returns:
- A fluent helper to fetch multiple
PurContrItemConditionentities. 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.
-
getPurContrItemConditionByKey
@Nonnull PurContrItemConditionByKeyFluentHelper getPurContrItemConditionByKey(String purchaseContract, String purchaseContractItem, LocalDateTime conditionValidityEndDate, String conditionType, String conditionRecord, String conditionSequentialNumber) Deprecated.Fetch a singlePurContrItemConditionentity using key fields.- Parameters:
conditionSequentialNumber- Sequential number of the conditionConstraints: Not nullable, Maximum length: 2
conditionValidityEndDate-purchaseContract- Purchasing Document NumberConstraints: Not nullable, Maximum length: 10
conditionType- Condition TypeConstraints: Not nullable, Maximum length: 4
purchaseContractItem- Item Number of Purchasing DocumentConstraints: Not nullable, Maximum length: 5
conditionRecord- Number of Condition RecordConstraints: Not nullable, Maximum length: 10
- Returns:
- A fluent helper to fetch a single
PurContrItemConditionentity 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.
-
getAllPurCtrAccount
Deprecated.Fetch multiplePurCtrAccountentities.- Returns:
- A fluent helper to fetch multiple
PurCtrAccountentities. 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.
-
getPurCtrAccountByKey
@Nonnull PurCtrAccountByKeyFluentHelper getPurCtrAccountByKey(String accountAssignment, String purchaseContractItem, String purchaseContract) Deprecated.Fetch a singlePurCtrAccountentity using key fields.- Parameters:
purchaseContract- Purchasing Document NumberConstraints: Not nullable, Maximum length: 10
accountAssignment- Sequential Number of Account AssignmentConstraints: Not nullable, Maximum length: 2
purchaseContractItem- Item Number of Purchasing DocumentConstraints: Not nullable, Maximum length: 5
- Returns:
- A fluent helper to fetch a single
PurCtrAccountentity 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.
-
createPurCtrAccount
Deprecated.Create a newPurCtrAccountentity and save it to the S/4HANA system.- Parameters:
purCtrAccount-PurCtrAccountentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
PurCtrAccountentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updatePurCtrAccount
Deprecated.Update an existingPurCtrAccountentity and save it to the S/4HANA system.- Parameters:
purCtrAccount-PurCtrAccountentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
PurCtrAccountentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllPurCtrAddress
Deprecated.Fetch multiplePurCtrAddressentities.- Returns:
- A fluent helper to fetch multiple
PurCtrAddressentities. 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.
-
getPurCtrAddressByKey
@Nonnull PurCtrAddressByKeyFluentHelper getPurCtrAddressByKey(String purchaseContract, String addressID, String purchaseContractItem) Deprecated.Fetch a singlePurCtrAddressentity using key fields.- Parameters:
purchaseContract- Purchasing Contract HeaderConstraints: Not nullable, Maximum length: 10
purchaseContractItem- Item Number of Purchasing ContractConstraints: Not nullable, Maximum length: 5
addressID- Address NumberConstraints: Not nullable, Maximum length: 10
- Returns:
- A fluent helper to fetch a single
PurCtrAddressentity 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.
-
createPurCtrAddress
Deprecated.Create a newPurCtrAddressentity and save it to the S/4HANA system.- Parameters:
purCtrAddress-PurCtrAddressentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
PurCtrAddressentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updatePurCtrAddress
Deprecated.Update an existingPurCtrAddressentity and save it to the S/4HANA system.- Parameters:
purCtrAddress-PurCtrAddressentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
PurCtrAddressentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllPurCtrPartners
Deprecated.Fetch multiplePurCtrPartnersentities.- Returns:
- A fluent helper to fetch multiple
PurCtrPartnersentities. 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.
-
getPurCtrPartnersByKey
@Nonnull PurCtrPartnersByKeyFluentHelper getPurCtrPartnersByKey(String purchaseContract, String purchaseContractItem, String purchasingOrganization, String partnerFunction, String plant, String supplierSubrange, String partnerCounter) Deprecated.Fetch a singlePurCtrPartnersentity using key fields.- Parameters:
partnerFunction- Partner FunctionConstraints: Not nullable, Maximum length: 2
purchaseContract- Purchasing Document NumberConstraints: Not nullable, Maximum length: 10
plant- PlantConstraints: Not nullable, Maximum length: 4
purchasingOrganization- Purchasing OrganizationConstraints: Not nullable, Maximum length: 4
partnerCounter- Partner counterConstraints: Not nullable, Maximum length: 3
purchaseContractItem- Item Number of Purchasing DocumentConstraints: Not nullable, Maximum length: 5
supplierSubrange- Supplier SubrangeConstraints: Not nullable, Maximum length: 6
- Returns:
- A fluent helper to fetch a single
PurCtrPartnersentity 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.
-
createPurCtrPartners
@Nonnull PurCtrPartnersCreateFluentHelper createPurCtrPartners(@Nonnull PurCtrPartners purCtrPartners) Deprecated.Create a newPurCtrPartnersentity and save it to the S/4HANA system.- Parameters:
purCtrPartners-PurCtrPartnersentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
PurCtrPartnersentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updatePurCtrPartners
@Nonnull PurCtrPartnersUpdateFluentHelper updatePurCtrPartners(@Nonnull PurCtrPartners purCtrPartners) Deprecated.Update an existingPurCtrPartnersentity and save it to the S/4HANA system.- Parameters:
purCtrPartners-PurCtrPartnersentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
PurCtrPartnersentity. To perform execution, call theexecutemethod on the fluent helper object.
-
withdrawFromApproval
Deprecated.Creates a fluent helper for the WithdrawFromApproval OData function import.
- Parameters:
purchaseContract- Constraints: Not nullable, Maximum length: 10Original parameter name from the Odata EDM: PurchaseContract
- Returns:
- A fluent helper object that will execute the WithdrawFromApproval OData function import with the
provided parameters. To perform execution, call the
executemethod on the fluent helper object.
-
rejectDocument
Deprecated.Creates a fluent helper for the RejectDocument OData function import.
- Parameters:
purchaseContract- Constraints: Not nullable, Maximum length: 10Original parameter name from the Odata EDM: PurchaseContract
- Returns:
- A fluent helper object that will execute the RejectDocument OData function import with the
provided parameters. To perform execution, call the
executemethod on the fluent helper object.
-
approveDocument
Deprecated.Creates a fluent helper for the ApproveDocument OData function import.
- Parameters:
purchaseContract- Constraints: Not nullable, Maximum length: 10Original parameter name from the Odata EDM: PurchaseContract
- Returns:
- A fluent helper object that will execute the ApproveDocument OData function import with the
provided parameters. To perform execution, call the
executemethod on the fluent helper object.
-