Accelerate your Web Dynpro Java Development – Part 1 – How to quickly make a Web Dynpro Java Project structure..
Applies to: Developed and tested in SAP Netweaver 7.01 but the basic concepts explained here will apply to all other versions.
Summary : There are always 2 options availables, work hard or work smart. Similarly in Web Dynpro Java Development there are ways to work hard and ways to work smart. The output will be the same in both the cases. This document will help you to work smart with your Web Dynpro Java Development and achieve more in less time. In this quick cheat sheet we will discuss the fastest way of creating a basic Web Dynpro Java project structure which forms the foundation of development. The target audience for this document are beginners. Creating a project structure is the foundation of development on which i will build in following documents. This series of documents will help developers speed up their learning and learn smart ways to accomplish more in less time.
Author: Amol Gupta
Company: Pitney Bowes Software
Created on: 13 June 2012
Author Bio : Amol Gupta is working with Pitney Bowes Software as an SAP Technical Consultant. He has been working on Web Dynpro Java(WDJ) programming, Enterprise Portal (EP), SAP Netweaver Development Infrastructure (NWDI), Master Data Management (MDM) and Adobe Interactive forms for WebDynpro Java. Amol is a Sun Certified Java Programmer (SCJP) and Certified Scrum Master (CSM).
The target audience of the document are expected to know basics of SAP Web Dynpro Java Development and should have SAP NWDS installed and SDM credential for creating and deploying Web Dynpro Java Applications.
Developers will be able to understand the hard way and the smart way to create a basic Web Dynpro Java project that will help them save time while doing real world developments.
A. The long hard way to make an SAP Web Dynpro Java Project
Step 1 – Create DC
Click on File at top left corner, click on Development Component Project.
Select MyComponents and finish the wizard.
Step 2 – Create Component
You may enter your own Custom Component name, Window name and View name. Let the other default settings remain the same. press next and finish respectively as required.
You will see that you component is visible under Web Dynpro Components now and a hierarchy of Web Dynpro specific objects is created.
Step 3 – Create Application
Right click on Applications and create your Application, you may enter your custom application name and package but the component should be the one that you created earlier and should come defaulted out.
Notice that in the below screenshot, there is an option to create a new Component, but at this moment we will use the existing Component that we created.
Step 4 – Deploy and run your application
B. The short smart way to make an SAP Web Dynpro Java Project
Step 1 : Create DC
This step remains the same as in last approach A. The magic is in the next step.
Step 2 : Create Application and Component in a single step
Please note that in the last approach we used Use existing component option while in this short approach we using Create a new component option.
Step 3 : Deploy and run your application
This step remains the same as in last approach A.
Thus we notice that the fastest way to create the basic structure of a Web Dynpro Project is to create an Application and a create a Component from withthin the application creation wizard. Creating a component and then creating an application followed by linking the component to the application will be slightly time consuming as it involves more steps.