cancel
Showing results for 
Search instead for 
Did you mean: 

How to obtain my S4HC APIKey

peter_munt4
Participant
258

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.

peter_munt4_2-1724888705877.png

 

 

 

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.

peter_munt4_1-1724889003080.png

 

 

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 ?

peter_munt4_0-1724888959400.png

 

 

 

View Entire Topic
ABC1231231
Discoverer

Have you ever solved it?

peter_munt4
Participant
nope never did. We are on our own with most of this stuff it seems.