Skip to Content

Over the last year I have met with many SAP developers within SAP, with SAP partners and customers and talked about user interface technologies. Clearly the web wide trend of Rich Internet Applications is reaching into the enterprise. An increasing number of SAP customers implement custom web applications on top of the SAP backend infrastructure. Developers sometimes question the need for compelling, visually engaging UIs, yet the UI is critical to successful user adoption and productivity. Take for example Philips Lighting who teamed up with Apollogic to build innovative and easy-to-use UIs with Adobe Flex connected to their SAP CRM system. They were able to streamline the number of clicks and made daily activities like pricing updates intuitive and fast to execute. The overwhelming positive feedback from the end users (mainly in sales and marketing) and the short development time of the original project convinced them to expand the usage of Flex to additional SAP applications. If you are attending SDN Community day in Munich you will be able to talk to Sirko Pelzl from Apollogic about this interesting project and his experience with Flex.

But I am getting ahead of myself. You might still wonder what Adobe Flex is all about. Flex is a development framework which enables developers to build applications which can be executed in the Flash Player. Yes, that is the same Flash Player which is too often abused for these terrible “skip intro” web pages. However the Flash Player is in fact at the core of a vibrant ecosystem of technologies that provide rich user interfaces, networking, data management, scripting, security and plug-and-play access to enterprise servers with desktop-like performance. The Flash Player is installed on 98% of all PC’s in the world (Windows, Mac OS and Linux) and Flex developers can leverage this client runtime to run their rich user interfaces consistently across platforms and browsers. The Flex product family consists of the Flex SDK and Flex Builder and is further complemented by LiveCycle Data Services. The Flex SDK (similar to the JDK) which is open source and freely available provides the necessary component libraries and Flex compiler to compile Flex applications (which are typically a mixture of MXMLActionScript) into the Flash byte code which is executed in the Flash Player. If you are looking for an advanced IDE to develop Flex applications you should consider Flex Builder (which is based on Eclipse) and provides code and design views including code hinting, debugging and component management. If you are writing applications which require a lot of data transfer between server and client you should also consider LiveCycle Data Services which provide advanced data management capabilities to facilitate communication between server and client. LiveCycle Data Services is implemented as a Java server application which can be deployed on SAP Web AS or other J2EE compliant app servers.

So your next question might be how Flex integrates with SAP applications. As usual in the SAP universe there is no single answer to this, but there are actually many options available. When I talked to a number of SAP customers who use Flex today it became clear that depending on the SAP version and the specific application needs various integration methods are successful. The easiest way to connect your Flex app with SAP is via Web Services and leveraging eSOA. The latest SAP applications based on NetWeaver either provide Web Service interfaces out of the box or Web Services can be enabled from BAPIs and RFCs via simple configuration. There are many Blogs and papers on SDN which cover this subject. Since the Flash Player is a “Service Oriented Client”, it has a Web Services communication stack build in which can be used by Flex applications to communicate directly with the SAP backend. As you probably know Web Services come with a certain communication and processing overhead (SOAP envelope XML marshalling/unmarshalling). If your application requires large data sets (tables with 1000s of rows) to be communicated between client and server you should consider Flex remoting, which establishes a binary connection between a Java API and the Flash Player. On the backend you will need to expose the SAP BAPI or RFC as a Java API using the SAP Java Connector. These Java APIs can then communicate via LiveCycle Data Services directly with the Flex application running in the client. In this case you have a high performing end-to-end binary data connection. Check out James Wards performance benchmarks on this subject.  The Spanish lens manufacturer Indo used this setup for a Flex product configuration application connected to their R/3 backend. LiveCycle Data Services also support real-time messaging protocols and integration with JMS, enabling data to be pushed from the server into the client without the need of constant refreshes.

Another SAP integration option relies completely on client side communication. In several projects customers have integrated BSP applications with Flex applications using scripting bridges (e.g. Flex JSP library or Flex AJAX Bridge) to enable communication between the JavaScript in the browser and the Flash Player. This integration use case is explained in detail in the SAP Press book “Developing SAP Applications with Adobe Flex”. As mentioned before Flex applications get compiled into Flash byte code (.swf file) which is typically embedded in an HTML wrapper. That way they can be easily deployed in an iView in the Portal.

For this year’s SAP Community Day and SAP TechEd in Las Vegas and in Munich we have collaborated with SAP on a number of Flex related developer activities. At the Community Day we are offering a two hour Flex hands-on workshop. Dan McWeeney and Ed Hermann, the winners of last year’s demo jam will provide their perspective on Flex and lead through some hands-on exercises.  Additionally we will have experts who implemented Flex apps on top of SAP join us to share their experience (Andreas Tan from Adobe IS in Las Vegas and Sirko Pelzl from Apollogic in Munich). Make sure you register for Community Day right away so that you can take advantage of this exclusive opportunity. Did I mention we will give away Flex books as well? Adobe will also have a booth with dedicated demo stations for Flex and SAP Interactive Forms by Adobe.

I am looking forward to see you at SAP Community Day and SAP TechEd and am excited to be part of an user interface improvement revolution which will benefit the SAP ecosystem.

In the meantime here are some great Flex resources:

To report this post you need to login first.

12 Comments

You must be Logged on to comment or reply to a post.

  1. Former Member
    Hi Matthias:

    Nice blog -:) I tried to download Flex but got some Internet connections problems…Hope I can download it today -;) BWT…Only WebServices are allowed? No old good RFC connections?

    Your blog it’s a really good aproach for Flex neofits like me.

    Hope to meet you in Las Vegas -;) (But a Flex book LOL)

    Greetings,

    Blag.

    (0) 
  2. Hello Mathias,
    Thanks a lot for the blog. Would like to see more screen shots or videos on how to go about it.

    I would like to know the security aspects involved on using WebServices in Flex. and how to integrate them in porta(?).
    Regards,
    Anto.

    (0) 
  3. Abesh Bhattacharjee
    Hi Matthias,
    I’ve recently started developing with Flex on top of SAP and would have loved to attend the TechEd sessions ๐Ÿ™‚ But looks like it’s not going to be… Great blog and thanks for the links ๐Ÿ™‚
    (0) 
  4. Venkata Ramisetti
    I am great fan of Flex. This blog answered to the most of the questions I have in my mind for long time.

    Thomas Jung’s excellent blog (Web Dynpro ABAP Demonstration Videos) has a link to ‘Web Dynpro ABAP Clients – Flex Client Preview’ (https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/f05f5be7-0b01-0010-9db8-8f32f8d83b60)

    This is an awesome video. Here which technique is used to integrate SAP Application with Flex?

    Thank you for sharing good links.

    Venkata Ramakrishna Ramisetti

    (0) 
  5. Former Member
    Hi Matthias,
    I am using Visual Composer in my SAP NetWeaver 7.0 stack, can I use Flex Builder deploying to Flex Engine inside my NW70 stack ?
    Regards,
    Ignacio.
    (0) 
    1. Matthias Zeller Post author
      Hello Ignacio,
      the Flex engine inside NetWeaver is exclusively for the use by Visual Composer generated apps. You cannot use it to compile apps developed with Flex Builder. However Flex Builder comes with the Flex compiler so you can compile your Flex app right in Flex Builder and then deploy the .swf on the SAP web server.

      Cheers,

      Matthias

      (0) 

Leave a Reply