Entering content frameProcedure documentation Creating HTML Templates Locate the document in its SAP Library structure

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.

Recommendation

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:

  1. Right-click the name of the service.
  2. From the context menu, choose Create ® Template.
  3. The system displays the Create Template dialog box.

  4. Enter the theme for the service and define the other options.
  5. The other definitions depend on the type of Internet service (see: Structure link Creating an Internet Service).
    For a screen-based Web application choose Generate HTML from screen and specify the screen number for which the HTML template should be generated using the F4 key. During generation, the static screen information is analyzed and an appropriate HTMLBusiness function is displayed for each screen element.
    You can change the appearance of the generated HTML page by selecting a generation style.

    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.
    See
    Structure link Example.

    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.
    See
    Structure link Example.

    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.
    See
    Structure link Example.

    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.

  6. Choose This graphic is explained in the accompanying text Save.
  7. The system then displays the Create Object Catalog Entry dialog box.

  8. Assign a Package to the template and choose This graphic is explained in the accompanying text.

Result

The generated template appears in the object list under Templates. The generated contents of the template are displayed in the Editor.

 

This graphic is explained in the accompanying text

 

See also:

Extending HTML-Templates

Inserting MIME Objects

 

 

Leaving content frame