Previous Topic: Understanding Function Templates

Next Topic: Special Considerations for EDTTRN/DSPTRN Template Functions

Creating a Template Function

This process applies both to the primary template function and to any functions the primary function references that also to serve as template functions.

  1. There are two ways to create a template function:
  2. Adjust or create the function as you would any other function:
    1. Name the function. When naming a template function you can place *Template in the name where you want the target file name to appear; for example, Work with *Template data translates to Work with Customer data for the Customer file.
    2. If the function requires an access path, specify an appropriate one based on the *Template file.
    3. Add standardized actions to the action diagram.
    4. Specify parameters for internally-referenced template functions using the following two fields defined for the *Template file:

Note: In both cases all fields are used.

  1. Save the template function.