19
How to Integrate HTML5 Into Web Dynpro Standard Business Processes Sean Cloherty Michael Champion

How to Integrate HTML5 Into Web Dynpro Standard Business ... · PDF fileHow to Integrate HTML5 Into Web Dynpro Standard Business Processes ... Over%18+Years%SAP ... • What’s%the%difference%between%HTML5%and%SAP%UI5?%

Embed Size (px)

Citation preview

Page 1: How to Integrate HTML5 Into Web Dynpro Standard Business ... · PDF fileHow to Integrate HTML5 Into Web Dynpro Standard Business Processes ... Over%18+Years%SAP ... • What’s%the%difference%between%HTML5%and%SAP%UI5?%

How to Integrate HTML5 Into Web Dynpro Standard Business Processes

Sean  Cloherty  Michael  Champion  

Page 2: How to Integrate HTML5 Into Web Dynpro Standard Business ... · PDF fileHow to Integrate HTML5 Into Web Dynpro Standard Business Processes ... Over%18+Years%SAP ... • What’s%the%difference%between%HTML5%and%SAP%UI5?%

Background §  DataXstream  

§  A  Leader  In  SAP  Consul;ng,  SAP  Product  Development,  and  SAP  Cloud  Compu;ng  §  Over  18+  Years  SAP  Experience  with  100%  Project  Success  Rate  

§  Sean  Cloherty  §  Web  Design  /  Development  §  SAP  Web  Dynpro  ABAP  §  Product  Development  &  Integra;on  

§  Michael  Champion  §  SAP  ABAP  /  Web  Dynpro  ABAP  §  SAP  PI  /  XI  §  Product  Development  &  Integra;on  

Page 3: How to Integrate HTML5 Into Web Dynpro Standard Business ... · PDF fileHow to Integrate HTML5 Into Web Dynpro Standard Business Processes ... Over%18+Years%SAP ... • What’s%the%difference%between%HTML5%and%SAP%UI5?%

Agenda §  What  tools  did  we  use?  §  What  does  the  standard  Lean  Order  Management  look  like?  §  What  did  we  do  to  enhance  LOM  to  make  it  look  AWESOME?  §  Challenges  we  ran  into  §  Demo  video  of  enhanced  LOM  System  §  How  did  we  do  it!?!  §  QA  

Page 4: How to Integrate HTML5 Into Web Dynpro Standard Business ... · PDF fileHow to Integrate HTML5 Into Web Dynpro Standard Business Processes ... Over%18+Years%SAP ... • What’s%the%difference%between%HTML5%and%SAP%UI5?%

Tools

HTML5  

• Cool  new  elements  like  <canvas>  

JavaScript  

• New  client-­‐side  interac;ons  +  customiza;ons  

Web  Dynpro  ABAP  

• HTML  Islands  to  make  it  all  possible!  

Page 5: How to Integrate HTML5 Into Web Dynpro Standard Business ... · PDF fileHow to Integrate HTML5 Into Web Dynpro Standard Business Processes ... Over%18+Years%SAP ... • What’s%the%difference%between%HTML5%and%SAP%UI5?%

Why use HTML Islands and JavaScript? §  Enhances  the  GUI  of  standard  Lean  Order  Management  §  Work  around  limita;ons  of  Web  Dynpro  interface  §  More  connec;vity  and  interface  op;ons  with  external  device  

Page 6: How to Integrate HTML5 Into Web Dynpro Standard Business ... · PDF fileHow to Integrate HTML5 Into Web Dynpro Standard Business Processes ... Over%18+Years%SAP ... • What’s%the%difference%between%HTML5%and%SAP%UI5?%

Example of Lean Order Management (LOM)

Difficult  to  read  messaging  

Data  displayed  in  monotone  colors  

Page 7: How to Integrate HTML5 Into Web Dynpro Standard Business ... · PDF fileHow to Integrate HTML5 Into Web Dynpro Standard Business Processes ... Over%18+Years%SAP ... • What’s%the%difference%between%HTML5%and%SAP%UI5?%

Example of Enhanced LOM

Page 8: How to Integrate HTML5 Into Web Dynpro Standard Business ... · PDF fileHow to Integrate HTML5 Into Web Dynpro Standard Business Processes ... Over%18+Years%SAP ... • What’s%the%difference%between%HTML5%and%SAP%UI5?%

Example of LOM

Standard  Pop-­‐Up  

Page 9: How to Integrate HTML5 Into Web Dynpro Standard Business ... · PDF fileHow to Integrate HTML5 Into Web Dynpro Standard Business Processes ... Over%18+Years%SAP ... • What’s%the%difference%between%HTML5%and%SAP%UI5?%

