Entering content frame

Procedure documentation Creating Sub-configurations Locate the document in its SAP Library structure

Prerequisites

To create a sub-configuration, you must have:

·        connected to the Configuration Manager

·        opened a configuration in write mode. The open configuration serves as a root to the newly created sub-configuration. To create a sub-configuration of the application configuration root, you must have opened it in write mode.

Procedure

To create a sub-configuration of a particular configuration that you have opened in write mode, invoke its createSubConfiguration() method passing the name and the type of the new configuration as parameters to this method:

Example

try {

   //root is parent for sub-configuration "data"

   Configuration data = root.createSubConfiguration("data");

 

...

   } catch (NameAlreadyExistsException e) {

   //react appropriately to the case that "data" already exists.

}

 

You can also create a set of standard sub-configurations using the createSubConfiguration(java.lang.String[] names) method, or a set of sub-configurations of a particular type using the createSubConfiguration(java.lang.String[] names, int type) method of the Configuration interface. For more information, see the J2EE Engine API documentation of the interface in the SAP NetWeaver Developer Studio documentation.

 

 

Leaving content frame