Professional Documents
Culture Documents
Procedure
1. Open the New File wizard.
After you have created your workspace and your project, go to the Project
Explorer view in the SAP HANA Development perspective, right-click on the file
name, choose New File. The New File wizard appears.
2. Enter or select the parent folder and enter the file name using the following naming
convention <filename>.proceduretemplate.
3. Choose Finish.
Schema name
Procedure name
The parameters can only be used in the procedure body, between the BEGIN
and END, and not as part of the procedure header. The parameters must
follow the SQL identifier semantics. Each parameter should be wrapped using
the less than (<) and greater than (>) symbols. For example:
To avoid errors during activation, you must make sure your procedure
template is consistent. For example:
Procedure
1. Open a New Procedure wizard.
Enter or select the parent folder, enter the file name, select XML (.procedure)
- Deprecated for the file format. Choose Advanced, select the Create from
procedure template checkbox , and choose Browse. Select the relevant
template, choose OK, and choose Finish.
3. In the Procedure Template Instance editor, add a value in the Value column
for each parameter, and choose Save.
Note:
1. The value is the string that replaces the parameter in the template script.
During activation.
2. The procedure is created in the catalog using the values specified in the
instance with the active template in the repository.
3. A reference between the instance and its template is created to link them
together.
Update Procedure Templates and
Instances
The procedure template script and its parameters can be modified, which also
modifies the template instances that refer to it. Only the template parameter values
can be changed in the procedure template instances.
Procedure
1. To update a procedure template and its instances, double-click the relevant file in
the Project Explorer view. The file appears in the Template Script editor.
2. You can change the list of template parameters or the template script. Choose Save.
Note:
1. If you change the list of template parameters, you should also update the instances
by choosing the Refresh button to update the list of parameters and enter the
values.
2. During activation, the corresponding instances are reactivated and the changes are
applied accordingly.
Procedure
1. To delete a procedure template or a procedure instance, right-click the relevant file in
the Project Explorer view, choose Delete, and choose OK.
1. If an error occurs during activation because there are instances linked to the
procedure template that you are trying to delete, then right-click the project name and
choose Team Resolve.