on 2024 Sep 04 6:36 AM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.