2024 Aug 29 12:47 AM - edited 2024 Aug 29 12:50 AM
Hi
I started to write this question as I thought I needed the APIKey for a call to this API below. I am still wanting to know that.
I want to update an element via the API_BUSINESS_PARTNER ... I have set up the comms arrangement sap_com_008 with basic authentication for this test.
According to the API Hub an APIKey is needed - that is in fact not true !!!.🤔
As I can call the API without it and it does the PATCH just fine. But out of interest How can I get my SAP systems APIKey?🤔
In case you are interested in this part : Here is the API I am calling https://<my sap system>-api.s4hana.ondemand.com:443/sap/opu/odata/sap/API_BUSINESS_PARTNER/A_BusinessPartner('9980000760'). This has in the Authorization tab my communication arrangements userid/password credentials. The Headers have the CSRF token that I have obtained and it does not care about the APIKey. The thing does post/patch just fine without it.
Here are the steps etc I took so far to obtain my APIKey
I have set a clientid/secret for OAUTH calls to S4HC API in our SAP IAS Application for our S4HANA Cloud- Test Tenant (i,e, the S4HC D5X system) and the Client Authentication attribute tab - The ClientID was already there and I have added a Secret.
I then attempt to obtain the APIKey via https://<mysapsystem>-api.s4hana.ondemand.com:443/oauth/token
but I get a 403 - so how can I get my dang APIKey ?
Request clarification before answering.
Have you ever solved it?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
12 | |
9 | |
8 | |
8 | |
5 | |
4 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.