Introducing Templates

Objective

After completing this lesson, you will be able to describe the function of templates.

Templates

It can be a time-consuming task to specify settings for multiple tables in a configuration or to specify settings for multiple configurations. To save time, you can specify certain advanced replication settings in a template and assign the template to a configuration. During the replication process, the system then applies these settings to the replicated data. You can assign a template to multiple configurations and can also assign multiple templates to a single configuration. Templates can be moved across the SAP system using the standard SAP transport mechanism.

A screenshot showing that Template Maintenance is selected from the Goto dropdown menu

A template consists of one or more components. A component contains a set of settings based on a specific pattern, which specifies the scope of the settings. If you want to specify additional settings that are based on different patterns, you can create additional components.

A dropdown menu under the Template icon displays two options: Template and Template Component. The main screen displays data under the column titles: Template Name and Template Component.

You can specify certain settings that are part of the advanced replication settings, Table Settings and Rule Assignments, such as the following:

  • General Table Settings
  • Table Structure Deviations
  • Rule Assignments
A screenshot shows that Rule Assignments is selected from a dropdown with settings options, and the main screen displays data under Rule Overview.

A component contains a set of settings based on a specific pattern. A pattern specifies the scope of the settings. You create patterns to apply your settings to specific tables, fields, and data types. For example, you can specify a pattern to cover all tables that have the prefix D*. All of the settings that you specify for the template component are then applied to these tables.

If you do not create a pattern for a component, the system implements exactly the settings you specify under General Settings, Table Deviations, and Rule Assignments.

A screenshot shows that Patterns is selected from the Client Mapping dropdown in Template Maintenance. Selecting the template icon then displays a list of options: Data Type Pattern, Field Pattern, and Table Pattern.