Entering content frame

Background documentation Application Configuration Locate the document in its SAP Library structure

A Web Dynpro application usually belongs to a main component, which - in turn - uses a series of other components. Using the application configuration, it is now possible to assign the configuration required in the current application to all the components used.

This graphic is explained in the accompanying text

The Application Configurator

·        To create an application configuration, select a Web Dynpro application from the object list in the ABAP workbench.

·        Open the context menu and choose the entry Create/Change Configuration. A browser window opens and you have the option of entering a name for the new application configuration.

·        After you have chosen the Create function, all the components used in the application will be displayed to you in a table. You can now choose for each individual component – from all the corresponding component configurations – the one that is required for your application.  However, a configuration must not necessarily be actually used for all components.

·        After you have saved and refreshed your tree display in the Workbench, you now have the configuration you created at your disposal.

 
Assignment of the Configuration to the Application

Various configuration data records can be created and stored for an application. To start an application with a special configuration, there are different options available:

       1.      In the portal, you can define the assignment by specifying the configuration name as Application Parameter in the iView wizard.

       2.      In SE80, you can call up the application with the required configuration directly through the context menu entry Test in the selected application configuration.

       3.      The name of the configuration can be passed to the application or passed as a default value. For this reason, you can maintain the parameter WDCONFIGURATIONID for a Web Dynpro application. You enter it on the Parameter tab page of the Structure linkApplication Editor.

Note The parameter WDCONFIGURATIONID can be assigned once only for each application.

After you have saved the data, you now have the configured Web Dynpro application at your disposal.

 

Possible Development Scenario

A component developer is setting up a component in order to represent a basic business function. In addition, he or she is integrating –  already at this point – explicit configuration options by creating a range of attributes in the configuration controller context and by implementing the respective functions in suitable methods of the different component controllers.

An application developer wishes to use this component in a particular context. He or she first creates a component configuration for the component used, one that matches his or her requirements. For the application, he or she will use perhaps other components with special component configurations that either already exist or will have to be specially created for this purpose.

Afterwards, he or she sets up a main component and creates for this a new application as well as an application configuration. This has a unique name and contains a list of all the used components with the required component configuration in each case. Non-configured, used components are not contained in this data record.

Finally, the application developer enters the name of the created application configuration as a default value for the parameter WDCONFIGURATIONID in the appropriate tab page in the application editor.

When you start the application, all the required components are now brought in with the selected configuration.

 

 

Leaving content frame