HTML Mashups A mashup that embeds an HTML or JavaScript based Web page directly on a screen.

Similar documents
Attachment Folder in Custom Business Object ROOT LEVEL & NODE LEVEL. Sankaran SAP Business ByDesign blog.sankaranss.com

Weather Report in SAP ByDesign

TeamViewer User Guide for Microsoft Dynamics CRM. Document Information Version: 0.5 Version Release Date : 20 th Feb 2018

BUILD YOUR OWN SAP FIORI APP IN THE CLOUD Exercise Week 5

QRG: Adding Images, Files and Links in the WYSIWYG Editor

SAP Favorites. You can manage your own SAP menu Favorites in multiple ways: 1. From the SAP menu bar click on Favorites to display your options:

LinkedIn Sales Navigator for MS Dynamics 2016 and 365 Installation Guide

BlueMix Hands-On Workshop Lab A - Building and Deploying BlueMix Applications

Kendo UI. Builder by Progress : Using Kendo UI Designer

SCRIPT REFERENCE. UBot Studio Version 4. Action Commands

Perform a Server Move for Junxure

Adding a RSS Feed Custom Widget to your Homepage

Workspace Administrator Help File

User Guide. Version 8.0

Overview of Web Interface to CenturyLink B2B Gateway

Make Your Computer Get Along With the MLS - 7 Easy Steps - (with pictures!)

CREATING JUMP SEARCHES WITH THE XACTSITE WEB SITES

1 Setting Up Your Auto Login Link in Windows

Building Block Installation - Admins

Simple sets of data can be expressed in a simple table, much like a

COMSC-031 Web Site Development- Part 2. Part-Time Instructor: Joenil Mistal

'phred dist acd.tar.z'

Tutorial. Unit: Interactive Forms Integration into Web Dynpro for Java Topic: Dynamically generated forms

You can use Dreamweaver to build master and detail Web pages, which

Technical Issues: Please Contact (Teresa Saljanin)

Kendo UI. Builder by Progress : What's New

Website Management with the CMS

Colligo Manager for Outlook User Guide. User Guide

Working with Confluence Pages

High Impact 3.0 and ACT! HTML Merge

Restrict Access to Files on Public Website. Upload File(s) User Guide

XML Tutorial. NOTE: This course is for basic concepts of XML in line with our existing Android Studio project.

Lab: Relational Universe Create Predefined Filters

Using Sitecore 5.3.1

BindTuning Installations Instructions, Setup Guide. Invent Setup Guide

How to create and send a new . NOTE: See different guide for repurposing an existing

Website Administration Manual, Part One

Chatter Answers Implementation Guide

Designing the staging area contents

Chatter Answers Implementation Guide

Colligo Manager for Outlook Release Notes. Release Notes

Secure Mobile Access Module

Kendo UI Builder by Progress : Using Kendo UI Designer

College of Arts & Sciences

Dreamweaver CS6. Table of Contents. Setting up a site in Dreamweaver! 2. Templates! 3. Using a Template! 3. Save the template! 4. Views!

Instructor Guide for Blackboard-Learn

Adding Items to the Course Menu

Requirements Document

Zendesk Screen Pop Connector. Printed Help. PureConnect powered by Customer Interaction Center (CIC) 2018 R1. Abstract

Extracting and Storing PDF Form Data Into a Repository

Figure 1 Forms category in the Insert panel. You set up a form by inserting it and configuring options through the Properties panel.

SmartBar for MS CRM 2013

MindView Online - Quick Start Guide

Sign-up Forms Builder for Magento 2.x. User Guide

ADOBE EXPERIENCE MANAGER DAM CONNECTOR FOR ADOBE DRIVE CC: TECHNICAL NOTE

ArtOfTest Inc. Automation Design Canvas 2.0 Beta Quick-Start Guide

Manage Files. Accessing Manage Files

HOW TO Google Online Fillable Forms for Kiwanis Club Websites

Administrative Training Mura CMS Version 5.6

These are activated from the Averiti Control Panel, illustrated in Figure 1. Figure 1: Averiti Control Panel

VERSION JANUARY 19, 2015 TEST STUDIO QUICK-START GUIDE STANDALONE & VISUAL STUDIO PLUG-IN TELERIK A PROGRESS COMPANY

Integrating Facebook. Contents

Updated PDF Support Manual:

This Reporting Fragment will be sown on the Business Entity Details screen within OpenPages.

Web Push Notification

Kentico CMS 6.0 Intranet Administrator's Guide

Creating Web Mapping Applications. Nikki Golding

