cancel
Showing results for 
Search instead for 
Did you mean: 

Connect SAP on premise system with Google Drive so that we can call API's using ABAP

MadhavSharma
Explorer
0 Kudos
250

Hi Gurus,

I have some files stored in a google drive and I want to access these files from SAP using ABAP. I have created the client id and secret and also tested the authentication token with postman and it seems to be working fine in Postman. Now my question is that how to call the google drive API like "https://www.googleapis.com/drive/v3/files" from SAP using ABAP. Also how to get the auth token.

I have found one resource which talks about the same but I am not able to achieve it as SAP blocks HTTPS communication with google without SSL and we don't have the signed SSL certificate for it. Also do I need ABAP SDK for google cloud for achieving this?

Resource -> https://cloud.google.com/solutions/sap/docs/abap-sdk/on-premises-or-any-cloud/latest/authentication-...

Is there any way to communicate without SSL or by using HTTP rather than HTTPS?

Kindly help with this.

ulrich_mhrke
Explorer
0 Kudos
To get the SSL certificate for https://www.googleapis.com/drive/v3/files open it in a browser. Search the web for: download ssl certificate <name of your browser>.
View Entire Topic
turkaj
Active Participant

Hello,

Yes, there are several options. One of them is creating an HTTP object in SAP and calling Google Drive. You can then process the response and retrieve the data from Google Drive.

It is important, as ulrich_mhrke described, to import the certificates into the SAP system (transaction STRUST). Ideally, the entire certificate chain. Additionally, you need to ensure that you correctly pass the authentication tokens to the HTTP object. A simple example with code can be found here:

ABAP REST-API 

In general, you should search for ABAP REST-API in the SAP Community; you will find many helpful posts on this topic.


Regards
Jim

MadhavSharma
Explorer
0 Kudos
Thanks I have figured out and followed somewhat similar approach