on 2023 Apr 05 8:44 AM
Dear SAP Community,
I'm testing out the OpenAPI from SAP API Business Hub for the S4 Hana Cloud system. I have configured the destination in the BTP. Tested the connection and it returns the status "302: Redirect".
I've downloaded the API specification from "https://api.sap.com/api/CE_PURCHASEORDER_0001/overview" then created an Action project for it.
Using the GET method available, I'm trying to retrieve the header data of a purchase order.
Above snip shows the API response, I received "403: Forbidden" error.
response.txt - API Response || api-general-header-and-body.txt - API Response Header & Body
I tested the same API on the SAP API Business Hub, it able to return the PO header details, but in the Actions project I failed to retrieve it.
Please help me highlight all the necessary settings in order to successfully test the API on an Actions project.
Thanks and Regards,
Nael
Request clarification before answering.
Hello Nael,
Have you create the communication user, system and scenario in your S/4HANA cloud system before configuring the destination? In your destination, you have give your communication user for basic authentication. Also, please run the API call you creating in Action Project once in any available REST client to ensure that you have the right URL, Authentication Details etc.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
63 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.