Start of Content Area

Function documentation Web Template  Locate the document in its SAP Library structure

Use

This Web item can be used to manage consistent sections of different Web templates centrally within one Web template, which you can then insert into any Web template as required. In this way, you can define a header or footer section with the corporate logo and heading as a Web template and can integrate this Web template into your Web applications as a Web Template Web item. This Web template is then inserted during runtime. In contrast to HTML frame technology, the system does not generate a new page during this process. The context of the main template thus remains the same. In this way, you can display text elements and so on from data providers for the main template in the inserted Web template.

Prerequisites

You have saved a Web template in which you are managing consistent sections.

Example

In the following examples, you can see schematic illustrations of possible application scenarios for the Web Template Web item.

Example 1

This graphic is explained in the accompanying text

The above image shows a simple application scenario for the Web Template Web item that functions in this case as a reusable header section with corporate logo and heading (without additional Web items or data providers)and that can be inserted into any other Web template.

Example 2

This graphic is explained in the accompanying text

The above image shows an application scenario for the Web Template Web item, into which a Text Element Web item was then inserted. Since the context of the main template remains the same for the Web-template-in-Web template concept, text elements from data providers of the main template are displayed with the Text Elements Web item. For this reason, you can also work in this scenario without prefix assignments.

Example 3

This graphic is explained in the accompanying text

The image above shows a complex application example for the Web Template Web item. A Web Template Web item was inserted into the main template that contains a Web Template Web item (footer section with text elements) and a Web item for displaying the data (in this example, a chart). By inserting the Web Item – Initialization attribute, the type of display can be overridden so that the data, for example, is displayed in a table instead of in a chart as they were originally shown.

 

 

End of Content Area