Interface PurchaseRequisitionService
- All Superinterfaces:
BatchService<PurchaseRequisitionServiceBatch>
- All Known Implementing Classes:
DefaultPurchaseRequisitionService
This service helps you to create, read, update and delete purchase requisitions through an API call from a source system outside SAP S/4HANA Cloud. The service contains header, item, account assignment, delivery address, and item text nodes. The information is sent in the request as a payload. The information is used when creating, reading or updating a purchase requisition, with appropriate checks for restricted values and authorizations.
Reference: SAP Business Accelerator Hub
Details:
| OData Service: | API_PURCHASEREQ_PROCESS_SRV |
| API Version: | 1.0.1 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | Purchase Requisition Integration(SAP_COM_0102), SAP S/4HANA Procurement Hub - Ariba GB - Hub to Ariba GB Integration(SAP_COM_0292), Next-Generation Buying Experience Integration(SAP_COM_0545) |
| Scope Items: | Guided Buying Capability with SAP Ariba Buying(2NV), Consumable Purchasing(BNX), Service and Material Procurement - Project-Based Services(J13), Procurement of Direct Materials(J45), Procurement of Direct Materials(O45), Requisitioning(O8J), Physical Inventory - Inventory Count and Adjustment(OML), Guided Buying Capability with SAP Ariba Buying(ONV), Consumable Purchasing(ONX), Requisitioning(18J), Next-Generation Buying Experience(4AI), Guided Buying for Central Procurement with SAP Ariba Buying(3EN) |
| Authentication Methods: | x509 |
| Business Object: | Purchase Requisition |
-
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 TypeMethodDescriptioncreatePurchaseReqnItemText(PurchaseReqnItemText purchaseReqnItemText) Deprecated.Create a newPurchaseReqnItemTextentity and save it to the S/4HANA system.createPurchaseRequisitionHeader(PurchaseRequisitionHeader purchaseRequisitionHeader) Deprecated.Create a newPurchaseRequisitionHeaderentity and save it to the S/4HANA system.createPurchaseRequisitionItem(PurchaseRequisitionItem purchaseRequisitionItem) Deprecated.Create a newPurchaseRequisitionItementity and save it to the S/4HANA system.createPurReqnAcctAssgmt(PurReqnAcctAssgmt purReqnAcctAssgmt) Deprecated.Create a newPurReqnAcctAssgmtentity and save it to the S/4HANA system.deletePurchaseReqnItemText(PurchaseReqnItemText purchaseReqnItemText) Deprecated.Deletes an existingPurchaseReqnItemTextentity in the S/4HANA system.discardFromPurchasing(String purchaseRequisitionItem, String purchaseRequisition) Deprecated.Creates a fluent helper for the DiscardFromPurchasing OData function import.enableForPurchasing(String purchaseRequisitionItem, String purchaseRequisition) Deprecated.Creates a fluent helper for the EnableForPurchasing OData function import.Deprecated.Fetch multiplePurchaseReqnItemTextentities.Deprecated.Fetch multiplePurchaseRequisitionHeaderentities.Deprecated.Fetch multiplePurchaseRequisitionItementities.Deprecated.Fetch multiplePurReqAddDeliveryentities.Deprecated.Fetch multiplePurReqnAcctAssgmtentities.getPurchaseReqnItemTextByKey(String purchaseRequisition, String purchaseRequisitionItem, String documentText, String technicalObjectType, String language) Deprecated.Fetch a singlePurchaseReqnItemTextentity using key fields.getPurchaseRequisitionHeaderByKey(String purchaseRequisition) Deprecated.Fetch a singlePurchaseRequisitionHeaderentity using key fields.getPurchaseRequisitionItemByKey(String purchaseRequisition, String purchaseRequisitionItem) Deprecated.Fetch a singlePurchaseRequisitionItementity using key fields.getPurReqAddDeliveryByKey(String purchaseRequisition, String purchaseRequisitionItem) Deprecated.Fetch a singlePurReqAddDeliveryentity using key fields.getPurReqnAcctAssgmtByKey(String purchaseRequisition, String purchaseRequisitionItem, String purchaseReqnAcctAssgmtNumber) Deprecated.Fetch a singlePurReqnAcctAssgmtentity using key fields.updatePurchaseReqnItemText(PurchaseReqnItemText purchaseReqnItemText) Deprecated.Update an existingPurchaseReqnItemTextentity and save it to the S/4HANA system.updatePurchaseRequisitionHeader(PurchaseRequisitionHeader purchaseRequisitionHeader) Deprecated.Update an existingPurchaseRequisitionHeaderentity and save it to the S/4HANA system.updatePurchaseRequisitionItem(PurchaseRequisitionItem purchaseRequisitionItem) Deprecated.Update an existingPurchaseRequisitionItementity and save it to the S/4HANA system.updatePurReqAddDelivery(PurReqAddDelivery purReqAddDelivery) Deprecated.Update an existingPurReqAddDeliveryentity and save it to the S/4HANA system.updatePurReqnAcctAssgmt(PurReqnAcctAssgmt purReqnAcctAssgmt) Deprecated.Update an existingPurReqnAcctAssgmtentity and save it to the S/4HANA system.Deprecated.Creates a fluent helper for the Validate 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.
-
getAllPurchaseReqnItemText
Deprecated.Fetch multiplePurchaseReqnItemTextentities.- Returns:
- A fluent helper to fetch multiple
PurchaseReqnItemTextentities. 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.
-
getPurchaseReqnItemTextByKey
@Nonnull PurchaseReqnItemTextByKeyFluentHelper getPurchaseReqnItemTextByKey(String purchaseRequisition, String purchaseRequisitionItem, String documentText, String technicalObjectType, String language) Deprecated.Fetch a singlePurchaseReqnItemTextentity using key fields.- Parameters:
technicalObjectType- Texts: application objectConstraints: Not nullable, Maximum length: 10
purchaseRequisitionItem- Item number of purchase requisitionConstraints: Not nullable, Maximum length: 5
documentText- Text IDConstraints: Not nullable, Maximum length: 4
language- Language KeyConstraints: Not nullable, Maximum length: 2
purchaseRequisition- Purchase Requisition NumberConstraints: Not nullable, Maximum length: 10
- Returns:
- A fluent helper to fetch a single
PurchaseReqnItemTextentity 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.
-
createPurchaseReqnItemText
@Nonnull PurchaseReqnItemTextCreateFluentHelper createPurchaseReqnItemText(@Nonnull PurchaseReqnItemText purchaseReqnItemText) Deprecated.Create a newPurchaseReqnItemTextentity and save it to the S/4HANA system.- Parameters:
purchaseReqnItemText-PurchaseReqnItemTextentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
PurchaseReqnItemTextentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updatePurchaseReqnItemText
@Nonnull PurchaseReqnItemTextUpdateFluentHelper updatePurchaseReqnItemText(@Nonnull PurchaseReqnItemText purchaseReqnItemText) Deprecated.Update an existingPurchaseReqnItemTextentity and save it to the S/4HANA system.- Parameters:
purchaseReqnItemText-PurchaseReqnItemTextentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
PurchaseReqnItemTextentity. To perform execution, call theexecutemethod on the fluent helper object.
-
deletePurchaseReqnItemText
@Nonnull PurchaseReqnItemTextDeleteFluentHelper deletePurchaseReqnItemText(@Nonnull PurchaseReqnItemText purchaseReqnItemText) Deprecated.Deletes an existingPurchaseReqnItemTextentity in the S/4HANA system.- Parameters:
purchaseReqnItemText-PurchaseReqnItemTextentity object that will be deleted in the S/4HANA system.- Returns:
- A fluent helper to delete an existing
PurchaseReqnItemTextentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllPurchaseRequisitionHeader
Deprecated.Fetch multiplePurchaseRequisitionHeaderentities.- Returns:
- A fluent helper to fetch multiple
PurchaseRequisitionHeaderentities. 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.
-
getPurchaseRequisitionHeaderByKey
@Nonnull PurchaseRequisitionHeaderByKeyFluentHelper getPurchaseRequisitionHeaderByKey(String purchaseRequisition) Deprecated.Fetch a singlePurchaseRequisitionHeaderentity using key fields.- Parameters:
purchaseRequisition- Purchase Requisition NumberConstraints: Not nullable, Maximum length: 10
- Returns:
- A fluent helper to fetch a single
PurchaseRequisitionHeaderentity 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.
-
createPurchaseRequisitionHeader
@Nonnull PurchaseRequisitionHeaderCreateFluentHelper createPurchaseRequisitionHeader(@Nonnull PurchaseRequisitionHeader purchaseRequisitionHeader) Deprecated.Create a newPurchaseRequisitionHeaderentity and save it to the S/4HANA system.- Parameters:
purchaseRequisitionHeader-PurchaseRequisitionHeaderentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
PurchaseRequisitionHeaderentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updatePurchaseRequisitionHeader
@Nonnull PurchaseRequisitionHeaderUpdateFluentHelper updatePurchaseRequisitionHeader(@Nonnull PurchaseRequisitionHeader purchaseRequisitionHeader) Deprecated.Update an existingPurchaseRequisitionHeaderentity and save it to the S/4HANA system.- Parameters:
purchaseRequisitionHeader-PurchaseRequisitionHeaderentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
PurchaseRequisitionHeaderentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllPurchaseRequisitionItem
Deprecated.Fetch multiplePurchaseRequisitionItementities.- Returns:
- A fluent helper to fetch multiple
PurchaseRequisitionItementities. 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.
-
getPurchaseRequisitionItemByKey
@Nonnull PurchaseRequisitionItemByKeyFluentHelper getPurchaseRequisitionItemByKey(String purchaseRequisition, String purchaseRequisitionItem) Deprecated.Fetch a singlePurchaseRequisitionItementity using key fields.- Parameters:
purchaseRequisitionItem- Item number of purchase requisitionConstraints: Not nullable, Maximum length: 5
purchaseRequisition- Purchase Requisition NumberConstraints: Not nullable, Maximum length: 10
- Returns:
- A fluent helper to fetch a single
PurchaseRequisitionItementity 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.
-
createPurchaseRequisitionItem
@Nonnull PurchaseRequisitionItemCreateFluentHelper createPurchaseRequisitionItem(@Nonnull PurchaseRequisitionItem purchaseRequisitionItem) Deprecated.Create a newPurchaseRequisitionItementity and save it to the S/4HANA system.- Parameters:
purchaseRequisitionItem-PurchaseRequisitionItementity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
PurchaseRequisitionItementity. To perform execution, call theexecutemethod on the fluent helper object.
-
updatePurchaseRequisitionItem
@Nonnull PurchaseRequisitionItemUpdateFluentHelper updatePurchaseRequisitionItem(@Nonnull PurchaseRequisitionItem purchaseRequisitionItem) Deprecated.Update an existingPurchaseRequisitionItementity and save it to the S/4HANA system.- Parameters:
purchaseRequisitionItem-PurchaseRequisitionItementity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
PurchaseRequisitionItementity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllPurReqAddDelivery
Deprecated.Fetch multiplePurReqAddDeliveryentities.- Returns:
- A fluent helper to fetch multiple
PurReqAddDeliveryentities. 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.
-
getPurReqAddDeliveryByKey
@Nonnull PurReqAddDeliveryByKeyFluentHelper getPurReqAddDeliveryByKey(String purchaseRequisition, String purchaseRequisitionItem) Deprecated.Fetch a singlePurReqAddDeliveryentity using key fields.- Parameters:
purchaseRequisitionItem- Item number of purchase requisitionConstraints: Not nullable, Maximum length: 5
purchaseRequisition- Purchase Requisition NumberConstraints: Not nullable, Maximum length: 10
- Returns:
- A fluent helper to fetch a single
PurReqAddDeliveryentity 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.
-
updatePurReqAddDelivery
@Nonnull PurReqAddDeliveryUpdateFluentHelper updatePurReqAddDelivery(@Nonnull PurReqAddDelivery purReqAddDelivery) Deprecated.Update an existingPurReqAddDeliveryentity and save it to the S/4HANA system.- Parameters:
purReqAddDelivery-PurReqAddDeliveryentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
PurReqAddDeliveryentity. To perform execution, call theexecutemethod on the fluent helper object.
-
getAllPurReqnAcctAssgmt
Deprecated.Fetch multiplePurReqnAcctAssgmtentities.- Returns:
- A fluent helper to fetch multiple
PurReqnAcctAssgmtentities. 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.
-
getPurReqnAcctAssgmtByKey
@Nonnull PurReqnAcctAssgmtByKeyFluentHelper getPurReqnAcctAssgmtByKey(String purchaseRequisition, String purchaseRequisitionItem, String purchaseReqnAcctAssgmtNumber) Deprecated.Fetch a singlePurReqnAcctAssgmtentity using key fields.- Parameters:
purchaseRequisitionItem- Item number of purchase requisitionConstraints: Not nullable, Maximum length: 5
purchaseRequisition- Purchase Requisition NumberConstraints: Not nullable, Maximum length: 10
purchaseReqnAcctAssgmtNumber- Serial number for PReq account assignment segmentConstraints: Not nullable, Maximum length: 2
- Returns:
- A fluent helper to fetch a single
PurReqnAcctAssgmtentity 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.
-
createPurReqnAcctAssgmt
@Nonnull PurReqnAcctAssgmtCreateFluentHelper createPurReqnAcctAssgmt(@Nonnull PurReqnAcctAssgmt purReqnAcctAssgmt) Deprecated.Create a newPurReqnAcctAssgmtentity and save it to the S/4HANA system.- Parameters:
purReqnAcctAssgmt-PurReqnAcctAssgmtentity object that will be created in the S/4HANA system.- Returns:
- A fluent helper to create a new
PurReqnAcctAssgmtentity. To perform execution, call theexecutemethod on the fluent helper object.
-
updatePurReqnAcctAssgmt
@Nonnull PurReqnAcctAssgmtUpdateFluentHelper updatePurReqnAcctAssgmt(@Nonnull PurReqnAcctAssgmt purReqnAcctAssgmt) Deprecated.Update an existingPurReqnAcctAssgmtentity and save it to the S/4HANA system.- Parameters:
purReqnAcctAssgmt-PurReqnAcctAssgmtentity object that will be updated in the S/4HANA system.- Returns:
- A fluent helper to update an existing
PurReqnAcctAssgmtentity. To perform execution, call theexecutemethod on the fluent helper object.
-
validate
Deprecated.Creates a fluent helper for the Validate OData function import.
- Parameters:
purchaseRequisition- Constraints: noneOriginal parameter name from the Odata EDM: PurchaseRequisition
- Returns:
- A fluent helper object that will execute the Validate OData function import with the provided
parameters. To perform execution, call the
executemethod on the fluent helper object.
-
discardFromPurchasing
@Nonnull DiscardFromPurchasingFluentHelper discardFromPurchasing(@Nonnull String purchaseRequisitionItem, @Nonnull String purchaseRequisition) Deprecated.Creates a fluent helper for the DiscardFromPurchasing OData function import.
- Parameters:
purchaseRequisitionItem- Constraints: noneOriginal parameter name from the Odata EDM: PurchaseRequisitionItem
purchaseRequisition- Constraints: noneOriginal parameter name from the Odata EDM: PurchaseRequisition
- Returns:
- A fluent helper object that will execute the DiscardFromPurchasing OData function import with the
provided parameters. To perform execution, call the
executemethod on the fluent helper object.
-
enableForPurchasing
@Nonnull EnableForPurchasingFluentHelper enableForPurchasing(@Nonnull String purchaseRequisitionItem, @Nonnull String purchaseRequisition) Deprecated.Creates a fluent helper for the EnableForPurchasing OData function import.
- Parameters:
purchaseRequisitionItem- Constraints: noneOriginal parameter name from the Odata EDM: PurchaseRequisitionItem
purchaseRequisition- Constraints: noneOriginal parameter name from the Odata EDM: PurchaseRequisition
- Returns:
- A fluent helper object that will execute the EnableForPurchasing OData function import with the
provided parameters. To perform execution, call the
executemethod on the fluent helper object.
-