Skip to Content

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: the ABAP Twitter API, 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

Whaaat?! 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

To report this post you need to login first.

5 Comments

You must be Logged on to comment or reply to a post.

  1. Robert Lorentzen
    Great work. A year or two ago I was looking for an easy way to make a (REST) twitter client in ABAP without luck. It seems closer now. Could the same project expand to include Twitter and Facebook?  Any thoughts on security aspects?

    (0) 
  2. Klaus Herter
    I am working in a related context based on StreamWork REST consumption.
    I did a similar approach for Google resources to evaluate the infrastructure needs
    for a more generalized REST consumption infrastructure.
    Would be great to share some thoughts in the near future.
    Best Regards,
    Klaus
    (0) 
    1. Ivan Femia Post author
      Klaus,

      I suggest you to join the project on code Exchange.
      Feel free to contact and discuss in deep on this topic. Will you be at TechEd in Madrid?

      Regards,
      Ivan

      (0) 
  3. Christopher Twirbutt

    Hello Ivan et al,

    I wanted to share with you a project that I worked on with my colleague Forrest Horner.

    We have a need to update Google Fusion tables from SAP/ABAP without any user interaction (no scraping Google’s Auth Code from the browser window, etc.).

    We were able to do this successfully finally using two HTTP POST commands using the HTTP_CLIENT object in SAP/ABAP.

    See my link here for more information:

    https://github.com/ctwirbutt/ABAP-TO-GOOGLE

    Always good to share this information for others to benefit from (we did struggle with this for some time and it would have been great to see an easy solution such as this)!  🙂

    (0) 

Leave a Reply