Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Get driving directions or Maps from Google using ABAP coding.

niranjan_yerraguntla
Participant
0 Likes
1,418

Hi,

We have a requirement to print driving directions from Google automatically as soon as Sales Order is saved. We can supply From Address as the address of Sales Office and TO address from Ship-To customer. I was looking at API provided by Google. http://www.google.com/apis/maps/documentation/#Driving_Directions

Has one tried getting driving directions or even maps from SAP ? I saw some posts on Google maps in SAP Netwever area but I just wanted to know if it is possible to use like Client proxy (Web Services) and get driving directions using ABAP coding.

Niranjan

Hi,

We have a requirement to print driving directions from Google automatically as soon as Sales Order is saved. We can supply From Address as the address of Sales Office and TO address from Ship-To customer. I was looking at API provided by Google. http://www.google.com/apis/maps/documentation/#Driving_Directions

Has one tried getting driving directions or even maps from SAP ? I saw some posts on Google maps in SAP Netwever area but I just wanted to know if it is possible to use like Client proxy (Web Services) and get driving directions using ABAP coding.

Niranjan

5 REPLIES 5
Read only

Former Member
0 Likes
987

Check out this weblogs -:)

<a href="/people/gregor.wolf3/blog/2006/06/27/geocode-business-partner-with-google-maps">Geocode Business Partner with Google Maps</a>

<a href="/people/oliver.mainka/blog/2007/05/30/new-google-maps-feature-street-view">New Google Maps Feature: Street View</a>

<a href="/people/frederic-pascal.ahring/blog/2007/05/24/developing-composite-applications-with-php--google-maps">Developing composite applications with PHP - Google Maps</a>

Greetings,

Blag.

Read only

Former Member
0 Likes
987

I dont think so, I might be wrong but the maximum interfacing I have seen OOPS ABAP coding do with ITES is setting up a desired homepage, I dont know the name of the class and the method but I will try to find it out for you, as a matter of fact FM call_web_browser can also call a web browser. But if you have a complex req such as printing maps , I guess you will need XI for that.

Again its just my point of view.

This is an interesting req though , please keep everyone posted in case you make it thriugh classic ABAP.

Good Luck

Read only

niranjan_yerraguntla
Participant
0 Likes
987

Hi,

We came up with a simple solution of using URL http://maps.google.com/maps?ie=UTF8&h1=en&q=' and appending FROM and TO address and calling CALL_BROWSER Function module. The FROM address is where the office is located and TO is taken from SHIP-TO Customer. It will open a new browser window and show Map and Driving directions in Internet explorer.

Niranjan

Read only

0 Likes
987

congrats !

but how did u map the sap from and to fields with the google from and to fields?? I am sure u didnt use set parameter id

Read only

niranjan_yerraguntla
Participant
0 Likes
987

Sammer,

We just get FROM and TO address and concatenate using %20 and append after the URL that I gave in previous posting.

51%20BELAMOSE%20AVE%20ROCKY%20HILL%2006067%20CT%20<b>to</b>%20FIRST%20AVENUE%20NEWYORK%2010020

Look for 'to' in URL that separates from FROM address.

Niranjan