Canvas Multiple-column Integration with iclicker Cloud

Variable Data Printing in Fiery Controllers. Exercise 1: Fiery FreeForm 1

Kaltura Guidebook Table of Contents

Mission Guide: Google Apps

Integration Guide. MaritzCX for Adobe

Dashboards. created by others because they have given you permission to view.

Dreamweaver MX The Basics

How to add content to your course

Introduction to Qualtrics Research Suite Wednesday, September 19, 2012

SharePoint AD Administration Tutorial for SharePoint 2007

Accessing Diagnostic Service Documentation for Non-Beckman Coulter Users

TESTING WITH DIFFERENT PROFILES

BCI.com Sitecore Publishing Guide. November 2017

Using the OpenSpan Siebel Adapter

SelectSurvey.NET Developers Manual

Creating and Managing Snippets

Kinetika. Help Guide

WEB CREATOR FILE MANAGER

OBIEE. Oracle Business Intelligence Enterprise Edition. Rensselaer Business Intelligence Finance Author Training

Once file and folders are added to your Module Content area you will need to link to them using the Item tool.

Tivoli Common Reporting V Cognos report in a Tivoli Integrated Portal dashboard

Product Documentation

FAU. How do I. Post course content? Folders

Siteforce Pilot: Best Practices

Creating a PDF Report with Multiple Queries

AEM Complete Newsroom & Calendar Guide. Version 1 January, 2016

Build great products. Contour 3.1 Enterprise Architect Guide Jama Software, Inc.

Publish Joomla! Article

Publish Joomla! Article

Create Import Data Connection to SAP BPC NW

VIVVO CMS Plug-in Manual

LoanToolbox ACT! 3.0 FAQs

Dreamweaver Basics Outline

Transcription:

ABSTRACT Mashups are used to integrate data from SAP's cloud solution with data provided by an online Web service or application. Users can access the content provided by these Web services and applications. For Example, Mashups can include Web searches, company or industry business information, or online map searches. Before starting the mashup, you should have some basic knowledge in web development Sankaran A Mashup Creation MASHUP http://blog.sankaranss.com

Contents What is Mashup?... 2 Creating Mashups... 2 There are four different mashup types:... 2 URL Mashup... 2 HTML Mashups... 2 Data Mashups... 2 Custom Mashups... 2 Process Flow to create Custom Mashup... 3 Step 1: Prerequisites... 3 Step 2: Create Business Object... 4 Step 3: Create a PTP Package... 4 Step 4: Create a Mashup Port Binding... 7 Step 5: Create an URL / HTML Mashup... 9 5.1 Create an URL Mashup... 9 5.2 Create a HTML Mashup... 11 Step 6: Adding mashup in Custom screen / SAP Screen... 13 6.1 Adding URL Mashup in Custom Screen... 13 6.2 Adding HTML Mashup in Custom Screen... 15 6.3 Adding HTML Mashup in SAP Screen... 15 Step 7: Assign this Mashup to Business user... 16 Step 8: Testing... 17 8.1 Test URL Mashup... 17 8.2 Test HTML Mashup... 18 Step 9: Troubleshooting... 19 www.sankaranss.com 1

What is Mashup? Mashups is an easiest way to integrate external systems in Cloud Solutions. Mashups are used to integrate data from SAP's cloud solution with data provided by an online Web service or application. Users can access the content provided by these Web services and applications. For Example, Mashups can include Web searches, company or industry business information, or online map searches. Before starting the mashup, you should have some basic knowledge in web development. I will take a simple example but will try to use a complex scenario so that you all will know in and out of mashup and how it works. Creating Mashups 1. Using the studio, we can create mashups for an SAP cloud solution 2. Add the Mashup to a Floorplan 1. Add a Mashup to an SAP Floorplan 2. Add a Mashup to Your Floorplan that you have designed. There are four different mashup types: URL Mashup A mashup that sends data from SAP's cloud solution to the URL of an online service provider. The service provider uses the data, for example, to perform a search, and the results are displayed in a new browser window. HTML Mashups A mashup that embeds an HTML or JavaScript based Web page directly on a screen. Data Mashups A mashup combines and displays data from both internal and external sources. To create a data mashup, an integrated authoring tool is used to transform or merge external Web services with internal business data using industry-standard Web service protocols. Custom Mashups A mashup that has been created as an add-on solution by SAP. You can create new data, URL, and HTML mashups. Custom mashups can be created only by SAP. www.sankaranss.com 2

