Show TOC

Process documentationSetting Up HTML Viewer Locate this document in the navigation structure

 

You use this process to set up the HTML Viewer POD plug-in (see HTML Viewer).

Prerequisites

  • If you use an MII servlet, you have installed both SAP MII and SAP NetWeaver.

  • In SAP NetWeaver, you have configured the destination as follows:

    Field

    Value

    Destination Name

    This value is assigned to the DESTINATION_NAME optional activity rule in Activity Maintenance in SAP ME, in upper case characters.

    Destination Type

    Set to HTTP

    URL

    Specifies the content type, width and height of the image to be displayed.

    The Transaction portion of the URL depends upon how you set up SAP MII and the transaction in SAP MII.

    For more information, see the following sections in SAP MII guides and help:

    Authentication

    The type of authentication to be used. We recommend that you use Basic authentication.

    Authentication Parameters

    The value depends on the Authentication type selected.

    For the Basic authentication type the User Name and Password parameters are required.

Process

  1. In Activity Maintenance, you create a new activity and set activity rules.

    • On the Main tab page, add a new activity and enter the following data:

      Field

      Value

      Activity

      The name for the activity

      Class/Program

      com.sap.me.reporting.client.impl.ReportsPlugin

      Type

      WPMF Plug-In

    • On the Rules tab page, add the following rules:

      Required

      Optional

      Setting

      PLUGIN_URL

      /COM/SAP/ME/REPORTING/CLIENT/REPORTS_PLUGIN.JSP

      DESTINATION_NAME

      The name of the destination defined in SAP NetWeaver

      TITLE

      The default value is REPORTS.title.TEXT.

      POLLING_PERIOD

      Time period (in seconds) between requests to update the HTML Viewer content

      Note that the value must be more than zero, otherwise polling is not performed.

      RESPONSE_TYPE

      IMAGE (default) or HTML

  2. In POD Maintenance, you create a button associated with the HTML Viewer activity (name assigned in Activity Maintenance) and assign it to your layout (see Adding POD Button Activities to Your PODs).

  3. In User Group Maintenance, you assign HTML Viewer to one or more user groups which you want to use this activity.

Example

  1. Log on to SAP NetWeaver Administrator using the following URL: http://<AS_Java_hostname>:<AS_Java_HTTP_port>/nwa.

  2. Choose   Configuration   Destinations  .

  3. Choose Create to add a new destination for MII Runner Servlet.

  4. On the Destination Wizard screen, enter MII_REPORT in the Destination Name field and HTTP in the Destination Type field, and choose Next.

  5. Add the following URL for the MII Runner Servlet and choose Next: http://server1.pal.sap.corp:50000/XMII/Runner?Transaction=project1/examples/transaction/reportImage&OutputParameter=OutputString&Content-Type=image/png&Width=464&Height=260.

  6. On the Logon Data screen, select the Basic authentication type and enter the user name and password of the administrative AS Java user and choose Finish.

  7. Choose Ping Destination to verify the configuration.

  8. Log on to SAP ME and enter the following in Activity Maintenance:

    • On the Main tab page:

      Field

      Value

      Activity

      MII_REPORT

      Class/Program

      com.sap.me.reporting.client.impl.ReportsPlugin

      Type

      WPMF Plug-In

    • On the Rules tab page:

      Rule

      Setting

      PLUGIN_URL

      /COM/SAP/ME/REPORTING/CLIENT/REPORTS_PLUGIN.JSP

      DESTINATION_NAME

      MII_REPORT

  9. In POD Maintenance, retrieve a POD record and modify it as follows:

    • On the Buttons tab page, choose Insert New, enter MII_REPORT in the Button ID field, and MII Report in the Button Label field.

    • On the Button Details screen, choose Insert New, select the activity MII_REPORT, and choose Apply.

    • On the Layout tab page, in the Popup row, select the Other Plug-Ins icon, and choose Insert New.

    • Select the MII_REPORT activity, choose Apply and choose Save.

  10. In User Group Maintenance, modify the permissions as follows:

    • Retrieve the user group that you will use.

    • On the Permissions tab page, select the MII_Report checkbox and choose Save.

  11. Open the POD in another window and choose MII Report.

    The system displays the content of an MII report in the Reports popup window.