@Named(value="com.sap.cloud.sdk.s4hana.onpremise.v2020.datamodel.odata.services.DefaultPurchaseRequisitionService") public class DefaultPurchaseRequisitionService extends Object implements 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. 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. Note: Certain elements can only be used if you activate the business function ISR_RETAILSYSTEM. For more information, see Business Documentation. .
Reference: SAP API Business Hub
OData Service: | OP_API_PURCHASEREQ_PROCESS_SRV_0001 |
API Version: | 1 |
Minimum ERP Version: | 2020 |
Authentication Methods: | Basic, x509 |
Business Object: | Purchase Requisition |
DEFAULT_SERVICE_PATH
Constructor and Description |
---|
DefaultPurchaseRequisitionService()
Creates a service using
PurchaseRequisitionService.DEFAULT_SERVICE_PATH to send the requests. |
public DefaultPurchaseRequisitionService()
PurchaseRequisitionService.DEFAULT_SERVICE_PATH
to send the requests.@Nonnull public DefaultPurchaseRequisitionService withServicePath(@Nonnull String servicePath)
PurchaseRequisitionService
withServicePath
in interface PurchaseRequisitionService
servicePath
- Service path that will override the default.@Nonnull public DefaultPurchaseRequisitionServiceBatch batch()
batch
in interface BatchService<PurchaseRequisitionServiceBatch>
@Nonnull public PurchaseReqnItemTextFluentHelper getAllPurchaseReqnItemText()
PurchaseRequisitionService
PurchaseReqnItemText
entities.getAllPurchaseReqnItemText
in interface PurchaseRequisitionService
PurchaseReqnItemText
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 PurchaseReqnItemTextByKeyFluentHelper getPurchaseReqnItemTextByKey(String purchaseRequisition, String purchaseRequisitionItem, String documentText, String technicalObjectType, String language)
PurchaseRequisitionService
PurchaseReqnItemText
entity using key fields.getPurchaseReqnItemTextByKey
in interface PurchaseRequisitionService
purchaseRequisition
- Purchase Requisition Number
Constraints: Not nullable, Maximum length: 10
purchaseRequisitionItem
- Item number of purchase requisition
Constraints: Not nullable, Maximum length: 5
documentText
- Text ID
Constraints: Not nullable, Maximum length: 4
technicalObjectType
- Texts: Application Object
Constraints: Not nullable, Maximum length: 10
language
- Language Key
Constraints: Not nullable, Maximum length: 2
PurchaseReqnItemText
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 PurchaseReqnItemTextCreateFluentHelper createPurchaseReqnItemText(@Nonnull PurchaseReqnItemText purchaseReqnItemText)
PurchaseRequisitionService
PurchaseReqnItemText
entity and save it to the S/4HANA system.createPurchaseReqnItemText
in interface PurchaseRequisitionService
purchaseReqnItemText
- PurchaseReqnItemText
entity object that will be created in the S/4HANA system.PurchaseReqnItemText
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurchaseReqnItemTextUpdateFluentHelper updatePurchaseReqnItemText(@Nonnull PurchaseReqnItemText purchaseReqnItemText)
PurchaseRequisitionService
PurchaseReqnItemText
entity and save it to the S/4HANA system.updatePurchaseReqnItemText
in interface PurchaseRequisitionService
purchaseReqnItemText
- PurchaseReqnItemText
entity object that will be updated in the S/4HANA system.PurchaseReqnItemText
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurchaseReqnItemTextDeleteFluentHelper deletePurchaseReqnItemText(@Nonnull PurchaseReqnItemText purchaseReqnItemText)
PurchaseRequisitionService
PurchaseReqnItemText
entity in the S/4HANA system.deletePurchaseReqnItemText
in interface PurchaseRequisitionService
purchaseReqnItemText
- PurchaseReqnItemText
entity object that will be deleted in the S/4HANA system.PurchaseReqnItemText
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurchaseRequisitionHeaderFluentHelper getAllPurchaseRequisitionHeader()
PurchaseRequisitionService
PurchaseRequisitionHeader
entities.getAllPurchaseRequisitionHeader
in interface PurchaseRequisitionService
PurchaseRequisitionHeader
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 PurchaseRequisitionHeaderByKeyFluentHelper getPurchaseRequisitionHeaderByKey(String purchaseRequisition)
PurchaseRequisitionService
PurchaseRequisitionHeader
entity using key fields.getPurchaseRequisitionHeaderByKey
in interface PurchaseRequisitionService
purchaseRequisition
- Purchase requisition number
Constraints: Not nullable, Maximum length: 10
PurchaseRequisitionHeader
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 PurchaseRequisitionHeaderCreateFluentHelper createPurchaseRequisitionHeader(@Nonnull PurchaseRequisitionHeader purchaseRequisitionHeader)
PurchaseRequisitionService
PurchaseRequisitionHeader
entity and save it to the S/4HANA system.createPurchaseRequisitionHeader
in interface PurchaseRequisitionService
purchaseRequisitionHeader
- PurchaseRequisitionHeader
entity object that will be created in the S/4HANA system.PurchaseRequisitionHeader
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurchaseRequisitionHeaderUpdateFluentHelper updatePurchaseRequisitionHeader(@Nonnull PurchaseRequisitionHeader purchaseRequisitionHeader)
PurchaseRequisitionService
PurchaseRequisitionHeader
entity and save it to the S/4HANA system.updatePurchaseRequisitionHeader
in interface PurchaseRequisitionService
purchaseRequisitionHeader
- PurchaseRequisitionHeader
entity object that will be updated in the S/4HANA system.PurchaseRequisitionHeader
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurchaseRequisitionItemFluentHelper getAllPurchaseRequisitionItem()
PurchaseRequisitionService
PurchaseRequisitionItem
entities.getAllPurchaseRequisitionItem
in interface PurchaseRequisitionService
PurchaseRequisitionItem
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 PurchaseRequisitionItemByKeyFluentHelper getPurchaseRequisitionItemByKey(String purchaseRequisition, String purchaseRequisitionItem)
PurchaseRequisitionService
PurchaseRequisitionItem
entity using key fields.getPurchaseRequisitionItemByKey
in interface PurchaseRequisitionService
purchaseRequisition
- Purchase requisition number
Constraints: Not nullable, Maximum length: 10
purchaseRequisitionItem
- Item number of purchase requisition
Constraints: Not nullable, Maximum length: 5
PurchaseRequisitionItem
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 PurchaseRequisitionItemCreateFluentHelper createPurchaseRequisitionItem(@Nonnull PurchaseRequisitionItem purchaseRequisitionItem)
PurchaseRequisitionService
PurchaseRequisitionItem
entity and save it to the S/4HANA system.createPurchaseRequisitionItem
in interface PurchaseRequisitionService
purchaseRequisitionItem
- PurchaseRequisitionItem
entity object that will be created in the S/4HANA system.PurchaseRequisitionItem
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurchaseRequisitionItemUpdateFluentHelper updatePurchaseRequisitionItem(@Nonnull PurchaseRequisitionItem purchaseRequisitionItem)
PurchaseRequisitionService
PurchaseRequisitionItem
entity and save it to the S/4HANA system.updatePurchaseRequisitionItem
in interface PurchaseRequisitionService
purchaseRequisitionItem
- PurchaseRequisitionItem
entity object that will be updated in the S/4HANA system.PurchaseRequisitionItem
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurReqAddDeliveryFluentHelper getAllPurReqAddDelivery()
PurchaseRequisitionService
PurReqAddDelivery
entities.getAllPurReqAddDelivery
in interface PurchaseRequisitionService
PurReqAddDelivery
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 PurReqAddDeliveryByKeyFluentHelper getPurReqAddDeliveryByKey(String purchaseRequisition, String purchaseRequisitionItem)
PurchaseRequisitionService
PurReqAddDelivery
entity using key fields.getPurReqAddDeliveryByKey
in interface PurchaseRequisitionService
purchaseRequisition
- Purchase requisition number
Constraints: Not nullable, Maximum length: 10
purchaseRequisitionItem
- Item number of purchase requisition
Constraints: Not nullable, Maximum length: 5
PurReqAddDelivery
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 PurReqAddDeliveryUpdateFluentHelper updatePurReqAddDelivery(@Nonnull PurReqAddDelivery purReqAddDelivery)
PurchaseRequisitionService
PurReqAddDelivery
entity and save it to the S/4HANA system.updatePurReqAddDelivery
in interface PurchaseRequisitionService
purReqAddDelivery
- PurReqAddDelivery
entity object that will be updated in the S/4HANA system.PurReqAddDelivery
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurReqnAcctAssgmtFluentHelper getAllPurReqnAcctAssgmt()
PurchaseRequisitionService
PurReqnAcctAssgmt
entities.getAllPurReqnAcctAssgmt
in interface PurchaseRequisitionService
PurReqnAcctAssgmt
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 PurReqnAcctAssgmtByKeyFluentHelper getPurReqnAcctAssgmtByKey(String purchaseRequisition, String purchaseRequisitionItem, String purchaseReqnAcctAssgmtNumber)
PurchaseRequisitionService
PurReqnAcctAssgmt
entity using key fields.getPurReqnAcctAssgmtByKey
in interface PurchaseRequisitionService
purchaseRequisition
- Purchase Requisition Number
Constraints: Not nullable, Maximum length: 10
purchaseRequisitionItem
- Item number of purchase requisition
Constraints: Not nullable, Maximum length: 5
purchaseReqnAcctAssgmtNumber
- Serial number for PReq account assignment segment
Constraints: Not nullable, Maximum length: 2
PurReqnAcctAssgmt
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 PurReqnAcctAssgmtCreateFluentHelper createPurReqnAcctAssgmt(@Nonnull PurReqnAcctAssgmt purReqnAcctAssgmt)
PurchaseRequisitionService
PurReqnAcctAssgmt
entity and save it to the S/4HANA system.createPurReqnAcctAssgmt
in interface PurchaseRequisitionService
purReqnAcctAssgmt
- PurReqnAcctAssgmt
entity object that will be created in the S/4HANA system.PurReqnAcctAssgmt
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public PurReqnAcctAssgmtUpdateFluentHelper updatePurReqnAcctAssgmt(@Nonnull PurReqnAcctAssgmt purReqnAcctAssgmt)
PurchaseRequisitionService
PurReqnAcctAssgmt
entity and save it to the S/4HANA system.updatePurReqnAcctAssgmt
in interface PurchaseRequisitionService
purReqnAcctAssgmt
- PurReqnAcctAssgmt
entity object that will be updated in the S/4HANA system.PurReqnAcctAssgmt
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull public ValidateFluentHelper validate(String purchaseRequisition)
PurchaseRequisitionService
Creates a fluent helper for the Validate OData function import.
validate
in interface PurchaseRequisitionService
purchaseRequisition
- Constraints: none
Original parameter name from the Odata EDM: PurchaseRequisition
execute
method on the fluent helper object.@Nonnull public DiscardFromPurchasingFluentHelper discardFromPurchasing(String purchaseRequisitionItem, String purchaseRequisition)
PurchaseRequisitionService
Creates a fluent helper for the DiscardFromPurchasing OData function import.
discardFromPurchasing
in interface PurchaseRequisitionService
purchaseRequisitionItem
- Constraints: none
Original parameter name from the Odata EDM: PurchaseRequisitionItem
purchaseRequisition
- Constraints: none
Original parameter name from the Odata EDM: PurchaseRequisition
execute
method on the fluent helper object.@Nonnull public EnableForPurchasingFluentHelper enableForPurchasing(String purchaseRequisitionItem, String purchaseRequisition)
PurchaseRequisitionService
Creates a fluent helper for the EnableForPurchasing OData function import.
enableForPurchasing
in interface PurchaseRequisitionService
purchaseRequisitionItem
- Constraints: none
Original parameter name from the Odata EDM: PurchaseRequisitionItem
purchaseRequisition
- Constraints: none
Original parameter name from the Odata EDM: PurchaseRequisition
execute
method on the fluent helper object.Copyright © 2021 SAP SE. All rights reserved.