How to Integrate Google Maps into a Web Dynpro ABAP Application Using the Page Builder

Similar documents
How to Integrate Microsoft Bing Maps into SAP EHS Management

Duet Enterprise: Tracing Reports in SAP, SCL, and SharePoint

Single Sign-on For SAP NetWeaver Mobile PDA Client

Visual Composer for SAP NetWeaver Composition Environment - Connectors

SAP AddOn Quantity Distribution. by Oliver Köhler, SAP Germany

How to Find Suitable Enhancements in SAP Standard Applications

SAP NetWeaver Identity Management Identity Center Minimum System Requirements

Visual Composer Modeling: Data Validation in the UI

BC100. Introduction to Programming with ABAP COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

BC410. Programming User Dialogs with Classical Screens (Dynpros) COURSE OUTLINE. Course Version: 10 Course Duration: 3 Day(s)

Quick View Insider Microblog: Why Is There No Inbox?

How to Handle the System Message in SAP NetWeaver Mobile 7.1

Enterprise Search Extension for SAP Master Data Governance

How to Enable Single Sign-On for Mobile Devices?

Configuring relay server in Sybase Control Center

Visual Composer Modeling: Migrating Models from 7.1.X to 7.2.0

Duplicate Check and Fuzzy Search for Accounts and Contacts. Configuration with SAP NetWeaver Search and Classification (TREX) in SAP CRM WebClient UI

EWM125. Labor Management in SAP EWM COURSE OUTLINE. Course Version: 16 Course Duration: 4 Hours

BIT460. SAP Process Integration Message Mapping COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

NET311. Advanced Web Dynpro for ABAP COURSE OUTLINE. Course Version: 10 Course Duration: 4 Day(s)

PLM210. Master Data Configuration in SAP Project System COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

SAP BusinessObjects Predictive Analysis 1.0 Supported Platforms

Visual Composer s Control Types

BC400. ABAP Workbench Foundations COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

How to reuse BRFplus Functions Similar to R/3 Function Modules using BRF+ Expression Type Function Call

Testing Your New Generated SAP NetWeaver Gateway Service

Message Alerting for SAP NetWeaver PI Advanced Adapter Engine Extended

NET312. UI Development with Web Dynpro for ABAP COURSE OUTLINE. Course Version: 10 Course Duration: 4 Day(s)

Quick View Insider: Understanding Quick View Configuration

DS50. Managing Data Quality with SAP Information Steward COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

Quick View Insider: How Do I Set Quick View as SNC s Entry Screen?

BC400 Introduction to the ABAP Workbench

BC405 Programming ABAP Reports

Crystal Reports 2008 FixPack 2.4 Known Issues and Limitations

BC430 ABAP Dictionary

Installing SAP NetWeaver Mobile Client (eswt) on a Storage Card

ADM950. Secure SAP System Management COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

Web Dynpro: Column Coloring in ALV

BC404. ABAP Programming in Eclipse COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

AC507. Additional Functions of Product Cost Planning COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Quick View Insider: How Can I Change the Colors? (SNC 7.0)

ADM900 SAP System Security Fundamentals

BC480 PDF-Based Print Forms

BW Text Variables of Type Replacement Path

BOCE20. SAP Crystal Reports for Enterprise: Advanced Report Design COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

How to Set Up Data Sources for Crystal Reports Layouts in SAP Business One, Version for SAP HANA

MDG100 Master Data Governance

ADM950. Secure SAP System Management COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

How to Check or Derive an Attribute Value in MDG using BRFPlus

Using JournalEntries and JournalVouchers Objects in SAP Business One 6.5

DEV523 Customizing and Extending PowerDesigner

How to Download Software and Address Directories in SAP Service Marketplace

Manual Activities of SAP Note Globalization Services, 2012/06/05

BOC320. SAP Crystal Reports - Business Reporting and Report Processing Strategies COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

BC490 ABAP Performance Tuning

BOC310. SAP Crystal Reports: Fundamentals of Report Design COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

TBIT44 PI Mapping and ccbpm

Building a Real-time Dashboard using Xcelsius and Data Integrator

GRC100. GRC Principles and Harmonization COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

HA150 SQL Basics for SAP HANA

SAP Afaria Post- Installation Part 1

Business Objects Integration Scenario 2

ADM100 AS ABAP - Administration

Using Default Values in Backend Adapter

How to Work with Analytical Portal

Working with Data Sources in the SAP Business One UI API

EP350. Innovated Content Management and Collaboration COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

EDB358. System and Database Administration: Adaptive Server Enterprise COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

How to Use Context Menus in a Web Dynpro for Java Application

Personalizing SAP BusinessObjects Explorer Information Spaces

OData Service in the SAP Backend System for CRUDQ Operations in Purchase Order Scenario

