SAP SDN

abap2gapps: is your ABAP ready for the Google cloud?

Ladies and Gentleman did you ever thought to use you old ABAP system to use modern cloud services?

Last year SAP Mentor Uwe Fetzer (@se38) published his Twibap, a simple Twitter API to use in order to read and post Tweets on Twitter, today I will present you abap2gapps an API prototype in order to interact basically with all Google services that use new OAuth2 authentication.

image

abap2gapps uses API provided by another Code Exchange project, that we release today, OAuth2.

Wait a moment, what is OAuth2?

You can’t answer the question; you should read this blog OAuth2: Next generation authentication API

abap2gapps

abap2gapps gives you a very easy framework to communicate and operate with Google services. This version allows you to use only Google Spreadsheet service and to perform only 2 actions: request spreadsheets list and create a new spreadsheet on Google document uploading a file from an ABAP system.

Consider this Google Document folder, it shows 2 spreadsheets

image

Using abap2gapps I’m capable to retrieve the spreadsheet file list directily from an abap system

image

The next question is: “How much is my effort to create such kind of report?”

As always we want to make developer life easy and provide you the easiest APIs, try to have a look at the code extract below

image

Only 2 methods call and abap2gapps will do the dirty work: authenticate on Google, make the request on Google documents, parse the request and give you back the result. Easy enought?

We want more, let’s try to upload a file on Google Document…

image

Whaaaat?! 2 methods call, nothing else? Yes, abap2gapps is designed to make developers life something incredible.

As the code is released on Code Exchange community is encouraged to join in the project and provide new features and also integration with different Google services like Calendar, Google storage and so on.

Code, installation and configuration instructions will be released in the next days on Code Exchange abap2gapps page.

The abap2gapps team

The project was made possible thanks to the important contribution of Techedge Labs team, particularly Giacomo Morittu and Alessandro
Iannacci
. 

References

2 thoughts on “abap2gapps: is your ABAP ready for the Google cloud?”

Leave a Reply