Sap Mii Indexing

Download as pdf or txt
Download as pdf or txt
You are on page 1of 12

SAP Manufacturing

Intelligence and Integration


How-To Guide MDO Indexes

How to Set Up and Use the SAP MII


MDO Indexes

Applicable Release: MII 15.1

Version 1.0
Date: 19-10-2015
SAP MII How-To-Guide for MDO Indexes

Copyright 2015 SAP AG. All rights reserved. These materials are subject to change without notice. These
No part of this publication may be reproduced or transmitted in materials are provided by SAP AG and its affiliated companies
any form or for any purpose without the express permission of ("SAP Group") for informational purposes only, without
SAP AG. The information contained herein may be changed representation or warranty of any kind, and SAP Group shall not
without prior notice. be liable for errors or omissions with respect to the materials.
Some software products marketed by SAP AG and its The only warranties for SAP Group products and services are
distributors contain proprietary software components of other those that are set forth in the express warranty statements
software vendors. accompanying such products and services, if any. Nothing herein
should be construed as constituting an additional warranty.
Microsoft, Windows, Outlook, and PowerPoint are registered
trademarks of Microsoft Corporation. These materials are provided as is without a warranty of any
kind, either express or implied, including but not limited to, the
IBM, DB2, DB2 Universal Database, OS/2, Parallel Sysplex,
implied warranties of merchantability, fitness for a particular
MVS/ESA, AIX, S/390, AS/400, OS/390, OS/400, iSeries,
purpose, or non-infringement.
pSeries, xSeries, zSeries, z/OS, AFP, Intelligent Miner,
WebSphere, Netfinity, Tivoli, Informix, i5/OS, POWER, SAP shall not be liable for damages of any kind including
POWER5, OpenPower and PowerPC are trademarks or without limitation direct, special, indirect, or consequential
registered trademarks of IBM Corporation. damages that may result from the use of these materials.

Adobe, the Adobe logo, Acrobat, PostScript, and Reader are SAP does not warrant the accuracy or completeness of the
either trademarks or registered trademarks of Adobe Systems information, text, graphics, links or other items contained within
Incorporated in the United States and/or other countries. these materials. SAP has no control over the information that
you may access through the use of hot links contained in these
Oracle is a registered trademark of Oracle Corporation.
materials and does not endorse your use of third party web pages
UNIX, X/Open, OSF/1, and Motif are registered trademarks of
nor provide any warranty whatsoever relating to third party web
the Open Group.
pages.
Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame,
SAP ME How-to Guides are intended to simplify the product
VideoFrame, and MultiWin are trademarks or registered
implementation. While specific product features and procedures
trademarks of Citrix Systems, Inc.
typically are explained in a practical business context, it is not
HTML, XML, XHTML and W3C are trademarks or registered implied that those features and procedures are the only approach
trademarks of W3C, World Wide Web Consortium, in solving a specific business problem using SAP ME. Should
Massachusetts Institute of Technology. you wish to receive additional information, clarification or
Java is a registered trademark of Sun Microsystems, Inc. support, please refer to SAP Consulting.
JavaScript is a registered trademark of Sun Microsystems, Inc.,
used under license for technology invented and implemented by
Netscape.
MaxDB is a trademark of MySQL AB, Sweden.
SAP, R/3, mySAP, mySAP.com, xApps, xApp, SAP
NetWeaver, 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 in several
other countries all over the world. 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.

i
SAP MII How-To-Guide for MDO Indexes

Document History
Document Version Description Author
1.0 Initial version Sindhu Hariharan

The value of y will be incremented by 1 for a new version of the How-To-Guide for a new version of MII.

ii
SAP MII How-To-Guide for MDO Indexes

Table of Contents
1 Introduction ........................................................................................................................................... 1
1.1 MDO Enhancements with Indexes ............................................................................................... 1
2 Create a Persistent MDO with Indexes ................................................................................................. 1
2.1 Creating a Persistent MDO ........................................................................................................... 1
2.2 Adding Indexes to Persistent MDO .............................................................................................. 6
2.3 How to verify whether MDO indexes are created or not .............................................................. 8

iii
SAP MII How-To-Guide for MDO Indexes

1 Introduction
1.1 MDO Enhancements with Indexes
Manufacturing Data Objects (MDO) to define object models and data structures and to persist
data. MDO indexes supports Persistent MDO by increasing the performance of data provider
while persists the data is returned.

2 Create a Persistent MDO with Indexes


2.1 Creating a Persistent MDO
1. In Object tab; Expand and Select Default -> MIIOBJ
2. Right Click-> New -> Persistent MDO

1
SAP MII How-To-Guide for MDO Indexes

3. Add the Data Provider (Ex: Any Query Template TagQuery1) by clicking on Load

4. Go to Template Categories Attributes

2
SAP MII How-To-Guide for MDO Indexes
5. Map the Attributes of Data Provider Query to MDO

6. Go to Template Categories Lifecycle


7. Create a new task (Ex: Task_00)
8. Enable the Task
9. Select the Frequency Pattern as 0 * */4 * * * (on 0th Second at every Minute at every 4 hours)
10. Select the Mode as Update
11. Save the MDO as PMDO1
12. Deploy the Task
13. Run the Task

3
SAP MII How-To-Guide for MDO Indexes

14. Execute the PMO1 by Click on Test button ( ) or by using Short key as Ctrl+T.

4
SAP MII How-To-Guide for MDO Indexes

15. MDO table will return with values

5
SAP MII How-To-Guide for MDO Indexes

2.2 Adding Indexes to Persistent MDO


1. Edit the Persistent MDO (Ex: Default/MIIOBJ/PMDO1)
2. Go to Template Categories Indexes

6
SAP MII How-To-Guide for MDO Indexes

3. Click on Add Index. Enter the Index Name as Index1.


4. Select the attributes for Index1 by checking In Index flag in Attributes table and select the Sort
order as ASC or DESC accordingly.

7
SAP MII How-To-Guide for MDO Indexes
5. Add one more index and provide the name as Index2
6. Select the attributes as well sort order.
7. Set the Index as Unique which acts as Unique Constraint
8. Save the MDO

2.3 How to verify whether MDO indexes are created or not


1. Connect to your local DB where MII tables deployed.
2. Query on NW Basis table name BC_DDDBTABLERT
Sample Syntax:
Select * from BC_DDDBTABLERT where BC_DDDBTABLERT.NAME='MDO14779';
3. You can see same Indexes that defined in Persistent MDO exists in XML Value column result.

NOTE: Sample syntax provided above is on MS SQL DB type. SQL Syntax may vary for different
DB types.

You might also like