public interface PurchaseOrderService
This synchronous inbound service enables you to create, update, and delete purchase orders with the data provided in a payload. It is based on the OData protocol and can be consumed in Fiori apps and on other user interfaces.
Reference: SAP API Business Hub
OData Service: | API_PURCHASEORDER_PROCESS_SRV |
API Version: | 1 |
Communication Scenario: | Distributed Manufacturing Integration (SAP_COM_0077), Purchase Order Integration (SAP_COM_0053) |
Scope Items: | Integration with SAP Distributed Manufacturing with SAP S/4HANA Cloud (1NX), Consumable Purchasing (BNX), Service and Material Procurement - Project-Based Services (J13), Procurement of Direct Materials (J45) |
Authentication Methods: | Basic, x509 |
Business Object: | PurchaseOrder |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_SERVICE_PATH
If no other path was provided via the
withServicePath(String) method, this is the default service path
used to access the endpoint. |
static final String DEFAULT_SERVICE_PATH
withServicePath(String)
method, this is the default service path
used to access the endpoint.@Nonnull PurchaseOrderService withServicePath(@Nonnull String servicePath)
servicePath
- Service path that will override the default.@Nonnull PurchaseOrderFluentHelper getAllPurchaseOrder()
PurchaseOrder
entities.PurchaseOrder
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 PurchaseOrderByKeyFluentHelper getPurchaseOrderByKey(String purchaseOrder)
PurchaseOrder
entity using key fields.purchaseOrder
- Purchase Order Number
Constraints: Not nullable, Maximum length: 10
PurchaseOrder
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 PurchaseOrderCreateFluentHelper createPurchaseOrder(@Nonnull PurchaseOrder purchaseOrder)
PurchaseOrder
entity and save it to the S/4HANA system.purchaseOrder
- PurchaseOrder
entity object that will be created in the S/4HANA system.PurchaseOrder
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull PurchaseOrderUpdateFluentHelper updatePurchaseOrder(@Nonnull PurchaseOrder purchaseOrder)
PurchaseOrder
entity and save it to the S/4HANA system.purchaseOrder
- PurchaseOrder
entity object that will be updated in the S/4HANA system.PurchaseOrder
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull PurchaseOrderDeleteFluentHelper deletePurchaseOrder(@Nonnull PurchaseOrder purchaseOrder)
PurchaseOrder
entity in the S/4HANA system.purchaseOrder
- PurchaseOrder
entity object that will be deleted in the S/4HANA system.PurchaseOrder
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull PurchaseOrderItemFluentHelper getAllPurchaseOrderItem()
PurchaseOrderItem
entities.PurchaseOrderItem
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 PurchaseOrderItemByKeyFluentHelper getPurchaseOrderItemByKey(String purchaseOrder, String purchaseOrderItem)
PurchaseOrderItem
entity using key fields.purchaseOrder
- Alphanumeric key uniquely identifying the document.
Constraints: Not nullable, Maximum length: 10
purchaseOrderItem
- Item Number of Purchase Order
Constraints: Not nullable, Maximum length: 5
PurchaseOrderItem
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 PurchaseOrderItemCreateFluentHelper createPurchaseOrderItem(@Nonnull PurchaseOrderItem purchaseOrderItem)
PurchaseOrderItem
entity and save it to the S/4HANA system.purchaseOrderItem
- PurchaseOrderItem
entity object that will be created in the S/4HANA system.PurchaseOrderItem
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull PurchaseOrderItemUpdateFluentHelper updatePurchaseOrderItem(@Nonnull PurchaseOrderItem purchaseOrderItem)
PurchaseOrderItem
entity and save it to the S/4HANA system.purchaseOrderItem
- PurchaseOrderItem
entity object that will be updated in the S/4HANA system.PurchaseOrderItem
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull PurchaseOrderItemDeleteFluentHelper deletePurchaseOrderItem(@Nonnull PurchaseOrderItem purchaseOrderItem)
PurchaseOrderItem
entity in the S/4HANA system.purchaseOrderItem
- PurchaseOrderItem
entity object that will be deleted in the S/4HANA system.PurchaseOrderItem
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull PurchaseOrderScheduleLineFluentHelper getAllPurchaseOrderScheduleLine()
PurchaseOrderScheduleLine
entities.PurchaseOrderScheduleLine
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 PurchaseOrderScheduleLineByKeyFluentHelper getPurchaseOrderScheduleLineByKey(String purchasingDocument, String purchasingDocumentItem, String scheduleLine)
PurchaseOrderScheduleLine
entity using key fields.purchasingDocument
- Alphanumeric key uniquely identifying the document.
Constraints: Not nullable, Maximum length: 10
scheduleLine
- Alphanumeric key uniquely identifying the document.
Constraints: Not nullable, Maximum length: 4
purchasingDocumentItem
- Specifies the number that uniquely identifies an item in .
Constraints: Not nullable, Maximum length: 5
PurchaseOrderScheduleLine
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 PurchaseOrderScheduleLineUpdateFluentHelper updatePurchaseOrderScheduleLine(@Nonnull PurchaseOrderScheduleLine purchaseOrderScheduleLine)
PurchaseOrderScheduleLine
entity and save it to the S/4HANA system.purchaseOrderScheduleLine
- PurchaseOrderScheduleLine
entity object that will be updated in the S/4HANA system.PurchaseOrderScheduleLine
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull PurOrdAccountAssignmentFluentHelper getAllPurOrdAccountAssignment()
PurOrdAccountAssignment
entities.PurOrdAccountAssignment
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 PurOrdAccountAssignmentByKeyFluentHelper getPurOrdAccountAssignmentByKey(String purchaseOrder, String purchaseOrderItem, String accountAssignmentNumber)
PurOrdAccountAssignment
entity using key fields.purchaseOrder
- Alphanumeric key uniquely identifying the document.
Constraints: Not nullable, Maximum length: 10
accountAssignmentNumber
- Number uniquely defining the account assignment of a purchase document item.
Constraints: Not nullable, Maximum length: 2
purchaseOrderItem
- Specifies the number that uniquely identifies an item in .
Constraints: Not nullable, Maximum length: 5
PurOrdAccountAssignment
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 PurOrdAccountAssignmentUpdateFluentHelper updatePurOrdAccountAssignment(@Nonnull PurOrdAccountAssignment purOrdAccountAssignment)
PurOrdAccountAssignment
entity and save it to the S/4HANA system.purOrdAccountAssignment
- PurOrdAccountAssignment
entity object that will be updated in the S/4HANA system.PurOrdAccountAssignment
entity. To perform execution, call the
execute
method on the fluent helper object.@Nonnull PurOrdPricingElementFluentHelper getAllPurOrdPricingElement()
PurOrdPricingElement
entities.PurOrdPricingElement
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 PurOrdPricingElementByKeyFluentHelper getPurOrdPricingElementByKey(String purchaseOrder, String purchaseOrderItem, String pricingDocument, String pricingDocumentItem, String pricingProcedureStep, String pricingProcedureCounter)
PurOrdPricingElement
entity using key fields.pricingDocumentItem
- The number that uniquely identifies the condition item.
Constraints: Not nullable, Maximum length: 6
pricingProcedureCounter
- Access number of the conditions within a step in the pricing procedure.
Constraints: Not nullable, Maximum length: 3
purchaseOrder
- Alphanumeric key uniquely identifying the document.
Constraints: Not nullable, Maximum length: 10
purchaseOrderItem
- Specifies the number that uniquely identifies an item in .
Constraints: Not nullable, Maximum length: 5
pricingProcedureStep
- Number that determines the sequence of the condition within a procedure.
Constraints: Not nullable, Maximum length: 3
pricingDocument
- The internal number under which the system saves conditions that apply to a sales order, for example.
Constraints: Not nullable, Maximum length: 10
PurOrdPricingElement
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.Copyright © 2019 SAP SE. All rights reserved.