Sometimes you need to use short URL instead of the full URL. For example your URL in a table printed inside a PDF form with adobe livecycle, may be very very long, and sometimes is not so beautiful (or not working at all).
How to do that in ABAP?
There are different ways, as you can see from this great blog post from Ivan Femia
Anyway you may know, Google offer this service for free if you stay under the following limit:
1,000,000 requests/day
So... we all guys know Google as one of the best service providers in the world, why don't we leverage this opportunity?
Maybe you know this blog post: Integrating Google Glasses with SAP
As I explained there, the GOOGLE API ABAP CLIENT is already supporting Google Glasses, and has the same structure of the standard Google Php APIs, so I could add the support for the Google URL shortener service just adding few code lines and two abap classes!
And in just 1 hr, we got out functionality
If you have any other google services that may be useful for your business processes, just drop me an email and I will extend the framework, or join directly the project on GitHub here: Gh14Cc10/google-api-ABAP-client · GitHub
----
To make the new functionality working, just clear (eventually) the table zgoogle_access (this is required because the requested access token has a different scope from the one requested with the google glasses demo report), and run the demo report ZGOOGLE_TEST_URLSHORTENER.