Summary: This document explains, way to create UI element as a TEMPLATE.
Requirement : Defining Table UI element as a template and using in other components.
1. Create a component 'YSG_TEMPLATE'.
2. Create a node 'MATERIAL' in the context and design the view with a table UI element.
3. To define TABLE UI element as a TEMPLATE, right click on the ROOTUIELEMENTCONTAINER and select SAVE AS TEMPLATE
4. Enter the details to create Template
Name of Template : Table
Description : Table UI element as Template
Template ICON : @BJ@
check Save All Binding check box and then click on Save button
Note: Along with the context binding, context and if any actions are defined to the table will be saved with the template
5. To check whether template is created or not, click on Web Dynpro Icon or Ctrl + F7
Under User: We can see TABLE template is created.
6. Lets create component 'YSG_TEMPLATE_USAGE'
7. To use the custom TABLE template, click on code wizard icon or Ctrl+F7. Select custom Table template
8. View gets designed with a table and node 'MATERIAL' in the context gets created
This is how an UI element can be defined as a TEMPLATE.