Application Development 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: 

using Google Maps API inside Report

saurabh_chikate
Active Participant
0 Kudos

Hi all,

I am trying to display map inside report by referring to this document Javascript and HTML in ABAP report - ABAP Development - SCN Wiki.

In its HTML section i tried static HTML code with success.

but when i try to use code with google API , output comes as blank screen.

(note : google maps API needs to go online, is it supported in report? )

2 REPLIES 2

Former Member
0 Kudos

Hi Saurabh,

Please try this.

1. Generate the URL in your program code using street, house no, postcode/Pin/Zip code. Check help like in the browser . It always follows a pattern.

e.g : Google Maps

2. Then call that URL via CL_ABAP_BROWSER

CALL METHOD cl_abap_browser=>show_url

  EXPORTING

    url          = <URL>

**    title        =

**    size         = CL_ABAP_BROWSER=>MEDIUM

**    modal        = ABAP_TRUE

**    printing     = ABAP_FALSE

**    buttons      = NAVIGATE_OFF

**    format       = CL_ABAP_BROWSER=>LANDSCAPE

**    position     = CL_ABAP_BROWSER=>TOPLEFT

**    container    =

**    context_menu = ABAP_FALSE



R   .

ipravir
Active Contributor
0 Kudos

Hi Saurabh,

You have to create a new service in SICF with respect to Google Map.

The customized service should be in


          SICF-->DEFAULT_HOST-->SAP-->BC-->


     It’s HTTP based service.Create a customized class and pass in Handler List Tab. Use IF_HTTP_EXTENSION interface and write the code inside the      IF_HTTP_EXTENSION~HANDLE_REQUEST Method.

You can refer below blog, where i have displayed the Google Map and explain the all respective steps which needs to be consider.

Praveer.