Getting Started with Web Dynpro
Web Dynpro is the SAP development toolset for creating professional Web user interfaces (UI) for business applications. Web Dynpro Java applications are developed within the SAP NetWeaver Developer Studio using a model-driven approach that minimizes manual UI coding and uses visual tools to design and reuse components.
Web Dynpro is based on the powerful and flexible Model-View-Controller architecture that helps implement a clear separation of user interfaces from backend services.
- Let's get started!
- Step 1 - Installation
- Step 2 - Build your First Web Dynpro application
- Step 3 - Understand the Key Web Dynpro Concepts
- Step 4 - Book a Training
- Step 5 - Read the documentation
Let's Get Started!
Do I Need the NWDI?
In principle: Yes. The SAP NetWeaver Development Infrastructure (NWDI) is SAP's source code version control and migration product. For productive development it must be installed and configured correctly. However, for your first use of Web Dynpro Java it is not necessary to have the NWDI installed.You find more information on NWDI here:
SAP NetWeaver Composition Environment Trial Version (SAP NetWeaver CE 7.1 SR5, SAP NetWeaver Developer Studio)Before you can develop a Web Dynpro application, you must install the SAP Java Application Server. If you don't have a SAP NetWeaver 7.0 installation available, you can download a trial version of the upcoming release of SAP NetWeaver Composition Environment 7.1 SR5.
Step 1- Installation
Step 2 - Build Your First Web Dynpro Application
There are three different applications you could build by using one of the following cookbooks:
Creating a Hello World in Web Dynpro Java This tutorial is a version of the popular “Hello World” program. You will write a very simple Web Dynpro application that places the text “Welcome to Web Dynpro” on the user’s browser.
A) I Have A Stand Alone Server with no Connection to the Internet.
Tutorial - Adaptive RFC Model For this application, you need a valid User ID to backend SAP system. This application will present the user with a selection screen an then call a BAPI in your backend SAP system using the selection criteria entered by the user.
B) I Have A Sap Backend System Available.
Creating an E-Mail Client Using Web Dynpro's Adaptive Web Service Model In this tutorial, you will develop a Web Dynpro application for sending an e-mail message, using an e-mail Web service provided by an external service provider. It fully describes all required development steps like setting up a new project, importing the Adaptive Web Service Model defining context mapping and binding relations, designing the view layout and implementing the controller code.
C) I Do not Have A Sap Backend System, but I Have A Connection to the Internet.
Note: This tutorial version uses an email Web service provided by a third party. This Web service must be available at runtime.
The ready-to-use project is available here.
Web Dynpro uses SAP's own interpretation of the MVC concept. In order to achieve the best results from Web Dynpro, it is most important that understand the key concepts in Web Dynpro architecture.
Step 3 - Understand the Key Web Dynpro Concepts
If these concepts are not understood, then you may well be able to write a functional Web Dynpro application, but it will suffer from:
- poor performance under heavy workload
- increased time required to perform maintenance
- unnecessarily complex business logic
- if your application connects to a backend SAP system, then it is likely that more connections will be opened than are necessary, which in turn will create extra work load on your backend system.
What is The Most Important Concept in Web Dynpro?
Structural Concepts of a Web Dynpro Component
Web Dynpro uses a unit of code called a "component". The component is your unit of development and your unit of reuse. Therefore to use Web Dynpro successfully you must understand how components are structured and reused. This concept is explained in this article.
Step 4 - Book A Training
We strongly recommend one of the following training courses to you. You will get a well-founded knowledge and speed up your productive development.
There are two training courses available from SAP for Web Dynpro Java. These are the introductory course (JA310) and the advanced course (JA312).
For booking please go to the online training catalog and search for course numbers shown below.
JA310 - Introduction to Web Dynpro Java
This 5-day course covers the basic concepts of Web Dynpro development. You will learn about the importance of the Web Dynpro component and its internal structure, how business data is held at runtime (The Context), and how to define the user interface - both statically at design time and dynamically at runtime.
JA312 - Advanced Web Dynpro Java
This 5-day course takes a detailed look inside the Web Dynpro Framework including how each round-trip from the browser to the server is handled (The Phase Model), Error Handling across multiple components and how to structure large Web Dynpro applications.
Step 5 - Read the Documentation
Web Dynpro for Java (in SAP Help Portal)
In Help Portal, you will find comprehensive information on the different topics.