Show TOC Start of Content Area

Procedure documentation Managing Substitution Variables  Locate the document in its SAP Library structure

Use

Substitution variables let you set specific values for component properties for different environments.

Prerequisites

You must be connected to an AS Java.

Open the Config View from Windows Show View Others Deploy View Config View.

Procedure

Getting Substitution Variables

To get an actual list of the substitution variables on the AS Java, choose This graphic is explained in the accompanying text with the quick info text Refresh.

To see the variable value, select the variable from the list.

Adding a Substitution variable

...

       1.      Select the Substitution Variable node. The This graphic is explained in the accompanying text with the quick info text Add element becomes active.

       2.      Enter the appropriate values in the Substitution Property Name and Config Property Value fields.

       3.      Choose This graphic is explained in the accompanying text with the quick info text Add element and confirm your decision. This adds the variable as a node to the Substitution Variables list.

Removing a Substitution Variable

       1.      Select one or several substitution variables from the list. The This graphic is explained in the accompanying text with the quick info text Remove element becomes active.

       2.      ChooseThis graphic is explained in the accompanying text with the quick info text Remove element and confirm your decision.

Result

The values of the substitution variables match your needs and the applications can behave accordingly.

Example

The application X requires resource Y. Resource Y has different locations on the two server nodes as follows:

      On server node 1 it is located in directory server1/test1

      On server node 2 it is located in directory server2/test1

To minimize efforts, application X can refer to the location of resource Y as {Y_location}/Y. Using substitution variables you can give different values to the substitution variable {Y_location} for the two different nodes. For:

      Server node 1 it will be {Y_location} = server1/test1

      Server node 2 it will be {Y_location} = server2/test1

As a result, you have more freedom to manage your resources and at the same time you do not have to change the application before deploying it different on server nodes.

End of Content Area