@Named(value="com.sap.cloud.sdk.s4hana.datamodel.odata.services.DefaultPurchaseRequisitionService") public class DefaultPurchaseRequisitionService extends Object implements PurchaseRequisitionService
This inbound service enables you to create, read, update, and delete purchase requisitions through an API call from a source system inside as well as outside SAP S/4HANA Cloud or SAP S/4HANA onPremise.
Reference: SAP API Business Hub
OData Service: | API_PURCHASEREQ_PROCESS_SRV |
API Version: | 1 |
Communication Scenario: | Purchase Requisition Integration (SAP_COM_0102), SAP S/4HANA Procurement Hub - Ariba GB - Hub to Ariba GB Integration (SAP_COM_0292) |
Scope Items: | Requisitioning (18J), Guided Buying Integration (2NV), Consumable Purchasing (BNX), Service and Material Procurement - Project-Based Services (J13), Procurement of Direct Materials (J45) |
Authentication Methods: | Basic, x509 |
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 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 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 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 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
- Alphanumeric key uniquely identifying the document.
Constraints: Not nullable, Maximum length: 10
purchaseRequisitionItem
- Specifies the number that uniquely identifies an item in .
Constraints: Not nullable, Maximum length: 5
purchaseReqnAcctAssgmtNumber
- Specifies the serial number of the account assignment item in the purchase requisition.
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 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.Copyright © 2019 SAP SE. All rights reserved.