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

I haven't noticed that you're using Steampunk in my initial response. Have you tried to follow HTTP Communication via Communication Arrangements?

paulThink180
Explorer
0 Likes

Yes, funny you mention that, we are currently looking through that option now to see if it helps with making the API call in cloud-foundry. Will update here if we have any success.
I guess another option is to use on-premise to do the API calling to MSGraph, then use cloud connector to link up with our steampunk environment?

gregorw
SAP Mentor
SAP Mentor
0 Likes

Going from a Cloud Solution to On Prem to call a Cloud Solution sould not be the way to go. Maybe hobruche can get the right people involved here.