@Named(value="com.sap.cloud.sdk.s4hana.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 Cloud or 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.
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), Procure-to-Pay with SAP Ariba Buying and Invoicing (1ZM), Guided Buying Capability with SAP Ariba Buying (2NV), One Procurement (4AI), Consumable Purchasing (BNX), Service and Material Procurement - Project-Based Services (J13), Procurement of Direct Materials (J45), Physical Inventory - Inventory Count and Adjustment (OML) |
Authentication Methods: | Basic, x509 |
Business Object: | PurchaseRequisition |
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
- 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
documentText
- The text ID defines the various types of texts related to a text object. For example, the object
"TEXT" (standard texts) can have the following text IDs:
Constraints: Not nullable, Maximum length: 4
technicalObjectType
- In business applications, a text is not considered an independent object. A text can only exist if it
has a superior reference object. A material inspection text, for example, only exists if there is a
corresponding material. The application object of a text is therefore the global environment in which
a text exists.
Constraints: Not nullable, Maximum length: 10
language
- The language key indicates
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
- 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 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.