ADM960. SAP NetWeaver Application Server Security COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day

EDB785 SAP IQ Administration

ADM960. SAP NetWeaver Application Server Security COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

ADM920 SAP Identity Management

How to Guide to create Sample Application in IOS using SUP ODP 2.2

AFA461 SAP Afaria 7.0 System Administration (SP03)

BW310. BW - Enterprise Data Warehousing COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

LO Extraction - Part 6 Implementation Methodology

Upgrade MS SQL 2005 to MS SQL 2008 (R2) for Non-High-Availability NW Mobile ABAP System

EDB367. Powering Up with SAP Adaptative Server Enterprise 15.7 COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

TBIT40 SAP NetWeaver Process Integration

BC401. ABAP Objects COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

EDB116. Fast Track to SAP Adaptive Server Enterprise COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

SAP BusinessObjects Dashboards 4.0 SAP Crystal Dashboard Design 2011 SAP Crystal Presentation Design 2011

TBW30 SAP BW Modeling & Implementation

SMP541. SAP Mobile Platform 3.0 Native and Hybrid Application Development COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

What s New / Release Notes SAP Strategy Management 10.1

EP200. SAP NetWeaver Portal: System Administration COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

How to Access Images of SAP Netweaver Demo Model JAVA

Overview of Caffeine ABAP to Go

How to do a Manual Kernel Upgrade of an SAP Server

Upgrading to CR 2008 V1 / SP1

SAP ME Build Tool 6.1

How to Package and Deploy SAP Business One Extensions for Lightweight Deployment

Using Xcelsius 2008 with SAP NetWeaver BW

Remote Monitoring User for IBM DB2 for LUW

SMP521. SAP Mobile Platform - Native and Hybrid Application Development COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

Automatic Deletion of Similar/Identical Requests from InfoCube after Update

EDB377. Fast Track to SAP Replication Server Administration COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

Transcription:

How to Integrate Google Maps into a Web Dynpro ABAP Application Using the Page Builder Applies to: Web Dynpro ABAP in enhancement package 2 for SAP NetWeaver 7.0. For more information, visit the Web Dynpro ABAP homepage. Summary This tutorials aims to explain how to use the Web Dynpro ABAP Page Builder, a new runtime authoring tool, to easily build Web Dynpro pages using CHIPs (Collaborative Human Interface Parts). In this example, we will show you how to display a route with Google Maps where the start and end of the route are transferred from Web Dynpro. AuthoR: Company: Stefanie Bacher SAP AG Created on: June 19, 2010 Author Bio Stefanie Bacher works as a product specialist within the SAP NetWeaver Knowledge Management Area. She focusses on UI Technology, in particular Web Dynpro. 2010 SAP AG 1

Table of Contents Introduction... 3 Start the Page Builder... 3 Create the Application Configuration... 3 Start the Page Builder... 3 Prepare the Layout... 4 Embed the CHIPs for Defining Start Point and Destination... 4 Create an IFrame-CHIP Pointing to Google Maps... 5 Define the Inport-Parameters... 5 Embed the Google CHIP into your Page... 6 Test your Application... 7 Related Content... 8 2010 SAP AG 2

Introduction In the Web Dynpro ABAP Page Builder, you normally use Web Dynpro ABAP based CHIPs to define the content of your page, but you can also create URL-based CHIPs.These CHIPs are called IFrame CHIPs and can display a web page and allow you to define parameters as inports. In this example, we show you how to create an Iframe CHIP that points to Google Maps and is able to transfer parameters that define a starting point and a destination for a travel route. Prerequisite You are familiar with the basics of the Web Dynpro ABAP Page Builder, as described in the documentation: Web Dynpro ABAP Page Builder This means: If you need a step-by-step description and you cannot find it in this document, check this link! Start the Page Builder Create the Application Configuration 1. In the ABAP Workbench (transaction SE80), display the WDR_CHIP_PAGE Web Dynpro component. In the context menu of the WDR_CHIP_PAGE application choose Create/Change Configuration. 2. Specify a unique configuration ID, such as MY_CHIP_APP_CONF. 3. Choose the Create pushbutton. 4. Enter a description text and specify a package to which the configuration is to be assigned. 5. Choose the OK pushbutton. 6. On the Structure tab, select a appropriate component configuration, or create a new one. 7. Save your entries. Your configuration now appears under application wdr_chip_page, under node Application Configurations. You may need to refresh the tree display in the ABAP Workbench to see this. Start the Page Builder 1. In the context menu of your application configuration MY_CHIP_APP_CONF, choose Test. The Page Builder starts with the URL parameter of your application, for example sap-wdconfigid=my_chip_app_conf. 2. To create and edit your page, switch to the configuration mode by adding the parameter &sapconfig-mode=config to end of the URL in the address bar. This takes you to the runtime authoring environment of the Page Builder. 2010 SAP AG 3