Example of Enhanced LOM

Page 10: How to Integrate HTML5 Into Web Dynpro Standard Business ... · PDF fileHow to Integrate HTML5 Into Web Dynpro Standard Business Processes ... Over%18+Years%SAP ... • What’s%the%difference%between%HTML5%and%SAP%UI5?%

Which one would you choose?

10

Page 11: How to Integrate HTML5 Into Web Dynpro Standard Business ... · PDF fileHow to Integrate HTML5 Into Web Dynpro Standard Business Processes ... Over%18+Years%SAP ... • What’s%the%difference%between%HTML5%and%SAP%UI5?%

Challenges & Things To Watch Out For…

Browser  Compa;bility  

• Know  your  target  audience  • Have  fallbacks  in  place  • Standards  Mode  

Security  

• Don’t  pass  cri;cal  control  over  to  the  client  side  

• Validate  any  client-­‐side  input  on  the  server  side  

Page 12: How to Integrate HTML5 Into Web Dynpro Standard Business ... · PDF fileHow to Integrate HTML5 Into Web Dynpro Standard Business Processes ... Over%18+Years%SAP ... • What’s%the%difference%between%HTML5%and%SAP%UI5?%

Communication To and From

Web  Dynpro  Back  End  

ABAP  Method  (arguments  supported)  

JavaScript  Object  Front  End  

Web  Dynpro  Back  End  

Callback  API  (string  input  parameter)  

JavaScript  Object  Front  End  

Page 13: How to Integrate HTML5 Into Web Dynpro Standard Business ... · PDF fileHow to Integrate HTML5 Into Web Dynpro Standard Business Processes ... Over%18+Years%SAP ... • What’s%the%difference%between%HTML5%and%SAP%UI5?%

How did we do it!?! Add the HTML Island to the Web Dynpro View UI & Attributes §  Add  HTML  Island  UI  element  §  Add  HTML  Island  class  reference  

to  ahribute  list  

Page 14: How to Integrate HTML5 Into Web Dynpro Standard Business ... · PDF fileHow to Integrate HTML5 Into Web Dynpro Standard Business Processes ... Over%18+Years%SAP ... • What’s%the%difference%between%HTML5%and%SAP%UI5?%

How did we do it!?! Add Your JavaScripts

§  Import  your  .JS  files  as  MIME  objects  

§  Add  an  HTMLSCRIPT  element  to  your  newly  created  HTML  Island  

Page 15: How to Integrate HTML5 Into Web Dynpro Standard Business ... · PDF fileHow to Integrate HTML5 Into Web Dynpro Standard Business Processes ... Over%18+Years%SAP ... • What’s%the%difference%between%HTML5%and%SAP%UI5?%

How did we do it!?! Initialize HTML Island Class and Register Callback §  Check  the  FPM  variants  that  your  applica;on  is  running  §  Ini;alize  the  HTML  Island  class  by  assigning  it  to  the  HTML  Island  UI  element  §  Register  any  call  back  scripts  

Page 16: How to Integrate HTML5 Into Web Dynpro Standard Business ... · PDF fileHow to Integrate HTML5 Into Web Dynpro Standard Business Processes ... Over%18+Years%SAP ... • What’s%the%difference%between%HTML5%and%SAP%UI5?%

How did we do it!?! Add Event to Receive JavaScript Response

§  Add  an  HTMLEVENT  element  to  your  HTML  Island  UI  element  

§  Create  an  ac;on  to  capture  the  Java  Script  call  back  

§  Click  the  check  box  ‘Transfer  UI  Event  Parameters’  

Page 17: How to Integrate HTML5 Into Web Dynpro Standard Business ... · PDF fileHow to Integrate HTML5 Into Web Dynpro Standard Business Processes ... Over%18+Years%SAP ... • What’s%the%difference%between%HTML5%and%SAP%UI5?%

How did we do it!?! Create Action to Process JavaScript Response

 

Page 18: How to Integrate HTML5 Into Web Dynpro Standard Business ... · PDF fileHow to Integrate HTML5 Into Web Dynpro Standard Business Processes ... Over%18+Years%SAP ... • What’s%the%difference%between%HTML5%and%SAP%UI5?%

How did we do it!?! Call JavaScript Function via ABAP

Page 19: How to Integrate HTML5 Into Web Dynpro Standard Business ... · PDF fileHow to Integrate HTML5 Into Web Dynpro Standard Business Processes ... Over%18+Years%SAP ... • What’s%the%difference%between%HTML5%and%SAP%UI5?%

Q & A

Frequently  Asked  Ques;ons  

• What’s  the  difference  between  HTML5  and  SAP  UI5?  •  Is  JavaScript  the  same  as  JAVA?