Show TOC

 Further Editing Web TemplatesLocate this document in the navigation structure

Use

You can edit the XHTML source of a Web template directly in the Web Application Designer or with an external XHTML editor. You can also make changes to the XHTML source in the layout view of the Web Application Designer.

Prerequisites

You have created a Web template in the Web Application Designer, and want to edit the XHTML source of this Web template.

Procedure

You have the following options:

  1. You can edit the Web template directly in the XHTML view of the Web Application Designer.
    • To do this, in the Template window in the Web Application Designer, choose the XHTML tab page.
    • Edit the XHTML.

    You have the following options for checking the checked XHTML:

    • Validate
      1. To allow the system to check the edited XHTML, choose Web Template → Validate in the menu bar of the Web Application Designer.

        The system only checks that the syntax of the BI tags is correct. If errors are found, they are listed in the Errors and Warnings screen area, but no corrections are suggested.  However, you can navigate to the row or column in which the error was found. For certain errors, you can also jump directly to the incorrect code by choosing the displayed hyperlink. 

      2. Correct the incorrect XHTML.
    • Validate on Server
      1. To allow the system to check the edited XHTML on the server, choose Web Template → Validate on Server in the menu bar of the Web Application Designer.

        The system checks, where possible, whether the XHTML is syntactically correct. Changes in the XHTML are not added to the Web template during the validation. If errors are found, the correction assistant is displayed. The correction assistant suggests corrections for the errors found.

      2. In the correction assistant, you can ignore all errors, ignore specific errors, or accept the suggested corrections. Choose one of the three options.

      Note that if you ignore the errors that are found, it may not be possible to save or execute the Web template.

      Note

      The system automatically starts validating the Web template if:

      • You switch from the XHTML view in which you edited the XHTML to another view of the Web Application Designer.
      • You save the Web template.
  2. You can also edit the Web template with an external XHTML editor:
    • To process a Web template further using an external XHTML editor, choose Web Template → Export to File in the menu bar of the Web Application Designer. Your Web template, that is the XHTML file, is stored on a file system of your choice. You can call it from there with your XHTML editor.
    • To call a Web template that you have edited in the XHTML editor (that is, the edited XHTML file) in the Web Application Designer again and edit it further, store the file on your file system again. In the Web Application Designer, choose Web Template → Import from File and specify the name and location of the saved file.
  3. Technically advanced and more experienced users can use an ABAP program that is available in the BW system:

    To use this ABAP program to make changes to the Web Template, proceed as follows:

    1. In the menu bar of the SAP Easy Access screen in the BW system, choose System → Services → Reporting (transaction SA38).
    2. In the program field, enter report RS_TEMPLATE_MAINTAIN_70.
    3. Enter the name of the Web template that you want to edit.
    4. Edit the Web template.