Class DefaultPurchaseRequisitionService
- All Implemented Interfaces:
OperationsOnEntityCollections,ServiceWithNavigableEntities,PurchaseRequisitionService
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: | CE_PURCHASEREQUISITION_0001 |
| API Version: | 1.0.1 |
| Minimum ERP Version: | 2302 |
| Communication Scenario: | Purchase Requisition Integration(SAP_COM_0102) |
| 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) |
| Authentication Methods: | x509 |
| Service Group Name: | API_PURCHASEREQUISITION_2 |
| Business Object: | Purchase Requisition |
-
Field Summary
Fields inherited from interface com.sap.cloud.sdk.s4hana.datamodel.odatav4.services.PurchaseRequisitionService
DEFAULT_SERVICE_PATH -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Creates a service usingPurchaseRequisitionService.DEFAULT_SERVICE_PATHto send the requests. -
Method Summary
Modifier and TypeMethodDescriptionbatch()Deprecated.Creates a batch request builder object.Deprecated.Fetch the number of entries from thePurchaseReqnentity collection matching the filter and search expressions.Deprecated.Fetch the number of entries from thePurchaseReqnAcctAssgmtentity collection matching the filter and search expressions.Deprecated.Fetch the number of entries from thePurchaseReqnDelivAddressentity collection matching the filter and search expressions.Deprecated.Fetch the number of entries from thePurchaseReqnItementity collection matching the filter and search expressions.Deprecated.Fetch the number of entries from thePurchaseReqnItemTextentity collection matching the filter and search expressions.createPurchaseReqn(PurchaseReqn purchaseReqn) Deprecated.Create a newPurchaseReqnentity and save it to the S/4HANA system.createPurchaseReqnAcctAssgmt(PurchaseReqnAcctAssgmt purchaseReqnAcctAssgmt) Deprecated.Create a newPurchaseReqnAcctAssgmtentity and save it to the S/4HANA system.createPurchaseReqnItem(PurchaseReqnItem purchaseReqnItem) Deprecated.Create a newPurchaseReqnItementity and save it to the S/4HANA system.createPurchaseReqnItemText(PurchaseReqnItemText purchaseReqnItemText) Deprecated.Create a newPurchaseReqnItemTextentity and save it to the S/4HANA system.deletePurchaseReqnItemText(PurchaseReqnItemText purchaseReqnItemText) Deprecated.Deletes an existingPurchaseReqnItemTextentity in the S/4HANA system.Deprecated.Fetch multiplePurchaseReqnentities.Deprecated.Fetch multiplePurchaseReqnAcctAssgmtentities.Deprecated.Fetch multiplePurchaseReqnDelivAddressentities.Deprecated.Fetch multiplePurchaseReqnItementities.Deprecated.Fetch multiplePurchaseReqnItemTextentities.getPurchaseReqnAcctAssgmtByKey(String purchaseRequisition, String purchaseRequisitionItem, String purchaseReqnAcctAssgmtNumber) Deprecated.Fetch a singlePurchaseReqnAcctAssgmtentity using key fields.getPurchaseReqnByKey(String purchaseRequisition) Deprecated.Fetch a singlePurchaseReqnentity using key fields.getPurchaseReqnDelivAddressByKey(String purchaseRequisition, String purchaseRequisitionItem) Deprecated.Fetch a singlePurchaseReqnDelivAddressentity using key fields.getPurchaseReqnItemByKey(String purchaseRequisition, String purchaseRequisitionItem) Deprecated.Fetch a singlePurchaseReqnItementity using key fields.getPurchaseReqnItemTextByKey(String purchaseRequisition, String purchaseRequisitionItem, String textObjectCategory, String textObjectKey, String textObjectType, String language) Deprecated.Fetch a singlePurchaseReqnItemTextentity using key fields.Deprecated.updatePurchaseReqn(PurchaseReqn purchaseReqn) Deprecated.Update an existingPurchaseReqnentity and save it to the S/4HANA system.updatePurchaseReqnAcctAssgmt(PurchaseReqnAcctAssgmt purchaseReqnAcctAssgmt) Deprecated.Update an existingPurchaseReqnAcctAssgmtentity and save it to the S/4HANA system.updatePurchaseReqnDelivAddress(PurchaseReqnDelivAddress purchaseReqnDelivAddress) Deprecated.Update an existingPurchaseReqnDelivAddressentity and save it to the S/4HANA system.updatePurchaseReqnItem(PurchaseReqnItem purchaseReqnItem) Deprecated.Update an existingPurchaseReqnItementity and save it to the S/4HANA system.updatePurchaseReqnItemText(PurchaseReqnItemText purchaseReqnItemText) Deprecated.Update an existingPurchaseReqnItemTextentity and save it to the S/4HANA system.withServicePath(String servicePath) Deprecated.Overrides the default service path and returns a new service instance with the specified service path.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.sap.cloud.sdk.datamodel.odatav4.core.ServiceWithNavigableEntities
applyAction, applyAction, applyFunction, applyFunction, forEntity, withFunction, withFunction
-
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.Description copied from interface:PurchaseRequisitionServiceCreates a batch request builder object.- Specified by:
batchin interfacePurchaseRequisitionService- Returns:
- A request builder to handle batch operation on this service. To perform execution, call the
executemethod on the request builder object.
-
getAllPurchaseReqn
Deprecated.Description copied from interface:PurchaseRequisitionServiceFetch multiplePurchaseReqnentities.- Specified by:
getAllPurchaseReqnin interfacePurchaseRequisitionService- Returns:
- A request builder to fetch multiple
PurchaseReqnentities. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
countPurchaseReqn
Deprecated.Description copied from interface:PurchaseRequisitionServiceFetch the number of entries from thePurchaseReqnentity collection matching the filter and search expressions.- Specified by:
countPurchaseReqnin interfacePurchaseRequisitionService- Returns:
- A request builder to fetch the count of
PurchaseReqnentities. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
getPurchaseReqnByKey
@Nonnull public GetByKeyRequestBuilder<PurchaseReqn> getPurchaseReqnByKey(String purchaseRequisition) Deprecated.Description copied from interface:PurchaseRequisitionServiceFetch a singlePurchaseReqnentity using key fields.- Specified by:
getPurchaseReqnByKeyin interfacePurchaseRequisitionService- Parameters:
purchaseRequisition- Purchase Requisition NumberConstraints: Not nullable, Maximum length: 10
- Returns:
- A request builder to fetch a single
PurchaseReqnentity using key fields. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
createPurchaseReqn
@Nonnull public CreateRequestBuilder<PurchaseReqn> createPurchaseReqn(@Nonnull PurchaseReqn purchaseReqn) Deprecated.Description copied from interface:PurchaseRequisitionServiceCreate a newPurchaseReqnentity and save it to the S/4HANA system.- Specified by:
createPurchaseReqnin interfacePurchaseRequisitionService- Parameters:
purchaseReqn-PurchaseReqnentity object that will be created in the S/4HANA system.- Returns:
- A request builder to create a new
PurchaseReqnentity. To perform execution, call theexecutemethod on the request builder object.
-
updatePurchaseReqn
@Nonnull public UpdateRequestBuilder<PurchaseReqn> updatePurchaseReqn(@Nonnull PurchaseReqn purchaseReqn) Deprecated.Description copied from interface:PurchaseRequisitionServiceUpdate an existingPurchaseReqnentity and save it to the S/4HANA system.- Specified by:
updatePurchaseReqnin interfacePurchaseRequisitionService- Parameters:
purchaseReqn-PurchaseReqnentity object that will be updated in the S/4HANA system.- Returns:
- A request builder to update an existing
PurchaseReqnentity. To perform execution, call theexecutemethod on the request builder object.
-
getAllPurchaseReqnAcctAssgmt
Deprecated.Description copied from interface:PurchaseRequisitionServiceFetch multiplePurchaseReqnAcctAssgmtentities.- Specified by:
getAllPurchaseReqnAcctAssgmtin interfacePurchaseRequisitionService- Returns:
- A request builder to fetch multiple
PurchaseReqnAcctAssgmtentities. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
countPurchaseReqnAcctAssgmt
Deprecated.Description copied from interface:PurchaseRequisitionServiceFetch the number of entries from thePurchaseReqnAcctAssgmtentity collection matching the filter and search expressions.- Specified by:
countPurchaseReqnAcctAssgmtin interfacePurchaseRequisitionService- Returns:
- A request builder to fetch the count of
PurchaseReqnAcctAssgmtentities. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
getPurchaseReqnAcctAssgmtByKey
@Nonnull public GetByKeyRequestBuilder<PurchaseReqnAcctAssgmt> getPurchaseReqnAcctAssgmtByKey(String purchaseRequisition, String purchaseRequisitionItem, String purchaseReqnAcctAssgmtNumber) Deprecated.Description copied from interface:PurchaseRequisitionServiceFetch a singlePurchaseReqnAcctAssgmtentity using key fields.- Specified by:
getPurchaseReqnAcctAssgmtByKeyin 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 request builder to fetch a single
PurchaseReqnAcctAssgmtentity using key fields. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
createPurchaseReqnAcctAssgmt
@Nonnull public CreateRequestBuilder<PurchaseReqnAcctAssgmt> createPurchaseReqnAcctAssgmt(@Nonnull PurchaseReqnAcctAssgmt purchaseReqnAcctAssgmt) Deprecated.Description copied from interface:PurchaseRequisitionServiceCreate a newPurchaseReqnAcctAssgmtentity and save it to the S/4HANA system.- Specified by:
createPurchaseReqnAcctAssgmtin interfacePurchaseRequisitionService- Parameters:
purchaseReqnAcctAssgmt-PurchaseReqnAcctAssgmtentity object that will be created in the S/4HANA system.- Returns:
- A request builder to create a new
PurchaseReqnAcctAssgmtentity. To perform execution, call theexecutemethod on the request builder object.
-
updatePurchaseReqnAcctAssgmt
@Nonnull public UpdateRequestBuilder<PurchaseReqnAcctAssgmt> updatePurchaseReqnAcctAssgmt(@Nonnull PurchaseReqnAcctAssgmt purchaseReqnAcctAssgmt) Deprecated.Description copied from interface:PurchaseRequisitionServiceUpdate an existingPurchaseReqnAcctAssgmtentity and save it to the S/4HANA system.- Specified by:
updatePurchaseReqnAcctAssgmtin interfacePurchaseRequisitionService- Parameters:
purchaseReqnAcctAssgmt-PurchaseReqnAcctAssgmtentity object that will be updated in the S/4HANA system.- Returns:
- A request builder to update an existing
PurchaseReqnAcctAssgmtentity. To perform execution, call theexecutemethod on the request builder object.
-
getAllPurchaseReqnDelivAddress
Deprecated.Description copied from interface:PurchaseRequisitionServiceFetch multiplePurchaseReqnDelivAddressentities.- Specified by:
getAllPurchaseReqnDelivAddressin interfacePurchaseRequisitionService- Returns:
- A request builder to fetch multiple
PurchaseReqnDelivAddressentities. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
countPurchaseReqnDelivAddress
Deprecated.Description copied from interface:PurchaseRequisitionServiceFetch the number of entries from thePurchaseReqnDelivAddressentity collection matching the filter and search expressions.- Specified by:
countPurchaseReqnDelivAddressin interfacePurchaseRequisitionService- Returns:
- A request builder to fetch the count of
PurchaseReqnDelivAddressentities. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
getPurchaseReqnDelivAddressByKey
@Nonnull public GetByKeyRequestBuilder<PurchaseReqnDelivAddress> getPurchaseReqnDelivAddressByKey(String purchaseRequisition, String purchaseRequisitionItem) Deprecated.Description copied from interface:PurchaseRequisitionServiceFetch a singlePurchaseReqnDelivAddressentity using key fields.- Specified by:
getPurchaseReqnDelivAddressByKeyin interfacePurchaseRequisitionService- Parameters:
purchaseRequisition- Purchase Requisition NumberConstraints: Not nullable, Maximum length: 10
purchaseRequisitionItem- Item number of purchase requisitionConstraints: Not nullable, Maximum length: 5
- Returns:
- A request builder to fetch a single
PurchaseReqnDelivAddressentity using key fields. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
updatePurchaseReqnDelivAddress
@Nonnull public UpdateRequestBuilder<PurchaseReqnDelivAddress> updatePurchaseReqnDelivAddress(@Nonnull PurchaseReqnDelivAddress purchaseReqnDelivAddress) Deprecated.Description copied from interface:PurchaseRequisitionServiceUpdate an existingPurchaseReqnDelivAddressentity and save it to the S/4HANA system.- Specified by:
updatePurchaseReqnDelivAddressin interfacePurchaseRequisitionService- Parameters:
purchaseReqnDelivAddress-PurchaseReqnDelivAddressentity object that will be updated in the S/4HANA system.- Returns:
- A request builder to update an existing
PurchaseReqnDelivAddressentity. To perform execution, call theexecutemethod on the request builder object.
-
getAllPurchaseReqnItem
Deprecated.Description copied from interface:PurchaseRequisitionServiceFetch multiplePurchaseReqnItementities.- Specified by:
getAllPurchaseReqnItemin interfacePurchaseRequisitionService- Returns:
- A request builder to fetch multiple
PurchaseReqnItementities. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
countPurchaseReqnItem
Deprecated.Description copied from interface:PurchaseRequisitionServiceFetch the number of entries from thePurchaseReqnItementity collection matching the filter and search expressions.- Specified by:
countPurchaseReqnItemin interfacePurchaseRequisitionService- Returns:
- A request builder to fetch the count of
PurchaseReqnItementities. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
getPurchaseReqnItemByKey
@Nonnull public GetByKeyRequestBuilder<PurchaseReqnItem> getPurchaseReqnItemByKey(String purchaseRequisition, String purchaseRequisitionItem) Deprecated.Description copied from interface:PurchaseRequisitionServiceFetch a singlePurchaseReqnItementity using key fields.- Specified by:
getPurchaseReqnItemByKeyin interfacePurchaseRequisitionService- Parameters:
purchaseRequisition- Purchase Requisition NumberConstraints: Not nullable, Maximum length: 10
purchaseRequisitionItem- Item number of purchase requisitionConstraints: Not nullable, Maximum length: 5
- Returns:
- A request builder to fetch a single
PurchaseReqnItementity using key fields. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
createPurchaseReqnItem
@Nonnull public CreateRequestBuilder<PurchaseReqnItem> createPurchaseReqnItem(@Nonnull PurchaseReqnItem purchaseReqnItem) Deprecated.Description copied from interface:PurchaseRequisitionServiceCreate a newPurchaseReqnItementity and save it to the S/4HANA system.- Specified by:
createPurchaseReqnItemin interfacePurchaseRequisitionService- Parameters:
purchaseReqnItem-PurchaseReqnItementity object that will be created in the S/4HANA system.- Returns:
- A request builder to create a new
PurchaseReqnItementity. To perform execution, call theexecutemethod on the request builder object.
-
updatePurchaseReqnItem
@Nonnull public UpdateRequestBuilder<PurchaseReqnItem> updatePurchaseReqnItem(@Nonnull PurchaseReqnItem purchaseReqnItem) Deprecated.Description copied from interface:PurchaseRequisitionServiceUpdate an existingPurchaseReqnItementity and save it to the S/4HANA system.- Specified by:
updatePurchaseReqnItemin interfacePurchaseRequisitionService- Parameters:
purchaseReqnItem-PurchaseReqnItementity object that will be updated in the S/4HANA system.- Returns:
- A request builder to update an existing
PurchaseReqnItementity. To perform execution, call theexecutemethod on the request builder object.
-
getAllPurchaseReqnItemText
Deprecated.Description copied from interface:PurchaseRequisitionServiceFetch multiplePurchaseReqnItemTextentities.- Specified by:
getAllPurchaseReqnItemTextin interfacePurchaseRequisitionService- Returns:
- A request builder to fetch multiple
PurchaseReqnItemTextentities. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
countPurchaseReqnItemText
Deprecated.Description copied from interface:PurchaseRequisitionServiceFetch the number of entries from thePurchaseReqnItemTextentity collection matching the filter and search expressions.- Specified by:
countPurchaseReqnItemTextin interfacePurchaseRequisitionService- Returns:
- A request builder to fetch the count of
PurchaseReqnItemTextentities. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
getPurchaseReqnItemTextByKey
@Nonnull public GetByKeyRequestBuilder<PurchaseReqnItemText> getPurchaseReqnItemTextByKey(String purchaseRequisition, String purchaseRequisitionItem, String textObjectCategory, String textObjectKey, String textObjectType, 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
textObjectCategory- Texts: application objectConstraints: Not nullable, Maximum length: 10
textObjectKey- NameConstraints: Not nullable, Maximum length: 70
textObjectType- Text IDConstraints: Not nullable, Maximum length: 4
language- Language KeyConstraints: Not nullable, Maximum length: 2
- Returns:
- A request builder to fetch a single
PurchaseReqnItemTextentity using key fields. This request builder allows methods which modify the underlying query to be called before executing the query itself. To perform execution, call theexecutemethod on the request builder object.
-
createPurchaseReqnItemText
@Nonnull public CreateRequestBuilder<PurchaseReqnItemText> 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 request builder to create a new
PurchaseReqnItemTextentity. To perform execution, call theexecutemethod on the request builder object.
-
updatePurchaseReqnItemText
@Nonnull public UpdateRequestBuilder<PurchaseReqnItemText> 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 request builder to update an existing
PurchaseReqnItemTextentity. To perform execution, call theexecutemethod on the request builder object.
-
deletePurchaseReqnItemText
@Nonnull public DeleteRequestBuilder<PurchaseReqnItemText> 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 request builder to delete an existing
PurchaseReqnItemTextentity. To perform execution, call theexecutemethod on the request builder object.
-
getServicePath
Deprecated.- Specified by:
getServicePathin interfaceServiceWithNavigableEntities
-