Show TOC

Procedure documentationStep 9: Creating and Testing a Web Dynpro Application Locate this document in the navigation structure

 

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.

This graphic is explained in the accompanying text.

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   Create   Web Dynpro Application  .

  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   Test in the Business Client   HTML Client   or   Test in the Business Client   Desktop Client  .

    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.

    An interface element is displayed in the top-left corner of your browser (Business Client), and there is a button to the right of 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.

Result

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.