Create Purchase Order
s4_purchase_order_createCreate a purchase order with required company code, supplier, purchasing organization, group, order type, and items. Supports account assignment to sales orders for individual PO items.
Instructions
Create a purchase order with at least one item. Required header: companyCode, purchaseOrderType, supplier, purchasingOrganization, purchasingGroup. Required per item: plant, material, orderQuantity, netPriceAmount. For account-assigned items (e.g. category 'M' individual PO tied to a sales order), set item.accountAssignmentCategory and item.accountAssignment {salesOrder, salesOrderItem} — this creates a PurchaseOrderAccountAssignment record.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | Purchase order items | |
| supplier | Yes | Supplier/vendor number | |
| companyCode | Yes | Company code, e.g. '1010' | |
| purchasingGroup | Yes | Purchasing group, e.g. '001' | |
| additionalFields | No | Extra header fields merged into the request body as-is | |
| purchaseOrderType | Yes | PO type, e.g. 'NB' | |
| purchasingOrganization | Yes | Purchasing organization, e.g. '1010' |