cancel
Showing results for 
Search instead for 
Did you mean: 

Developing with SAP Integration Suite

nkrishna
Explorer
0 Kudos

I am trying all exercises from C_CPI_14 - Unit 3 - Exercise - Consume Purchase order API from SAP API Business Hub, Step 19 In the configuration view of the OData connector, select the Connection tab. Enter the Request URL you previously took note of. Deselect the CSRF token fetch.

When I tried to provide below URL in the Request & Reply - Address as specified in the document, I am getting connection error

https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_PURCHASEORDER_PROCESS_SRV

Can someone, please help me so that I can continue with my learning and complete.  Appreciation your inputs /

#Developing with SAP Integration Suite

nkrishna
Explorer
0 Kudos
Hello IIIya, I am using /A_PurchaseOrder, but issue I am facing is I am unable to connect to the system with api.sap.com (APIKey) .
Illya
Product and Topic Expert
Product and Topic Expert
0 Kudos
If you cannot access api.sap.com with your credentials (which usually must be the case), you must contact the SAP API group. Help information can be found at the bottom of the api.sap.com page. If you can access api.sap.com and successfully test the GET method A_PurchaseOrder there, everything is fine and you can proceed with the iFlow configuration.
View Entire Topic
Illya
Product and Topic Expert
Product and Topic Expert

Hi nkrishna,

the error tells us that it has something to do with the API key variable in the externalization step.

Please check the previous steps where you configure the API key (from step 12). First try not to use the externalization step. If it works, then it has something to do with how you configured the externalization step for the API key variable ( {{key}} ).

If it doesn't work either, then your API key may be incorrect. In this case, go back to
https://api.sap.com/api/API_PURCHASEORDER_PROCESS_SRV/tryout   .

and click the "Show API Key" button in the upper right corner to get the correct API key.

Hope, this will help you!
BR,
Illya

nkrishna
Explorer
0 Kudos

Hello lIlya,

Still I am facing problem while configuring OData connection, I am getting error message in step 1 - Failed to connect to the system

Address used - https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_PURCHASEORDER_PROCESS_SRV

I have removed externalization and used same API key created for my user in api.sap.com in the context modifier - header parameter - APIKey - TSU1f4dbpstPqUYFKV49dlHrV8Kan055

I even tried alternative option suggested by you - https://sandbox.api.sap.com/s4hanacloud/sap/opu/odata/sap/API_PURCHASEORDER_PROCESS_SRV/tryout, I am not able to move to step 2 from "Connect to the system"

 Error_1.PNG

Thanks & Regards,

Nagendra

 

Illya
Product and Topic Expert
Product and Topic Expert
0 Kudos
Hi Nagendra,