Building Custom Fiori Applications with Native HANA

Size: px
Start display at page:

Download "Building Custom Fiori Applications with Native HANA"

Transcription

1 Building Custom Fiori Applications with Native HANA Aron MacDonald SAP HANA Distinguished Engineer Architect / Solution Designer August,

2 Agenda Application Overview and Technical Landscape Utilizing real-time ECC Data Managing inbound and outbound interfaces with BODS Building the Application Data storage layer Using calculation views for complex application logic Finalizing the Application UX utilizing HANA XS, OData and Fiori 2013 SAP AG or an SAP affiliate company. All rights reserved. 2

3 Application Overview and Technical Landscape

4 Application Overview: Old vs New Old Process (mix of MS Excel and Access) Legacy Issues Manual Effort Data Timeliness Data Security Performance New Custom Fiori Applications SLT 2013 SAP AG or an SAP affiliate company. All rights reserved. 4

5 Fiori Launch Pad and User Preferences 2013 SAP AG or an SAP affiliate company. All rights reserved. 5

6 Smart Filters & Smart Tables 2013 SAP AG or an SAP affiliate company. All rights reserved. 6

7 Detail Screen Enabling Updates Updates Save 2013 SAP AG or an SAP affiliate company. All rights reserved. 7

8 ODATA Technical Landscape HANA XS Custom Application / Custom Data Staging SLT ECC Replication BW Extractors SPS08 -> SPS10: Scale out 24Tb (16 x 1.5 Tb) 2013 SAP AG or an SAP affiliate company. All rights reserved. 8

9 Application Stats ECC Tables Used (read only) 50 Largest ECC Table used in Joins Custom Application Tables 60 Largest Application Table Calculation Views 200 Procedures 40 Fiori Apps (SAPUI5) 11 Lines of Code (SQL & Javascipt) < 12,000 Number of Users Payback after covering Project Costs KONV 5.5 Billion rows / 325 Gb Staging of Enhanced ECC Movements 105 Million rows / 16 Gb 100 (application) to 500 (reporting) 3 Months after Go-Live 2013 SAP AG or an SAP affiliate company. All rights reserved. 9

10 Utilizing real-time ECC Data & Managing inbound and outbound interfaces with BODS

11 Example: Enhanced Material Movement Views Real-time OR Staged (controlled via reporting variable) Staging Real-time U Custom Table: Enhanced ECC Movements Challenge: 1-2 min Runtimes Solution: Custom Staging <1 Sec response Core ECC Tables Movements MSEG MSEGO2 (UoM) Sales VBAK/VBAP Purchases EKKO/EKPO Sales Contracts VBFA/VBAK / VBAP/KONV Purchase Contracts EKKO / EKPO 2013 SAP AG or an SAP affiliate company. All rights reserved. 11

12 ODATA BODS BODS Jobs call procedures P * P * P to log events P* Custom Application / Custom Data Staging Tips: Minimize BODS Logic Encapsulate as much logic in Hana Procedures Event Logs useful for tracking status in Fiori Launch Pad P Event Logs 2013 SAP AG or an SAP affiliate company. All rights reserved. 12

13 Building the Application Data storage layer & Using calculation views for complex application logic

14 Building the Application Data storage layer Created a Custom Schema with 60 Custom Tables - Master Data (sourced from Non-SAP systems) - Master Data unique to Application - Mapping Tables - Data Staging tables (for longer running views) - Transaction tables Tips: Minimize Data Staging Don t be afraid to have complex business logic determined on the fly in Calculation views - Event/Action Log Tables Used.hdbtable artifact to create [in future projects will move to CDS] No major issues - though Primary Key & Column Sequence changes need careful attention 2013 SAP AG or an SAP affiliate company. All rights reserved. 14

15 Virtual Data Filtering, Mapping & Aggregation Mapped Aggregation P U. Challenge: Business Mappings J J J 1-15 min Runtimes Solution: Business Scenario Data Filters J J J Custom Staging <30 Sec response Enhanced ECC Movements 2013 SAP AG or an SAP affiliate company. All rights reserved. 15

16 Virtual Allocations Duration (Start / End Date), Year and Monthly Values (from Sources without Dates) needed to be Allocated to Valid Dates within a Validity period by business rules, such as Daily, Weekly, Monthly or other custom logic E.g. A monthly value of 300, might be split into 30 days of value 10 Date level distributions P Tip: External Sources U ECC Tables Using Calculation Views for Allocations makes unit testing much easier than SQL embedded within a procedure 2013 SAP AG or an SAP affiliate company. All rights reserved. 16

17 Virtual UoM Conversion, Complex Calculated Measures & Delta Processing P xsjs Delta Difference Calculated U Column Format (Target UOM) UoM Calc Conv BAV Sent Data Tip: Use the power of Hana to virtualise complex logic in Calculation Views Transaction Table Row format with a base UoM (Weight and Volume) Keep Procedure logic as small as possible 2013 SAP AG or an SAP affiliate company. All rights reserved. 17

18 Finalizing the Application UX utilizing HANA XS, OData and Fiori

19 High level UX Utilised SAP UX Team Used whiteboard / post-it notes & interactivity PPT Check out iencesplash.com Next project may use SAP Splash 2013 SAP AG or an SAP affiliate company. All rights reserved. 19

20 Typical ODATA usage Read: Utilised Calculation Views for Display (Binding) Transaction Table PODATA Write: Tables & Exit Procedures Tip: Use Calculation Views to add Descriptions and Virtual Calculations 2013 SAP AG or an SAP affiliate company. All rights reserved. 20

21 Main SAPUI5 Issue On Premise Native Hana SPS10 SAPUI5 Library Version 1.28 Smart Filter & Smart Table has some bugs resolved >= Solution: FLP uses On Prem SAPUI5 Smart Apps use Public HCP SAPUI Tip: Create your own template(s) and use as basis for building Apps Next Steps: PoC of HCP for Front End build (should unify SAPUI5 versions, improving experience) 2013 SAP AG or an SAP affiliate company. All rights reserved. 21

22 Questions? 2013 SAP AG or an SAP affiliate company. All rights reserved. 22

23 Thank you. Aron MacDonald