Process Flow to create Custom Mashup We will discuss process flow steps one by one with an example. 1. Prerequisites 2. Create Business Object 3. Create a PTP Package 4. Create a Mashup Port Binding 5. Create an URL / HTML Mashup 6. Adding mashup in Custom screen 7. Assign this Mashup to Business user 8. Testing 9. Troubleshooting Step 1: Prerequisites 1. Logon into the SDK. Select your solution from My Solution window. 2. You must enable the admin mode for the solution in which you create the mashup to ensure that the system saves your content and any changes you make in the solution. 3. To enable, open your solution in SDK and select Administration -> Switch On/Off Admin Mode in SAP Solution. www.sankaranss.com 3

Step 2: Create Business Object 1. Create a custom Business Object Mashup. 2. Define two elements as shown in the below screenshot. 3. Save and Activate. For more information about the Custom Business Object creation, see http://blog.sankaranss.com/2016/03/29/sap-byd-business-object/. Step 3: Create a PTP Package If the mashup is going to return data that is entered automatically into the cloud solution, then you need to create a port type package for the mashup. Procedure to create PTP Package: 1. Create screens for the Custom BO. For more information about the Screen creation, see http://blog.sankaranss.com/2016/04/28/sap-byd-screen-types/. 2. In the Solution Explorer, right-click the project folder and select Add New Item. 3. The Add New Item dialog box opens. 4. Select Port Type Package. 5. In the Name field, enter a name for the port type package. www.sankaranss.com 4

6. Click Add. 7. The Select Business Object dialog box opens. You choose your Bo name (for example, mashup) and click Ok. www.sankaranss.com 5

The port type package is added to your project. Your solution should look something like in the below screenshot. 8. Double-click the port type package. The port type package opens in the user interface designer. 9. Create the required structure depends on our requirement, as follows: (a) To add a port type, select the root node and then click +. (b) To add a parameter, right click on the port type and choose Add Parameter. As per our requirement, add two parameters and rename it as FirstName and LastName. 10. Save and activate your changes. www.sankaranss.com 6

Step 4: Create a Mashup Port Binding Certain fields on screens are predefined as screen out-ports and in-ports. These screen out-ports and inports are grouped together as a port binding. The port binding defines the type of information that can be used in the mashup and defines on which screens you can use the mashup. The mashup category specifies which port bindings are available. However, you can also create your own port bindings for your solutions, if required. Procedure to create a Mashup Port Binding: 1. Create a Mashup Port Binding. Add -> New -> Mashup Port Binding. Enter a name for the port binding and click Add. www.sankaranss.com 7

2. You can see your port binding package under Mashup Configuration. 3. Right-click the port binding, and choose Open. The UI designer opens, displaying a dialog box that contains the name of the port binding in the title. Set all fields like... 1. Description 2. Category (of your choice) 3. Choose Inport Type Package which you've created in Create a PTP Package step 4 4. Inport Type Reference as Input (you have mentioned this name when creating the port type package) and leave the rest blank. 5. Save and activate your changes. www.sankaranss.com 8

Step 5: Create an URL / HTML Mashup Depends on your requirement, you can create either URL or HTML mashup. Here you can learn both URL and HRML Mashup creation. 5.1 Create an URL Mashup 1. Create an URL Mashup as shown below. 2. If any window pops up asking you to turn ON Admin Mode, click "Yes". Doing so, you are making this mashup as a part of your solution. 3. QAF Builder pops up asking you to enter details of URL Mashup. Select the same category which you used in step 4. In the OVS of Port Binding, you will now be able to see your PTP Package. Select it. Type in some name and Description (optional). Enter the "URL" of the external application. For your reference here I have attached some simple URL. I will keep this URL open. http://sankaranss.com/test/mashup.php - it accepts two parameters: first and last http://sankaranss.com/test/search.html - Open Custom Search Engine http://sankaranss.com/test/calc.html - It will simply open calculator screen. HTTP Method: GET / POST www.sankaranss.com 9

In the table below URL Information section, click "Add" twice and Enter first and last as URL parameter and click on Parameter Binding OVS. You should now be able to see the parameters you created in Step 3 as shown in below screenshot. Select FirstName in first URL Parameter and LastName in last URL Parameter. Click the Preview link to display the end result of the mashup. Save and Close. Finally, Your URL Mashup looks like as shown in below screenshot. www.sankaranss.com 10

