Connect SAP S/4HANA purchase orders to Joule Studio
A purchase order lookup is a practical first Joule skill. It has a single input, a clear source of truth, and an output you can compare with the order in SAP S/4HANA.
Start with one known purchase order
Choose a test purchase order you can already display in S/4HANA. Record the fields you want Joule to show, such as the purchase order number, supplier identifier, order date and currency. Keep the purchase order number as text so the skill preserves leading zeros when present.
Test the API and destination
In your test landscape, confirm which purchase order API is enabled. For the OData V2 service API_PURCHASEORDER_PROCESS_SRV, test the metadata and a read against A_PurchaseOrder using the destination intended for the action. Verify the client, authentication and read permissions with your administrator if the request fails.
Build and test the action
Import the API into an SAP Build action project and expose the purchase order header read. Test the action with a known order before mapping it in Joule Studio. Inspect the successful response to identify the exact fields your skill should return.
Map the inputs and format the response
Add a purchase order number input to the skill. Pass it into the action and map the returned fields into a readable response. Test a valid order and an unknown order so you can verify how the skill handles both results.
Try the complete workflow
Ask Joule “Show me purchase order 4500002660,” substituting a valid test order from your system. Compare the answer with S/4HANA, then add item details once the header lookup is reliable.
Questions about SAP Joule training?
Email ERP Agents at [email protected].
Want this running in your SAP landscape?
We build SAP Joule agents and SAP Build workflows on real S/4HANA processes, and train your team to do it themselves.