To save a new template, select Save from the pop-up menu in the Export/Import Template view, and give the template a name and optionally a comment that identifies its use.
The template is stored inside the report in the PBL. After saving a template with a report, you can see its definition in the Source editor for the report. For example, this is part of the source for a report that has two templates. The templates have required elements only:
export.xml(usetemplate="t_address" template=(comment="Employee Phone Book" name="t_phone" xml="<d_emplist><d_emplist_row __pbband=~"detail~"/></d_emplist>") template=(comment="Employee Address Book" name="t_address" xml="<d_emplist><d_emplist_row __pbband=~"detail~"/></d_emplist>"))