Show TOC

Creating and Testing a Web Dynpro ApplicationLocate this document in the navigation structure

Context

In this last step you have to create a Web Dynpro application so that the window can be called using a URL. A Web Dynpro application is linked uniquely to a URL with which it can be started in the browser. The Web Dynpro application does not contain any information about the inner structure of the window behind it.

For every window of a component, a uniquely assigned interface with the same name is generated when it is created: the interface view. The window is linked with the Web Dynpro application using this interface view.

Procedure

  1. Open the context menu for your Web Dynpro component in the object list hierarchy and choose Start of the navigation path Create Next navigation step Web Dynpro Application End of the navigation path.
  2. Give your application an appropriate name and confirm the dialog.

    A list of the properties of your new application is displayed on the right-hand side. myComponent was automatically entered in the Interface View row, since no more windows with corresponding interface views are available for selection.

  3. Choose Save.
  4. Activiate all the parts of your component, for example, using the Activate entry in the context menu of the myComponent component.
  5. In the context menu of the Web Dynpro application you just created, select the entry Test for the call in the browser or Start of the navigation path Test in the Business Client Next navigation step HTML Client End of the navigation path or Start of the navigation path Test in the Business Client Next navigation step Desktop Client End of the navigation path.

    The Workbench ensures that a browser is started and that the URL or SAP NetWeaver Business Client (if installed) that was generated for your application is called. You may need to log on to your system again using the browser or Business Client.

    You will see an input field and a pushbutton next to it. Once you have entered a text and clicked on the button, you will be taken to your second view. The text that you entered appears there together with the button for backwards navigation.

Results

The simple Web Dynpro application with the equally simple context example is complete.

You can now extend it as you like and try out the varied design options that the Web Dynpro framework offers.