5.2 Create a HTML Mashup 1. Create an HTML Mashup as shown below. 2. QAF Builder pops up asking you to enter details of HTML Mashup. Select the same category which you used in step 4. In the OVS of Port Binding, you will now be able to see your PTP Package. Select it. Type in some name and Description (optional). Depending on what you have selected, do one of the following: Enter a URL Choose the type as a URL and then enter the custom URL. For your reference here I have attached some simple URL. I will keep this URL open. http://sankaranss.com/test/calc2.html - Search Engine embedded in SAP / Custom screen http://sankaranss.com/test/search.html - calculator embedded in SAP / Custom screen Click the Preview link to display the end result of the mashup. Enter HTML Code In the HTML Code Editor, you can copy or enter your own HTML code. In later article we will clearly see about HTML Code, which is used in Mashup. Click Save and Close. www.sankaranss.com 11

Finally, Your HTML Mashup looks like as shown in below screenshot. www.sankaranss.com 12

Step 6: Adding mashup in Custom screen / SAP Screen Now our Mashup is ready, lets proceed with adding it on SAP/ Custom screen. In step 5, we created both URL and HTML mashup. Here we going to learn how to add that mashup in SAP / Custom Screen. 6.1 Adding URL Mashup in Custom Screen 1. Open our Custom BO's QA screen. 2. Create an anchor for floorplan as shown in the below screenshot. 3. We need the screen to communicate with Mashup which is the prime reason to create URL Mashup with parameters. So, we need a way to send out data from our BO instance to Mashup. For this we need an outport to be configured as shown in the below screenshot. 3.1 Select the same PTP Package which you created in Step 3 3.2 Bind the parameters with your data model structure. www.sankaranss.com 13

3.3 We need to create an anchor for Outport by selecting Anchor from its Extensibility properties. Outport now has an identity of its own. 3.4 You can now refer floorplan anchor created in the previous point in the Referenced Anchors section so that Outport knows where to populate data. Extensibility -> Referenced Anchors -> (Click three dot) -> In Anchors Modelling click + button -> Refer floorplan anchor created in the previous point 4. Save and Close. www.sankaranss.com 14

6.2 Adding HTML Mashup in Custom Screen We are going to add simple search HTML Mashup without any outport / Inport. In later article we will clearly see about this topic. Configuration Explorer -> Your_Project_MAIN -> Src -> <Your Project Folder> -> Massup -> Pipe -> (hear you can see all your URL / HTML / Data Mashup) -> Choose your Mashup -> Drag and Drop your HTML Mashup into the Screen. 6.3 Adding HTML Mashup in SAP Screen 1. Login as a business user and navigate to SAP Floorplan. For example, Sales Order QA screen 2. Click on "Adapt" and then on "Enter Adaptation Mode" on top contextual menu and then on "Edit Screen" from the same menu. www.sankaranss.com 15

3. Click on "Mashups and Web Services". You should be able to see your Mashup in the list as shown in the below screenshot. Enable it and Leave the Adaptation mode. Step 7: Assign this Mashup to Business user 4. Login as a business user and navigate to the QA Screen by creating a custom BO instance or SAP Floorplan. 5. Click on "Adapt" and then on "Enter Adaptation Mode" on top contextual menu and then on "Edit Screen" from the same menu. 6. Click on "Mashups and Web Services". You should be able to see your Mashup in the list as shown in the below screenshot. 7. Save and Publish the changes. Leave Adaptation Mode. 1. Add URL Mashup in Custom Screen. www.sankaranss.com 16

2. Add HTML Mashup in SAP Screen (Sales Order Screen). Step 8: Testing 8.1 Test URL Mashup 1. Login as a business user. 2. Navigate to the QA Screen by creating a custom BO instance. 3. You should now be able to see a new button "Web Services". 4. Enter the value and click the Webservice button. It will navigate to the custom page with the value you have enter in QA Screen. URL Mashup in Custom Screen (The first and two field value pasted to the third party software): www.sankaranss.com 17

8.2 Test HTML Mashup 1. Login as a business user. 2. Navigate to the QA Screen by creating a custom BO instance or SAP Floorplan. Ex : 1. HTML Mashup in custom Screen(Search Engine in custom screen itself): Ex 2.HTML Mashup in SAP Screen (Sales Order - Enable calculator in Sales Order Screen): www.sankaranss.com 18

Step 9: Troubleshooting 1. For URL Mashups, make sure that you disable popup blocker. 2. SAP Cloud sites run on https but when you try to bring in mashups which fetch content from http, they will be blocked by browsers. You can notice small popup by browsers indicating that they blocked some content from being displayed. In this case you should enable MixedMode for browsers. If you see below error message in your case, please make sure to click No. 1 1 All rights received by sankaranss.com www.sankaranss.com 19