Class DefaultPurchaseRequisitionService
- All Implemented Interfaces:
BatchService<PurchaseRequisitionServiceBatch>,PurchaseRequisitionService
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
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odata.services.PurchaseRequisitionService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingPurchaseRequisitionService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Deprecated.createPurchaseReqnItemText(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.
-
Constructor Details
-
DefaultPurchaseRequisitionService
public DefaultPurchaseRequisitionService()Deprecated.Creates a service usingPurchaseRequisitionService.DEFAULT_SERVICE_PATHto send the requests.
-
-
Method Details
-
withServicePath
Deprecated.Description copied from interface:PurchaseRequisitionServiceOverrides the default service path and returns a new service instance with the specified service path. Also adjusts the respective entity URLs.- Specified by:
withServicePathin interfacePurchaseRequisitionService- Parameters:
servicePath- Service path that will override the default.- Returns:
- A new service instance with the specified service path.
-
batch
Deprecated.- Specified by:
batchin interfaceBatchService<PurchaseRequisitionServiceBatch>
-
getAllPurchaseReqnItemText
Deprecated.Description copied from interface:PurchaseRequisitionServiceFetch multiplePurchaseReqnItemTextentities.- Specified by:
getAllPurchaseReqnItemTextin interfacePurchaseRequisitionService- 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 public PurchaseReqnItemTextByKeyFluentHelper getPurchaseReqnItemTextByKey(String purchaseRequisition, String purchaseRequisitionItem, String documentText, String technicalObjectType, String language) Deprecated.Description copied from interface:PurchaseRequisitionServiceFetch a singlePurchaseReqnItemTextentity using key fields.- Specified by:
getPurchaseReqnItemTextByKeyin interfacePurchaseRequisitionService- Parameters:
purchaseRequisition- Purchase Requisition NumberConstraints: Not nullable, Maximum length: 10
purchaseRequisitionItem- Item number of purchase requisitionConstraints: Not nullable, Maximum length: 5
documentText- Text IDConstraints: Not nullable, Maximum length: 4
technicalObjectType- Texts: application objectConstraints: Not nullable, Maximum length: 10
language- Language KeyConstraints: Not nullable, Maximum length: 2
- 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 public PurchaseReqnItemTextCreateFluentHelper createPurchaseReqnItemText(@Nonnull PurchaseReqnItemText purchaseReqnItemText) Deprecated.Description copied from interface:PurchaseRequisitionServiceCreate a newPurchaseReqnItemTextentity and save it to the S/4HANA system.- Specified by:
createPurchaseReqnItemTextin interfacePurchaseRequisitionService- 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 public PurchaseReqnItemTextUpdateFluentHelper updatePurchaseReqnItemText(@Nonnull PurchaseReqnItemText purchaseReqnItemText) Deprecated.Description copied from interface:PurchaseRequisitionServiceUpdate an existingPurchaseReqnItemTextentity and save it to the S/4HANA system.- Specified by:
updatePurchaseReqnItemTextin interfacePurchaseRequisitionService- 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 public PurchaseReqnItemTextDeleteFluentHelper deletePurchaseReqnItemText(@Nonnull PurchaseReqnItemText purchaseReqnItemText) Deprecated.Description copied from interface:PurchaseRequisitionServiceDeletes an existingPurchaseReqnItemTextentity in the S/4HANA system.- Specified by:
deletePurchaseReqnItemTextin interfacePurchaseRequisitionService- 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.Description copied from interface:PurchaseRequisitionServiceFetch multiplePurchaseRequisitionHeaderentities.- Specified by:
getAllPurchaseRequisitionHeaderin interfacePurchaseRequisitionService- 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 public PurchaseRequisitionHeaderByKeyFluentHelper getPurchaseRequisitionHeaderByKey(String purchaseRequisition) Deprecated.Description copied from interface:PurchaseRequisitionServiceFetch a singlePurchaseRequisitionHeaderentity using key fields.- Specified by:
getPurchaseRequisitionHeaderByKeyin interfacePurchaseRequisitionService- 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 public PurchaseRequisitionHeaderCreateFluentHelper createPurchaseRequisitionHeader(@Nonnull PurchaseRequisitionHeader purchaseRequisitionHeader) Deprecated.Description copied from interface:PurchaseRequisitionServiceCreate a newPurchaseRequisitionHeaderentity and save it to the S/4HANA system.- Specified by:
createPurchaseRequisitionHeaderin interfacePurchaseRequisitionService- 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 public PurchaseRequisitionHeaderUpdateFluentHelper updatePurchaseRequisitionHeader(@Nonnull PurchaseRequisitionHeader purchaseRequisitionHeader) Deprecated.Description copied from interface:PurchaseRequisitionServiceUpdate an existingPurchaseRequisitionHeaderentity and save it to the S/4HANA system.- Specified by:
updatePurchaseRequisitionHeaderin interfacePurchaseRequisitionService- 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.Description copied from interface:PurchaseRequisitionServiceFetch multiplePurchaseRequisitionItementities.- Specified by:
getAllPurchaseRequisitionItemin interfacePurchaseRequisitionService- 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 public PurchaseRequisitionItemByKeyFluentHelper getPurchaseRequisitionItemByKey(String purchaseRequisition, String purchaseRequisitionItem) Deprecated.Description copied from interface:PurchaseRequisitionServiceFetch a singlePurchaseRequisitionItementity using key fields.- Specified by:
getPurchaseRequisitionItemByKeyin interfacePurchaseRequisitionService- Parameters:
purchaseRequisition- Purchase Requisition NumberConstraints: Not nullable, Maximum length: 10
purchaseRequisitionItem- Item number of purchase requisitionConstraints: Not nullable, Maximum length: 5
- 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 public PurchaseRequisitionItemCreateFluentHelper createPurchaseRequisitionItem(@Nonnull PurchaseRequisitionItem purchaseRequisitionItem) Deprecated.Description copied from interface:PurchaseRequisitionServiceCreate a newPurchaseRequisitionItementity and save it to the S/4HANA system.- Specified by:
createPurchaseRequisitionItemin interfacePurchaseRequisitionService- 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 public PurchaseRequisitionItemUpdateFluentHelper updatePurchaseRequisitionItem(@Nonnull PurchaseRequisitionItem purchaseRequisitionItem) Deprecated.Description copied from interface:PurchaseRequisitionServiceUpdate an existingPurchaseRequisitionItementity and save it to the S/4HANA system.- Specified by:
updatePurchaseRequisitionItemin interfacePurchaseRequisitionService- 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.Description copied from interface:PurchaseRequisitionServiceFetch multiplePurReqAddDeliveryentities.- Specified by:
getAllPurReqAddDeliveryin interfacePurchaseRequisitionService- 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 public PurReqAddDeliveryByKeyFluentHelper getPurReqAddDeliveryByKey(String purchaseRequisition, String purchaseRequisitionItem) Deprecated.Description copied from interface:PurchaseRequisitionServiceFetch a singlePurReqAddDeliveryentity using key fields.- Specified by:
getPurReqAddDeliveryByKeyin interfacePurchaseRequisitionService- Parameters:
purchaseRequisition- Purchase Requisition NumberConstraints: Not nullable, Maximum length: 10
purchaseRequisitionItem- Item number of purchase requisitionConstraints: Not nullable, Maximum length: 5
- 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 public PurReqAddDeliveryUpdateFluentHelper updatePurReqAddDelivery(@Nonnull PurReqAddDelivery purReqAddDelivery) Deprecated.Description copied from interface:PurchaseRequisitionServiceUpdate an existingPurReqAddDeliveryentity and save it to the S/4HANA system.- Specified by:
updatePurReqAddDeliveryin interfacePurchaseRequisitionService- 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.Description copied from interface:PurchaseRequisitionServiceFetch multiplePurReqnAcctAssgmtentities.- Specified by:
getAllPurReqnAcctAssgmtin interfacePurchaseRequisitionService- 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 public PurReqnAcctAssgmtByKeyFluentHelper getPurReqnAcctAssgmtByKey(String purchaseRequisition, String purchaseRequisitionItem, String purchaseReqnAcctAssgmtNumber) Deprecated.Description copied from interface:PurchaseRequisitionServiceFetch a singlePurReqnAcctAssgmtentity using key fields.- Specified by:
getPurReqnAcctAssgmtByKeyin interfacePurchaseRequisitionService- Parameters:
purchaseRequisition- Purchase Requisition NumberConstraints: Not nullable, Maximum length: 10
purchaseRequisitionItem- Item number of purchase requisitionConstraints: Not nullable, Maximum length: 5
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 public PurReqnAcctAssgmtCreateFluentHelper createPurReqnAcctAssgmt(@Nonnull PurReqnAcctAssgmt purReqnAcctAssgmt) Deprecated.Description copied from interface:PurchaseRequisitionServiceCreate a newPurReqnAcctAssgmtentity and save it to the S/4HANA system.- Specified by:
createPurReqnAcctAssgmtin interfacePurchaseRequisitionService- 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 public PurReqnAcctAssgmtUpdateFluentHelper updatePurReqnAcctAssgmt(@Nonnull PurReqnAcctAssgmt purReqnAcctAssgmt) Deprecated.Description copied from interface:PurchaseRequisitionServiceUpdate an existingPurReqnAcctAssgmtentity and save it to the S/4HANA system.- Specified by:
updatePurReqnAcctAssgmtin interfacePurchaseRequisitionService- 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.Description copied from interface:PurchaseRequisitionServiceCreates a fluent helper for the Validate OData function import.
- Specified by:
validatein interfacePurchaseRequisitionService- 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 public DiscardFromPurchasingFluentHelper discardFromPurchasing(@Nonnull String purchaseRequisitionItem, @Nonnull String purchaseRequisition) Deprecated.Description copied from interface:PurchaseRequisitionServiceCreates a fluent helper for the DiscardFromPurchasing OData function import.
- Specified by:
discardFromPurchasingin interfacePurchaseRequisitionService- 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 public EnableForPurchasingFluentHelper enableForPurchasing(@Nonnull String purchaseRequisitionItem, @Nonnull String purchaseRequisition) Deprecated.Description copied from interface:PurchaseRequisitionServiceCreates a fluent helper for the EnableForPurchasing OData function import.
- Specified by:
enableForPurchasingin interfacePurchaseRequisitionService- 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.
-