NWDS WebDynpro
NWDS WebDynpro
NWDS WebDynpro
More or less everything you know from the handling of Eclipse can be applied to the
NWDS.
To run Web dynpro for Java applications you need the Netweaver application server for
Java. To develop these applications you need the SAP Netweaver Development Studio.
You find trivial version of the NWDC on the SAP Developer Network. http://sdn.sap.com
Select here Downloads. Currently the best download is the SAP Netweaver
Composition Environment. Downloading the software requires a valid user.
Requistration is free of charge.
2. Webdynpro Introduction
2.1. Overview
Webdynpro for Java (Java WD) only runs on the server. You can develop locally with
the SAP Netweaver Development Studio but to test and run the application you have to
deploy the application to the server.
Java WD runs on the Netweaver application server for Java (NWAS Java) which is
decoupled from the SAP ABAP application server. To access the SAP ABAP application
server you have to use Remote Function Calls (RFC) or Webservices.
2.2. Component
In addition to the standard hook methods the programmer can also declare controller
instance methods (in the methods tab of the controller) and define the method and its
parameters.
Also in addition each controller contains at the end of the source code a coding block in
which the programmer can put any code and member variables he likes.
2.3. Context
Each controller has one hierarchical data storage structure called context .
The context is a local memory which allows to store hierarchical data for a specific WD
component, e.g. view and / or controller.
Each context has a root element. Under that root element the other objects are stored.
If the developer would like to structure his work over several project and / or work
distributed on several project he can use "Development Components".
Within DC's you can add dependencies via "DC Definition" -> Used DC -> Add
Dependency
Dependent DC's are available at design time, to make then available at runtime on the
server they need to be deployed to the server.
Select your DC, right mouse click, select Development Component-> Build. This will
make the DC available at design time.
Select your DC, right mouse click, select Development Component-> Deploy. This will
make the DC available at runtime on the server.
Development Components (DC) are normal project which can create via New ->
Development Component.
DC can define the public API, e.g. which elements are avaiable for other development
components. E.g. if you define a structure type in one development component you can
add it ot the public API via right mouse click -> Add to public part.
Tip
If you add a structure to the public part then you have also to make the simple types
available .
Model, e.g. access to external data sources, are usually create as DC.