Está en la página 1de 13

SAP MII - Asset Visibility (SelfService Reporting)

Applies to:
SAP MII 12.2 (MDO must be configured), NetWeaver CE 7.11 or NetWeaver CE 7.30 For more information, visit the Manufacturing homepage.

Summary
The purpose of this document is to explain how the MII based Asset Visibility composite application is designed and how it can be utilized to present equipment status information. The design of this application allows end-users to retrieve tag-based data on a web report via a drag and drop interface. User defined reports can be created to display asset status and are viewable on either their PC or Mobile device web browser. The project content to import into your MII environment is downloadable from here.

Author:

Salvatore Castro

Company: SAP Labs, LLC Created on: September 26, 2011

Author Bio
Salvatore Castro of SAP Labs has a Bachelors Degree in Computer Engineering and a Masters Degree in Computer Science both through the Rochester Institute of Technology. He is a member of the LoB Manufacturing Group under Dr. Frank Schuler.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 1

SAP MII - Asset Visibility (Self-Service Reporting)

Table of Contents
Overview ............................................................................................................................................................. 3 Getting Started .................................................................................................................................................... 5 Using NetWeaver CE 7.11 .............................................................................................................................. 5 Administration ................................................................................................................................................. 6 Builder ............................................................................................................................................................. 6 Using the Builder ............................................................................................................................................. 7
Defining Object on Your Report ................................................................................................................................... 8 Tag Value Object ......................................................................................................................................................... 8 Status Light Object....................................................................................................................................................... 9 Thermal Bar Object ...................................................................................................................................................... 9 Hyperlink Object......................................................................................................................................................... 10

Viewer. ....................................................................................................................................................... 11 Related Content ................................................................................................................................................ 12 Copyright........................................................................................................................................................... 13

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2

SAP MII - Asset Visibility (Self-Service Reporting)

Overview
The Asset Visibility composite application is based on the MII Composition Environment and allows end users to configure drag and drop reports for viewing tag based data. The purpose of this application is to reduce the implementation overhead required to build end-user reports on the technical IT staff and enable non-technical users to create and manage their own reports without having to open the MII Workbench. The application is designed to work out of the box and utilize your existing MII Data Server Tag type connections to populate the reports with data. There are three sections defined in this application and they are the Administration, Builder, and Viewer. The Administration page is only necessary to initially configure the application or to reset it if you wish to clear the previously created user-defined reports. It also allows a developer to upload background images for the reports that data can be overlaid on. It looks like this:

The Builder page is designed to be end-user friendly and allows the user to upload their own content and define reports to fit their needs. It will be the primary landing page for end-users of this application who are creating reports for them and others to use:

The builder environment allows the user to define multiple display types for the tag data along with providing the ability to link to other user defined reports and hyperlink.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 3

SAP MII - Asset Visibility (Self-Service Reporting)

Finally, the Viewer page is where the end-user can view and interact with the report they previously created on either their PC or Mobile device browser.

If you click on any of the tag data display objects a trend will appear that shows the past 60 minutes worth of data from the historian:

The Asset Visibility application is based on standard MII Content and requires no customization to be done to the system. All of the data is stored in Persistent MDO structures enabling the application to remain database agnostic and easier to maintain and manage.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 4

SAP MII - Asset Visibility (Self-Service Reporting)

Getting Started
This application is broken up into three different components and this section will go through each of them in order of usage for getting started with the application. As a new feature in MII 12.2 it is possible to define navigation links as part of project Meta-Inf Profile content and this application takes advantage of this feature. The navigation links will appear in the MII navigation panel as shown below in the Manufacturing -> Asset Visibility path:

as defined in the Meta-Inf here For all users that belong to the SAP_XMII_Developer role the Administration link will be visible to them and for all users that belong to the SAP_XMII_User role the Builder and Viewer links will be visible. Using NetWeaver CE 7.11 If you are using NW CE 7.30 then skip this section, but if you are running MII 12.2 on NetWeaver CE 7.11 then there is one change that you will have to make to the Report.irpt file located here in the MII Workbench: SAP/WEB/Manufacturing/CompositeApplications/AssetVisibility/Report.irpt Open this file and goto line 150, where you see this entry: <param name="Stylesheet" value="/XMII/CM/SAP/Manufacturing/CompositeApplications/AssetVisibility/XSLT/SAPDynamicRepor tLayout.xsl"> Modify it to: <param name="Stylesheet" value="/XMII/CM/SAP/Manufacturing/CompositeApplications/AssetVisibility/XSLT/SAPDynamicRepor tLayout_SingleBackgroundGraphic.xsl">

The reason behind this is that the XSLT library in NetWeaver 7.3 is newer and supports the ability to choose which XSLT to include whereas in the 7.11 XSLT library, this is not supported. The reason behind this design was to highlight the ability to create your own custom layout XSLT and quickly incorporate it into your application. However, if you would like to use this you will have to update your instance to NW CE 7.30.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 5

SAP MII - Asset Visibility (Self-Service Reporting)

Administration In order to get started with this application the first step is to open the Administration page and press the Initialize button. You will see any error message pop-up but will succeed silently. The next step is to upload any background images you would like to use as the backgrounds to your report. Unless you are familiar with the application and have defined a new Layout XSLT, the Layout configuration is not necessary. More information on defining layouts is available later in the document in the building off of the application section. If you have any errors with the Initialize task, its probably related to your configuration of MDO so verify that it is setup properly and that the MDO content exists in the MDO tab under the SAP -> Manufacturing -> Asset Visibility portion of the project.

