Creating HTML Templates 

Use

When you implement a MiniApp, you must create HTML templates. The dialog logic of a MiniApp runs on the ITS, not in R/3.

For each transaction, you can choose whether you want to generated HTML templates for all screens, for some screens ( mixed mode), or at all. Templates that you create explicitly are identical to the HTML documents that are generated automatically by the WebGUI.

Generating templates explicitly is useful if the WebGUI features are insufficient for your needs and you would need to adapt the standard generated template anyway. This will particularly be the case if you are trying to improve the layout of a screen or if you want to include hyperlinks.

Standard template generation from the WebGUI should be sufficient for most transactions. The WebGUI can display the screen elements of a simple transaction (text fields, input/output fields, checkboxes, radio buttons, tabstrip controls, table contorls, subscreens...) without you having to go to the effort of creating a template.

Prerequisites

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 Create Template dialog box appears.

  4. Enter the theme for the service and fill out the remaining fields.
  5. If the Web application is a Web transaction and you want to generate a template for a particular screen, select Generate HTML from screen and enter the program name and screen number.

    If the application has no corresponding R/3 screen (MiniApps), select Name of template and enter the name.

  6. Confirm by choosing Save.
  7. The Create Object Catalog Entry dialog box appears.

  8. Assign the template to a development class and choose .

Result

The generated template appears in the object list under Templates. The generated contents of the tempalte are displayed in the Editor. Only the static screen information is evaluated - an HTMLBusiness function is inserted in the template for each screen element. These are highlighted in blue. You can now change the contents of the template using standard HTML and HTML Business .

See also:

Extending HTML Templates

Adding MIME Objects

Publishing Services