Use
If you want to implement a Web application that is based on flow logic (such as a MiniApp), you must create HTML templates.
For screen-based Web applications you can select the transaction screens for which an HTML template should be explicitly generated. These templates that you created explicitly are identical to the HTML documents that are generated automatically by the SAP GUI for HTML.
Generating templates explicitly is useful if the SAP GUI features are insufficient for your needs and you would need to adapt the standard generated template anyway and you would like to improve the layout. This is the case for example when you want to insert hyperlinks.
Standard template generation from the SAP GUI should be sufficient for most transactions. The SAP GUI for HTML can display the screen elements of a simple transaction (text fields, input/output fields, checkboxes, radio buttons, tab controls, table controls, subscreens, and so on) without you having to go to the effort of creating a template.
Prerequisites
You must already have created the corresponding Internet service.
Procedure
To create an HTML template from the tree display in the object list:
The system displays the Create Template dialog box.
The other definitions depend on the type of Internet service (see:
Generation style |
Meaning |
Classical |
The template is generated by using HTML tags. The screen fields (values, labels, …) are referenced using the field labels with the same names and their attributes with the assistance of HTMLBusiness expressions and statements. The screen elements are positioned with HTML <p> tags and not with absolute specifications.
|
HTML business |
The template is generated by using HTML tags and HTMLBusiness
functions. The layout of the screen elements is analogous to the ITS WebGUI. However, the screen elements are always positioned using <p> tags. |
WebGUI |
The template is generated by using HTML tags and HTMLBusiness
functions. Both the layout and the positioning of the screen elements is analogous to the ITS WebGUI. Positioning is defined using absolute values. |
You should select the option Name of the template for Web applications that are based on flow logic (such as MiniApps) and then define a name for the new template.
The system then displays the Create Object Catalog Entry dialog box.
Result
The generated template appears in the object list under Templates. The generated contents of the template are displayed in the Editor.
See also:
Extending HTML-Templates Inserting MIME Objects