This page will allow you to upload and maintain your reporting background images and layouts. Also, as part of a one-time initial setup task you need to press the Initialize Environment button so that information about the default layout can be loaded into your environment and after this completes you are ready to start. Builder Using the Report Builder should be straight-forward and easy to do and shown in the process diagram below:

When the page first loads it will ask if you wish to work on an existing report or create a new one. From here the background image is defined and content is placed on top of the layout. This can also be referred to as a Floor-Plan but in this application it will be referred to as a layout. Once content is placed it can be moved and edited by clicking on it again and clicking where it should be moved to which will then bring up the configuration wizard. The builder view pulls live data to provide an accurate preview of what the report will look like in the viewer. The report automatically saves when content is added, modified, or removed so there is no need to continuously save your work.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 6

SAP MII - Asset Visibility (Self-Service Reporting)

Using the Builder When getting started with the builder environment it is important to have your reporting background images ready to upload into the environment so that you can quickly build your reports. When you open up the builder page and select Create New you will see the following wizard.

It will not have a background image available to you just yet but this is ok as its not important yet. After pressing finish the report definition is created in the system and you can begin defining how it will appear. On the browser on the left of the page is information about the report that can be updated and changed at any time and is automatically saved.

The next step will be to upload a background image so that it can be used as a reference on the report as to what the various objects mean when dragged onto the report. To upload the image select the Upload Background Image button and browse for your image using the page the pops-up.

Once the image has finished uploading the Image to Upload field will reset to and empty text box. Next in the Report Properties area you can select the background image you previously uploaded and continue to build your report. If you specify the Height and Width as Zero here then the default height and width of the selected Background Image will be used instead. This will eliminate any scaling distortion that may occur when a lower resolution image is set for larger height and width values. You can change these settings at any time so theres no need to worry about getting it right the first time.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 7

SAP MII - Asset Visibility (Self-Service Reporting)

Defining Object on Your Report The next step is to define the tag system connection and the tag data values to display on the report and this is done in the Tag Search portion. Once you have found the tag you want, select it in the list by clicking on it once. There is no need to hold down the mouse button, the act of selecting the tag is enough.

Then move your mouse over the report and single-click where you would like the data to appear and the configuration wizard will open. First you have to pick the display type and then specific display details will need to be set.

Tag Value Object If you select the basic Tag Value option, the text value of the tag will be displayed in the report along with the rest of the configuration parameters. Also, what happens when the user selects the tag from within the viewer needs to be defined in order to determine how the report can be interacted with.

Once the configuration is complete the report immediately displays what the configured value will look like in the Viewer, but here if you click on the object it will first ask you to move it and then to configure it again. If you accidentally click on it just press the Cancel button and no changes will be made.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 8

SAP MII - Asset Visibility (Self-Service Reporting)

Status Light Object The configuration options for the Status Light display option are slightly more involved than the Tag Value option in that you have to define the value matching method for string value compare or numerical ranges to be defined. Any number of match and range values can be defined and when the Numerical Range is selected it is expected that the highest value is at the top and then the ranges descend from there. If the value is outside of the defined range or no range values are defined the light will appear as a Gray.

Once the configuration of the light has been completed it too will appear on the report so that you can preview what the actual report will look like.

Thermal Bar Object The final display option of a tag value is a Thermal Bar and this can be either a Vertical or Horizontal display. The other options are similar to the Status Light configuration but the second page is a set of static values for configuring how the thermal bar will present itself and the colors for the specific zones that are defined for the bar.

Once completed the image displayed will be either the horizontal or vertical thermal bar.

or

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 9

SAP MII - Asset Visibility (Self-Service Reporting)

Hyperlink Object The last object that can be setup on the report is the hyperlink object which can be used to either link to other reports or external hyperlinks. When linking to other reports, the reports appear to allow the user to drilldown into more detail for a specific piece of equipment or provide various views of data for different users. When linking to external hyperlinks the user can seamlessly move to another web based report. The Hyperlink Object is part of the Miscellaneous section of the browser.

When you select the button and drop the HotZone region on the page the configuration wizard loads they have the option to define if they are linking to an existing report or an external URL. If they choose report then the drop down list of all of the available reports is visible to them otherwise they can fill in the hyperlink field.

Depending on the Style Type selected for the hotzone object it will appear differently on the report.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 10

SAP MII - Asset Visibility (Self-Service Reporting)

Viewer
Once you are done creating your report you can consume it from either a PC or Mobile device web browser. The navigation link for this page is located here by default for all users belonging to the SAP_XMII_User role:

Once the page loads it will look like this with a drop down list of the available reports and a View button.

Select a report you wish to see and press the View button to load it, all of the content objects are now visible and their links are interactive based on how you configured them. You can also define a link to the Viewer page in the Navigation Quick Links to make it easier for mobile device users to open up this report. The link to the Viewer page is here: /XMII/CM/SAP/Manufacturing/CompositeApplications/AssetVisibility/ReportViewer.irpt

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 11

SAP MII - Asset Visibility (Self-Service Reporting)

Related Content
SAP MII & PCo SDN Forum SAP MII & PCo SDN Wiki http://help.sap.com SAP Manufacturing Downloads SAP MES Integration Package for ERP For more information, visit the Manufacturing homepage.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 12

SAP MII - Asset Visibility (Self-Service Reporting)

Copyright
Copyright 2011 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iSeries, pSeries, xSeries, zSeries, eServer, z/VM, z/OS, i5/OS, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries. Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Oracle Corporation. JavaScript is a registered trademark of Oracle Corporation, used under license for technology invented and implemented by Netscape. SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects S.A. in the United States and in other countries. Business Objects is an SAP company. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 13

También podría gustarte