cancel
Showing results for 
Search instead for 
Did you mean: 

Certificates & authentication for consuming APIs from Ariba Open API in SAP ECC

YayatiEkbote
Contributor
0 Kudos

Hello experts,

I am trying to consume Supplier Data API from Ariba Open APIs into SAP ECC using methods of IF_HTTP_CLIENT.

On https://developer.ariba.com/api/, I have created the Application and I have received the API Key, OAuth Client ID and Client Secret.

I followed lot of blogs and posts to build the program in ECC.

I have divided the program in two parts -

1. Authenticate the call and get the access token

2. Use the Access token to get the data from API

For Authentication I am using URL https://api.ariba.com/v2/oauth/token as mentioned in the post https://blogs.sap.com/2018/04/05/apis-for-sap-saas-applications/.

Also the URLs are given in Environment details of Discover section in https://developer.ariba.com/api

So for authentication I am creating the object go_httlp_client of type if_http_client by passing URL https://api.ariba.com/v2/oauth/token.

I am adding parameters to the body -

user id

Password

OAuth Client ID

OAuth Client Secret

by using method go_http_client->request->if_http_entity~set_cdata as mentioned in the post http://www.sapalles.com/2016/11/18/consume-rest-oauth-service-from-abap-get-access-token-in-order-to...

then I am using method send to send the request and receive to get the response.

In response method I am getting SY-SUBRC = 1 (HTTP_COMMUNICATION_FAILURE) and in the response parameter I am getting 500 Native SSL error.

We have already Ariba SLP integrated with ECC using PI. Updated certificates exist in STRUST.

Kindly let me know if there is any specific certificate for Ariba Open APIs which I need to get installed/update in STRUST or there is some problem in coding approach?


Regards,

Yayati Ekbote

Accepted Solutions (0)

Answers (3)

Answers (3)

YayatiEkbote
Contributor
0 Kudos

Hello experts,

I am able to test the APIs on Postman application. But I coded the same thing in ABAP, I am getting native SSL error 500 issue. I tried installing Ariba API certificates but still the issue persists.

I am using the sample code provided by SAP on https://api.sap.com/api/supplierdataaccess/resource

Is anyone successfully using Ariba Open APIs in ABAP through custom code?

Regards,

Yayati Ekbote

YayatiEkbote
Contributor
0 Kudos

Hello Sirui,

You will get all the certificates for Ariba solutions on https://connect.ariba.com or https://support.ariba.com/Connect/Log_In

Regards,

Yayati Ekbote

YayatiEkbote
Contributor
0 Kudos

Hello experts,

Is anyone using Ariba Open APIs in ECC or S/4 HANA environment? I am able to test APIs in Postman but getting SSL error in ECC. We have downloaded latest certificate api-2.ariba.com from Ariba connect and installed in STRUST. But still getting 500 Native SSL error. I checked trace log in SMICM but could not understand much.

Kindly suggest.

Regards,

Yayati Ekbote

SiruiLiu
Participant
0 Kudos

Hi Yayati,

did you solve this issue?

I am trying to find the latest certificates for all Ariba Solution, do you know where I can get them? I tried to search in connect, but no luck.

Best regards,

Sirui