Académique Documents
Professionnel Documents
Culture Documents
Agenda
Executive Summary
SAP Fiori Apps Positioning and What they are
SAP Fiori Apps Deployment
SAP Fiori Apps Development Example and Launchpad Upload
Short Demo
Executive Summary
Problem:
You want to leverage a new proprietary Fiori App with your SAP system on premise
Solution:
Create an Fiori App accessing your SAP on IBM z Systems with Eclipse
How to:
- Select common scenario: SAP Business Suite Purchase Order Approval application
- Implement sample described in two SAP Community Network blogs
Ready to run mobile apps for different SAP backend applications; allow for easy extensions
SAP-centric
IBM Bluemix
boilerplate: contains an app and its associated runtime environment and predefined services for a particular domain.
SAP Fiori
SAP Fiori is the new user experience (UX) for SAP software. It applies modern design
(SAPUI5).
* https://de.wikipedia.org/wiki/HTML5 ** http://scn.sap.com/docs/DOC-53949
2016 IBM Corporation
SAP Gateway is a mandatory component to run SAP Fiori apps. SAP Fiori apps use OData services
(REST API implementation) to display and update data in the backend.
OData service is based on a Entity Data Model (EDM) which can be created in Eclipse and imported
into SAP Gateway. During import via `SEGW` transaction ABAP classes and stub OData Create /
Read / Update / Delete (CRUD) methods are created to access the data. The ABAP code of the
methods must be developed.
The ModelProviderClass (MPC) is used to define the model, e.g. method Define creates entity,
properties, etc.
The DataProviderClass (DPC) is used to code your CRUD methods as well as function import
methods. All the logic must be coded in redefined methods of DPC extension class.
See http://scn.sap.com/docs/DOC-46223
and refer to Generated ABAP Classes and Service Registration - SAP NetWeaver Gateway - SAP Library
SAP Gateway:
Handles communication between client and SAP backend
applications using OData services and processes HTTPS
request for the OData services
Makes your SAP business data and functionality accessible to
any external device
Details
10
Enterprise authentication
User/device registration
Usage statistics
Details
11
12
Eclipse connects to an SAP backend system and you can edit all ABAP classes / methods / tables...
SAP Mobile Platform Tools, which contains the Ogee OData plugin
SAP UI5 Development Toolkit; SAP UI5 application preview runs on the Jetty web server
Jetty provides Web services in an embedded Java application and it is already a component of the Eclipse IDE (started as open
source project and moved in 2009 to Eclipse); https://en.wikipedia.org/wiki/Jetty_(web_server)
13
Create backend ABAP code (available on Github) via SAPlink report as described in
Fiori-like SCN Part I
2.
3.
4.
5.
Adapt Model and create code for the data access (CRUD) methods
6.
Activate service in Gateway via SPRO transaction (described in Gateway SCN step 4)
7.
Create Fiori UserInterface (UI) App with SAPUI5 Development Toolkit in Eclipse as
described in Fiori-like SCN Part II
8.
Adapt sample ABAP code to retrieve real pending approval data from IDES system
Remark: More details, hints, remarks and recommendations can be found in the backup foils
14
SLINK project (report code must be created manually in SAP backend system )
Classes Z_MM_PO, Z_MM_POITEM, Z_MM_SUPPLIER are created
Hint: Table Types ZMM_POITENS and ZMM_POS had to be defined in the Dictionary for successful compile.
Install SAP Mobile Platform Tools plugins, which contain Odata plugin
Hint: SCN blog says: "Start by creating a new OData project: New -> OData Development -> Service Implementation Project
With IDES: New -> SAP Mobile Platform OData Implementation Project -> Create New OData Model
Hint: Menu structure is with 7.40 slightly different (see right figure)
15
Create a new SAP Gateway project (described in Gateway SCN step 2) and import
OData Model into SAP Gateway via SEGW transaction
Creates Classes and empty CRUD (Create / Read / Update / Delete) methods to access the data
Hint: Odata model was not correct in our SAP Gateway, see comment:
Adapt Model and create code for the data access (CRUD) methods
Hint: Code should be already available via SLINK import of frist step
16
Hint: "Target Device" does no longer exist in panel --> select Libray sap.m
Remark: Userid and password are hardcoded and anybody knowing the URL can access the backend data!
Recommendation: In order to get an understanding of the UI fundamentals, do the 10 exercises described in SCN Building SAP Fiori-like
UIs with SAPUI5 in 10 Exercises SCN paper link
Test: Select project, right click and Run As Web App Preview
Problem of sample ABAP code with IDES system
Hint: Check with transaction me28, which combination of Release group (and Release code) is used in your environment.
It may be necessary to adapt also value of constants: lc_released type frggr value 'C'. "Code for "released" in your system
17
Run report /UI5/UI5_REPOSITORY_LOAD in SE38 transaction, enter z<eclipse project name> (zVSFioriApp)
Because we add the App to a Launchpad on the Front-End Server, adapt (SE80 transaction) in component.js the lines
var url = "proxy/http/<host>:<port>/sap/opu/odata/sap/ZPOAPPROVAL_SRV/";
with var url = "/sap/opu/odata/sap/ZPOAPPROVAL_SRV/";
and var oModel = new sap.ui.model.odata.ODataModel(url, true, "<user>", "<pass>);
with var oModel = new sap.ui.model.odata.ODataModel(url, true);
Hint: If your z<eclipse project> name is longer than 15 char, you can copy the project using a name with less than 15 chars
Use transactions /IWBEP/CACHE_CLEANUP and /IWFND/CACHE_CLEANUP to clean services caches and
SMICM (-> Goto -> HTTP-PlugIn -> Server Cache -> Invalidate Globally) to clean ICM cache
18
Run SPRO transaction and define a new semantic object (SAP NW, UI Technologies, SAP NW UI Services)
Run LPD_CUST transaction and define a new Launchpad; I used role FIN_AP and defined an TRANSACTIONAL instance
Select the new Launchpad and create a new application (VSFioriLikePOApproval) with url (/sap/bc/ui5_ui5/sap/zVSFioriApp) from SICF transaction
Run in client 800 PFCG transaction and create a single role, steps 3.10.20 25 (23: entry 'catalog provider' is now 'SAP Fiori Tile
Catalog' )
Login to Lauchpad: http/<host>:<port>//sap/bc/ui5_ui5/ui2/ushell/shells/abap/FioriLaunchpad.html and create a new group and add the
Fiori App, steps 3.10.26 -33. Use the previously created catalog to add the Fiori App.
19
Or:
6) Start eclipse with workplace C:\Users\IBM_ADMIN\workspace (old TP "D:\temp\eclipse\workspace\VSFirstBMDemoApp
7) Select FioriLikePOApproval project (old TP: SAPUI5POApproval) and right click -> Run As -> Web App Preview
Summary
start
21
Questions
Thank you
Volker Schoelles
volker_schoelles@de.ibm.com
22
Backup slides
or model without the need for SAP knowledge by leveraging REST services and OData
protocol.
REST (Representational State Transfer) is a style of software architecture for
distributed systems such as the World Wide Web. REST uses the standard GET, PUT,
POST & DELETE methods and other existing features of the HTTP protocol. One goal
is to encapsulate legacy systems.
Odata (The Open Data Protocol) is an open web protocol for querying and updating
data (CRUD methods). The protocol allows for a consumer to query a data source over
the HTTP protocol and get the result back in formats like Atom, JSON or plain XML.
For a simple overview see http://scn.sap.com/docs/DOC-35472
24
25
MobilFirstPlatform
26
IBM Bluemix
IBM Bluemix is the new Platform-as-a-Service (PaaS) offering, built on Cloud Foundry open source technology.
Bluemix is an open platform for developing and deploying mobile and Web applications. Bluemix provides a broad set of
services and runtimes that gives the integration developer control and flexibility to build an application.
DevOps
Development, monitoring, deployment and
logging tools allow the developer to run the
entire application
Cloud Integration
Build hybrid environments. Connect to onpremises systems of record plus other public
and private clouds. Expose your own APIs to
your developers.
Rapid Coding
Visual Composition
Runs on .
27
28
Trademarks
The following are trademarks of the International Business Machines Corporation in the United States and/or other countries.
Bluemix*
developerWorks* GUARDIUM* MQSeries*
Rational*
WebSphere*
z/OS*
CICS*
DS8000*
HyperSwap*
OMEGAMON*
Redbooks*
z13
zSecure
Cognos*
FICON*
IBM*
Parallel Sysplex*
IBM SmartCloud* z13s
z Systems
DB2*
GDPS*
IBM (logo)*
RACF*
Tivoli*
zEnterprise*
z/VM*
* Registered trademarks of IBM Corporation
These are trademarks or registered trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. A current list of IBM trademarks is
available on the web at Copyright and trademark information at: http://www.ibm.com/legal/us/en/copytrade.shtml
The following are trademarks or registered trademarks of other companies.
LinkedIn, the LinkedIn logo, the IN logo and InMail are registered trademarks or trademarks of LinkedIn Corporation and its affiliates in the United States and/or other countries.
Java and all Java based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates.
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.
Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation.
Oracle and Java are registered trademarks of Oracle and/or its affiliates.
UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group.
OpenStack is a trademark of OpenStack LLC. The OpenStack trademark policy is available on the OpenStack website.
SAP, R/3, SAP NetWeaver, ByDesign, SAP BusinessObjects Explorer, StreamWork, and other SAP products and services mentioned herein as well as their respective logos are
trademarks or registered trademarks of SAP SE in Germany and other countries.
All other product and service names mentioned are the trademarks of their respective companies.
Data contained in this document serves informational purposes only. National product specifications may vary.
Notes:
Performance is in Internal Throughput Rate (ITR) ratio based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput that
any user will experience will vary depending upon considerations such as the amount of multiprogramming in the user's job stream, the I/O configuration, the storage configuration, and the
workload processed. Therefore, no assurance can be given that an individual user will achieve throughput improvements equivalent to the performance ratios stated here.
IBM hardware products are manufactured from new parts, or new and serviceable used parts. Regardless, our warranty terms apply.
All customer examples cited or described in this presentation are presented as illustrations of the manner in which some customers have used IBM products and the results they may have
achieved. Actual environmental costs and performance characteristics will vary depending on individual customer configurations and conditions.
All statements regarding IBM's future direction and intent are subject to change or withdrawal without notice, and represent goals and objectives only.
Information about non-IBM products is obtained from the manufacturers of those products or their published announcements. IBM has not tested those products and cannot confirm the
performance, compatibility, or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products.
29
Legal information
Please note
IBMs statements regarding its plans, directions, and intent are subject to change or withdrawal without notice at IBMs sole discretion. Information
regarding potential future products is intended to outline our general product direction and it should not be relied on in making a purchasing decision.
The information mentioned regarding potential future products is not a commitment, promise, or legal obligation to deliver any material, code or
functionality. Information about potential future products may not be incorporated into any contract. The development, release, and timing of any future
features or functionality described for our products remains at our sole discretion.
Performance is based on measurements and projections using standard IBM benchmarks in a controlled environment. The
actual throughput or performance that any user will experience will vary depending upon many factors, including
considerations such as the amount of multiprogramming in the users job stream, the I/O configuration, the storage
configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve results
similar to those stated here.
Availability. References in this presentation to IBM products, programs, or services do not imply that they will be available in all countries in which IBM
operates.
The workshops, sessions and materials have been prepared by IBM or the session speakers and reflect their own views. They are provided for
informational purposes only, and are neither intended to, nor shall have the effect of being, legal or other guidance or advice to any participant. While
efforts were made to verify the completeness and accuracy of the information contained in this presentation, it is provided AS-IS without warranty of any
kind, express or implied. IBM shall not be responsible for any damages arising out of the use of, or otherwise related to, this presentation or any other
materials. Nothing contained in this presentation is intended to, nor shall have the effect of, creating any warranties or representations from IBM
or its suppliers or licensors, or altering the terms and conditions of the applicable license agreement governing the use of IBM software.
All customer examples described are presented as illustrations of how those customers have used IBM products and the results they may have
achieved. Actual environmental costs and performance characteristics may vary by customer. Nothing contained in these materials is intended to, nor
shall have the effect of, stating or implying that any activities undertaken by you will result in any specific sales, revenue growth or other results.
30