20 February 2009
This tutorial is written for:
Each section clearly states who will benefit from the information. You can skip the sections that do not apply to you.
Beginning
SAP developers can use Rich Islands for Adobe Flash to enhance the usability, interactivity, and aesthetics of their Web Dynpro applications. Flex developers can partner with SAP experts to expand their business into the large enterprise market.
To make the most of this tutorial, set aside one hour to:
This is neither an in-depth tutorial on Web Dynpro application development nor an in-depth tutorial on creating Flex applications. The goal of this tutorial is to get you up and running quickly with a working sample application and to provide you with code, video, and resources that you can explore to deepen your understanding of the technologies involved.
As the tutorial progresses, you will also be introduced to the SAP Rich Islands libraries which enable you to tie Rich Islands, built with the Adobe Flash Platform, to Web Dynpro components.
Follow the instructions in this section to set up your development environment.
SAP developers can download preview releases with a valid Service Marketplace ID from the SAP Developer Network.
Flex or SAP developers without a valid Service Marketplace ID can follow the steps in this section to download and install the SAP NetWeaver 7.01 ABAP Trial Version software.
You will be asked to log into the SAP Community Network. If you do not already have a username and password, create one.
Note: The Application Server has been successfully started when the window turns green and displays the text, "Press any key to continue…"
SAP developers who do not have Flex Builder installed can follow the steps in this section to download and install the software.
Note: If you have the Eclipse-based NetWeaver Developer's Studio, you will want to download the Flex Builder plug-in version, rather than the standalone version. The Plug-in version installs Flex Builder as an Eclipse plug-in.
Note: View this video for an introduction to the Flex Builder tool and interface (7:22).
Both SAP and Flex developers should follow the steps in this section to import the Flex Builder project files. The imported files include all of the MXML and ActionScript code to build the Rich Islands interface and non-SAP functionality.
Note: SAP developers may want to check out the following resources to gain a better understanding of the MXML and ActionScript programming languages.
You should see the ShopFloorBins project in the Navigator panel of Flex Builder.
Note: The WDIslandLibrary.swc file is one of the SAP libraries that you need to develop Rich Islands. The SAP NetWeaver 7.01 ABAP Trial Version software that you installed above does not contain this file by default. For more information about this library, refer to the videos later in this tutorial and visit this blog.
You should see the WDIslandLibrary.swc resource added to the project (see Figure 4).
Note: To learn more about creating and using Flex Builder workspaces and projects, watch this video (7:04).
SAP and Flex developers should follow the steps in this section to generate a release build of the Wagon Assembly Line SWF file for later import into the Web Dynpro component.
Flex and SAP developers should follow the steps in this section to import the SAP nuggets for the Web Dynpro component.
Note: If you do not have the ZSAPLINK program installed, please follow these instructions to do so. A number of plug-ins are also required for ZSAPLINK and must be installed before importing the NUGG_SAP_RI_FASTTRACK nugget. The plug-ins are available on Google Code.
Flex and SAP developers should follow the steps in this section to import the Rich Island release-build SWF into the NetWeaver Mime Repository so that it can be added to the Web Dynpro component.
Flex developers can watch the videos later in this tutorial for more details regarding creating Web Dynpro components.
The Flex Component is now displayed within the MIME folder of the Web Dynpro Component and transported with the Web Dynpro development object.
Note: Creating the application generates a URL from where you can test your application.
You should see the Wagon Shop Floor Assembly Line sample application displayed in the browser (see Figure 8).
Follow the steps in this section to interact with the Wagon Assembly Line sample application you have just built in your local development environment.
Alternatively, you can watch the video, Seeing the working application (2:28).
Note that the clock animates every six seconds and that the quantities in the colored bins and the SAP table UI element (in the upper left corner) decrement as well. This shows that the inventory is being depleted as the wagons are being assembled.
The clock shows the number of minutes until the assembly line shuts down based on the available inventory. Note that axels and wheels deplete at a faster rate because the assembly line needs two axels and four wheels for each wagon.
The colored bins change from green to yellow to red as the inventory falls below defined thresholds.
You should see the clock and bins adjust their amounts appropriately according to the bin quantity you manipulated. The bins stay green as long as there is more than 5 minutes worth of inventory in the bin. At 5 minutes or less, the bins turn yellow.
You should see the bin you changed turns red. You should also see the timer reset to 00:00.
SAP and Flex developers should refer the video resources in this section to gain a technical overview of how Adobe Flex and SAP Web Dynpro technologies are implemented to create Adobe Rich Islands.
The following videos focus on the important points for integrating data and events between Adobe Flex applications and Web Dynpro components. They will not answer all of your questions about Flex and Web Dynpro development. Follow the additional resources links for more information about Flex and Web Dynpro development.
Flash and Flex components combine to compile a SWF file that is integrated into the Web Dynpro component created in NetWeaver ABAP (see Figure 9). Compare the design and animation features of Adobe Flash with the business and data-oriented features of Adobe Flex, and see how both can be used to create RIAs.
Video: Understand the difference between Adobe Flash, Flex, Flash Player, and Adobe AIR (5:30)
Flex developers should watch this video to learn how to create a Web Dynpro component in NetWeaver ABAP.
Video: Creating your first Web Dynpro component (2:33)
Flex and SAP developers should review Figure 10 to understand the role of the Rich Islands libraries created by SAP. Note that there are two libraries: one is a SWC file that is integrated into the Flex Builder project and the other is a SWF file that exists in NetWeaver. You use the two libraries together to register the Flex application as a Rich Island and to integrate it into the Web Dynpro component.
Watch the following video to better understand these libraries and how to implement them.
Video: Understanding the SAP Rich Islands libraries (5:07)
Note: For more information about these libraries, visit the SAP Community Network blog.
Flex and SAP developers should watch these two videos to learn how to create data in the Web Dynpro component and map it to ActionScript variables in the Flex application.
Video: Mapping simple data between Flex and Web Dynpro (9:25)
Video: Passing complex data from Web Dynpro to Flex (9:25)
Note: Flex developers who want to learn more about ABAP should review the ABAP Help pages.
Flex and SAP developers should watch this video to learn how to create an event and event listener in the Web Dynpro component and dispatch it from the Flex application.
Video: Dispatching and handling events (3:33)
Note: SAP developers who want to learn more about creating and handling events within Flex should watch these videos:
SAP developers should watch this video to understand the asynchronous nature of ActionScript.
Video: Asynchronous data handling (2:23)
Note: SAP developers who want to learn more about setters and getters can review the Defining properties as getters and setters section in the Flex documentation.
SAP and Flex developers should watch the following video to understand how to debug your Web Dynpro application and troubleshoot your Rich Island code.
Video: Debugging and troubleshooting (3:45)
SAP developer who would like to learn more about building Flex applications should explore the following resources:
SAP and Flex developers can practice how to build Rich Islands by following the tutorials on the SAP Rich Islands wiki: