cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hello SAP developers,

So the problem I am trying to solve involves connecting to MS Graph API in ABAP (cloud foundry) where the classes are slightly different to normal on-premise systems.
I can connect to open APIs in ABAP cloud that don't require authentication, many examples online of this, however not what I need.

How do you connect using refresh tokens and client secret using abap cloud, and finally display the payload in a z-table? Do you use destinations or is it better to set it all manually in the abap class/program?

I have already been through the following;

OAuth Credentials
https://help.sap.com/docs/CP_CONNECTIVITY/cca91383641e40ffbe03bdc78f00f681/4e1d742a3d45472d83b411e14...

Destination connection in abap cloud from BTP
https://developers.sap.com/tutorials/abap-environment-external-api.html#237e1bf4-668e-4c95-871e-4258...

SAP BTP and Azure integration
https://blogs.sap.com/2021/07/08/sap-btp-integration-with-microsoft-azure/

Connect MS Graph to Destination in BTP
https://blogs.sap.com/2020/10/12/consuming-microsoft-365-api-in-the-cloud-application-programming-ca...

Consume REST API in ABAP Cloud
https://blogs.sap.com/2020/10/27/consuming-rest-apis-with-cloud-abap/

Also, this connection in POSTMAN works fine, can see the payload no worries and all the data I need. So from the Azure side it is set-up fine.

Thanks so much,

Paul

0 Likes
View Entire Topic
gregorw
SAP Mentor
SAP Mentor
0 Likes

Are you aware of the ABAP SDK for Azure?

paulThink180
Explorer
0 Likes

Hi Gregor,

Yes, I have looked through your posts on this topic, we didn't pursue as it looked like you needed the SAP GUI. Do you know if there is a way to use ABAP SDK for Azure using the Cloud BTP?

We will try the SDK on our 2020 on premise system to see how it goes but our deployment is in the cloud foundry. Otherwise SDK would have been perfect for us.

Unless I am missing something?