Prepare the Layout In this example, we use two generic CHIPs that are able to send parameters: one for the starting point and the other for the destination of the respective route. The layout shall have three containers, Start and Destination for the CHIPs where the user can enter the locations, and Map where the Google Map will be displayed: To achieve this: 1. Choose (Edit Container Properties) and then choose Insert Column from the dropdown list. 2. Choose (Edit Container Properties) once more and then choose Insert Row from the dropdown list.. 3. In the left container of the second row, choose (Edit Container Properties) and choose Connect with Container on right 4. Adapt the containers widths to your needs. 5. Save your configuration. Embed the CHIPs for Defining Start Point and Destination For the sake of simplicity, we will just use a generic test CHIP called CHIP with Outport. This CHIP uses a generic output parameter so you don t have to develop a separate CHIP for this. We will use this CHIP twice, firstly to define the starting point of the journey and secondly to define our destination. To embed the CHIPs: 1. Open the CHIP catalog by clicking the CHIP catalog link in the header area. open the folder Web Dynpro CHIPs and select CHIP with Outport (field name: X-SAP-WDY-CHIP:SINGLE_OUTPORT_CHIP) 2. Drag this CHIP to the upper left container until the blue-dashed drop area becomes visible. Then drop it. 3. Repeat the last two steps for the upper right container. 4. To be able to distinguish between these two CHIPs when you connect them to the Google Maps CHIP, give them unique titles. To do so, open the CHIP Tray s Option Menu enter Start for the first CHIP and Destination for the second one. 5. Save your configuration and choose Change Title, 2010 SAP AG 4

Create an IFrame-CHIP Pointing to Google Maps 1. In the CHIP catalog, in the context menu of the IFrame-CHIPs node, choose Create. The editor for the Web Dynpro ABAP component configuration starts for the CHIP_IFRAME_CONFIG component. 2. Enter a configuration ID, such as MY_GOOGLE_MAPS and choose Create. 3. Enter a description, select the relevant package and confirm by choosing the OK pushbutton. 4. On the Component-Defined tab, select header and and define the attributes as follows: Attribute Name Value address http://www.google.de/maps?output=embed CHIP: Icon ~Icon/GeographicalInfoSystem CHIP: Title Google Map CHIP: Description Display a map with Google Maps height 500 5. Save the component configuration for your CHIP. Define the Inport-Parameters To display a route in Google Maps, two inport parameters are needed: SADDR for the starting point DADDR for the destination It s important to stick to these names exactly! 1. To define these parameters, in the editor for the Web Dynpro ABAP component configuration, select context in the Configuration Context screen area, then choose Add -> inports. 2. Enter a name for the inport, for example Route and enter a description and a descriptive name accordingly. 3. For this inport you need two paraminfos: one for the start address and one for the destination. To create these, in the context menu of the inport row, choose Create - > paraminfo. 4. Enter SADDR as the field name. 5. Repeat the previous step, to create another inport called DADDR. 6. Save your configuration. 2010 SAP AG 5

Your CHIP is now displayed in the CHIP catalog: CHIPs folder, choose Refresh. - if not, in the context menu of the IFrame- Embed the Google CHIP into your Page You can now embed this new CHIP into your page. 1. To do so, drag and drop the CHIP from the CHIP catalog to the container in the second row of your page. 2. In the CHIP tray s Option menu, choose Display Connection. 3. The inport called Route (which you created for this CHIP) is displayed with its two inport parameters. For the starting point (SADDR), enter Start (if this is not already suggested) as the source. Then enter Parameter Value of CHIP Definition as the outport parameter. Usually this parameter would show a more meaningful name, this name results of the fact that we have taken a generic CHIP. 4. For the destination enter Destination as the source and enter the generic output parameter Parameter Value of CHIP Definition. Confirm your entries by choosing the Apply pushbutton. The details of your connection are now displayed: 5. Close this extension and save your configuration. 2010 SAP AG 6

Test your Application Now you can test whether your application works. 1. Remove the configuration parameter (sap-config-mode) from the URL to start the application. 2. Enter a city or a postal code in the input fields for Start and Destination and confirm by pressing the Fire Outport pushbuttons for both CHIPs: Here we go! 2010 SAP AG 7

Related Content Web Dynpro ABAP Page Builder Documentation on SAP Help Portal New in Web Dynpro ABAP with SAP NetWeaver 7.0 EhP2 For more information, visit the Web Dynpro ABAP homepage. 2010 SAP AG 8

Copyright Copyright 2010 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iseries, pseries, xseries, zseries, eserver, z/vm, z/os, i5/os, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries. Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects S.A. in the United States and in other countries. Business Objects is an SAP company. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this docume nt serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Gro up shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. 2010 SAP AG 9