Show TOC

Process documentationSetting Up HTML Viewer

 

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

Prerequisites

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

  • In SAP NetWeaver Administrator, you have configured a servlet's destination. For more information, see the example below.

    Field

    Value

    Destination Name

    This value is assigned to the DESTINATION_NAME required activity rule in SAP ME Activity Maintenance using 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:

    • URL Format for Queries on SAP Help Portal at Start of the navigation path http://help.sap.com/miiInformation published on SAP site Next navigation step Application Help Next navigation step Content Development Next navigation step SAP MII Workbench Next navigation step Query Template End of the navigation path

    • Transaction Calls Using URLs on SAP Help Portal at Start of the navigation path http://help.sap.com/miiInformation published on SAP site Next navigation step Application Help Next navigation step Content Development Next navigation step SAP MII Workbench Next navigation step Transactions End of the navigation path

    • Web Service Interface on SAP Help Portal at Start of the navigation path http://help.sap.com/miiInformation published on SAP site Next navigation step Application Help Next navigation step Content Development Next navigation step SAP MII Workbench Next navigation step Transactions End of the navigation path

    • SAP MII Generic Service on SAP Help Portal at Start of the navigation path http://help.sap.com/miiInformation published on SAP site Next navigation step Application Help Next navigation step Content Development Next navigation step SAP MII Workbench Next navigation step Transactions Next navigation step Web Service Interface End of the navigation path

    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.

    Note Note

    If you provide this information, you won't have to log on to SAP MII from SAP ME POD to access the content.

    End of the note.

Process

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

    1. On the Main tab page, enter the following data:

      Field

      Value

      Activity

      The name for your new activity such as MII_REPORT. Please see the example below.

      Class/Program

      reportsPlugin

      Type

      WPMF Plug-In

    2. On the Rules tab page, add the following activity rules:

      Rule

      Description

      DESTINATION_NAME

      The name of the servlet's destination that is defined in SAP NetWeaver Administrator

      This rule is required.

      RESPONSE_TYPE

      The content provided by the servlet.

      IMAGE (default): the servlet's content is PNG, GIF, or JPG image files

      HTML: the servlet's content is static HTML pages

      DYNAMIC: the servlet's content is dynamic HTML pages

      This rule is optional.

      POLLING_PERIOD

      Time period (in seconds) between requests to update static content. The value must be greater than zero, otherwise polling is not performed.

      This rule is optional. It is used only if the RESPONSE_TYPE rule setting is IMAGE or HTML.

      POPUP_MODAL

      TRUE: The servlet's content appears in a floating popup that is equal to or smaller than the POD size.

      FALSE (default): The servlet's content appears in a modeless popup that is displayed in a new browser window.

      This rule is optional. It is used if you have configured to display this POD plug-in as a popup.

      POPUP_HEIGHT

      The height of the popup window in pixels.

      This rule is optional. It is used if you have configured to display this POD plug-in as a popup and the POPUP_MODAL rule setting is TRUE.

      POPUP_WIDTH

      The width of the popup window in pixels.

      This rule is optional. It is used if you have configured to display this POD plug-in as a popup and the POPUP_MODAL rule setting is TRUE.

      POPUP_POSITION

      The position of the upper left corner of the popup window.

      Example Example

      The value 10,50 means that the upper left corner of the popup window is positioned 10 pixels away from the top edge of your screen and 50 pixels away from the left edge of your screen.

      End of the example.

      This rule is optional. It is used if you have configured to display this POD plug-in as a popup and the POPUP_MODAL rule setting is FALSE.

      REQUEST_PARAMETERS

      Parameters that will be added to the destination URL.

      The format is PARAM1=VALUE1&PARAM2=VALUE2&PARAM3=VALUE3

      This rule is optional.

      TITLE

      The title of the POD plug-in. The default value is REPORTS.title.TEXT.

      This rule is optional.

  2. In POD Maintenance, you create a POD button associated with the activity that you have created in Activity Maintenance) and define the layout (see Adding POD Button Activities to Your PODs).

  3. In User Group Maintenance, you assign the activity 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 Start of the navigation path Configuration Next navigation step Destinations End of the navigation path.

  3. Choose Create to add a new destination for SAP 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

      reportsPlugin

      Type

      WPMF Plug-In

    • On the Rules tab page:

      Rule

      Setting

      DESTINATION_NAME

      MII_REPORT

  9. In POD Maintenance, retrieve a POD record and do the following:

    • 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, assign this activity to one or more user groups as follows:

    • Retrieve a user group.

    • 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 the MII report in the Reports popup window.