Creating Routines

If you are a using a SAP HANA database...

Procedure

  1. You are in the transformation editing screen.

    • To create a start routine, choose Start Routine

    • To create an end routine, choose End Routine

    • To create a characteristic routine, double-click the characteristic in the transformation group to open the maintenance screen for the rule details. You can select the rule type Routine here.

  2. If you are creating a characteristic routine, the routine editor appears immediately. If you are creating a start routine or an end routine, you can first select fields that are to be updated. Some fields are required for further processing however, meaning that they must be updated. For details, see the F1 help.

  3. You are in the routine editor. To create a routine, enter the following:

    Between *$*$ begin of global ... and *$*$ end of global ..., you can define 'CLASS DATA' global data declarations. These are available in all routines. Data declarations with ‘DATA' can only be accessed in the current package.

    This means that you can use intermediate results in other routines for example, or reuse results when you call a routine again at a later time.

  4. Insert your program code for the routine between *$*$ begin of routine ... and *$*$ end of routine .... For information about the parameters of the routine, see

  5. Check the syntax of your routine.

  6. Save the routine. You end the editing of the routine by leaving the editor.

More information:

Example of Start Routine

Example of Characteristic Routine

Example of End Routine