+ All Categories
Home > Documents > Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter...

Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter...

Date post: 09-Oct-2020
Category:
Upload: others
View: 4 times
Download: 0 times
Share this document with a friend
306
Applix TM1 TurboIntegrator Guide Version 9.0
Transcript
Page 1: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

A ideV

pplix TM1 TurboIntegrator Guersion 9.0

Page 2: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents | Index

ects. Applix reserves the right to sentation or warranty by Applix. cument is furnished under a

the United States and other nited States and several other system are trademarks of

OR IMPLIED WARRANTIES, SS FOR A PARTICULAR R ANY DIRECT, INDIRECT, ED TO, PROCUREMENT OF ) HOWEVER CAUSED AND

G NEGLIGENCE OR E POSSIBILITY OF SUCH

h in

©Applix, Inc. 2006. All Rights Reserved.Applix TM1 TurboIntegrator Guide Version 9.0

Applix, Inc. prepared the information contained in this document for use by Applix personnel, customers, and prospchange the information in this document without prior notice. The contents herein should not be construed as a repreApplix assumes no responsibility for any errors that may appear in this document. The software described in this dolicense and may be used only in accordance with the terms of such license.

Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. incountries. Microsoft®, Windows®, and Windows® XP are registered trademarks of Microsoft Corporation in the Ucountries. Microsoft SQL Server ™ 2000, Microsoft SQL Server ™ 2005, and Microsoft Server ™ 2003 operatingMicrosoft Corporation.

SAP® is a registered trademark of SAP AG in Germany and in several other countries.

Applix TM1 Web installs and uses Dundas Charts © technology.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS “AS IS” AND ANY EXPRESS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNEPURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE FOINCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITSUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTIONON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDINOTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THDAMAGE.

RESTRICTED RIGHTS LEGEND

Use, duplication, or disclosure by the U.S. Government is subject to restrictions as set fortsubparagraphs (c) (1) (ii) of DFARS 252.277-7013, or in

FAR 52.227-19, as applicable.

Print Date: 05/2006

Page 3: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

| Index

i

T

. . . . . . . . . . . . . . . . . . x

. . . . . . . . . . . . . . . . . xi

. . . . . . . . . . . . . . . . . xii

. . . . . . . . . . . . . . . . xiv

. . . . . . . . . . . . . . . . . xv

. . . . . . . . . . . . . . . 1-2

. . . . . . . . . . . . . . . 1-2

. . . . . . . . . . . . . . . 1-3

. . . . . . . . . . . . . . . 1-4ocess . . . . . . . . . . 1-5. . . . . . . . . . . . . . . 1-7. . . . . . . . . . . . . . . 1-8. . . . . . . . . . . . . . . 1-9. . . . . . . . . . . . . . . 1-9P Enabled . . . . . 1-9. . . . . . . . . . . . . . 1-10. . . . . . . . . . . . . . 1-10

able of Contents

PrefaceAbout This Manual . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Conventions Used in This Manual . . . . . . . . . . . . . . . . . . . How This Manual is Organized. . . . . . . . . . . . . . . . . . . . . . Applix TM1 Documentation . . . . . . . . . . . . . . . . . . . . . . . . Support Services. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Chapter 1 TurboIntegrator BasicsImporting Data with TurboIntegrator. . . . . . . . . . . . .

Importing Options . . . . . . . . . . . . . . . . . . . . . . . . . . TurboIntegrator Functions . . . . . . . . . . . . . . . . . . .

Processes and Chores. . . . . . . . . . . . . . . . . . . . . . . . . . . Order of Operations within a TurboIntegrator PrNotes on TurboIntegrator Processes . . . . . . . . . . .

TurboIntegrator Licensing . . . . . . . . . . . . . . . . . . . . . . TM1 Server License without TurboIntegrator . . . TM1 Server License with TurboIntegrator . . . . . . TM1 Server License with TurboIntegrator and SAClient-Side Licensing . . . . . . . . . . . . . . . . . . . . . . . .

Importing an ASCII Flat File. . . . . . . . . . . . . . . . . . . . .

Page 4: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

| Index

ii

. . . . . . . . . . . . . . 1-11

. . . . . . . . . . . . . . 1-33

. . . . . . . . . . . . . . 1-39

. . . . . . . . . . . . . . 1-40

. . . . . . . . . . . . . . 1-44

. . . . . . . . . . . . . . 1-44

. . . . . . . . . . . . . . 1-46

. . . . . . . . . . . . . . 1-48

. . . . . . . . . . . . . . 1-50

. . . . . . . . . . . . . . 1-54

. . . . . . . . . . . . . . 1-55

. . . . . . . . . . . . . . 1-56

. . . . . . . . . . . . . . 1-58

. . . . . . . . . . . . . . 1-59

. . . . . . . . . . . . . . 1-62

. . . . . . . . . . . . . . 1-65

. . . . . . . . . . . . . . 1-66

. . . . . . . . . . . . . . 1-68

. . . . . . . . . . . . . . 1-71

. . . . . . . . . . . . . . 1-71ith Chores . . . . . 1-72

Applix TM1 TurboIntegrator Guide

Creating a Dimension from an ASCII Flat File. . . Creating a Cube From an ASCII Flat File . . . . . . .

Importing Data from an ODBC Datasource . . . . . . . . Step 1 - Defining an ODBC Data Source . . . . . . . . Step 2 - Defining Variables . . . . . . . . . . . . . . . . . . . Step 3 - Defining Mapping Instructions . . . . . . . . Step 4 - Saving and Executing the Process . . . . . .

Using a TM1 View as a Data Source . . . . . . . . . . . . . . Step 1 - Defining a Cube View Source . . . . . . . . . . Step 2 - Defining Variables . . . . . . . . . . . . . . . . . . . Step 3 - Defining Mapping Instructions . . . . . . . . Step 4 - Saving and Executing the Process . . . . . .

Using a TM1 Subset as a Data Source . . . . . . . . . . . . . Step 1 - Defining a Dimension Subset Source. . . . Step 2 - Defining Variables . . . . . . . . . . . . . . . . . . . Step 3 - Defining Mapping Instructions . . . . . . . . Step 4 - Saving and Executing the Process . . . . . .

Editing Advanced Procedures . . . . . . . . . . . . . . . . . . . Chores . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Executing a Process on Demand. . . . . . . . . . . . . . . Scheduling a Process for Automatic Execution w

Page 5: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

| Index

iii

. . . . . . . . . . . . . . . 2-2

. . . . . . . . . . . . . . . 2-2

. . . . . . . . . . . . . . . 2-3

. . . . . . . . . . . . . . . 2-3

. . . . . . . . . . . . . . . 2-3

. . . . . . . . . . . . . . . 2-4

. . . . . . . . . . . . . . . 2-6rator. . . . . . . . . . 2-7

. . . . . . . . . . . . . . 2-10

. . . . . . . . . . . . . . 2-14

. . . . . . . . . . . . . . 2-16

. . . . . . . . . . . . . . 2-17 . . . . . . . . . . . . . 2-19. . . . . . . . . . . . . . 2-21. . . . . . . . . . . . . . 2-24. . . . . . . . . . . . . . 2-25 Statement . . . . 2-26. . . . . . . . . . . . . . 2-26

. . . . . . . . . . . . . . . 3-2

. . . . . . . . . . . . . . . 3-2

. . . . . . . . . . . . . . . 3-2

Chapter 2 Importing Data from MSASOLE DB for OLAP Data Sources . . . . . . . . . . . . . . . . .

ODBO Provider Name . . . . . . . . . . . . . . . . . . . . . . . ODBO Location . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ODBO Datasource. . . . . . . . . . . . . . . . . . . . . . . . . . . ODBC Catalog . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Connection Strings: MSAS vs. TM1 . . . . . . . . . . . .

Importing a Cube . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Connecting To Analysis Services with TurboIntegThe Load ODBO Cube Tab . . . . . . . . . . . . . . . . . . . The Cube Dimensions Tab . . . . . . . . . . . . . . . . . . . Saving and Running the Process . . . . . . . . . . . . . .

Importing a Dimension . . . . . . . . . . . . . . . . . . . . . . . . . Importing an ODBO Dimension - Getting StartedThe Load ODBO Dimension Tab . . . . . . . . . . . . . . Saving and Running the Process . . . . . . . . . . . . . . Checking the TM1 Message Log. . . . . . . . . . . . . . .

Generating a TurboIntegrator Process from an MDXBuilding the TurboIntegrator Process . . . . . . . . . .

Chapter 3 Importing Business Data from SAP ODBOSAP Objects and Terminology . . . . . . . . . . . . . . . . . . .

TM1 Imports through ODBO . . . . . . . . . . . . . . . . . TurboIntegrator Import Options for SAP . . . . . . .

Page 6: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

| Index

iv

. . . . . . . . . . . . . . . 3-3

. . . . . . . . . . . . . . . 3-3

. . . . . . . . . . . . . . . 3-5mes. . . . . . . . . . . 3-5. . . . . . . . . . . . . . . 3-8. . . . . . . . . . . . . . . 3-9. . . . . . . . . . . . . . . 3-9. . . . . . . . . . . . . . 3-10. . . . . . . . . . . . . . 3-10. . . . . . . . . . . . . . 3-13. . . . . . . . . . . . . . 3-17. . . . . . . . . . . . . . 3-18. . . . . . . . . . . . . . 3-19. . . . . . . . . . . . . . 3-21. . . . . . . . . . . . . . 3-22. . . . . . . . . . . . . . 3-34 Designer . . . . . 3-34. . . . . . . . . . . . . . 3-36

. . . . . . . . . . . . . . . 4-2

. . . . . . . . . . . . . . . 4-2

. . . . . . . . . . . . . . . 4-2

. . . . . . . . . . . . . . . 4-5

Applix TM1 TurboIntegrator Guide

Software Prerequisites . . . . . . . . . . . . . . . . . . . . . . . Analogous Objects in SAP and TM1 . . . . . . . . . . . Query Cube Names and Info Cube Names . . . . . Characteristics: Technical Names and Display NaCharacteristic and Hierarchy Names. . . . . . . . . . . Limitations on Importing Cubes from SAP . . . . . Virtual Cubes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . TurboIntegrator Licensing and SAP . . . . . . . . . . .

Connecting to SAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Importing a Characteristic From SAP . . . . . . . . . . . . .

Filtering Characteristic Values . . . . . . . . . . . . . . . . Importing a Query Cube From SAP . . . . . . . . . . . . . .

Accessing Query Cubes through ODBO . . . . . . . . SAP Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Importing a Query Cube . . . . . . . . . . . . . . . . . . . . .

Importing Large Query Cubes . . . . . . . . . . . . . . . . . . . Restricting Query Cube Size with the SAP QueryUsing Aggregations to Reduce Cube Size. . . . . . .

Chapter 4 Importing Business Data from SAP RFCSAP Objects and Terminology . . . . . . . . . . . . . . . . . . . Software Prerequisites . . . . . . . . . . . . . . . . . . . . . . . . . .

The Saprfc.ini File and RFC Libraries . . . . . . . . . . Installing the TM1 Interface to SAP BW . . . . . . . .

Page 7: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

| Index

v

. . . . . . . . . . . . . . . 4-6

. . . . . . . . . . . . . . . 4-8W . . . . . . . . . . . . 4-81 Cube . . . . . . . . 4-81 Dimensions 4-12

egrator Process 4-19. . . . . . . . . . . . . . 4-19. . . . . . . . . . . . . . 4-22W . . . . . . . . . . . 4-22

a . . . . . . . . . . . . . . 4-23egrator Process 4-28. . . . . . . . . . . . . . 4-29. . . . . . . . . . . . . . 4-29W . . . . . . . . . . . 4-29

to Import. . . . . 4-29egrator Process 4-31. . . . . . . . . . . . . . 4-31. . . . . . . . . . . . . . 4-32W . . . . . . . . . . . 4-33ubes and

. . . . . . . . . . . . . . 4-33egrator Process 4-37. . . . . . . . . . . . . . 4-38

Establishing a Connection to SAP BW . . . . . . . . . . . . Importing an InfoCube from SAP . . . . . . . . . . . . . . . .

Procedure 1 – Establishing a Connection to SAP BProcedure 2 – Mapping an SAP InfoCube to a TMProcedure 3 – Mapping SAP Characteristics to TMProcedure 4 – Saving and Executing the TurboInt Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Importing a Characteristic from SAP . . . . . . . . . . . . . Procedure 1 – Establishing a Connection to SAP BProcedure 2 – Mapping an SAP Characteristic to TM1 Dimension. . . . . . . . . . . . . . . . . . . . . . . . . . . . . Procedure 3 – Saving and Executing the TurboIntResults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Importing Security from SAP . . . . . . . . . . . . . . . . . . . . Procedure 1 – Establishing a Connection to SAP BProcedure 2 – Select the SAP Security DefinitionsProcedure 3 – Saving and Executing the TurboIntResults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Importing and Converting Currency Data from SAPProcedure 1 – Establishing a Connection to SAP BProcedure 2 – Mapping SAP Currencies to TM1 CDimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Procedure 4 – Saving and Executing the TurboIntResults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 8: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

| Index

vi

. . . . . . . . . . . . . . 4-40W . . . . . . . . . . . 4-40

. . . . . . . . . . . . . . 4-40s . . . . . . . . . . . . . 4-42egrator Process 4-42. . . . . . . . . . . . . . 4-42. . . . . . . . . . . . . . 4-42W . . . . . . . . . . . 4-44

rom a . . . . . . . . . . . . . . 4-44egrator Process 4-50. . . . . . . . . . . . . . 4-50

. . . . . . . . . . . . . . A-2

. . . . . . . . . . . . . . A-2

. . . . . . . . . . . . . . A-4

. . . . . . . . . . . . . . A-4

. . . . . . . . . . . . . A-23

. . . . . . . . . . . . . A-35rocedures . . . . A-35. . . . . . . . . . . . . A-51. . . . . . . . . . . . . A-53

Applix TM1 TurboIntegrator Guide

Importing an SAP Table . . . . . . . . . . . . . . . . . . . . . . . . Procedure 1 – Establishing a Connection to SAP BProcedure 2 – Creating an SAP Table Query . . . . Procedure 3 – Identifying and Mapping VariableProcedure 4 – Saving and Executing the TurboIntResults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Writing TM1 Data to SAP . . . . . . . . . . . . . . . . . . . . . . . Procedure 1 – Establishing a Connection to SAP BProcedure 2 – Mapping Dimensions and Values fTM1 View to an ODS Table. . . . . . . . . . . . . . . . . . . Procedure 3 – Saving and Executing the TurboIntResults . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Appendix A TurboIntegrator TutorialSetting the Tutorial Data Directory . . . . . . . . . . . . . . . TurboIntegrator Overview . . . . . . . . . . . . . . . . . . . . . . Creating a TurboIntegrator Process. . . . . . . . . . . . . . .

Creating Dimensions Using TurboIntegrator. . . . Creating a Cube and Processing Data . . . . . . . . . .

Advanced Scripting . . . . . . . . . . . . . . . . . . . . . . . . . . . . Editing the Prolog, Metadata, Data, and Epilog PCreating Subsets . . . . . . . . . . . . . . . . . . . . . . . . . . . . Creating Attributes . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 9: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

| Index

vii

. . . . . . . . . . . . . . .B-2

. . . . . . . . . . . . . . .B-2

. . . . . . . . . . . . . . .B-3

. . . . . . . . . . . . . . .B-4

. . . . . . . . . . . . . . .B-4hore . . . . . . . . . .B-5art/. . . . . . . . . . . . . . .B-5

. . . . . . . . . . . . . . .B-6

. . . . . . . . . . . . . . .B-6

. . . . . . . . . . . . . . C-2

. . . . . . . . . . . . . . C-3

. . . . . . . . . . . . . . C-5

. . . . . . . . . . . . . . C-5

Appendix B Locking Considerations in TurboIntegratorOverview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Releasing the Lock in Repetitive Processes. . . . . . Deactivating and Reactivating the Lock . . . . . . . . Using the Batch Update Capability . . . . . . . . . . . . Minimizing Locking in a Simple Process . . . . . . . Applying the Server Lock Across Processes in a CCombining LockOff/LockOn and BatchUpdateStBatchUpdateFinish in a Process . . . . . . . . . . . . . . . Locking Considerations for Multiple Processes in Separate Chores . . . . . . . . . . . . . . . . . . . . . . . . . . Function Impact on TM1 Server Data Structures.

Appendix C TurboIntegrator Reserved WordsRule Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Process Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Implicit Variable Names . . . . . . . . . . . . . . . . . . . . . . . . TurboIntegrator Keywords . . . . . . . . . . . . . . . . . . . . . .

Index

Page 10: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

| Index

vii

i Applix TM1 TurboIntegrator Guide
Page 11: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents | Index

Preface ix

B plix Integra

ment and tional agement tive steering of

performance timize business y or structure. into data, view of al fluctuations

Preface

usiness Performance Management with Applix TM1 and Ap

Business Performance Management is the continuous managemonitoring of Financial, Operational, Customer and Organizaperformance across the enterprise. Business Performance Mansolutions have the following capabilities to facilitate the proacbusiness direction:

• Wide deployment

• Collaborative decision making

• Continuous and real time review and refinement

• Monitoring of Key Performance Indicators

Applix TM1 and Applix Integra integrate business planning, measurement and operational data to enable companies to opeffectiveness and customer interaction regardless of geographApplix TM1 and Applix Integra provide immediate visibility accountability within a collaborative process and a consistentinformation, allowing managers to quickly stabilize operationand take advantage of new opportunities.

Page 12: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents | Index

x

A

port data and

Applix TM1 TurboIntegrator Guide

bout This Manual

This manual describes how to use TM1 TurboIntegrator to immetadata into TM1 from a variety of sources.

Page 13: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents | Index

Preface xi

C

guide:

bject appears as part

cated by Arial text.

ose or text to type. It

draw your attention ss the RETURN key.”

option, the option is

onventions Used in This Manual

The following typeface conventions are used throughout this

Arial Arial text indicates that this option or oof the user interface.File names and directories are also indi

Arial Bold Bold Arial text indicates an option to chusually appears in numbered steps.

Italics Words are italicized for emphasis or to to a new term. For example, “Do not pre

Menu Name → Option Name

Whenever you see a reference to a menuidentified using the following notation:Menu Name → Option NameFor example, “Choose Forms → More.

code examples Code examples are in courier.

Page 14: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents | Index

xii

H

ic procedures required to a into TM1 cubes.

e specific procedure ubes and dimensions

” describes the specific to import cubes and DB for OLAP (ODBO)

describes the specific to import cubes, emote Function Calls (RFC).

ugh advanced

Applix TM1 TurboIntegrator Guide

ow This Manual is Organized

This manual is organized as follows:

Chapter 1 “TurboIntegrator Basics” describes the basuse TurboIntegrator to import business dat

Chapter 2 “Importing Data from MSAS” describes threquired to use TurboIntegrator to import cfrom Microsoft Analysis Services.

Chapter 3 “Importing Business Data from SAP ODBOprocedure required to use TurboIntegratordimensions from SAP through the SAP OLEprovider.

Chapter 4 “Importing Business Data from SAP RFC” procedure required to use TurboIntegratordimensions, and security from SAP using R

Appendix A “TurboIntegrator Tutorial” guides you throTurboIntegrator features.

Page 15: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents | Index

Preface xiii

r” describes how to ator process execution to

ount of time the server is

the names reserved for eywords that you should ble names in

Appendix B “Locking Considerations in TurboIntegratomanage server locking during TurboIntegroptimize performance and maximize the amavailable to users.

Appendix C “TurboIntegrator Reserved Words” lists allTurboIntegrator functions, variables, and kavoid using when creating your own variaTurboIntegrator scripts.

Page 16: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents | Index

xiv

A

he following

of the TM1 clients nd Client) to create and s book also describes how to e and analyze business data, e of TM1’s spreadsheet

ter the TM1 system, te servers and TM1 security.

or MS Visual Basic programs vers. This manual describes t allow you to manipulate

lix TM1 Web to publish and b.

ent security for a TM1 esses security for TM1 users, bjects.

Applix TM1 TurboIntegrator Guide

pplix TM1 Documentation

In addition to reading this manual, you may want to refer to tmanuals:

Applix TM1 Clients Describes how to use any (Perspectives, Architect, amaintain TM1 objects. Thiuse TM1 clients to managand how to take advantagintegration features.

Applix TM1 Administrator’s Guide Describes how to adminisincluding managing remo

Applix TM1 API Describes how to write C that interact with TM1 serhundreds of functions thaTM1 objects.

Applix TM1 Web User’s Guide Describes how to use Appview TM1 data on the We

Applix TM1 Security Describes how to implemsystem. This manual addrgroups, cubes, and other o

Page 17: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents | Index

Preface xv

S

ing:

a periodic For more ne at

at

headquarters, or

n, performance

ailable. (Please

upport Services

Applix, Inc. provides a wide range of support services, includ

Applix also sponsors local and national user group meetings, newsletter, and the hosting of customer advisory committees.information about these services, please contact us via telepho(508) 870-0300, via fax at (508) 366-0995, or via electronic [email protected].

Training classes Held at local sites, at the Applix training at your facility.

Consulting Services

To cover issues such as application desigtuning and site-specific requirements.

Technical Services Several different service programs are avcontact your account manager.)

Page 18: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents | Index

xv

i Applix TM1 TurboIntegrator Guide
Page 19: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents | Index

TurboIntegrator Basics 1-1

cs

u can use his chapter

egrator. For worksheets, see

ata from a flat ters discuss

1 TurboIntegrator Basi

TM1 offers two ways of importing business data into TM1: yoprocessing worksheets or you can use TM1 TurboIntegrator. Tdescribes how to import data into a TM1 cube using TurboIntinformation on moving and tranforming data with processingthe TM1 Clients Guide.

This chapter describes how to use TurboIntegrator to import dfile, from a relational database or from a TM1 cube. Later chapimporting data from Microsoft Analysis Services and SAP.

The following topics are discussed in this chapter:

• Importing Data with TurboIntegrator

• Processes and Chores

• TurboIntegrator Licensing

• Importing an ASCII Flat File

• Importing Data from an ODBC Datasource

• Using a TM1 View as a Data Source

• Using a TM1 Subset as a Data Source

• Editing Advanced Procedures

• Chores

Page 20: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Data with TurboIntegrator Table of Contents | Index

1-2

Im

m these data

DBC data source.

ation.

Im

ave the

source.

d recreates it, import.

This allows you

rce.

ese actions.

Applix TM1 TurboIntegrator Guide

porting Data with TurboIntegrator

Using TM1 TurboIntegrator, you can import business data frosources:

• Comma-delimited ASCII files.

• Relational database tables that are accessible through an O

• Other TM1 cubes and views.

• Microsoft Analysis Services - See Chapter 2 for more inform

• SAP via ODBO - See Chapter 3 for more information.

• SAP via RFC - See Chapter 4 for more information.

porting Options

When you import data into TM1 using TurboIntegrator, you hfollowing options:

• Create a cube and populate it with data imported from the

• Re-create a cube. This destroys a currently-existing cube anallowing you to change both data and metadata during the

• Update an existing cube, maintaining the cube’s structure.to import data into an existing cube structure.

• Create a dimension in TM1 from data imported from a sou

• Update a dimension in TM1 from imported data.

You can use TurboIntegrator to perform any combination of th

Page 21: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Data with TurboIntegrator Table of Contents | Index

TurboIntegrator Basics 1-3

Tu

ipulate cubes, porting data.

corporate all ith the exception

p. To view these

x.

rboIntegrator Functions

TurboIntegrator includes a series of functions that let you manviews, dimensions, elements, and other TM1 objects while im

In addition to these TurboIntegrator functions, you can also instandard TM1 rules functions in a TurboIntegrator process, wof the STET function.

TurboIntegrator functions are described in the TM1 online helfunction descriptions, follow these steps:

1. In the Server Explorer, choose Help → Contents and Inde

The TM1 Help window opens.

2. Click Reference Material.

3. Click TurboIntegrator Functions.

The following help topic list appears:

Page 22: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Processes and Chores Table of Contents | Index

1-4

tion description.

P

process is a TM1

a source.

nd data

xecuted before

Applix TM1 TurboIntegrator Guide

4. Click any of the TurboIntegrator function names for a func

rocesses and Chores

You import data with TurboIntegrator by defining a process. A object that consists of:

• A description of a data source.

• A set of variables corresponding to each column in the dat

• A set of maps that define relationships between variables astructures in the TM1 database.

• A Prolog procedure, consisting of a series of actions to be ethe data source is processed.

Page 23: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Processes and Chores Table of Contents | Index

TurboIntegrator Basics 1-5

update or create

ate or transform

processed.

s so it can be

s allow you to un at a certain

O

ocedures: viewed as sub-

• A Metadata procedure, consisting of a series of actions thatcubes, dimensions, and other metadata structures.

• A Data procedure, consisting of a series of actions that upddata in your TM1 database.

• An Epilog procedure to be executed after the data source is

• A set of parameters that can be used to generalize a procesused in multiple situations.

Chores are a container object for a set of TM1 processes. Chorerun processes in a certain order and schedule processes to be rtime. For details, see “Chores” later in this chapter.

rder of Operations within a TurboIntegrator Process

As noted above, a TurboIntegrator process includes several prProlog, Metadata, Data, and Epilog. These procedures can be tabs of the Advanced tab in the TurboIntegrator editor.

Page 24: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Processes and Chores Table of Contents | Index

1-6

actions for a n the priate procedure own scripts in

s and rules

xecuted in the

the

mmediately exe-sing.

tadata and Data ess must be

rator opens the

ed against the ly executed il all records are

gainst the first ecuted against ords are

Applix TM1 TurboIntegrator Guide

When you define a data source, set variables, and specify dataprocess, TM1 generates scripts that are executed when you ruTurboIntegrator process. These scripts are placed in the approsub-tab of the TurboIntegrator editor. You can also create yourany of the procedure sub-tabs using TurboIntegrator functionfunctions.

When you run a TurboIntegrator process, the procedures are efollowing sequence:

1. The Prolog procedure is executed before the data source forTurboIntegrator process is opened.

2. If the data source for the process is None, TurboIntegrator icutes the Epilog procedure after the Prolog finishes proces

NOTE: When the data source for a process is None, the Meprocedures are ignored. In this case, all scripts for the proccreated in either the Prolog or Epilog procedures.

3. If the data source is anything other than None, TurboIntegdatasource for the process.

4. All lines in the Metadata procedure are sequentially executfirst record in the data source. All lines are then sequentialagainst the second record in the data source, and so on untprocessed.

5. All lines in the Data procedure are sequentially executed arecord in the data source. All lines are then sequentially exthe second record in the data source, and so on until all recprocessed.

Page 25: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Processes and Chores Table of Contents | Index

TurboIntegrator Basics 1-7

dure is

N

urboIntegrator

at the ted or altered.

t access the new e procedure in records in the that you cannot ure in which the

STET) can be strictions e; all functions

o ensure that a o build a process alues for the

new elements ta values for the ew elements in

6. TurboIntegrator closes the data source after the Data procecompleted.

7. The Epilog procedure is executed.

8. TM1 closes the TurboIntegrator process.

otes on TurboIntegrator Processes

Keep in mind the following items when creating and editing Tprocesses.

• TurboIntegrator compiles a new or altered dimension onlyconclusion of the procedure in which the dimension is crea

In the case of a new dimension, this means that you cannodimension (through TurboIntegrator or otherwise) until thwhich the dimension is created has finished processing all data source. In the case of an altered dimension, this meansaccess any new elements in the dimension until the proceddimension is altered has finished processing.

• TurboIntegrator and rules functions (with the exception ofused in any procedure of a process. Further, there are no reregarding which functions can be used in a given procedurare valid in any TurboIntegrator procedure.

You must, however, create a logical sequence of functions tprocess accomplishes your goal. For example, if you want tthat adds new elements to a dimension and updates data vnew elements, you must be sure that the process adds the and compiles the dimension before attempting to update danew elements. In most circumstances, you would add the n

Page 26: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

TurboIntegrator Licensing Table of Contents | Index

1-8

t function, then nction.

in which both updated in the ause, as noted

sion of a nts do not exist. t do not exist, so

T

roups. In order both of these

r of the Admin s, or modify

tion. In addition, se must also

ibed in the

Applix TM1 TurboIntegrator Guide

the Metadata procedure using the DimensionElementInserupdate values in the Data procedure using the CellPutN fu

Using the above example, if you attempt to build a processnew elements are added and corresponding data values areData procedure, the process will fail. The failure occurs becabove, altered dimensions are compiled only at the concluprocedure. Until the dimension is compiled, the new elemeTurboIntegrator cannot update data values for elements thathe process fails.

urboIntegrator Licensing

Access to TurboIntegrator is controlled by licensing and user gfor you to be able to access all of the TurboIntegrator features,conditions must exist:

• You must be a member of the Admin group. Only a membegroup is able to define processes, build and schedule choreTurboIntegrator scripts.

• The TM1 Server must possess a TurboIntegrator license opif you are importing data from SAP, your TM1 Server liceninclude the SAP option.

The available TurboIntegrator license configurations are descrfollowing sections.

Page 27: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

TurboIntegrator Licensing Table of Contents | Index

TurboIntegrator Basics 1-9

TM

options, you can u create are

ta source or an

tor license it is brought into .

roup, order and

TM

ion enabled, you

1, OLE DB for BC. You cannot led in order to

TM

or and SAP

1 Server License without TurboIntegrator

If you have a TM1 server license without the TurboIntegrator create a TurboIntegrator processes. However, the processes yosubject to the following limitations:

• You are limited to importing data either from an ODBC daASCII flat file.

• You cannot modify the data on import. A full TurboIntegraallows you to modify, redirect, and filter imported data as TM1. You cannot do this without a TurboIntegrator license

• You cannot build or schedule chores. Chores allow you to gschedule processes.

1 Server License with TurboIntegrator

If you have a TM1 server license with the TurboIntegrator optcan do all of the following:

• Import data from the following sources: ASCII flat file, TMOLAP sources such as Microsoft Analysis Services, and ODimport data from SAP. You must have the SAP option enabimport data from SAP.

• Modify and filter data on import.

• Build and schedule chores.

1 Server License with TurboIntegrator and SAP Enabled

If you have a TM1 server license with both the TurboIntegratoptions enabled, you can do all of the following:

Page 28: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

1-1

BC, TM1, OLE

port.

C

ith a inst ODBC and nsion subsets.

rboIntegrator SCII sources

esses but you

g chore, but you

Im

ted ASCII data importing from ps common to

te the following

0 Applix TM1 TurboIntegrator Guide

• Import data from the following sources: ASCII flat file, ODDB for OLAP, SAP/ODBO and SAP/RFC.

• TurboIntegrator allows you to modify and filter data on im

• TurboIntegrator allows you to build and schedule chores.

lient-Side Licensing

If you are running either TM1 Perspectives or TM1 Architect wTurboIntegrator license, you can create and edit processes agaASCII data sources, as well as from TM1 cube views and dime

If you are running TM1 Perspectives or Architect without a Tulicense, you can create and edit processes against ODBC and Aonly.

If you are running TM1 Client, you can run existing TM1 proccannot create or edit any TM1 processes.

Similarly, if you are running TM1 Client you can run an existincannot create or edit any TM1 chore.

porting an ASCII Flat File

The following sections describe how to import comma-delimiwith TurboIntegrator. Though each TM1 process is unique, andother data sources varies slightly, this section describes the stemost processes.

This section describes how to import an ASCII flat file and creaTM1 objects:

Page 29: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

TurboIntegrator Basics 1-11

C

f element names containing

a process that is cessed by other val.

te the following

ations

St

he data source

er and choose

• A dimension

• A cube

reating a Dimension from an ASCII Flat File

You can use TurboIntegrator to create a dimension from a list oin a data source. This is the fastest way to create a dimension hundreds or thousands of elements.

When you create a dimension with TurboIntegrator, you definesaved as an object on your TM1 server. This process can be acusers, and can be executed on demand or at a scheduled inter

To create a dimension with TurboIntegrator, you must compleprocedures:

• Step 1 - Define a data source

• Step 2 - Identify variables in the source

• Step 3 - Map variables to dimension elements and consolid

• Step 4 - Save and execute the process

ep 1 - Defining a Data Source

Whenever you use TurboIntegrator, the first step is to define tfrom which you will be reading data.

1. Run TM1 Architect or Perspectives.

2. Right-click Processes in the left pane of the Server ExplorProcesses → Create New Process.

Page 30: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

1-1

log box appears.

.

annot access vention (UNC) onsistently run

2 Applix TM1 TurboIntegrator Guide

3. Click ASCII on the data source tab. The TurboIntegrator dia

4. Click Browse. The Select Input File dialog box appears.

5. Locate the file on your hard disk, choose it, and click Open

NOTE: You may receive a warning that your TM1 server cyour file because you did not use a Universal Naming Condesignation to specify the file location. If you are going to c

Page 31: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

TurboIntegrator Basics 1-13

d ensure the

side on a shared

shared network TM1 UNIX

cannot contain

now look like

your process against an ASCII file, you should use UNC anfollowing:

If running a Windows TM1 server, the ASCII file should reWindows directory so that the TM1 server can access it.

If running a UNIX TM1 server, your file should reside on adirectory, one which both the TM1 windows client and theserver can see.

If running a UNIX TM1 server, the input source filenameany upper-case characters or spaces.

6. Click OK on the warning box. The Data Source tab shouldthis:

Page 32: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

1-1

f you chose

ords by clicking dragging the th Records,”

s in your ASCII

4 Applix TM1 TurboIntegrator Guide

7. Under Delimiter Type, choose Delimited or Fixed Width. IDelimited, choose a delimiter from the Delimiter list.

If you chose Fixed Width, you can set the length of your recon the column header in the Data Preview dialog box and resulting break line. See the section “Setting Up Fixed Lenglater in this section.

8. Specify a Quote Character and the Number of Title Recordfile.

Page 33: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

TurboIntegrator Basics 1-15

ur file’s data at

Se

view opens with

9. Click Preview. TurboIntegrator shows you a sample of yothe bottom of the screen, as shown in the following figure.

tting Up Fixed Length Records

If you select Fixed Width, click Set Field Width. The Data Prethe first three records of your source data displayed.

Page 34: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

1-1

of records in

6 Applix TM1 TurboIntegrator Guide

This dialog box lets you set field widths based on the contentsyour data source. Follow these steps:

1. Click the 1 column heading.

Page 35: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

TurboIntegrator Basics 1-17

rough the three

A break line appears in the column heading and extends threcords.
Page 36: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

1-1

the first column

osition that

ce.

St

ble to each e and content.

8 Applix TM1 TurboIntegrator Guide

2. Click the break line and drag it to a position that separatesfrom the second column.

A new column heading (2) appears.

3. Click column heading 2 and drag the new break line to a pseparates the second column from the third column.

4. Set break lines for all remaining columns in the ASCII sour

5. Click OK to return to the TurboIntegrator dialog box.

ep 2 - Identifying Variables in the Data Source

After you define a data source, TurboIntegrator assigns a variacolumn in the source. You must identify these variables by typ

To illustrate this process, consider the following ASCII data.

Page 37: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

TurboIntegrator Basics 1-19

000000000000000000000

. The New Massachusetts

column, imple elements. cation

grator dialog

ssigns a variable

ed. It is often g meaningful oubleshoot. The s: v_region,

New England, Massachusetts, Boston, Supermart, Feb, 2000New England, Massachusetts, Springfield, Supermart, Feb, 14New England, Massachusetts, Worcester, Supermart, Feb, 22New England, Connecticut, Hartford, Supermart, Feb, 124000New England, Connecticut, New Haven, Supermart, Feb, 270New England, Connecticut, Greenwich, Supermart, Feb, 1700

The first 3 columns form a hierarchy for a Location dimensionEngland consolidation is at the top of the hierarchy. The statesand Connecticut are one level below New England. The third containing city names such as Boston and Hartford, supplies sThe remaining columns are not used for the creation of the Lodimension.

The following figure shows the Variables tab on the TurboIntebox.

TurboIntegrator assigns a variable name to each column, and atype based on the sample value for each column.

The default variables names, such as V1 and V2, can be changgood practice to give the variables a meaningful name. Havinnames makes the TurboIntegrator scripts easier to read and trprocedure that follows shows you how to build three variablev_state, and v_city.

Page 38: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

1-2

For instance, the rboIntegrator

CII data, but not

hen processing the data

ts for the dimension you

ements for the dimension

the column containing data values are not

imension.

0 Applix TM1 TurboIntegrator Guide

The Variable Type field identifies the contents of the column. first column of the data contains the string “New England”. Tucorrectly identifies the variable type as String.

NOTE: The Variable Type fields are often set accurately for ASfor data extracted from an ODBC data source.

The Contents field contains the following options:

Option Description

Ignore Ignore the contents of the column wsource.

Element The column contains simple elemenwant to create.

Consolidation The column contains consolidated elyou want to create.

Data The column contains data values.

For this example, you should ignorethe data values. Columns containingimported when you are creating a d

Page 39: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

TurboIntegrator Basics 1-21

dations for a contain data cation

se steps:

. These variables state and v_city.

tes for the dimension you

not fall into any of the his setting is used for processed through

The ASCII data in this example contains elements and consoliLocation dimension. It does not contain any attributes. It doesvalues, but those values are irrelevant to the creation of the Lodimension, as are the elements from other dimensions.

To define the variables for the Location dimension, follow the

1. Click the Variables tab on the TurboIntegrator dialog box.

2. Set the Contents field for variables V1, V2, and V3 to Otherwill be used only in formulas for the variables v_region, v_

Attribute The column contains element attribuwant to create.

Other The column contains data that does previous four categories. Typically, tcolumns containing data that will becustom variables and formulas.

Option Description

Page 40: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

1-2

shown in the

. A variable haracters listed

cription

2 Applix TM1 TurboIntegrator Guide

3. Click New Variable. The V7 variable is added to the list, asfollowing figure.

4. Double-click V7, and change the variable name to v_regionname must begin with a letter, and must contain only the cin the following table.

Character Description Character Des

Upper-case Letters A through Z Underscore _

Lower-Case Letters a through z Dollar Sign $

Digits 0 through 9 Percent %

Period .

Page 41: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

TurboIntegrator Basics 1-23

5. Press <Tab>. The following dialog box appears:

6. Enter the following formula in the formula field:

v_region=V1;

Page 42: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

1-2

he sample value

ontents field to

e formula

4 Applix TM1 TurboIntegrator Guide

7. Click Evaluate. The string New England should appear in tfield.

8. Click OK.

9. Change the Variable Type field to String, and change the CConsolidation.

10. Repeat steps 3 through 8, and build the variable v_state. Thshould be set to:

v_state=V2;

Page 43: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

TurboIntegrator Basics 1-25

formula should

St

map those

The new variable should look like this:

11. Repeat steps 3 through 8, and build the variable v_city. Thebe set to:

v_city=V3;

The new variable should look like this:

The Variables tab should now look like the following figure:

ep 3 - Mapping Variables

After you identify the variables in your data source, you mustvariables to elements and consolidations.

Page 44: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

1-2

tegrator dialog box.

lways available. ontents you set containing ntify a column

mes available,

Mension.

ocessing data or e.”

M

elements, you

6 Applix TM1 TurboIntegrator Guide

To begin mapping variables, click the Maps tab on the TurboIn

The Maps tab contains several sub-tabs. The Cube sub-tab is aAll other sub-tabs become available based upon the column con the Variables tab. For example, if you identify a column aselements, the Dimension sub-tab becomes available. If you ideas containing consolidations, the Consolidations sub-tab becoand so on.

apping CubesYou should not perform any cube actions when creating a dim

1. Click the Cube sub-tab.

2. Select No Action in the Cube Action box.

3. Select No Action in the Data Action box.

For details on using the options on the Cubes sub-tab when prcreating a cube, see “Importing a Cube from an ASCII Flat Fil

apping Dimensions

If you identify any columns in your data source as containingmust map those elements to the dimension you are creating.

1. Click the Dimensions sub-tab.

Page 45: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

TurboIntegrator Basics 1-27

imension type the

olumn, the

e option of create action, aced by the data ension is ce.

t Type drop-tified by the eric.

ines how

t that maps to a ab appears as

M

2. Type the name of the dimension you want to create in the Dcolumn. If multiple elements map to the same dimension, dimension name for each element.

When you type a new dimension name in the Dimension cAction column defaults to Create.

If you type the name of an existing dimension, you have threcreating or updating the dimension. If you choose the Rethe elements in the existing dimension are deleted and replin the data source. If you choose the Update action, the dimupdated with any new elements contained in the data sour

3. Select a type for each element from the appropriate Elemendown list. The element type indicates the type of data idenelement variable. In TM1, this setting is almost always Num

4. Select an Element Order option. The element order determelements are added to the dimension during processing.

The data in this example contains a single numeric elemennew Location dimension. The completed Dimensions sub-tfollows.

apping Data

Page 46: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

1-2

mension. In fact, n on the Cube

M

consolidations, creating.

f consolidation longs.

mension to y one dimension matically.

immediate child

hildren are r data source.

box appears:

8 Applix TM1 TurboIntegrator Guide

You should not perform any data mapping when creating a dithe Data tab should be inactive, as you specified No Data actiosub-tab.

apping Consolidations

If you identify any columns in your data source as containingyou must map consolidation paths for the dimension you are

1. Click the Consolidations sub-tab.

2. Refer to the Sample Value column to determine the level oand the dimension to which each consolidation variable be

3. Click the appropriate Dimension button to identify the diwhich each consolidation belongs. In this case, there is onlbeing created. TurboIntegrator fill in the correct value auto

4. Click the appropriate Child Variable button to identify the of each consolidation.

A child can be another consolidation or a simple element. Cidentified by the variables assigned to each column in you

5. Click the Component Order button. The following dialog

Page 47: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

TurboIntegrator Basics 1-29

the following

ithin the same omponent the same gs,

6. Click Automatic, By Name, and Ascending, as shown in figure.

7. Repeat steps 5 and 6 for each consolidation.

NOTE: When you are setting up multiple consolidations wdimension, all the consolidations must be set to the same CElement Ordering settings. If you set two consolidations indimension to different Component Element Ordering settin

Page 48: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

1-3

or when you try

ented by the ate child of New achusetts is

e Variables tab.

tab appears as

0 Applix TM1 TurboIntegrator Guide

TurboIntegrator throws a Sorting Information Mismatch errto save and execute the process.

The example data contains two levels of consolidation, repressample values New England and Massachusetts. The immediEngland is Massachusetts, while the immediate child of MassBoston.

Recall that each sample value is associate with a variable on th

When the consolidations are mapped, the Consolidations sub-follows.

Sample value Variable

New England V_region

Massachusetts V_state

Boston V_city

Page 49: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

TurboIntegrator Basics 1-31

St

ave and execute

Sa

, an error tor dialog box

in the Server dification.

ep 4 - Saving and Executing the Process

After you define a data source and set up variables, you must sthe process to create the dimension.

ving the Process

To save the process:

1. Choose File → Save from the TurboIntegrator menu bar.

The Save Process As dialog box appears.

2. Enter a name for the process and click Save.

If TM1 encounters an error during compilation and savingmessage indicates the nature of the error. The TurboIntegraremains active, so you can immediately correct any errors.

TM1 saves the process as a server object under Processes Explorer. The process is now available for execution or mo

Page 50: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

1-3

Ex

Execute from irectly from the s → Execute

nal message.

e errors

imension is the elements to

2 Applix TM1 TurboIntegrator Guide

ecuting the Process

To execute the process and create the dimension, choose File →the TurboIntegrator menu bar. You can also execute a process dServer Explorer by selecting the process and choosing ProcesProcess.

If the process executes successfully, TM1 issues an informatio

If TM1 is unable to execute the process, a dialog box details thencountered during execution.

When NewEngland.cma is processed, the following Location dcreated. (You may have to sort the dimension by hierarchy forappear as they do in the following figure.)

Page 51: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

TurboIntegrator Basics 1-33

C

ube from an d elements, and

building a s:

ta contains a file a TM1 cube

St

the data source.

esses icon and

ld and select the

reating a Cube From an ASCII Flat File

This section describes how to use TurboIntegrator to create a cASCII flat file. This procedure also builds some dimensions anperforms some data manipulation.

The procedure for building a cube is similar to the process fordimension. To build a cube, complete the following procedure

• Step 1 - Define the Data Source

• Step 2 - Define Variables

• Step 3 - Map Variables

• Step 4 - Save and execute the process

TM1 ships with a sample data directory called TI_data. TI_dacalled import_cube.csv. This procedure describes how to buildfrom import_cube.csv.

ep 1 - Defining the Data Source

The first step in creating a cube from an ASCII file is to defineFollow these steps:

1. In the left pane of the Server Explorer, right-click the Procselect Create New Process.

2. Click the Data Source tab on the TurboIntegrator window.

3. Choose ASCII as the Datasource Type.

4. Click the Browse button next to the Data Source Name fiefile import_cube.csv in your TI_data directory.

Page 52: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

1-3

a as the

for this example.

sand Separator

rce.

five fields ent names. The

St

dentify the

4 Applix TM1 TurboIntegrator Guide

5. Set the Delimiter Type to Delimited, and choose the CommDelimiter.

Ignore the Quote Char and Number of Title Records fields

6. Make sure the Decimal Separator is period (.) and the Thouis comma (,).

7. Click Preview to view the first few records of the data sou

Each record in import_cube.csv contains 6 fields. The first contain information that will be imported into TM1 as elemsixth column contains cube data.

ep 2 - Defining Variables

After loading the source data into TurboIntegrator, you must icontents of each field in the source.

Page 53: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

TurboIntegrator Basics 1-35

s for each

Type drop-e required.

Contents drop-e Contents field

St

ons. Now you g a new cube.

M

1. Click the Variables tab. TurboIntegrator sets default valuevariable, as shown in the following figure.

2. For each variable, select a type from the associated Variabledown list. In this example, no changes to the Type fields ar

3. For each variable, select a content type from the associateddown list. The figure above shows the correct settings for thfor this example.

ep 3 - Mapping Variables

You’ve identified variables for data, elements, and consolidatihave to map the variables and provide instructions for creatin

apping the Cube

To provide cube mapping instructions:

1. Click the Maps tab.

2. Click the Cube sub-tab.

3. Select Create for the Cube Action.

Page 54: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

1-3

u enable cube You are creating

M

appropriate

e.

6 Applix TM1 TurboIntegrator Guide

4. Type import_cube in the Cube Name field.

5. Select Store Values for the Data Action.

6. Do not turn on the Enable Cube Logging option. When yologging, TM1 logs changes to cube data during processing.a new cube, so there is no need to log changes.

The Cube sub-tab should appear as follows:

apping Element Variables to Dimensions

Map all variables you identified as having an Element type todimensions.

1. Click the Dimensions sub-tab.

2. Set the Dimensions subtab according to the following figur

Page 55: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

TurboIntegrator Basics 1-37

M

not need to map b is not even

f the created on the Variables ata should be

see

M

he Variables tab.

e, see

apping Data Variables

For this example, there is only one data variable - V6. You do this data variable. TurboIntegrator does it for you. The data taenabled in this example.

TurboIntegrator adds the data to the cube at the intersection odimensions. If there were 2 or more variables defined as data tab, you would have to specify information about where the dadded to the cube.

For an in-depth example of mapping data values into a cube, “TurboIntegrator Tutorial” in Appendix A of this manual.

apping Consolidation Variables

No variables in this example are defined as consolidations on tThe Consolidations tab is not enabled in this example.

For an in-depth example of mapping consolidations into a cub“TurboIntegrator Tutorial” in Appendix A of this manual.

Page 56: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an ASCII Flat File Table of Contents | Index

1-3

Sa

rocess executed

8 Applix TM1 TurboIntegrator Guide

ving and Executing the Process

To save and execute the process:

1. Click the Execute button .

TM1 prompts you to save the process.

2. Save the process as create_newcube.

After a few seconds, you should see confirmation that the psuccessfully.

Page 57: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Data from an ODBC Datasource Table of Contents | Index

TurboIntegrator Basics 1-39

created and ated.

Im

from data in ing software on

n the same

ase. You build anel.

these steps to

3. Open the Server Explorer. The cube import_cube has been populated, and that all required dimensions have been cre

porting Data from an ODBC Datasource

Using TurboIntegrator, you can create cubes and dimensions relational database tables. To do this, you must have the followyour machine:

• The client software for your relational database installed omachine on which you are running TurboIntegrator.

• An ODBC data source established for your relational databdata sources through the Windows Data Sources control p

Once you have this software installed and configured, follow create cubes and dimensions from your relational data:

• Step 1 - Defining the Datasource

• Step 2 - Defining Variables

Page 58: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Data from an ODBC Datasource Table of Contents | Index

1-4

ps for creating a g a cube or

S

the ODBC data

hich you want to

0 Applix TM1 TurboIntegrator Guide

• Step 3 - Mapping Variables

• Step 4 - Saving and executing the process

NOTE: Once you have defined the ODBC data source, the stecube or dimension from relational data are identical to creatindimension from an ASCII flat file.

tep 1 - Defining an ODBC Data Source

The first step in importing relational data into TM1 is to definesource. Follow these steps:

1. Open the Server Explorer or Architect and log in to TM1.

2. Right-click the Processes icon beneath the server on wcreate the process and choose Create New Process.

Page 59: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Data from an ODBC Datasource Table of Contents | Index

TurboIntegrator Basics 1-41

r displays the

The TurboIntegrator window opens.

3. Choose ODBC in the Datasource Type box. TurboIntegratofields required to define an ODBC source.

Page 60: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Data from an ODBC Datasource Table of Contents | Index

1-4

ly data sources server runs are

se in the User-

the source. The f database you

paces, you must

2 Applix TM1 TurboIntegrator Guide

4. Click Browse and choose an ODBC data source name. Onthat have been defined on the computer on which the TM1accessible.

5. Enter a valid username and password for the target databaName and Password fields.

6. In the Query box, enter an SQL query to extract data from syntax and format of the SQL query depends on the type oare using.

NOTE: If the query references a table name that contains senclose the name in double quotes.

Page 61: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Data from an ODBC Datasource Table of Contents | Index

TurboIntegrator Basics 1-43

able should

are exactly the lat File,” earlier

7. Click Preview. The first ten records of the target database tappear in the dialog box, as shown in the following figure.

From this point on, the steps for creating a cube or dimensionsame as those described in the section “Importing an ASCII Fin this section.

Page 62: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Data from an ODBC Datasource Table of Contents | Index

1-4

ata in the This database is

S

the section chapter. The

solidations. The

S

escribed in Step e,” earlier in this ension and ion.

4 Applix TM1 TurboIntegrator Guide

The following sections show how to build a dimension from dAccounts table of the Microsoft Access database newdb.mdb. distributed in the TI_Data directory of the TM1 installation.

tep 2 - Defining Variables

The procedure for defining variables is described in Step 2 of “Creating a Dimension from an ASCII Flat File,” earlier in thisfollowing figure shows an example screen.

In this example, the Region column of the query contains conName column contains elements.

tep 3 - Defining Mapping Instructions

The procedure for mapping imported data to TM1 objects is d3 of the section “Creating a Dimension from an ASCII Flat Filchapter. The following screens show how to set the Cube, DimConsolidation tabs to create a dimension.called stores _by_reg

Page 63: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Data from an ODBC Datasource Table of Contents | Index

TurboIntegrator Basics 1-45

C

ab as shown in

ube

Creating a dimension requires no cube actions. Set the Cube tthe following figure.

Page 64: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Data from an ODBC Datasource Table of Contents | Index

1-4

D

M1 dimension. create a

C

l have a set of lidations tab ts of the stores

S

6 Applix TM1 TurboIntegrator Guide

imensions

The Dimensions tab allows you to map incoming data into a TThe following figure shows how to set the Dimensions tab to dimension called stores_by_region.

onsolidations

The Stores_By_Region dimension will have two levels. It wilregions, and each region will have assigned stores. The Consoallows you to set up the regions (such as Mideast) as the parenwithin the dimension,

tep 4 - Saving and Executing the Process

To save and execute the process, follow these steps:

1. Click the Execute button .

TM1 prompts you to save the process.

Page 65: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Data from an ODBC Datasource Table of Contents | Index

TurboIntegrator Basics 1-47

rocess executed

2. Save the process as create_newdimension.

After a few seconds, you should see confirmation that the psuccessfully.

Page 66: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Using a TM1 View as a Data Source Table of Contents | Index

1-4

n.

U

iew and create to use lled Model2, and

8 Applix TM1 TurboIntegrator Guide

The following figure shows the stores_by_region dimensio

sing a TM1 View as a Data Source

TurboIntegrator allows you to extract data from a TM1 cube vnew TM1 objects with that data. This section shows you how TurboIntegrator to read the data and metadata from a view ca

Page 67: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Using a TM1 View as a Data Source Table of Contents | Index

TurboIntegrator Basics 1-49

owing figure

form the data is s:

create a cube called newcube2 from that information. The follshows the Model2 cube view.

The steps for building a process to read a TM1 view and transsimilar to using any other data source. The steps are as follow

• Step 1 - Define the Data Source

• Step 2 - Define Variables

• Step 3 - Map Variables

• Step 4 - Save and execute the process

Page 68: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Using a TM1 View as a Data Source Table of Contents | Index

1-5

S

fine the data ifically for

ding a view with ill work

s:

reate New Pro-

ator displays the

0 Applix TM1 TurboIntegrator Guide

tep 1 - Defining a Cube View Source

The first step in building any TurboIntegrator process is to desource. This includes building a view of your data that is specimport.

Not all TM1 Cube views can be successfully imported. By builcertain parameters from inside TurboIntegrator, your import wsuccessfully every time.

To define a TM1 cube view as a data source, follow these step

1. Right-click Processes in the Server Explorer, and choose Ccess.

2. Select CubeView in the Data Source Type box. TurboIntegrsingle field required to define a cube view source.

Page 69: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Using a TM1 View as a Data Source Table of Contents | Index

TurboIntegrator Basics 1-51

rowse Server

3. Click Browse to select from a list of available views. The BCube Views dialog box appears.

4. Select the cube that holds the data you want to import.

Page 70: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Using a TM1 View as a Data Source Table of Contents | Index

1-5

ecifically for

2 Applix TM1 TurboIntegrator Guide

5. Click Create View. The View Extract dialog box appears.

6. Enter import in the Views field. This view will be set up spimporting into other TM1 objects.

Page 71: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Using a TM1 View as a Data Source Table of Contents | Index

TurboIntegrator Basics 1-53

ook like this:

7. Enable all three Skip Parameters. Your dialog box should l

8. Click to save the import view.

Page 72: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Using a TM1 View as a Data Source Table of Contents | Index

1-5

S

the section chapter. The

w is treated as a eing mapped to

4 Applix TM1 TurboIntegrator Guide

9. Click OK.

10. Click import, then click OK.

tep 2 - Defining Variables

The procedure for defining variables is described in Step 2 of “Creating a Dimension from an ASCII Flat File,” earlier in thisfollowing figure shows an example screen.

When you import a cube view, each dimension in the cube vievariable by TurboIntegrator. In this example, each variable is b

Page 73: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Using a TM1 View as a Data Source Table of Contents | Index

TurboIntegrator Basics 1-55

used to import

S

escribed in Step e,” earlier in this ensions and

C

t the Cube tab as

an existing dimensions, except for the Value variable, which isthe cube’s data.

tep 3 - Defining Mapping Instructions

The procedure for mapping imported data to TM1 objects is d3 of the section “Creating a Dimension from an ASCII Flat Filchapter. The following screens show how to set the Cube, DimConsolidations tabs to create the newcube2 cube.

ube

In this example, the newcube2 cube is created from scratch. Seshown in the following figure.

Page 74: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Using a TM1 View as a Data Source Table of Contents | Index

1-5

D

1 dimensions. In ensions. In this exist.

and an entirely ns that already

C

ions tab is not

S

process.

6 Applix TM1 TurboIntegrator Guide

imensions

The Dimensions tab allows you to map incoming data into TMprevious examples, imported data was used to build new dimcase, imported data is used to update dimensions that already

In this case, since data is being read from the model2 cube viewnew cube is being created, it is possible to re-use the dimensioexist on the server.

onsolidations

No consolidations are created in this example. The Consolidatenabled.

tep 4 - Saving and Executing the Process

To save and execute the process, follow these steps:

1. Click the Execute button . TM1 prompts you to save the

Page 75: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Using a TM1 View as a Data Source Table of Contents | Index

TurboIntegrator Basics 1-57

, you should see

2. Save the process as create_newcube2. After a few secondsconfirmation that the process executed successfully.
Page 76: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Using a TM1 Subset as a Data Source Table of Contents | Index

1-5

er explorer.

U

sion subset and , the Europe rm a new

t, the target from

8 Applix TM1 TurboIntegrator Guide

The following figure shows the newcube2 cube. in the serv

sing a TM1 Subset as a Data Source

TurboIntegrator allows you to extract data from a TM1 dimenmove that information to another TM1 object. In this examplehierarchy in the Region dimension is extracted and used to fodimension called Region_Europe.

When you are extracting information from a Dimension subseobject is typically another dimension. You cannot build a cubeinformation extracted from a dimension subset.

As with most TurboIntegrator functions, there are four steps:

Page 77: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Using a TM1 Subset as a Data Source Table of Contents | Index

TurboIntegrator Basics 1-59

S

, follow these

reate New Pro-

rboIntegrator set data source.

• Step 1 - Defining the Datasource

• Step 2 - Defining Variables

• Step 3 - Mapping Variables

• Step 4 - Saving and executing the process

tep 1 - Defining a Dimension Subset Source

To define a dimension subset as a TurboIntegrator data sourcesteps.

1. Right-click Processes in the Server Explorer, and choose Ccess.

2. Select Dimension Subset in the Data Source Type box. Tudisplays the single field required to define a dimension sub

Page 78: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Using a TM1 Subset as a Data Source Table of Contents | Index

1-6

se as a data

0 Applix TM1 TurboIntegrator Guide

3. Click Browse.

4. Select the dimension that contains the subset you want to usource.

5. Select the subset.

6. Click OK.

Page 79: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Using a TM1 Subset as a Data Source Table of Contents | Index

TurboIntegrator Basics 1-61

r in the preview

7. Click Preview. The elements of the dimension subset appeapanel, as shown in the following figure.
Page 80: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Using a TM1 Subset as a Data Source Table of Contents | Index

1-6

S

the section chapter. The ble assigned as

bset will be . To build a new

les tab.

2 Applix TM1 TurboIntegrator Guide

tep 2 - Defining Variables

The procedure for defining variables is described in Step 2 of “Creating a Dimension from an ASCII Flat File,” earlier in thisfollowing figure shows the Variables tab with the region variaan element.

In this example, the elements extracted from the dimension suadded as children of a top-level consolidation called All Europeconsolidation follow these steps:

1. Click New Variable. The variable V2 appears in the Variab

Page 81: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Using a TM1 Subset as a Data Source Table of Contents | Index

TurboIntegrator Basics 1-63

ppears.

2. Click Formula. The Process Variable Formula dialog box a

3. Modify the formula as follows:

Page 82: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Using a TM1 Subset as a Data Source Table of Contents | Index

1-6

e, as shown here:

lidation. The

on dimension

4 Applix TM1 TurboIntegrator Guide

4. Click Evaluate. All Europe should appear as a sample valu

5. Click OK.

6. Change the Variable Type to String.

7. Change the Contents setting on the variables tab to ConsoVariables tab should now look like this:

In the next section, the elements imported through the regiare added to the All Europe consolidation.

Page 83: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Using a TM1 Subset as a Data Source Table of Contents | Index

TurboIntegrator Basics 1-65

S

escribed in Step e,” earlier in this ensions and urope. Europe

C

n in the

tep 3 - Defining Mapping Instructions

The procedure for mapping imported data to TM1 objects is d3 of the section “Creating a Dimension from an ASCII Flat Filchapter. The following screens show how to set the Cube, DimConsolidations tabs to create a hierarchical dimension called Ehas a simgle consolidation called All Europe.

ube

In this example, no cubes are created. Set the Cube tab as showfollowing figure.

Page 84: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Using a TM1 Subset as a Data Source Table of Contents | Index

1-6

D

1 dimensions. In

t and an entirely

C

the value you

S

process.

6 Applix TM1 TurboIntegrator Guide

imensions

The Dimensions tab allows you to map incoming data into TMthis example, only one dimension is created.

In this case, since data is being read from the dimension subsenew dimension is being created.

onsolidations

The All Europe variable you added in Step 2 should appear onConsolidations tab. Notice that the Sample Value is set to the established in the formula.

tep 4 - Saving and Executing the Process

To save and execute the process, follow these steps:

1. Click the Execute button . TM1 prompts you to save the

Page 85: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Using a TM1 Subset as a Data Source Table of Contents | Index

TurboIntegrator Basics 1-67

u should see

rt by hierarchy, e:

2. Save the process as create_europe. After a few seconds, yoconfirmation that the process executed successfully.

When you open the Europe dimension and click to sothe Europe dimension should look like the following figur

Page 86: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Editing Advanced Procedures Table of Contents | Index

1-6

E

ine all mapping re based on the ures are

8 Applix TM1 TurboIntegrator Guide

diting Advanced Procedures

After you specify a data source, identify all variables, and definstructions, TurboIntegrator generates four procedures that aoptions you selected in the TurboIntegrator tabs. These procedidentified as sub-tabs of the Advanced tab.

Page 87: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Editing Advanced Procedures Table of Contents | Index

TurboIntegrator Basics 1-69

tions and TM1 For example, truct the process

efore the data source is

eate cube, dimensions, and ssing.

values for each record in

fter the data source is

The procedures are:

You can edit these procedures to include TurboIntegrator funcrules functions that extend the capabilities of TurboIntegrator.you can edit the Data procedure to include statements that ins

Prolog A series of statements to be executed bprocessed.

Metadata A series of statements that update or crother metadata structures during proce

Data A series of statements that manipulate the data source.

Epilog A series of statements to be executed aprocessed.

Page 88: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Editing Advanced Procedures Table of Contents | Index

1-7

cords to an

les functions,

s intended to ccordingly, you iven procedure. e procedures in

and Metadata ctions or

, but TM1 does t executed.

the

efore or after the ents generated

0 Applix TM1 TurboIntegrator Guide

to skip records containing zero values, or to write imported reexternal file.

For a complete list of all available TurboIntegrator and TM1 rurefer to the online help.

When editing procedures, keep in mind that each procedure iexecute certain types of actions at specific times in a process. Ashould create actions or statements that are appropriate for a gThe online help for each TurboIntegrator function indicates thwhich the function can be used.

NOTE: When the data source for a process is NONE, the Dataprocedures are ignored when the process is executed. Any funstatements on the Data or Metadata sub-tabs are not executednot issue an error or warn you that part of the process was no

To edit a procedure:

1. Click the Advanced tab.

2. Click the sub-tab for the procedure you want to edit.

3. Enter your statements in the text box either before the #****GENERATED STATEMENTS START**** line, or after#****GENERATED STATEMENTS FINISH**** line.

IMPORTANT: User-created statements can be inserted either bgenerated statements, but cannot be inserted within the statemby TurboIntegrator.

Page 89: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Chores Table of Contents | Index

TurboIntegrator Basics 1-71

C

ore to execute a are not mutually e, even if the

t a user-defined

ired.

E

er Explorer and

choosing File →

hores

You can execute a process on demand and you can create a chprocess at defined intervals. These two methods of execution exclusive. You can execute any process on demand at any timprocess is scheduled for automatic execution as a chore.

A chore is a TM1 object that executes one or more processes afrequency. A chore is comprised of:

• A list of processes to be executed.

• A start time for the initial execution of the chore.

• A frequency at which the chore is subsequently executed.

Once defined, chores can be activated and deactivated as requ

xecuting a Process on Demand

To execute a process on demand, select the process in the Servchoose Process → Execute Process.

You can also execute a process from within TurboIntegrator byExecute.

Page 90: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Chores Table of Contents | Index

1-7

S

in

lt e.

2 Applix TM1 TurboIntegrator Guide

cheduling a Process for Automatic Execution with Chores

You can schedule a process for automatic execution from withTurboIntegrator.

1. Click the Schedule tab in the TurboIntegrator window.

2. Fill the Schedule this Process as a Chore Named box.

3. Enter a name for the process in the adjacent field. By defauTurboIntegrator assigns the name of the process to the chor

Page 91: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Chores Table of Contents | Index

TurboIntegrator Basics 1-73

itial execution of

n of the chore.

ne the interval at

g information.

the chore is d start time.

ver Explorer.

server on which

4. Click a date on the calendar to specify a start date for the inthe chore.

5. Enter a Time to specify the start time for the initial executio

6. Set the fields in the Chore Execution Frequency box to defiwhich the chore is executed.

7. Choose File → Save to save the process with the schedulin

When you schedule a process from within TurboIntegrator,automatically activated and will be executed at the specifie

You can also create a chore for a process directly from the Ser

1. In the Server Explorer, select the Chores icon beneath the you want to create the chore.

2. Choose Chores → Create New Chore.

Page 92: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Chores Table of Contents | Index

1-7

to create a chore.

itial execution of

n of the chore.

4 Applix TM1 TurboIntegrator Guide

The Chore Setup Wizard appears.

3. In the Available list, select the process for which you want

4. Click to move the process to the Selected list.

5. Click Next.

6. Click a date on the calendar to specify a start date for the inthe chore.

7. Enter a time to specify the start time for the initial executio

Page 93: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Chores Table of Contents | Index

TurboIntegrator Basics 1-75

ne the interval at

ame specified re. For details,

8. Set the fields in the Chore Execution Frequency box to defiwhich the chore is executed.

9. Fill the Chore Schedule is Active box.

10. Click Finish.

The Save Chore As dialog box appears.

11. Enter a name for the chore and click Save.

You can define a chore that executes several processes at the sfrequency. Additionally, you can temporarily deactivate a chorefer to the topic “Chores Overview” in the TM1 online help.

Page 94: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Chores Table of Contents | Index

1-7

6 Applix TM1 TurboIntegrator Guide
Page 95: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents | Index

Importing Data from MSAS 2-1

MSAS

DB for OLAP his chapter sions from

ource:

2 Importing Data from

TM1 TurboIntegrator allows you to import data from any OLE(ODBO) data source, including Microsoft Analysis Services. Tshows how to use TurboIntegrator to import cubes and dimenMicrosoft Analysis Services.

TurboIntegrator supports three operations on an ODBO data s

• Importing a Cube

• Importing a Dimension

• Executing an MDX query and processing the result set

Page 96: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

OLE DB for OLAP Data Sources Table of Contents | Index

2-2

O

ng parameters:

O

ed their some

ve installed on

P Services 8.0

Applix TM1 TurboIntegrator Guide

LE DB for OLAP Data Sources

An OLE DB For OLAP data source is identified by the followi

• ODBO Provider Name

• ODBO Location

• ODBO Data Source

• ODBO Catalog

DBO Provider Name

This is the name assigned by the ODBO provider that identifimultidimensional database server. The following table showscommonly-used providers.

TurboIntegrator will list only the ODBO providers that you hayour server.

Product Provider Name

TM1 Applix TM1 OLE DB MD Provider

Microsoft Analysis Services

Microsoft OLE DB Provider for OLA

SAP SAP BW OLE DB Provider

Page 97: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

OLE DB for OLAP Data Sources Table of Contents | Index

Importing Data from MSAS 2-3

O

strator assigns a

O

s at a particular egistered server.

O

r collection of ft Analysis

DBO Location

The location field is the name of the location where an adminiparticular instance of the ODBO provider service.

The exact interpretation of this field is vendor-specific.

DBO Datasource

This is the name your administrator assigns to a set of cataloglocation. In Microsoft Analysis Services, this is the name of a r

DBC Catalog

This is the name assigned by your administrator to a particuladatabases (Cubes, Dimensions and other objects). For MicrosoServices, this is the name of the database.

Page 98: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

OLE DB for OLAP Data Sources Table of Contents | Index

2-4

C

ified to provide his was done to

ion strings.

B Provider

Applix TM1 TurboIntegrator Guide

onnection Strings: MSAS vs. TM1

In TM1 8.4, the TM1 OLE DB for OLAP Provider has been modmore flexibility to programmers building connection strings. Tmake TM1 connection strings compatible with MSAS connect

In earlier versions of TM1, logging in through the TM1 OLE Drequired the following fields:

Field Example Setting

Location - This contains the machine name of the TM1 Admin server host.

MyServer

Datasource - Specifies the name of the TM1 server.

Sdata

userID - Specify the TM1 user name. Admin

password - Specify the password for the TM1 user.

Apple

Page 99: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

OLE DB for OLAP Data Sources Table of Contents | Index

Importing Data from MSAS 2-5

u can log in to eters are also grator.

In TM1 8.4, you can use the parameters described above, or yoTM1 using the parameters in the following table. These paramused to connect to Microsoft Analysis Services from TurboInte

Field Example Setting

Datasource - This contains the machine name of the TM1 Admin server host.

MyServer

Catalog - This contains the name of the TM1 server.

Sdata

userID - Specify the TM1 user name. Admin

password - Specify the password for the TM1 user.

Apple

Page 100: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Cube Table of Contents | Index

2-6

Im

osoft Analysis e cube as

asures.

Applix TM1 TurboIntegrator Guide

porting a Cube

This procedure shows how to import a simple cube from MicrServices into TM1. For example, the following figure shows thdisplayed in Analysis Services:

This cube has four dimensions: time, store2, customer and me

Page 101: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Cube Table of Contents | Index

Importing Data from MSAS 2-7

en imported into

C

follow these

password.

The following figure shows the exact same cube after it has beTM1.

onnecting To Analysis Services with TurboIntegrator

To import a cube into TM1 from Microsoft Analysis Services, steps:

1. Run TM1 Architect, and log in using a valid user name and

Page 102: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Cube Table of Contents | Index

2-8

he

Applix TM1 TurboIntegrator Guide

2. Right-click Processes and choose Create New Process. TTurboIntegrator dialog box appears.

Page 103: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Cube Table of Contents | Index

Importing Data from MSAS 2-9

:

LE DB Provider for

3. Click ODBO Cube. The dialog box displays as follows:

This dialog box allows you create a connection string.

4. Enter connection parameters into the dialog box as follows

Field Value

ODBO Provider Choose Microsoft OOLAP Services.

Page 104: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Cube Table of Contents | Index

2-1

tton becomes Cube tab.

Th

u are importing these steps to fill

r blank.

me of the server that hosts

rvices database name. For ata from the Microsoft

ter FoodMart 2000 in this

me and password for the tabase.

may require additional to successfully connect. ers in this field, delimited

0 Applix TM1 TurboIntegrator Guide

5. Click Connect. If you connect successfully, the connect bugreyed out, and you are able to proceed to the Load ODBO

e Load ODBO Cube Tab

The Load ODBO Cube tab allows you to specify which cube yofrom Analysis Services, along with other information. Follow out this tab.

ODBO Location Leave this paramete

ODBO Datasource Enter the machine naAnalysis Services.

ODBO Catalog Enter an Analysis Seexample, to import dsample database, enfield.

ODBO UserID Enter a valid user naAnalysis Services da

ODBO Password

Additional Connection Parameters Some ODBO serversparameters in order Enter those parametby semi-colons.

Field Value

Page 105: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Cube Table of Contents | Index

Importing Data from MSAS 2-11

appears.

wing table:

ODBO data source, and ption only when none of porting exist on the TM1

be, and rebuilds it using ata source. Use this

d dimensions exist, and structures and data.

1. Click the Load ODBO Cube tab. The following dialog box

2. Choose a cube action. The choices are described in the follo

Option Description

Create Cube Copies data and metadata from the create a new cube in TM1. Use this othe cubes and dimensions you are imserver.

Recreate Cube Destroys a currently existing TM1 cudata and metadata from the ODBO doption only when the TM1 cubes anyou want to replace them with new

Page 106: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Cube Table of Contents | Index

2-1

ervices cube to

ique name for

writes cell e Values option .

cube, and inserts it into oes not change the n the TM1 server.

cesses that specify No r metadata. Use this to

e your own custom

2 Applix TM1 TurboIntegrator Guide

For this example, choose Create Cube.

3. Click Select ODBO Cube From and choose an Analysis Simport into TM1.

4. Click in the Select TM1 Cube to Load To field. Enter a unyour TM1 cube.

5. In the Data Action panel, choose Store Values. This optionvalues in the ODBO cube to the TM1 cube. The Accumulatallows you to aggregate values as they are being imported

Update Cube Copies data from an existing ODBOan existing TM1 cube. This option dstructure of cubes and dimensions o

No Action The default value for the screen. ProAction do not affect the cube’s data otest and debug processes or to definoperations.

Option Description

Page 107: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Cube Table of Contents | Index

Importing Data from MSAS 2-13

b.

The following figure shows a completed Load ODBO Cube ta
Page 108: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Cube Table of Contents | Index

2-1

Th

dimensions as ube Dimensions

ted. They are imension in n TM1 is called

dimension in

1 Dimension

an entirely new h the TM1 ion. In the next

4 Applix TM1 TurboIntegrator Guide

e Cube Dimensions Tab

The Cube Dimensions tab allows you to manipulate importedthey are imported into TM1. The following figure shows the Ctab.

By default, all of the dimensions in the ODBO cube are imporcreated in TM1 as name_. For example, when the [customer] dAnalysis Services is imported, the corresponding dimension iCustomer_.

This dialog box presents the following options:

• You can choose to map an ODBO dimension to an existing

TM1. To do this, click next to any dimension in the TMcolumn, and choose another TM1 dimension.

• You can also import the ODBO dimension’s elements into TM1 dimension. Click in the corresponding cell underneatDimension column, then type the name of the new dimens

Page 109: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Cube Table of Contents | Index

Importing Data from MSAS 2-15

mension called

ension Action.

release.

BO cube, and creates a re set of element from the .

BO cube, and creates a d set of elements.

he ODBO datasource.

figure, the customer_ dimension has been replaced by a diMyCustomerDim.

• For each imported dimension, you must choose a TM1 DimChoose one of the following options:

NOTE: The Filter option is not supported in the TM1 8.3 beta

Option Description

Create Imports dimension data from the ODnew dimension in TM1 with the entidimension. This is the default action

Filter Only - MDX Imports dimension data from the ODnew dimension in TM1 with a limite

No Action Do not import this dimension from t

Page 110: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Cube Table of Contents | Index

2-1

S

ns tab, click ears.

lated to the data ort.

log box like the

6 Applix TM1 TurboIntegrator Guide

aving and Running the Process

Once you have completed your changes to the Cube Dimensioto save and execute the process. The following dialog box app

Enter the name of the new process. Give the process a name reyou are importing. For this example, enter ODBO_Sales_Imp

TM1 should import your data and create the new cube. A diafollowing will appear, showing the progress of the import.

Page 111: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Dimension Table of Contents | Index

Importing Data from MSAS 2-17

Im

t Analysis as displayed in

mes. TM1 also order to ensure

ation and rents in square

porting a Dimension

This section shows how to import a dimension from MicrosofServices into TM1. The following figure shows the dimensionTM1.

TM1 requires that all elements in a dimension have unique narequires that all aliases for the elements have unique names. Inthat the element names are unique, TM1 names each consolidelement in an imported dimension with the names of all its pabrackets, delimited by periods.

Page 112: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Dimension Table of Contents | Index

2-1

n imported into

8 Applix TM1 TurboIntegrator Guide

The following figure shows the store dimension after it has beeTM1.

Page 113: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Dimension Table of Contents | Index

Importing Data from MSAS 2-19

ment names set in TM1 with

Im

o TM1 is ension option.

password.

he

After the import, the subset aliases are populated with the elefrom Analysis Services. The following shows the previous subthe aliases turned on

porting an ODBO Dimension - Getting Started

The first step in importing an Analysis Services dimension intconnecting to Analysis Services and choosing the ODBO DimFollow these steps:

1. Run TM1 Architect, and log in using a valid user name and

2. Right-click Processes and choose Create New Process. TTurboIntegrator dialog box appears.

Page 114: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Dimension Table of Contents | Index

2-2

s:

0 Applix TM1 TurboIntegrator Guide

3. Click ODBO Dimension. The following dialog box display

Page 115: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Dimension Table of Contents | Index

Importing Data from MSAS 2-21

:

ting that you

Th

must specify your dimension

LE DB Provider for

r blank.

me of the server that hosts

rvices database name. For ata from the Microsoft

ter FoodMart 2000.

me and password for the tabase.

k.

4. Enter connection parameters into the dialog box as follows

5. Click Connect. The connect button should grey out, indicaconnected successfully.

e Load ODBO Dimension Tab

Once you are successfully connected to Analysis Services, youinformation about the source and destination dimensions for load process. Follow these steps:

Field Value

ODBO Provider Choose Microsoft OOLAP Services.

ODBO Location Leave this paramete

ODBO Datasource Enter the machine naAnalysis Services.

ODBO Catalog Enter an Analysis Seexample, to import dsample database, en

ODBO UserID Enter a valid user naAnalysis Services da

ODBO Password

Additional Connection Parameters Leave this field blan

Page 116: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Dimension Table of Contents | Index

2-2

ppears.

ing options:

data source, and creates a

imension, and rebuilds it rce.

2 Applix TM1 TurboIntegrator Guide

1. Click Load ODBO Dimension. The following dialog box a

2. Choose a TM1 Dimension Action. Choose one of the follow

Option Description

Create Dimension Copies a dimension from the ODBOnew dimension in TM1.

Recreate Dimension Destroys a currently existing TM1 dusing data from the ODBO data sou

Page 117: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Dimension Table of Contents | Index

Importing Data from MSAS 2-23

e cube that ysis Services.

ant to import.

Dimension to

our new

1 already has a dimension ete elements.

a source but not in TM1. 1 dimension.

n the ODBO data source, the import. No changes cal dimension.

a source and the local ODBO data source are the local dimension as is will increase the size of

s process has no effect on

3. Click ODBO Cube Containing Dimension . Choose thcontains the dimension that you want to import from Anal

4. Click Cube Dimensions . Choose the dimension you w

5. If you are updating or recreating a dimension, choose TM1

Load and select a dimension from the list.

If you are creating a new dimension, type in the name of ydimension in the TM1 Dimension to Load field.

Update Dimension Update Dimension assumes that TMinto which you want to insert or del

• If elements exist in the ODBO datThe elements are added to the TM

• If elements exist in TM1, but not ithose elements are unaffected by are made to the elements in the lo

• If elements exist in the ODBO datdimension, the elements from theimported, and they are created in<element_name>_1. Note that thyour dimension.

No Action The default value for the screen. Thithe TM1 dimension.

Option Description

Page 118: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Dimension Table of Contents | Index

2-2

TM1 8.3 beta

S

imension tab,

g box appears.

rt begins, and

4 Applix TM1 TurboIntegrator Guide

NOTE: The Advanced Filtering option is not supported in therelease.

aving and Running the Process

Once you have completed your changes to the Load ODBO D

click to save and execute the process. The following dialo

Enter the name of the new process, then click Save. The impoTM1 displays a dialog box similar to the following:

Page 119: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Dimension Table of Contents | Index

Importing Data from MSAS 2-25

C

he TM1 message

er in the server e shows a n creation

hecking the TM1 Message Log

When the process completes, minor errors may be written to tlog. If so, TM1 displays the following message.

To check the TM1 server message log, right-click the TM1 Servexplorer, and choose View Message Log. The following figurmessage log entry that recorded minor errors from a dimensioprocess.

Double-click the log message to see the actual error.

Page 120: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Generating a TurboIntegrator Process from an MDX Statement Table of Contents | Index

2-2

G nt

O data source section

lity, then use the TM1.

an MDX tatements cal as a starting

y the measures

B

uild your

password.

6 Applix TM1 TurboIntegrator Guide

enerating a TurboIntegrator Process from an MDX Stateme

TM1 TurboIntegrator allows you to extract data from an ODBusing an MDX statement, and import that data into TM1. Thisdescribes the steps required to do this.

It is best to generate an MDX statement using a third-party utiworking MDX statement as the basis for your data import into

When you import data into TM1, it is important to start with statement that has a limited number of columns. Some MDX sgenerate large numbers of columns. Such queries are impractipoint for an import.

One method of limiting the number of columns is to place onlyou are interested in on the columns.

uilding the TurboIntegrator Process

Once you have an MDX statement with useful data, you can bTurboIntegrator process. To get started, follow these steps:

1. Run TM1 Architect, and log in using a valid user name and

Page 121: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Generating a TurboIntegrator Process from an MDX Statement Table of Contents | Index

Importing Data from MSAS 2-27

he

2. Right-click Processes and choose Create New Process. TTurboIntegrator dialog box appears.
Page 122: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Generating a TurboIntegrator Process from an MDX Statement Table of Contents | Index

2-2

s:

your MDX data

ection

tton becomes tab.

8 Applix TM1 TurboIntegrator Guide

3. Click ODBO MDX Query. The dialog box displays as follow

This dialog box allows you to create a connection string tosource.

4. Enter connection parameters into the dialog box. The connparameters are vendor-specific.

5. Click Connect. If you connect successfully, the connect bugreyed out, and you are able to proceed to the MDX Query

6. Click MDX Query.

Page 123: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Generating a TurboIntegrator Process from an MDX Statement Table of Contents | Index

Importing Data from MSAS 2-29

ing MDX query

tatement, one ure shows the

7. Type your MDX query into this tab. You can also cut a workfrom another application and paste it into this tab.

This MDX statement generates the following grid of data.

8. Click Variables. For each column generated by the MDX svariable is generated by TurboIntegrator. The following figvariables tab.

Page 124: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Generating a TurboIntegrator Process from an MDX Statement Table of Contents | Index

2-3

e columns to

nada) are ing data

nts guide to map d to the ODBO r completing the ta import.

0 Applix TM1 TurboIntegrator Guide

The following figure shows the generated variables, and thwhich they correspond.

Columns containing the row headers (such as USA and Catypically mapped as dimension elements. Columns containelements are mapped as data.

9. Follow the instructions in Chapter 8 of the Applix TM1 Cliethe variables into TM1 structures. Once you have connectedata source and defined the MDX statement, the process foTurboIntegrator process is identical to that of an ODBC da

Page 125: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents | Index

iness Data from SAP ODBO 3-1

ata from

ugh the SAP OLE jects that you can

ance with your

Importing Bus

3 Importing Business DSAP ODBO

TM1 TurboIntegrator allows you to import data from SAP BW throDB for OLAP (ODBO) provider. This section describes the SAP obimport into TM1, and the procedures for importing those objects.

NOTE: TurboIntegrator access to SAP data must be used in compliSAP licensing.

The following topics are described in this chapter:

• SAP Objects and Terminology

• Connecting to SAP

• Importing a Characteristic From SAP

• Importing a Query Cube From SAP

Page 126: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

SAP Objects and Terminology Table of Contents | Index

3-2

S

must have a TM1 systems. ort data from SAP

TM

ODBO) provider. provided by SAP

ly sees Query

res as TM1

Tu

from SAP:

m SAP.

eristic, hierarchy,

st your SAP data,

Applix TM1 TurboIntegrator Guide

AP Objects and Terminology

In order to import data and metadata from SAP BW into TM1, you significant understanding of the data structures in both the SAP andThis section describes information you need to know before you impBW.

1 Imports through ODBO

TM1 imports data from SAP through the SAP OLE DB for OLAP (Because TM1 uses ODBO, TM1 only sees the SAP objects that are through ODBO. There are several ramifications of this:

• TurboIntegrator does not see SAP InfoCubes. TurboIntegrator onCubes.

• TurboIntegrator imports characteristics, hierarchies, and key figudimensions.

rboIntegrator Import Options for SAP

TurboIntegrator includes three options that allow you to import data

• ODBO Cube - This option allows you to import a query cube froTurboIntegrator imports dimension metadata and data.

• ODBO Dimension - This options allows you to import a charactor key figure from SAP.

• ODBO MDX Query - You can build your own MDX query againand use that as a source for your data import.

Page 127: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

SAP Objects and Terminology Table of Contents | Index

iness Data from SAP ODBO 3-3

S

must have the

ning the SAP BW

A

ct in TM1. For ns in TM1. The

measured by the in an SAP info

values are

es are provided to ose among the o TM1.

ple, SAP ctions of You can import ensions.

Importing Bus

oftware Prerequisites

Before you can run TurboIntegrator and import data from SAP, you following SAP software installed on your machine:

• SAP ODBO Provider

• SAP Logon

Obtain the SAP BW installation kit from SAP AG. When you are runinstallation, be sure to choose SAP BW Add-on and SAP GUI.

nalogous Objects in SAP and TM1

Some objects in the SAP object hierarchy have a corresponding objeexample, characteristics in SAP serve the same purpose as dimensiomeasures dimension in a TM1 cube, which defines the units beingdata in the cube, is directly analogous to a key figures characteristic cube.

Query cubes in SAP are imported into TM1 as cubes. Characteristicimported as dimension elements.

SAP characteristics may contain one or more hierarchies. HierarchiTM1 through the SAP ODBO provider as dimensions. You can chohierarchies in a characteristic when you import the characteristic int

Some SAP objects have no corresponding object in TM1. For examimplements objects called dimensions. Dimensions in SAP are collecharacteristics. TM1 has no analogous object for SAP dimensions. individual characteristics into TM1, but you cannot import SAP dim

Page 128: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

SAP Objects and Terminology Table of Contents | Index

3-4

gous objects in

Applix TM1 TurboIntegrator Guide

The following figure shows the SAP object hierarchy, and the analoTM1 and ODBO.

Page 129: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

SAP Objects and Terminology Table of Contents | Index

iness Data from SAP ODBO 3-5

Q

P BW, you must r. SAP supports nly the technical

nd the name of the 01. The query

C

echnical name and within the Query display.

nsion elements. me becomes a

Importing Bus

uery Cube Names and Info Cube Names

Whether you are importing Query Cubes or Characteristics from SAspecify the name of a SAP query cube when you run TurboIntegratoseveral different names for these objects. TurboIntegrator presents onames. The following figure shows an example dialog box.

The ODBO cube name is built from the name of the SAP InfoCube aSAP Query Cube. In this example, the InfoCube is named 0APO_Ccube is named Piyush2.

haracteristics: Technical Names and Display Names

As viewed through ODBO, every characteristic value in SAP has a ta description. The technical name, such as 0CALMONTH, is uniqueCube. The description, such as Cal. Year/Month is usually used for

When you import characteristic values into TM1, they become dimeThe display name is the name of the TM1 element. The technical naTM1 alias.

Page 130: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

SAP Objects and Terminology Table of Contents | Index

3-6

s information

technical name of .

Copyright © SAP

Applix TM1 TurboIntegrator Guide

For example, the following characteristic properties dialog box showabout a characteristic called Cal Year/ Month.

When you import this characteristic into TM1, you must specify thethe characteristic when you are building the TurboIntegrator process

Page 131: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

SAP Objects and Terminology Table of Contents | Index

iness Data from SAP ODBO 3-7

teristic and its following figure.

e TM1 dimension

Importing Bus

Once the characteristic is imported, the technical name of the characvalues are used to build the TM1 dimension aliases, as shown in the

The descriptions of the characteristic and its elements are stored in thas element names.

Page 132: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

SAP Objects and Terminology Table of Contents | Index

3-8

C

rarchies are multi-

cteristic from alphanumeric

ase characteristic g figure shows an

Applix TM1 TurboIntegrator Guide

haracteristic and Hierarchy Names

In SAP BW, characteristics can contain one or more hierarchies. Hielevel lists of values that typically define an aggregation path.

SAP hierarchy names typically consist of the name of the base charawhich they are derived, some space characters, and some additionalcharacters.

From inside TurboIntegrator, you can tell the difference between a band a hierarchy by the structure of the technical name. The followinexample.

In this figure:

• [0CALMONTH] is a base characteristic.

• [0CALMONTH 0YEA_MON] is a hierarchy.

• [0CALMONTH 0YEA_QUA_MON] is also a hierarchy.

Page 133: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

SAP Objects and Terminology Table of Contents | Index

iness Data from SAP ODBO 3-9

Li

interface, SAP tation may vary, because SAP rom monopolizing

llowing error:

nds importing the

V

P, you have the

imensions, the process that t runtime,

antly less time to

Importing Bus

mitations on Importing Cubes from SAP

When you read cube data through the SAP BW OLE DB for OLAPapplies a limitation on the amount of data you can import. (The limidepending on the SAP product you are working with.) This is done servers are shared resources, and this limitation prevents one client ftoo many resources on a server.

When TM1 hits this limitation during a cube import, it throws the fo

MDX Query Execution Failed

If you encounter this error while importing a cube, Applix recommeSAP query cube as a virtual cube instead of a standard TM1 cube.

irtual Cubes

When you run a TurboIntegrator process and import a cube from SAchoice of creating either a cube or a virtual cube.

A virtual cube has all of the metadata construction of a cube: it has ddimensions have elements, and so on. However, the TurboIntegratorcreates the virtual cube does not import any data. Data is imported awhenever a view within the virtual cube is calculated.

The TurboIntegrator processes that create virtual cubes take significrun than those that create standard TM1 cubes.

Page 134: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Connecting to SAP Table of Contents | Index

3-1

Tu

If you have a LE DB Provider

the SAP option is license does not

ual for complete

C

name and

e TurboIntegrator

0 Applix TM1 TurboIntegrator Guide

rboIntegrator Licensing and SAP

Importing data from SAP requires a special TurboIntegrator license.TurboIntegrator license with the SAP option enabled, the SAP BW Ooption appears in TurboIntegrator’s ODBO connection dialog box. Ifnot enabled in your TM1 license, the SAP BW OLE DB Provider appear in the list of providers. See the following section.

See the section “TurboIntegrator Tutorial” in Chapter 11 of this maninformation on TurboIntegrator licensing.

onnecting to SAP

To connect to SAP through TurboIntegrator, follow these steps:

1. Run the TM1 Server Explorer. Log in to TM1 using a valid user password.

2. Right-click Processes and choose Create New Process. Thdialog box appears.

3. Click ODBO Dimension or ODBO Cube.

Page 135: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Connecting to SAP Table of Contents | Index

iness Data from SAP ODBO 3-11

ovider field. The

ear, your license

O providers that your ave SAP BW ODBO

er host in order for this .

Importing Bus

4. Choose SAP BW OLE DB PROVIDER from the OLE DB Prfollowing dialog box displays:

NOTE: If the SAP BW OLE DB Provider option does not appfile (tm1s.lic) may need to be update to include the SAP option.

5. Enter connection parameters into the dialog box as follows:

Field Value

ODBO Provider SAP BW OLE DB PROVIDER

TurboIntegrator lists only the ODBTM1 server can access. You must hprovider installed on the TM1 servoption to appear in TurboIntegrator

ODBO Location Leave this field blank.

Page 136: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Connecting to SAP Table of Contents | Index

3-1

. The SAP Logon the SAPLogon een shows two SAP login d SAP_Login_Rjordon.

our system are located in P BW documentation for

s to the SAP user id.

Copyright © SAP AG

2 Applix TM1 TurboIntegrator Guide

ODBO Datasource Enter your SAP Logon DescriptionDescription appears when you run application. The following SAP scrdescriptions: SAP_CPC_B410 an

The SAP Logon Descriptions for ythe SAPLogon.ini file. See the SAmore information.

ODBO Catalog Leave this field blank.

ODBO UserID Enter a SAP user ID.

ODBO Password Enter the password that correspond

Field Value

Page 137: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Characteristic From SAP Table of Contents | Index

iness Data from SAP ODBO 3-13

greys out.

Im

cubes and P characteristic

New Process.

.

specification for US r German is DE. For other P documentation.

Importing Bus

6. Click Connect. If your login is successful, the Connect buttonOtherwise, TM1 posts an error message.

porting a Characteristic From SAP

Once you have successfully connected to SAP, you can import querycharacteristics into TM1. This section describes how to import an SAand create a TM1 dimension. Follow these steps:

1. From the TM1 Server Explorer, choose Processes → Create

2. Choose ODBO Dimension from the Data Source tab.

Client Enter a client number, such as 800

Language Enter a language specification. TheEnglish is EN. The specification folanguage settings, refer to your SA

Field Value

Page 138: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Characteristic From SAP Table of Contents | Index

3-1

, see the previous ample of a

4 Applix TM1 TurboIntegrator Guide

3. Enter connection parameters for SAP. For complete informationsection “Connecting to SAP.” The following figure shows an excompleted Connection tab.

Page 139: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Characteristic From SAP Table of Contents | Index

iness Data from SAP ODBO 3-15

n tab appears.

erver.

the TM1 rted from SAP. want to

dimension you values that exist in your TM1 ully synchronize create

Importing Bus

4. Click Load ODBO Dimension. The Load ODBO Dimensio

5. Choose a TM1 Dimension Action.

• Create Dimension creates a new dimension on your TM1 s

• Recreate Dimension destroys the dimension you choose inDimension to Load field, and rebuilds it from the data impoUse this option if the TM1 dimension already exists, and youcompletely replace it.

• Update Dimension imports data from SAP and updates the specify in the TM1 Dimension to Load field. Characteristic SAP that are not elements in the TM1 dimension are added todimension. Nothing is deleted from the TM1 dimension. To fyour SAP characteristic and your TM1 dimension, choose ReDimension.

Page 140: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Characteristic From SAP Table of Contents | Index

3-1

ript.

ery cube from the P database to

nsion you want, e for OLE DB for is described later

the list. All listed.

ew dimension in

dimension from

imension from the

le in your TM1

6 Applix TM1 TurboIntegrator Guide

• Don’t Load allows you to create a custom TurboIntegrator sc

6. Click ODBO Cube Containing Dimension . Choose a qulist. This list contains the names of every query cube in your SAwhich you have access.

NOTE: If you cannot find the query cube that contains the dimeyou may have to run the SAP Query Designer and set the ReleasOLAP property for the query cube. The procedure for doing thisin this chapter.

7. Click Cube Dimensions and choose a characteristic from characteristics that belong to the query cube chosen in Step 6 are

8. If you chose Create Dimension in step 5, enter the name of a nthe TM1 Dimension to Load field.

If you chose Recreate Dimension in step 5, choose an existingthe TM1 Dimension to Load field.

If you chose Update Dimension in Step 5, choose an existing dTM1 Dimension to Load field.

9. Click . The Save Process As dialog box appears.

10. Enter the name of the new process, and click OK.

The process runs. Your new or updated dimension should be availabserver’s dimensions list.

Page 141: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Characteristic From SAP Table of Contents | Index

iness Data from SAP ODBO 3-17

Fi

ant to import from ensions tab.

vel Name field. is displayed in the

Importing Bus

ltering Characteristic Values

TurboIntegrator allows you to select the characteristic values you weach dimension. To do this, click the Filter button on the Cube Dim

The full names of each Level in the characteristic is shown in the LeThe approximate number of members at each level of the dimensionTotal Members field.

This toggle enablesand disables all levelsin the in the hierarchy.

Page 142: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Query Cube From SAP Table of Contents | Index

3-1

on in the Select vel Members

ember. Members

Im

to TM1. The

a query cube from so that it is you how to set the

8 Applix TM1 TurboIntegrator Guide

To choose individual members from a particular level, click the buttfield. (By default, it reads All Members Selected.) The Select Ledialog box appears.

For each member listed, enable or disable the check box next to that mthat are checked are imported from SAP when you run the process.

porting a Query Cube From SAP

This section describes how to import a query cube from SAP BW infollowing topics are discussed in this section:

• Accessing Query Cubes through ODBO - In order to access TurboIntegrator, the query cube must be specifically configured available through the SAP ODBO provider. This section shows query cube parameters so that TurboIntegrator can see it.

Page 143: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Query Cube From SAP Table of Contents | Index

iness Data from SAP ODBO 3-19

tion through SAP les. This section n be imported into

P query cube for into TM1. This

A

Disclaimer describes elementsroduct. This sections a convenience forlix Customer. Applix no responsibility forr omissions. ConsultG documentation forditional information.

Importing Bus

• SAP Variables - SAP query cubes support runtime parameterizavariables. TurboIntegrator can import certain type of SAP variabdescribes how to set up variables from within SAP so that they caTM1 through TurboIntegrator.

• Importing a Query Cube - Once you have configured your SAimport, you are ready to run TurboIntegrator and import the cubesection describes the complete procedure.

ccessing Query Cubes through ODBO

SAP query cubes are built through the SAP Query Designer. Some query cubes are available through the SAP ODBO provider and some are not. The SAP query designer allows you to set a property that exposes the query cube through the ODBO interface. If you do not set this property on your query cube, you will not be able to access it from TurboIntegrator.

Follow these steps:

1. Open the query in the SAP Query Designer.

This sectionof the SAP pis provided a

the Appassumeserrors o

your SAP Aad

Page 144: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Query Cube From SAP Table of Contents | Index

3-2

right ©

0 Applix TM1 TurboIntegrator Guide

2. Click . The Query Properties dialog box appears.

Copy

Page 145: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Query Cube From SAP Table of Contents | Index

iness Data from SAP ODBO 3-21

S

ultidimensional that SAP supports ations in the query

describes SAP ou can access

Su

, you should be

ht © SAP

Importing Bus

3. Click Specific.

4. Enable Release for OLE DB for OLAP.

5. Click OK.

You should now be able to access your query from TurboIntegrator.

AP Variables

Importing a query cube from SAP BW is very similar to importing mdata from any other supported data source. The biggest difference is variables in its query cubes, which allow you to parameterize calculcube.

The variables are resolved before the query is executed. This sectionvariables in some depth, and shows the types of SAP variables that ythrough TurboIntegrator.

pported Variable Types

When you are designing query cubes that will be imported into TM1aware of the following:

Copyrig

Page 146: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Query Cube From SAP Table of Contents | Index

3-2

s. Only some of er.

alue Not

Integrator can

value in the SAP

this numeric value ort process.

oIntegrator allows

r more hierarchy set of members, a mbers. a list.

Ad

set the / Default Value. boIntegrator

Im

owing procedures:

2 Applix TM1 TurboIntegrator Guide

• An SAP query cube can contain many different types of variablethese variable types are exposed through the SAP ODBO provid

• Variables can be Optional, Mandatory or Mandatory - Initial VAllowed. TurboIntegrator can import all three of these types.

The variable types that the SAP ODBO provider exposes, and Turboaccess, are as follows:

• Text - The variable requires a text value. You can enter this text Variables tab in TurboIntegrator as part of your import process.

• Numeric - The variable requires a numeric value. You can enter in the SAP Variables tab in TurboIntegrator as part of your imp

• Hierarchy - The variable requires you to select a hierarchy. Turbyou to select a hierarchy from a list.

• Characteristic Value - The variable requires you to select one omembers. This type of variable could require a single member, arange of members, or a combination of ranges and individual meTurboIntegrator allows you to select the required members from

ding Variables to Query Cubes

When you add variables to query cubes in the SAP Query Designer,Processing By field in the SAP BW variables wizard to User EntryThe SAP ODBO provider exposes only these types of variables. Turcannot access any other type.

porting a Query Cube

To import an SAP query cube into TM1, you must complete the foll

• Step 1 - Connect to SAP through TurboIntegrator.

Page 147: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Query Cube From SAP Table of Contents | Index

iness Data from SAP ODBO 3-23

query cube and

St

SAP is to connect steps:

New Process.

Importing Bus

• Step 2 - Specify Cube Import Parameters

• Step 3 - Define Dimension Variables

• Step 4 - Define SAP Variables

• Step 5 - Save and Execute the process.

This section describes the complete procedure for importing an SAPcreating a TM1 cube.

ep 1 - Connect to SAP through TurboIntegrator

The first step in creating a new TM1 cube from data imported from to the SAP system through TurboIntegrator. To do this, follow these

1. From the TM1 Server Explorer, choose Processes → Create

2. Choose ODBO Cube from the Data Source tab.

Page 148: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Query Cube From SAP Table of Contents | Index

3-2

, see the section e shows an

St

get cubes for your

mends you choose rver resources to l cube, which is a e.)

4 Applix TM1 TurboIntegrator Guide

3. Enter connection parameters for SAP. For complete information“Connecting to SAP,” earlier in this chapter. The following figurexample of a completed connection tab.

ep 2 - Specify Cube Import Parameters

The Load ODBO Cube tab allows you to specify the source and tarimport process. Follow these steps:

1. Click the Load ODBO Cube tab.

2. Choose either Virtual Cube or Physical Cube. Applix recomVirtual Cube in most cases. Virtual cubes require fewer SAP seimport. (The rest of this example shows how to import a physicaslightly more complicated procedure than importing a virtual cub

3. Choose Create Cube from the TM1 Cube Action panel.

Page 149: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Query Cube From SAP Table of Contents | Index

iness Data from SAP ODBO 3-25

e from the list.

Importing Bus

4. Click Select ODBO Cube to load from and choose a cub

Page 150: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Query Cube From SAP Table of Contents | Index

3-2

ptions. When you

values of the TM1 data in an existing

Action panel are

St

in the target query plete this tab.

6 Applix TM1 TurboIntegrator Guide

5. Enter the name of the cube you want to create.

6. For this example, choose Store Values from the Data Action ocreate or recreate a cube, you must choose Store Values.

Accumulate Values adds the values of the imported data to the cube at each analogous data point. This is used only for updating TM1 cube.

NOTE: If you are creating a virtual cube, the options in the Datadisabled.

ep 3 - Define Dimension Variables

The Cube Dimensions tab allows you to specify the characteristicscube that are imported into TM1. This section describes how to com

Page 151: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Query Cube From SAP Table of Contents | Index

iness Data from SAP ODBO 3-27

O

a dimension characteristic and

imension Action eristic’s name and These are set to a

exclusive objects . For example, if other hierarchies

rgets of your SAP

Importing Bus

n Base Characteristics, Hierarchies and Navigational Attributes

When a characteristic has hierarchies, the hierarchies are set up withaction of Don’t Load by default. The following figure shows a basetwo of its hierarchies:

By default, the base characteristic (0CalMonth) is set to a default Dof Create. The hierarchy names typically start with the base charactconcatenate a large number of underscores and some additional text.default Dimension action of Don’t Load.

NOTE: Treat the base characteristic and its hierarchies as mutually for import purposes. Never import more than one of these into TM1you import a hierarchy, be sure to set the base characteristic and anyto Don’t Load.

Follow these steps to specify the TM1 dimensions that will be the tadata import.

Page 152: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Query Cube From SAP Table of Contents | Index

3-2

that make up the cteristic will be ample, the SAP NIT_.

ur import in the

nsion in the TM1 Don’t Load.

8 Applix TM1 TurboIntegrator Guide

1. Click the Cube Dimensions tab.

The SAP characteristics, hierarchies, and navigational attributes query cube are listed on this tab. By default, each imported charaused to create a new TM1 dimension with a similar name. For excharacteristic [0UNIT] is imported into TM1 as the dimension 0U

2. Set up the source characteristics and the target dimensions for yoODBO Dimension and TM1 Dimension fields.

3. Set the TM1 Dimension Action for each dimension. If the dimeDimension field is not in your TM1 database, choose Create or

Page 153: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Query Cube From SAP Table of Contents | Index

iness Data from SAP ODBO 3-29

he TM1 database,

the database and recreates d from SAP.

t in the currently-existing

virtual cubes is not a virtual cube, and one of ame the dimension to a nsion Action to Create.

mension is used only for

here the SAP query cube tly, TM1 supports only 16 dimensions in your query . See the section, “Using later in this chapter for

re imported from SAP. If contains hierarchies, key u must choose one of these

Importing Bus

If the dimension in the TM1 Dimension field already exists in tchoose one of the following options:

Dimension Action Description

Recreate Destroys the dimension currently in it using characteristic values importe

Update Add characteristic values that are nodimension to the dimension.

Note: Sharing dimensions between recommended. If you are importing the dimensions is set to Update, renunique name and set the TM1 Dime

Data Load Only The dimension is unchanged. The didata load.

You may also encounter situations whas more than 16 dimensions. Currendimensions. In this case, some of thecube must be set to Data Load OnlyAggregations to Reduce Cube Size,”more information.

Don’t Load Neither the dimension nor any data ayou are loading a characteristic that figures, or navigational attributes, yoand set the others to Don’t Load.

Page 154: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Query Cube From SAP Table of Contents | Index

3-3

o not want any ons to Data Load

St

es that are used to ll query cubes

s, the variables Integrator. The

query cube. (The e for this variable

ue field or click oose a value for AP variable you

0 Applix TM1 TurboIntegrator Guide

NOTE: If you are updating data in an existing TM1 cube, and you dmodifications to your dimensions, set all the TM1 Dimensions ActiOnly.

ep 4 - Define SAP Variables

SAP query cubes can contain variables, which are user-defined valucalculate values in the query cube when the query is executed. Not acontain variables.

When you import a query cube into TM1 that contains SAP variabledefined in the query cube appear in the SAP Variables tab in Turbofollowing figure shows the SAP Variables tab.

This example shows two variables, both of which are required by theMandatory field is set to Yes, indicating that you must supply a valuin order to import the query cube.)

To supply a value for a variable, you either key in a value in the ValSelect. If you click Select, a dialog box appears allowing you to chthe SAP variable. The dialog box varies, depending on the type of Sare importing.

Page 155: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Query Cube From SAP Table of Contents | Index

iness Data from SAP ODBO 3-31

ires you to enter a ure shows an

es a list for you to

Importing Bus

• Fomula (numeric) or Text Variable - This type of variable requsimple number or text value in the Value field. The following figexample of a numeric variable.

• Hierarchy Variable - Choose a hierarchy. TurboIntegrator providchoose from, as shown in the following figure.

Page 156: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Query Cube From SAP Table of Contents | Index

3-3

se a single en you click

2 Applix TM1 TurboIntegrator Guide

• Characteristic Variable - Single Value Entry - You must choohierarchy member from the list provided by TurboIntegrator. WhSelect, the following dialog appears:

Page 157: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Query Cube From SAP Table of Contents | Index

iness Data from SAP ODBO 3-33

u to choose two ge.

St

:

le in your TM1

Importing Bus

• Characteristic Variable - Interval - TurboIntegrator prompts yovalues from a dialog box - the starting and ending values of a ran

ep 5 - Save and Execute the Process

To save and execute the TurboIntegrator process, follow these steps

1. Click . The Save Process As dialog box appears.

2. Enter the name of the new process, and click OK.

The process runs. Your new or updated TM1 cube should be availabserver’s cube list.

Page 158: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Large Query Cubes Table of Contents | Index

3-3

Im

TM1 supports 16 TM1 without

ry cube:

re importing it. ill import directly

is technique, you intersection of the

R

designer, you n columns, and as ed into TM1

4 Applix TM1 TurboIntegrator Guide

porting Large Query Cubes

SAP BW supports up to 4096 characteristics in a query cube. Since dimensions, some SAP query cubes cannot be directly imported intomodifications.

There are two ways to reduce the number of characteristics in a que

• Use the SAP Query Designer to restructure your query cube befoThe SAP Query Designer allows you to build a query cube that winto TM1 without modification.

• Use aggregations to eliminate dimensions within TM1. Using thadd the values along an axis, and place the aggregated total at theother axes.

estricting Query Cube Size with the SAP Query Designer

When you design a query cube for TM1 import using the SAP queryshould limit the number of characteristics that are placed on rows, ofree characteristics to 16 or fewer. These query cubes can be importwithout modification.

Page 159: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Large Query Cubes Table of Contents | Index

iness Data from SAP ODBO 3-35

istics, carefully out compromising re shows an

Importing Bus

If your query cube is already built and has greater than 16 characterexamine the query cube for characteristics that can be removed withthe integrity of the data you are trying to present. The following figuexample of this.

Page 160: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Large Query Cubes Table of Contents | Index

3-3

through Location e query cube, you ave the same row have only be similar, but number of

arate processes to

U

orting involves the dimension nique can be used source, including

6 Applix TM1 TurboIntegrator Guide

In this figure, there are five column attributes: Location Attribute 1Attribute 5. To reduce the number of characteristics in this very largcan create five simplified query cubes. The first query cube would hcharacteristics and free characteristics as the query cube shown, butLocation Attribute 1 on the column. The second query cube wouldhave Location Attribute 2 on the column, and so on. This way, the characteristics in the each of the five query cubes is reduced by 4.

Once the five simplified query cubes are built, you can build five sepimport them.

sing Aggregations to Reduce Cube Size

Another method of reducing the number of dimensions you are impaggregating data points along an axis. This allows you to eliminate being aggregated, and reduce the size of the resulting cube. This techto reduce the number of dimensions in cube data imported from anySAP.

Page 161: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Large Query Cubes Table of Contents | Index

iness Data from SAP ODBO 3-37

A

ns.

y filter, the values s for the selected

ny element in the the sales figures at es figures for

Importing Bus

Simple Aggregation Example

Suppose you had a Sales cube consisting of the following dimensio

If you specify Data Load Only for Region, and do not apply andisplayed in the resulting cube will be the worldwide sales figureproduct and year.

If you chose to apply a filter, you could import sales figures for aRegion dimension. For example, if you selected Scandanavia, the intersection of the selected year and product would be the salScandanavia.

Page 162: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Large Query Cubes Table of Contents | Index

3-3

Ag

d into TM1. nd create a 16

8 Applix TM1 TurboIntegrator Guide

gregating SAP Data

Consider the following query cube:

This query cube has 17 dimensions, so it cannot be directly importeHowever, you can aggregate the quantities along the Region axis, adimension cube that shows the sales quanitities for all regions.

Page 163: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Large Query Cubes Table of Contents | Index

iness Data from SAP ODBO 3-39

lace that data at plete the

.

Importing Bus

Alternatively, you could slice out the data for a specific region and pthe intersection of the other 16 dimensions. To do this, you must comfollowing procedures:

• Step 1 - Connect to SAP through TurboIntegrator.

• Step 2 - Specify the source and target cubes for your import.

• Step 3 - Modify the Dimension Hierarchy Load plan for the cube

• Step 4 - Save the process.

• Step 5 - Build and schedule a chore.

These procedures are described in the following sections.

Page 164: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Large Query Cubes Table of Contents | Index

3-4

St

b as shown in the

or, see the section hapter.

St

teps:

O Cube field.

0 Applix TM1 TurboIntegrator Guide

ep 1 - Connect to SAP through TurboIntegrator

Create a new TurboIntegrator process, and fill in the Connection tafollowing figure.

For complete instructions on connecting to SAP from TurboIntegrat“Step 1 - Connect to SAP through TurboIntegrator,” earlier in this c

ep 2 - Specify the Source and Target Cubes

To specify the source and target cubes for the import, follow these s

1. Click Load ODBO Cube.

2. Choose the query cube you want to import from the Select ODB

Page 165: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Large Query Cubes Table of Contents | Index

iness Data from SAP ODBO 3-41

M1 Cube field.

St

shown on the dimensions in the imension cube to

Importing Bus

3. Specify the name of the cube you want to create in the Select T

4. Choose Create Cube for the TM1 Cube Action.

5. Choose Store Values for the data action.

6. Leave Enable Cube Logging off.

The Load ODBO Cube tab should look like the following figure.

ep 3 - Modify the Dimension Hierarchy Load plan for the cube

The dimension hierarchy load plan for a TurboIntegrator process is Cube Dimensions tab. The Cube Dimensions tab shows all of theSAP query cube. The following procedure shows how to map a 17-d16 dimensions. Follow these steps:

1. Click the Cube Dimensions tab.

Page 166: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Large Query Cubes Table of Contents | Index

3-4

this example, a Load Only g figure.

fault, the values the intersection of e members of the

eval.

2 Applix TM1 TurboIntegrator Guide

2. Choose the dimension along which you will aggregate values. Invalues along the Region dimension are aggregated. Choose Datfrom the TM1 Dimension Action field, as shown in the followin

The 0D_REGION dimension’s metadata is not imported. By dealong that dimension are retrieved and aggregated. The value at the remaining 16 dimensions will be the aggregated total of all th0D_REGION dimension.

The next steps shows you how to select a single element for retri

3. Click Filter next to the dimension you modified in Step 2.

Page 167: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Large Query Cubes Table of Contents | Index

iness Data from SAP ODBO 3-43

elects all members

f the list. (The

Importing Bus

4. Click the Hierarchy toggle next to the LEVEL00 item. This de-sof the hierarchy.

5. Click All Members Selected next to the level at the bottom olowest level contains the N-level elements in the hierarchy.)

6. Click one member in the list, then click OK.

Page 168: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Large Query Cubes Table of Contents | Index

3-4

. TurboIntegrator the following

St

y long time. The ore to run at night.

St

9 PM in the

4 Applix TM1 TurboIntegrator Guide

7. Click OK at the ODBO Dimension Hierarchy Filter dialog boxshows that a filter has been applied to the hierarchy, as shown infigure.

Your TurboIntegrator process is now complete.

ep 4 - Save the Process

Click and save the process with a descriptive name.

Importing a query cube that contains 16 dimensions could take a vernext procedure shows you how to build a chore, and schedule that chRunning long processes off-hours is recommended.

ep 5 - Build and Schedule a Chore

This section describes how to build a chore and schedule it to run atevening.

Page 169: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Large Query Cubes Table of Contents | Index

iness Data from SAP ODBO 3-45

te New Core.

le list.

lected list.

Importing Bus

1. From the Server Explorer, right-click Chores and choose CreaThe following dialog box appears.

2. Click the process that imports the SAP query cube in the Availab

3. Click to move the process from the Available list to the Se

Page 170: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Large Query Cubes Table of Contents | Index

3-4

current date is

r running the hedule the chore.

s shown in the

6 Applix TM1 TurboIntegrator Guide

4. Click Next. The following dialog box appears.

5. Choose the day to start running the chore from the calendar. Thecircled on the calendar.

6. Choose the time to run the chore from the Local Time field.

7. Use the Chore Execution Frequency pane to set the interval fochore repeatedly. You must set an interval in order to save and sc

8. Be sure that the Chore Schedule is Active toggle is enabled, aprevious figure.

Page 171: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Large Query Cubes Table of Contents | Index

iness Data from SAP ODBO 3-47

Importing Bus

9. Click Finish. The following dialog box appears.

10. Give the chore a descriptive name and click Save.

Page 172: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Large Query Cubes Table of Contents | Index

3-4

8 Applix TM1 TurboIntegrator Guide
Page 173: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents | Index

siness Data from SAP RFC 4-1

ata from

Remote Function port into TM1 via scribes how to

ance with your

Importing Bu

4 Importing Business DSAP RFC

TM1 TurboIntegrator allows you to import data from SAP BW usingCalls (RFC). This chapter describes the SAP objects that you can imSAP RFC, and the procedures for importing those objects. It also dewrite TM1 data back to SAP through ODS tables.

NOTE: TurboIntegrator access to SAP data must be used in compliSAP licensing.

The following topics are described in this chapter:

• Prerequisites

• Establishing a Connection to SAP BW

• Importing an InfoCube from SAP

• Importing a Characteristic from SAP

• Importing Security from SAP

• Importing Currency Data From SAP

• Importing Data from SAP Tables

• Writing Back to SAP

Page 174: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

SAP Objects and Terminology Table of Contents | Index

4-2

S

you must have a M1 systems. The

ains definitions of

S

n run

latform and oad the most tp://

TM1 server is

r in this chapter.

Th

lable varies by on about the 2/

Applix TM1 TurboIntegrator Guide

AP Objects and Terminology

Before you can import data and metadata from SAP BW into TM1, significant understanding of the data structures in both the SAP and Tprevious chapter, “Importing Business Data from SAP ODBO,” contSAP objects.

oftware Prerequisites

The following software prerequisites must be satisfied before you caTurboIntegrator and import data from SAP RFC.

• You must install the SAP RFC libraries that are specific for the poperating system on which you are running SAP. You can downlrecent SAP RFC libraries from the SAP Service Marketplace, htservice.sap.com.

• The Saprfc.ini file must be available on the computer where therunning.

• You must install the TM1 interface to SAP BW, as described late

e Saprfc.ini File and RFC Libraries

The method used to make the Saprfc.ini file and RFC libraries avaiplatform, as described in the following sections. For more informatiSaprfc.ini file, see http://help.sap.com/saphelp_nw04/helpdata/en/2042a3e488911d189490000e829fbbd/content.htm.

Page 175: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Software Prerequisites Table of Contents | Index

siness Data from SAP RFC 4-3

W

l) and the from SAP.

in\ directory. e, as long as the

e TM1 server is will contain the

U

the Saprfc.ini file

ere the TM1 RY_PATH to the full path of the

Su

://lib:/home/software/sap_rfc_sdk/lib

Importing Bu

indows (x86, x64, IA-64)

The Windows platforms require a dynamic link library (Librfc32.dlSaprfc.ini file from the platform-specific SAP RFC SDK available

The dynamic link library can be placed in the <TM1_install_dir>\bAlternatively, the DLL can be placed in any directory on the machindirectory is added to the System PATH variable.

The Saprfc.ini file can be placed anywhere on the machine where thrunning. You must create a system variable called RFC_INI, which full path to the Saprfc.ini file. For example,

RFC_INI = C:\Program Files\SAP_RFC_SDK\text\Saprfc.ini

NIX (HP and Sun)

The UNIX platforms require brand / platform specific libraries and from the platform-specific SAP RFC SDK available from SAP.

The libraries and Saprfc.ini can be put anywhere on the machine whserver is running. You must modify the system variable LD_LIBRAinclude the library location, and the variable RFC_INI must point to Saprfc.ini file.

n Example

LIBPATH=${LIBPATH}:$tm1_path:/usr/lib:/libLD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$tm1_path:/usr/openwin/lib:/usr/libSHLIB_PATH={SHLIB_PATH}:$tm1_path:/usr/lib:/libRFC_INI=/home/software/sap_rfc_sdk/text/saprfc.ini

export SHLIB_PATHexport LD_LIBRARY_PATHexport LIBPATHexport TM1_PATHexport RFC_INI

Page 176: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Software Prerequisites Table of Contents | Index

4-4

H

://libk/lib

Applix TM1 TurboIntegrator Guide

P Example

LIBPATH=${LIBPATH}:$tm1_path:/usr/lib:/libLD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$tm1_path:/usr/openwin/lib:/usr/libSHLIB_PATH={SHLIB_PATH}:$tm1_path:/usr/lib:/lib:/home/software/sap_rfc_sdRFC_INI=/home/software/sap_rfc_sdk/text/saprfc.ini

export SHLIB_PATHexport LD_LIBRARY_PATHexport LIBPATHexport TM1_PATHexport RFC_INI

Page 177: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Software Prerequisites Table of Contents | Index

siness Data from SAP RFC 4-5

In

AP BW option,

ter that is running

ivileges to use the

nd Upgrading

Importing Bu

stalling the TM1 Interface to SAP BW

To install the TM1 interface:

1. Obtain the following interface files from Applix.

• SBT0020216079_0000007.PAT

• K900014.SBT

• R900014.SBT

When you purchase a TurboIntegrator license that includes the Syou will receive the files on a CD.

2. Copy the above listed files to the \EPS\in directory on the compuSAP BW.

For example, C:\usr\sap\trans\EPS\in.

3. Log into the SAP BW server as client 000 with a user having prSAINT administration transaction.

4. Run the SAINT transaction.

5. Follow the procedures described in the article titled “Installing aAdd-Ons” in the SAP Knowledge Warehouse.

http://help.sap.com/saphelp_erp2005/helpdata/en/78/d18d38e9cf9e67e10000009b38f842/frameset.htm.

Page 178: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Establishing a Connection to SAP BW Table of Contents | Index

4-6

E

, you must first

cesses group

ter values.

Applix TM1 TurboIntegrator Guide

stablishing a Connection to SAP BW

Before you can import data from SAP or write data to an ODS tableestablish a connection to SAP using the following steps.

1. In the left pane of the TM1 Server Explorer, right-click the Proand select Create New Process.

The TurboIntegrator window opens.

2. Click SAP in the Datasource Type box.

3. Enter connection parameter values in the Connection tab.

Your SAP administrator can provide you with the correct parame

Page 179: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Establishing a Connection to SAP BW Table of Contents | Index

siness Data from SAP RFC 4-7

nt to connect to.

version on the SAP

es you use to connect to

Importing Bu

4. Click Connect.

Parameter Value Description

System The name of the SAP system you wa

Client A number that corresponds to the UIserver. For example, 498.

User Your username on the SAP system.

Password Your password on the SAP system.

Language The language of the SAP system.

Additional Connection Parameters

Enter any other paramaters and valuyour SAP BW system.

Page 180: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an InfoCube from SAP Table of Contents | Index

4-8

Im

the InfoCube are to create a new

rocedures:

P

“Establishing a

P

Applix TM1 TurboIntegrator Guide

porting an InfoCube from SAP

When you import an SAP InfoCube into TM1, the characteristics ofconverted to TM1 dimensions. These new dimensions are then usedTM1 cube.

To import an InfoCube from SAP to TM1 you must complete four p

Procedure 1 - Establish a Connection to SAP BW

Procedure 2 - Map an SAP InfoCube to a TM1 Cube

Procedure 3 - Map SAP Characteristics to TM1 Dimensions

Procedure 4 - Save and Run the TurboIntegrator Process

rocedure 1 – Establishing a Connection to SAP BW

To establish a connection to SAP BW, follow the steps described in Connection to SAP BW” earlier in this chapter.

rocedure 2 – Mapping an SAP InfoCube to a TM1 Cube

To map an SAP InfoCube to a TM1 cube:

1. Select InfoCube from the SAP source menu.

2. Click the InfoCube tab.

Page 181: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an InfoCube from SAP Table of Contents | Index

siness Data from SAP RFC 4-9

em, select the

, clear the Show

option and select

e, click the but-the TM1 cube to

ube, enter a name d.

Importing Bu

3. To view the technical names for the SAP InfoCubes on your systShow SAP Technical Names option.

To view descriptive names of the SAP InfoCubes on your systemSAP Technical Names option.

4. Click the button next to the Select InfoCube to Load from the SAP InfoCube you want to import into TM1.

5. If you want to import the SAP InfoCube to an existing TM1 cubton next to the Select TM1 Cube to Load to option and select receive the SAP InfoCube data.

If you want to create a new TM1cube when you import the InfoCfor the new TM1 cube in the Select TM1 Cube to Load to fiel

Page 182: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an InfoCube from SAP Table of Contents | Index

4-1

AP InfoCube and creates only when none of the ting exist on the TM1

rebuilds it using data and se this option only when and you want to replace om the SAP InfoCube.

nfoCube cube and inserts tion does not change the the TM1 server.

not affect the data or

cesses or to define your

0 Applix TM1 TurboIntegrator Guide

6. Select a TM1 Cube Action.

TM1 Cube Action Description

Create Cube Imports data and metadata from the Sa new cube in TM1. Use this option cubes and dimensions you are imporserver.

Recreate Cube Destroys an existing TM1 cube and metadata from the SAP InfoCube. Uthe TM1 cube and dimensions exist,them with new structures and data fr

Update Cube Imports data from an existing SAP Iit into an existing TM1 cube. This opstructure of cubes and dimensions on

No Action Processes that specify No Action dometadata of TM1 cubes.

Use this option to test and debug proown custom operations.

Page 183: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an InfoCube from SAP Table of Contents | Index

siness Data from SAP RFC 4-11

he SAP InfoCube to the

pdate Cube option is re overwritten by values

ws you to aggregate es imported from the SAP

you select the Update

ll data points in a

, you can:

to select an existing view

to define a new view to

Importing Bu

7. Select a Data Action.

Data Action Description

Store Values This option writes cell values from tTM1 cube.

If you choose this option when the Uselected, existing TM1 cube values aimported from the InfoCube.

Accumulate Values The Accumulate Values option alloexisting TM1 Cube values with valuInfoCube.

Zero Out Portion of Target Cube

This option becomes available whenCube action.

Select this option if you want to set aspecified cube view to zero.

To define the cube view to be zeroed

• Click next to the View optionto be zeroed.

• Click next to the View optionbe zeroed.

Page 184: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an InfoCube from SAP Table of Contents | Index

4-1

ube, select the

gging option.

, but makes it e.

P

te steps 2 through

2 Applix TM1 TurboIntegrator Guide

8. To log changes to cube data while importing from an SAP InfoCEnable Cube Logging option.

To disable logging while importing, clear the Enable Cube Lo

NOTE: Disabling logging accelerates data loading and updatingimpossible to recover any updates in the event of a system failur

rocedure 3 – Mapping SAP Characteristics to TM1 Dimensions

To map SAP characteristics to TM1 dimensions:

1. Click the Characteristics tab.

For each SAP characteristic listed on the Characteristic tab, comple8.

Page 185: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an InfoCube from SAP Table of Contents | Index

siness Data from SAP RFC 4-13

.

n click Cancel to

into TM1. An rocess to fail. You

Importing Bu

2. Click the Select Hierarchies button.

The Select Hierarchies dialog box appears.

3. Select the hierarchies you want to import into TM1 and click OK

If the SAP characteristic does not contain any hierarchies, you cadismiss the Select Hierarchies dialog box.

IMPORTANT: Any hierarchy with intervals cannot be importedattempt to import such an hierarchy causes the TurboIntegrator p

Page 186: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an InfoCube from SAP Table of Contents | Index

4-1

ou do not attempt

in the TM1 the characteristic.

tic, enter a name

be, leave the TM1

he SAP

ension with racteristic.

re by adding new racteristic.

4 Applix TM1 TurboIntegrator Guide

must be familiar with your SAP characteristics and ensure that yto import an hierarchy containing intervals.

4. If the characteristic maps to an existing TM1 dimension, click Dimension column and select the dimension that corresponds to

If you want to create a new TM1 dimension from the characterisfor the dimension in the TM1 Dimension column.

If you do not want to import the characteristic into your TM1 cuDimension column empty.

5. Select a TM1 Dimension Action.

Dimension Action Description

Create Create a new TM1 dimension from tcharacteristic.

Recreate Entirely recreate an existing TM1dimelements imported from the SAP cha

Update Update an existing dimension structuelements imported from the SAP cha

Page 187: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an InfoCube from SAP Table of Contents | Index

siness Data from SAP RFC 4-15

rboIntegrator, but or modify any

cesses or to dvanced tab of

into TM1. The en the SAP

oIntegrator.

Importing Bu

6. Click the Select Attributes button.

The Characteristic Attributes dialog box appears.

AsIs Process the characteristic through Tudo not use the characteristic to createTM1 dimensions.

Use this option to test and debug promanipulate the characteristic in the ATurboIntegrator.

Don’t Load Do not import the SAP characteristiccharacteristic is entirely excluded whInfoCube is processed through Turb

Dimension Action Description

Page 188: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an InfoCube from SAP Table of Contents | Index

4-1

g one of the fol-

ribute, then select

ach SAP attribute,

value.

6 Applix TM1 TurboIntegrator Guide

7. Map each SAP characteristic attribute to a TM1 attribute by doinlowing:

• Enter a corresponding TM1 Attribute name for each SAP attan Attribute Type.

• Click to select a corresponding TM1 Attribute name for ethen select an Attribute Type.

Attribute Type Description

Text Identifies attributes with a string

Page 189: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an InfoCube from SAP Table of Contents | Index

siness Data from SAP RFC 4-17

teristic into TM1,

creates new TM1 oups based on the pports only Read d in TM1.

th Read access to 1 user group 1 dimension that

ic value.

ative names for re associated. You mensions by their r interface. A rom all other nsion names.

Importing Bu

8. If you want to import the SAP security assignments for the characselect the Import option.

When you choose to import security from SAP, TurboIntegrator user groups and assigns dimension security privileges to those grsecurity roles defined in SAP. Because the SAP security model suand None privileges, these are the only privileges that are create

For example, if the SAP system includes a role named Planner withe Cost Center characteristic, TurboIntegrator creates a new TMnamed Planner and assigns the user group Read access to the TMis created/updated from the Cost Center characteristic.

You must now map the SAP key figures to a TM1 dimension.

The key figures appear as the last row in the Characteristics tab.

9. Click Select Key Figures.

Numeric Identifies attributes with a numer

Alias Identifies attributes that are alternthe dimensions with which they acan use this attribute to display dialternative names in the TM1 usedimension alias must be unique fdimension aliases or actual dime

Attribute Type Description

Page 190: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an InfoCube from SAP Table of Contents | Index

4-1

the TM1 the key figures.

8 Applix TM1 TurboIntegrator Guide

The Select Key Figures dialog box opens.

10. Select each key figure you want to import into TM1.

11. Click OK.

12. Map the key figures to a TM1 dimension.

If the key figures map to an existing TM1 dimension, click inDimension column and select the dimension that corresponds to

Page 191: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an InfoCube from SAP Table of Contents | Index

siness Data from SAP RFC 4-19

, enter a name for

d in step 5 above.

P

is guide for details

R

ate a new TM1

TM1 generates a M1 dimension.

d dimension-s.

you create a

Importing Bu

If you want to create a new TM1 dimension from the key figuresthe dimension in the TM1 Dimension column.

13. Select a TM1 Dimension Action for the key figures, as describe

rocedure 4 – Saving and Executing the TurboIntegrator Process

See “Step 4 - Saving and Executing the Process” on page 1- 30 of thon saving and executing a TurboIntegrator process.

esults

When you define a process to import an InfoCube into TM1 and crecube, the following actions occur:

• For each SAP characteristic you choose to include in your cube, process to import the characteristic and create a corresponding T

• TM1 generates a master process that executes the above describecreating processes, builds the TM1 cube, and imports data value

The following image shows the processes that are created when process named SAP import to import an InfoCube into TM1.

Page 192: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an InfoCube from SAP Table of Contents | Index

4-2

from an SAP ts. The technical the SAP display

0 Applix TM1 TurboIntegrator Guide

• When you define a process to create or update a TM1 dimensioncharacteristic, all characteristic values become dimension elemenSAP value name is the name assigned to the TM1 element, whilename becomes a TM1 element alias.

Master process

Processes to create TM1 dimensions from SAP characteristics present in the InfoCube

Page 193: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an InfoCube from SAP Table of Contents | Index

siness Data from SAP RFC 4-21

es new dimension attribute values in

tics, TM1 creates to those groups

SAP display names become TM1 element aliases.

Importing Bu

• If you choose to import SAP characteristic attributes, TM1 creatattributes and assigns attribute values based on the characteristicSAP.

• If you choose to import security information for SAP characterisnew TM1 user groups and assigns dimension security privilegesbased on the security roles defined in SAP.

Technical SAP characteristic values become TM1 element names.

Page 194: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Characteristic from SAP Table of Contents | Index

4-2

Im

When you import o import and can

e procedures:

P

“Establishing a

2 Applix TM1 TurboIntegrator Guide

porting a Characteristic from SAP

You can import a characteristic from SAP BW to a TM1 dimension.a characteristic, you can specify the SAP hierarchies and attributes tchoose to import SAP security definitions for the characteristic.

To import a characteristic from SAP to TM1 you must complete thre

Procedure 1 - Establish a Connection to SAP BW

Procedure 2 - Map the SAP Characteristic to a TM1 Dimension

Procedure 3 - Save and Run the TurboIntegrator Process

rocedure 1 – Establishing a Connection to SAP BW

To establish a connection to SAP BW, follow the steps described in Connection to SAP BW” earlier in this chapter.

Page 195: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Characteristic from SAP Table of Contents | Index

siness Data from SAP RFC 4-23

P

system, select the

stem, clear the

Importing Bu

rocedure 2 – Mapping an SAP Characteristic to a TM1 Dimension

To map an SAP characteristic to a TM1 dimension:

1. Select Characteristic from the SAP source menu.

2. Click the Characteristic tab.

3. To view the technical names for the SAP characteristics on yourShow SAP Technical Names option.

To view descriptive names of the SAP characteristics on your syShow SAP Technical Names option.

Page 196: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Characteristic from SAP Table of Contents | Index

4-2

the SAP InfoCube

om option and

sion, click the ct the TM1 dimen-

e characteristic, n to Load into

4 Applix TM1 TurboIntegrator Guide

4. Click the button next to the SAP InfoCube option and select that contains the characteristic you want to import into TM1.

5. Click the button next to the SAP Characteristic to Load Frselect the SAP characteristic you want to import into TM1.

6. If you want to import the characteristic to an existing TM1 dimenbutton next to the TM1 Dimension to Load into option and selesion to receive the SAP characteristic data.

If you want to create a new TM1 dimension when you import thenter a name for the new TM1 dimension in the TM1 Dimensiofield.

7. Click the Select Hierarchies button.

The Select Hierarchies dialog box appears.

Page 197: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Characteristic from SAP Table of Contents | Index

siness Data from SAP RFC 4-25

.

Importing Bu

8. Select the hierarchies you want to import into TM1 and click OK

9. Click the Select Attributes button.

The Characteristic Attributes dialog box appears.

Page 198: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Characteristic from SAP Table of Contents | Index

4-2

g one of the fol-

ribute, then select

AP attribute, then

value.

6 Applix TM1 TurboIntegrator Guide

10. Map each SAP characteristic attribute to a TM1 attribute by doinlowing:

• Enter a corresponding TM1 Attribute name for each SAP attan Attribute Type.

• Click to select an existing TM1 Attribute name for each Sselect an Attribute Type.

Attribute Type Description

Text Identifies attributes with a string

Page 199: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Characteristic from SAP Table of Contents | Index

siness Data from SAP RFC 4-27

ic value.

ative names for re associated. You mensions by their r interface. A rom all other nsion names.

he SAP

ension with racteristic.

Importing Bu

11. Select a TM1 Dimension Action.

Numeric Identifies attributes with a numer

Alias Identifies attributes that are alternthe dimensions with which they acan use this attribute to display dialternative names in the TM1 usedimension alias must be unique fdimension aliases or actual dime

Dimension Action Description

Create Create a new TM1 dimension from tcharacteristic.

Recreate Entirely recreate an existing TM1dimelements imported from the SAP cha

Attribute Type Description

Page 200: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing a Characteristic from SAP Table of Contents | Index

4-2

teristic into TM1,

creates new TM1 oups based on the pports only Read d in TM1.

th Read access to 1 user group 1 dimension that

P

is guide for details

re by adding new racteristic.

into TM1.

save the process the SAP

the Dimension date (as rt the characteristic.

8 Applix TM1 TurboIntegrator Guide

12. If you want to import the SAP security assignments for the characselect the Retrieve Security Settings option.

When you choose to import security from SAP, TurboIntegrator user groups and assigns dimension security privileges to those grsecurity roles defined in SAP. Because the SAP security model suand None privileges, these are the only privileges that are create

For example, if the SAP system includes a role named Planner withe Cost Center characteristic, TurboIntegrator creates a new TMnamed Planner and assigns the user group Read access to the TMis created/updated from the Cost Center characteristic.

rocedure 3 – Saving and Executing the TurboIntegrator Process

See “Step 4 - Saving and Executing the Process” on page 1- 30 of thon saving and executing a TurboIntegrator process.

Update Update an existing dimension structuelements imported from the SAP cha

Don’t Load Do not import the SAP characteristic

Select this action only if you want todefinition without actually importingcharacteristic. You can later change Action to Create, Recreate, or Upappropriate) when you want to impo

Dimension Action Description

Page 201: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Security from SAP Table of Contents | Index

siness Data from SAP RFC 4-29

R

teristic, see the arlier in this

Im

import SAP while SAP

passwords for the e an empty

P

“Establishing a

P

Importing Bu

esults

For a description of the actions that occur when you import a characsection titled “Results” under “Importing an InfoCube from SAP” echapter.

porting Security from SAP

You can import both SAP roles and usernames into TM1. When yousecurity definitions, SAP roles are converted into TM1 user groups,usernames become TM1 users.

NOTE: When you import SAP usernames into TM1, correspondingusernames are not imported into TM1. The resulting TM1 users havpassword in TM1.

To import security from SAP, complete the following procedures.

rocedure 1 – Establishing a Connection to SAP BW

To establish a connection to SAP BW, follow the steps described in Connection to SAP BW” earlier in this chapter.

rocedure 2 – Select the SAP Security Definitions to Import

To specify which SAP security definitions you want to import:

1. Select Security from the SAP source menu.

Page 202: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Security from SAP Table of Contents | Index

4-3

es.

e SAP roles that r groups.

only the SAP es to create TM1

ter string, TM1 ve strings. The r names are

the appropriate s in SAP.

s empty, TM1

box.

0 Applix TM1 TurboIntegrator Guide

2. Click the Security tab.

You can choose to import any combination of roles and usernam

• If you specify only a Role Filter string, TM1 imports only thmatch the filter string and uses those roles to create TM1 use

• If you specify only a UserName Filter string, TM1 imports usernames that match the filter string and uses those usernamusers.

• If you specify both a Role Filter string and a UserName Filimports the SAP roles and usernames that satisfy the respectiSAP roles are converted to TM1 user groups and the SAP useconverted to TM1 users. The TM1 users are then assigned toTM1 user groups, according to the role/username association

• If you leave both the Role Filter and UserName Filter boxeimports all SAP roles and usernames.

3. To specify a Role Filter, enter a search string in the Role Filter

Page 203: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing Security from SAP Table of Contents | Index

siness Data from SAP RFC 4-31

presents any

o TM1.

Name Filter box.

e search string.

P

is guide for details

R

TM1 user groups are then assigned associations in

Importing Bu

The search string can include the % wildcard character, which renumber of characters.

You can also click to select a specific role name to import int

4. To specify a UserName Filter, enter a search string in the User

As in the Role Filter, you can use the % wildcard character in th

rocedure 3 – Saving and Executing the TurboIntegrator Process

See “Step 4 - Saving and Executing the Process” on page 1- 30 of thon saving and executing a TurboIntegrator process.

esults

When you import security from SAP, all SAP roles are converted toand all SAP user names are converted to TM1 users. The TM1 usersto the appropriate TM1 user groups, according to the role/usernameSAP.

Page 204: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing and Converting Currency Data from SAP Table of Contents | Index

4-3

Im

be receiving the tial currency (the d one for the

procedures:

2 Applix TM1 TurboIntegrator Guide

porting and Converting Currency Data from SAP

You can import currency data from SAP BW to a TM1 cube. The cucurrency data must contain exactly three dimensions: one for the ini‘from’ currency), one for the second currency (the ‘to’ currency), ancurrency conversion method.

To import currency data from SAP to TM1 you must complete three

Page 205: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing and Converting Currency Data from SAP Table of Contents | Index

siness Data from SAP RFC 4-33

ns

P

“Establishing a

P

Importing Bu

Procedure 1 - Establish a Connection to SAP BW

Procedure 2 - Map the SAP Currencies to TM1 Cubes and Dimensio

Procedure 3 - Save and Run the TurboIntegrator Process

rocedure 1 – Establishing a Connection to SAP BW

To establish a connection to SAP BW, follow the steps described in Connection to SAP BW” earlier in this chapter.

rocedure 2 – Mapping SAP Currencies to TM1 Cubes and Dimensions

To map SAP currency data to TM1 cubes and dimensions:

1. Select Currency from the SAP source menu.

2. Click the SAP Currency tab.

Page 206: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing and Converting Currency Data from SAP Table of Contents | Index

4-3

s, select the

ames option.

ays use SAP s option setting.

your TM1 server,

.

me in the Enter

rrency to import

4 Applix TM1 TurboIntegrator Guide

3. To view technical names for SAP currencies and conversion typeShow SAP Technical Names option.

To view descriptive names, clear the Show SAP Technical N

NOTE: The TM1 elements created during the import process alwtechnical names, regardless of the Show SAP Technical Name

4. To import currency data to an existing three-dimensional cube on

click next to the Enter CubeName field and select the cube

To create a new cube to store SAP currency data, enter a cube naCubeName field.

5. Click next to the From Currency field to select the initial cufrom SAP.

Page 207: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing and Converting Currency Data from SAP Table of Contents | Index

siness Data from SAP RFC 4-35

your SAP system.

sion to receive the

ency to import

your SAP system.

sion to receive the

ion method to use

thods defined in

sion to receive the

U

ames option is

rency, and matching items ny string of 0 or

rrency, To ersion types from

Importing Bu

The list of available currencies reflects the currencies defined in

6. In the adjacent Target Dimension field, specify the TM1 dimenSAP currency strings.

7. Click next to the To Currency field to select the second currfrom SAP.

The list of available currencies reflects the currencies defined in

8. In the adjacent Target Dimension field, specify the TM1 dimenSAP currency strings.

9. Click next to the Conversion Type field to select the converswhen converting the initial currency to the second currency.

The list of available conversion types reflects the conversion meyour SAP system.

10. In the adjacent Target Dimension field, specify the TM1 dimenSAP conversion type.

sing Wildcards in the SAP Currency Tab

Wildcard strings are valid only when the Show SAP Technical Nselected.

Instead of selecting a single item from the From Currency, To CurConversion Type lists, you can enter a wildcard string to return allfrom SAP. The only valid wildcard character is %, which matches amore characters.

For example, enter the single wildcard character % in the From CuCurrency, and Conversion Type field to return all currencies/convSAP.

Page 208: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing and Converting Currency Data from SAP Table of Contents | Index

4-3

rs. For example, nning with the urn all conversion

6 Applix TM1 TurboIntegrator Guide

You can also use the % character in combination with other characteenter EU% in the From Currency field to return all currencies begicharacters “EU”, or enter 001% in the Conversion Type field to rettypes beginning with the characters 001.

Page 209: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing and Converting Currency Data from SAP Table of Contents | Index

siness Data from SAP RFC 4-37

cified wildcard ce contains the

records would be cified wildcard

P

is guide for details

00-

0-

0-

Importing Bu

When you use wildcards, only those SAP records that match all spestrings are imported into TM1. For instance, assume your SAP sourrecords shown in the following table.

If the SAP Currency tab uses the wildcard strings shown below, noreturned. None of the records in the SAP source match all of the spestrings.

rocedure 4 – Saving and Executing the TurboIntegrator Process

See “Step 4 - Saving and Executing the Process” on page 1- 30 of thon saving and executing a TurboIntegrator process.

From Currency To Currency Conversion Type Value

RUB EUR EURX20010101 26.980

SAR EUR EURX20010101 3.5400

DEM USD 200119970101 1.6411

Page 210: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing and Converting Currency Data from SAP Table of Contents | Index

4-3

R

ur:

d) is created as an

is created as an

) is created as an

rrency data into currency1 and itle element M is a

8 Applix TM1 TurboIntegrator Guide

esults

When you import currency data from SAP, the following actions occ

• The specified From Currency (or currencies, if wildcards are useelement in the specified target dimension.

• The specified To Currency (or currencies, if wildcards are used)element in the specified target dimension.

• The specified Conversion Type (or types, if wildcards are usedelement in the specified target dimension.

• Currency values are written to the specified TM1 cube.

The following image shows a cube created by importing all SAP cuTM1, using wildcards as shown above. The elements created in the currency2 dimensions are easily identified as currency codes. The tconversion type in SAP.

Page 211: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing and Converting Currency Data from SAP Table of Contents | Index

siness Data from SAP RFC 4-39

Importing Bu
Page 212: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an SAP Table Table of Contents | Index

4-4

Im

be by completing

P

“Establishing a

P

0 Applix TM1 TurboIntegrator Guide

porting an SAP Table

You can use TurboIntegrator to import an SAP R3 table to a TM1 cuthe following four procedures:

Procedure 1 - Establish a Connection to SAP BW

Procedure 2 - Create an SAP Table Query

Procedure 3 – Identify and Map Variables

Procedure 4 - Save and Run the TurboIntegrator Process

rocedure 1 – Establishing a Connection to SAP BW

To establish a connection to SAP BW, follow the steps described in Connection to SAP BW” earlier in this chapter.

rocedure 2 – Creating an SAP Table Query

To query a table that exists on your SAP system:

1. Select SAP Table from the SAP source menu.

2. Click the R3 Table tab.

Page 213: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Importing an SAP Table Table of Contents | Index

siness Data from SAP RFC 4-41

e field.

the WHERE rboIntegrator is mers with a value

in the filter string ill result in a ill cause the

nt returns the

Importing Bu

3. Enter the name of the SAP table to be queried in the Table Nam

4. In the Filter String field, enter an SQL filter string to be used inclause when the SQL SELECT statement that is generated by Tuexecuted against the SAP table. For example, to return only custoof R110, enter CUSTOMER = ’R110’.

NOTE: There must be a space on both sides of the equal sign (=)that you enter. A missing space on either side of the equal sign wsyntax error. Any syntax error in the filter string that you enter wTurboIntegrator process to abort.

CUSTOMER = ’R110’ will execute successfully.

CUSTOMER=’R110’ will cause a syntax error.

If you do not enter a filter string, the generated SELECT statemeentire table.

Page 214: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Writing TM1 Data to SAP Table of Contents | Index

4-4

P

variables based on You must identify le.

fying Variables in

P

is guide for details

R

ble to a TM1 cube

W

s that exports data AP administrator ator process.

dministrator can an SAP InfoCube. nd exporting back

2 Applix TM1 TurboIntegrator Guide

rocedure 3 – Identifying and Mapping Variables

Once the SAP table is queried, TurboIntegrator generates a series of the query result, with one variable for each column in the SAP table.and map each variable to successfully import data from the SAP tab

For details on identifying and mapping variables, see Step 2 - Identithe Data Source on page 1- 18 of this guide.

rocedure 4 – Saving and Executing the TurboIntegrator Process

See “Step 4 - Saving and Executing the Process” on page 1- 30 of thon saving and executing a TurboIntegrator process.

esults

Upon successful execution, the process imports data from the SAP tausing the mappings you specified.

riting TM1 Data to SAP

You can write TM1 data to SAP by creating a TurboIntegrator procesto a transactional ODS table. The ODS table must be created by an Sand must exist on the SAP system before you create the TurboIntegr

Once TM1 data is successfully exported to the ODS table, an SAP ause standard SAP functionality to move data from the ODS table to In many circumstances, the cycle of importing SAP data into TM1 afrom TM1 to SAP will look something like this:

Page 215: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Writing TM1 Data to SAP Table of Contents | Index

siness Data from SAP RFC 4-43

Importing Bu
Page 216: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Writing TM1 Data to SAP Table of Contents | Index

4-4

mplete three

ODS Table

P

“Establishing a

P ble

ODS table:

4 Applix TM1 TurboIntegrator Guide

To export data from a TM1 cube view to an ODS table, you must coprocedures:

Procedure 1 - Establish a Connection to SAP BW

Procedure 2 - Map Dimensions and Values from a TM1 View to an

Procedure 3 - Save and Run the TurboIntegrator Process

rocedure 1 – Establishing a Connection to SAP BW

To establish a connection to SAP BW, follow the steps described in Connection to SAP BW” earlier in this chapter.

rocedure 2 – Mapping Dimensions and Values from a TM1 View to an ODS Ta

To map dimensions and values from a TM1 cube view to an existing

1. Select ODS Table from the SAP source menu.

2. Click the ODS Setup tab.

Page 217: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Writing TM1 Data to SAP Table of Contents | Index

siness Data from SAP RFC 4-45

choose the view

field. The name

on the sdata1

last dimension in sion is not the last s from the cube to

Importing Bu

3. Click the Browse button next to the Select TM1 View field to you want to export.

You can also enter a view name directly in the Select TM1 Viewmust be formatted as follows: <ServerName>:<CubeName>-><ViewName>

For example, to export the Region view of the SalesCube cubeserver, you would use the following string:sdata1:SalesCube->Region.

NOTE: When exporting from a cube view to an ODS table, the the cube must be the measures dimension. If the measures dimendimension in the cube, you will not be able to properly map valuethe key figures column(s) in the ODS table.

Page 218: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Writing TM1 Data to SAP Table of Contents | Index

4-4

lect the Show

ames option.

table to which you

s all columns in

ust be familiar haracteristics and

ODS table column

able.

t to map to the hows the TM1 .

6 Applix TM1 TurboIntegrator Guide

4. To view technical names for ODS tables on your SAP system, seSAP Technical Names option.

To view descriptive names, clear the Show SAP Technical N

5. Click next to the Select ODS Table field to select the ODS want to export TM1 data.

When you select an ODS table, the ODS Table Column displaythe selected table.

Columns may be either SAP characteristics or key figures. You mwith the structure of the ODS table to know which columns are cwhich are key figures; TurboIntegrator does not differentiate the types.

6. Map TM1 dimensions to the characteristic columns in the ODS t

To map a dimension, click and select the dimension you wancorresponding table column. For example, the following image sdimension account1 mapped to the 0QUANTITY table column

Page 219: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Writing TM1 Data to SAP Table of Contents | Index

siness Data from SAP RFC 4-47

ensions to

olumn in the ODS ension when the

that is not mapped

S characteristic revent you from alues in the ODS

c, and the title t in the current dimension does DS table.

he ODS table.

measures le column, the

the 0QUANTITY t dimension in the

Importing Bu

You should be aware of the following points when mapping dimcharacteristics:

• You do not have to map a dimension to every characteristic ctable. Some columns may not have a corresponding TM1 dimmapping is complete. In this case, any characteristic column will be empty when the export is completed.

• You should not map a single TM1 dimension to multiple ODtable columns. The TurboIntegrator user interface does not pdoing so, but such mapping will result in redundant column vtable.

• When you map a TM1 view title dimension to a characteristidimension does not use a named subset, only the last elemenunnamed title subset is exported to the ODS table. If the titleuse a named subset, all subset elements are exported to the O

7. Map the TM1 measures dimension to all key figure columns in t

The last dimension in the source cube view is assumed to be the dimension. When you map a measures dimension to an ODS tabSelect Measure button becomes available.

The following image shows the account1 dimension mapped tokey figure column in the ODS table. Because account1 is the lasTM1 cube, the Select Measure button is available.

Page 220: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Writing TM1 Data to SAP Table of Contents | Index

4-4

umn in the ODS

s button.

lso use the ction.

able.

1 measures lement should be

8 Applix TM1 TurboIntegrator Guide

8. Click the Select Measure button.

The Subset Editor appears.

9. Select the single element that maps directly to the key figure coltable, then click OK.

The selected element displays as a label on the Select Measure

If your ODS table includes a single key figure column, you can aalternate key figure mapping instructions described in the next se

10. Repeat steps 7 through 9 for all key figure columns in the ODS t

If your ODS table contains multiple key figure columns, the TMdimension should be mapped to all these columns, but a unique eselected for each key figure, as in the following image.

Page 221: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Writing TM1 Data to SAP Table of Contents | Index

siness Data from SAP RFC 4-49

Al

the . You cannot use y figure columns.

from a TM1 View

lumn. Instead,

alue_.

the

e TM1 measures

Importing Bu

ternate Key Figure Mapping Instructions

If your ODS table includes a single key figure column, you can use _TM1CellValue_ option to map TM1 cube values to the ODS tablethe _TM1CellValue_ option if your ODS table contains multiple ke

To use the _TM1CellValue_ option:

1. Complete steps 1 through 6 in “Mapping Dimensions and Valuesto an ODS Table” above.

2. Do NOT map the TM1 measures dimension to the key figure co

click in the TM1 Dimension column and select _TM1CellV

For example, the following image shows cube values mapped to0SALES_UNIT key figure column.

When you use this alternate method to map TM1 cube values, thdimension should not be mapped to any ODS column.

Page 222: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Writing TM1 Data to SAP Table of Contents | Index

4-5

P

is guide for details

R

S table using the

0 Applix TM1 TurboIntegrator Guide

rocedure 3 – Saving and Executing the TurboIntegrator Process

See “Step 4 - Saving and Executing the Process” on page 1- 30 of thon saving and executing a TurboIntegrator process.

esults

Upon successful execution, TM1 data is written to the specified ODmappings you specified.

Page 223: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents | Index

A-1

rial

anced

g TM1 and e advanced TM1 aintaining, and processes. understanding lity.

dimensions and w you how to

features. The TurboIntegrator

A TurboIntegrator Tuto

This appendix contains a tutorial that guides you through advTurboIntegrator features.

This tutorial is designed for users responsible for implementindeveloping utilization strategies within their organization. Thuser, or developer, will typically be responsible for creating, mdeveloping TM1 cubes and dimensions as well as data importBefore working through this tutorial, you should have a goodof TM1 concepts and a working knowledge of TM1 functiona

The tutorial teaches you how to use TurboIntegrator to create cubes, import flat files and ODBC data sources. It will also shoexpand TurboIntegrator’s power by using advanced scriptingmanual also includes hints and tips on how to approach a TM1problem.

Page 224: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Setting the Tutorial Data Directory Table of Contents | Index

A-

S

eginning this nce the sample

select Options.

ry to navigate to

ed in your M1 to the ta directory is

y and restart the

T

ata importation,

a source

2 Applix TM1 TurboIntegrator Guide

etting the Tutorial Data Directory

This tutorial relies on sample data shipped with TM1. Before btutorial, you must set your local server data directory to referedata.

To set your data directory:

1. Right-click TM1 in the left pane of the Server Explorer and

The Options dialog box appears.

2. Click the Browse button for the Local Server Data Directothe TurboIntegrator sample data directory.

The sample data directory is named TI_data, and it is locat<install_dir>\Custom\TM1Data\ directory. If you installed Tdefault installation directory the full path to this sample daC:\Program Files\Applix\Custom\TM1Data\TI_Data.

3. Click OK on the Options dialog box to set the data directorlocal server.

urboIntegrator Overview

TM1 TurboIntegrator lets you create processes that automate dmetadata management, and other tasks.

A process is a TM1 object that consists of:

• A description of a data source

• A set of variables corresponding to each column in the dat

Page 225: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

TurboIntegrator Overview Table of Contents | Index

A-3

nd data

xecuted before

update or create

cuted for each

processed.

s so it can be

es, ASCII files,

can use to eate scripts that itional tegrator ctions in a VALS functions.

roups. You must or server license ses on a

limited set of server.

• A set of maps that define relationships between variables astructures in the TM1 database.

• A prolog procedure, consisting of a series of actions to be ethe data source is processed.

• A metadata procedure, consisting of a series of actions thatcubes, dimensions, and other metadata structures.

• A data procedure, consisting of a series of actions to be exerecord in the data source.

• An epilog procedure to be executed after the data source is

• A set of parameters that can be used to generalize a procesused in multiple situations.

You can use TurboIntegrator to import data from ODBC sourcTM1 cube views, and TM1 dimension subsets.

TurboIntegrator includes a complete set of functions that you enhance process capabilities. You can use these functions to crexport data to ASCII files and ODBC sources, or that use condexpressions to control processing. In addition to these TurboInfunctions, you can also incorporate all standard TM1 rules funprocess definition, with the exception of the STET and UNDEF

Access to TurboIntegrator is controlled by licensing and user gbe a member of the ADMIN group and possess a TurboIntegratto gain access to all TurboIntegrator features and define procesnetworked TM1 server.

TM1 clients require a local TurboIntegrator license to access a TurboIntegrator functionality for creating processes on a local

Page 226: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-

r functions. You ab within the ust be enclosed

o indicate the

C

ed by setting grator window.

sequential order a new tab until

C

r a dimension approach to ng a customer

4 Applix TM1 TurboIntegrator Guide

There is no interface to assist in the creation of TurboIntegratomust enter functions by hand directly in the appropriate sub-tAdvanced tab. String arguments to TurboIntegrator functions min single quotation marks. A semi-colon (;) must be included tend of each function in the TurboIntegrator window.

reating a TurboIntegrator Process

There are five steps to creating a process. Each step is completoptions or editing values in an individual tab of the TurboInte

The steps required to create a process include:

1. Defining a data source

2. Setting variables

3. Mapping data

4. Editing advanced scripting

5. Scheduling the completed process

You must complete each tab of the TurboIntegrator window into create a process. TurboIntegrator does not let you proceed toyou supply all required information in the current tab.

reating Dimensions Using TurboIntegrator

You can use TM1 TurboIntegrator to create a list of elements fofrom a delimited ASCII file or a RDBMS table. This is the fast creating a long list of elements, such as a thousand names alodimension.

Page 227: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-5

Sa

se to build a

" , 2000000Feb" , 1400000Feb" , 2200000

ll be used to e consolidated remainder of the

s follows.

ill consolidate gland totals.

C

neath the local

mple ASCII File

Here is the delimited ASCII file (example.cma) that you will udimension and import data.

"New England", "Massachusetts", "Boston", "SuperMart", "Feb"New England", "Massachusetts", "Springfield", "SuperMart", ""New England", "Massachusetts", "Worcester", "SuperMart", "

Each record in this source file has six fields, three of which wicreate the Example dimension. The first two fields will becomelements. The third field will become a numeric element. The fields will be ignored.

In the Dimension Editor, the Example dimension will appear a

The numeric values from Boston, Springfield, and Worcester winto Massachusetts totals, which will consolidate into New En

reating a Dimension from an ASCII File

To create a dimension using the example.cma sample file:

1. In the left pane of the Server Explorer, select Processes beserver.

2. Choose Process → Create New Process.

The TurboIntegrator window appears.

Page 228: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-

6 Applix TM1 TurboIntegrator Guide

3. Click the Data Source tab.

Page 229: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-7

lect

mma.

cords fields, as

and Separator

.cma source file. e data source.

4. Select ASCII as the Datasource Type.

5. Click the Browse button for the Data Source Name and seexample.cma in your TI_data directory.

6. Leave the Data Source Name on Server field empty.

7. Set the Delimiter Type to Delimited and the Delimiter to Co

8. Disregard the Quote Character and the Number of Title Rethere are no quotes and no title records in the input file.

The Decimal Separator should be period (.) and the Thousshould be comma (,).

9. Click the preview button to view records from the exampleThese records let you examine the structure of records in th

Page 230: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-

8 Applix TM1 TurboIntegrator Guide

The TurboIntegrator window should appear as follows.

Page 231: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-9

Id

dentify the each field in the

displays a row

h data source r the first field urce. Variable e appropriate

e. This identifies by selecting one

rst record of the ts of the first

entifying Variables

After loading the source data into TurboIntegrator, you must icontents of each field in the source. TM1 assigns a variable to source.

1. Click the Variables tab to reveal the following grid, whichfor each variable in the data source.

The first column of the grid assigns a Variable Name to eacfield. All generated variables are named Vn, where n is 1 foand is incremented by 1 for each subsequent field in the sonames can be edited. To assign your own variables, click thcell and enter a new variable name.

The second column assigns a Variable Type for each variablthe type of data in the source field. You can change the typefrom the drop-down list.

The third column, Sample Value, lists the contents of the fidata source. In the above image, New England is the contenfield in the first record of example.cma.

Page 232: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-

ent, tifies. In the d elements of a

olidation from

d to create the

M

hem to TM1

e Action box.

dating a cube.

ocessing data

an Element y the dimension

10 Applix TM1 TurboIntegrator Guide

The Contents column determines the TM1 data type (elemconsolidation, data, attribute, or ignore) each variable idenexample, the first three variables identify consolidations anregional hierarchy.

2. In the Contents column for V1 (New England), select Consthe drop-down list.

3. Do the same for V2 (Massachusetts).

4. For V3 (Boston), select Element.

5. Select Ignore for all other variables, as they will not be usedimension.

apping Variables

After identifying variables in the data source, you must map tobjects.

1. Click the Maps tab, then the Cube sub-tab.

2. You are not creating a cube, so select No Action in the Cub

3. The Data Action is irrelevant, as you are not creating or upYou can disregard this box.

4. The Cube Logging option is not relevant, as you are not prvalues. Leave this option unselected.

5. Click the Dimensions sub-tab.

This grid has a row for each variable that you identified ascontent type. You must specify an element type and identifto which the element belongs.

Page 233: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-11

Dimension

e Dimensions

dimension

s.

s members of the child variable

ngland was d the variable

6. You are creating a new dimension, so type Example in thecolumn for V3 (Boston).

7. Select Create from the Action drop-down list.

8. Select Numeric from the Element Type drop-down list. Thsub-tab should look like this:

Variable V3 is now mapped as a numeric element of a newnamed Example.

You can now map the variables identified as consolidation

9. Click the Consolidations sub-tab.

The TM1 correctly identifies both consolidation variables anew Example dimension. All you have to do is identify thefor each consolidation.

If you check the Sample Value column, you see that New Eassigned the variable name V1, and Massachusetts receive

Page 234: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-

put it another f V2 is V3.

ild of tion variable V2.

ear as follows.

vanced tab and generated by d insert boIntegrator

12 Applix TM1 TurboIntegrator Guide

name V2. Recall that Boston has a variable name of V3. Toway, the child variable of V1 is V2, and the child variable o

10. From the Child Variable drop-down list, select V2 as the chconsolidation variable V1, and V3 as the child of consolida

11. Do not edit the Weight of either consolidation variable.

When you are done, the Consolidations sub-tab should app

All mapping is complete. If you want, you can click the Adthen click through the various sub-tabs to view the scripts TurboIntegrator that create the new Example dimension anconsolidations and elements. We’ll take a closer look at Turscripts later in this tutorial.

Page 235: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-13

Sa

rocess executed

ving and Executing the Process

To save and execute the process:

1. Click the Execute button .

TM1 prompts you to save the process.

2. Save the process as create_Example_dimension.

It’s a good idea to save processes with descriptive names.

After a few seconds, you should see confirmation that the psuccessfully.

3. Close the TurboIntegrator window.

4. Open the Server Explorer.

Page 236: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-

mension

.

gland is a ted element),

(numeric

14 Applix TM1 TurboIntegrator Guide

5. Right-click the new Example dimension and select Edit DiStructure.

The Example dimension opens in the Dimension Editor.

6. Click to sort the dimension members by hierarchy level

The Example dimension was successfully created. New Enconsolidated element containing Massachusetts (consolidawhich in turn contains Boston, Springfield, and Worcester elements).

Page 237: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-15

C

imension from g a dimension

D

atabase as an

ox.

ording to the line help for

source.

reating a Dimension from an ODBC Source

This part of the tutorial guides you through the creation of a dan ODBC data source. The procedure is very similar to creatinfrom an ASCII file.

efining the Data Source

Before continuing with the tutorial, you must add an Access dODBC data source to make it available to TurboIntegrator.

1. Open the Windows ODBC Data Source Administrator dialog b

The procedure required to access this dialog box varies accversion of Windows you are running. See the Windows ondetails.

2. On the User DSN tab, click the Add.. button.

The Create New Data Source dialog box appears.

3. Select Microsoft Access Driver and click Finish.

The ODBC Access Setup dialog box appears.

4. Type NewDB in the Data Source Name field.

5. Click the Select... button.

The Select Database dialog box appears.

6. Navigate to you TI_Data directory and select NewDB.mdb.

7. Click OK to exit the Select Database dialog box.

8. Click OK to exit the ODBC Administrator dialog box.

The NewDB Access database is now available as an ODBC

Page 238: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-

Q

d select Create

urce Type.

ld.

. You will write DBC queries tax of an MS

16 Applix TM1 TurboIntegrator Guide

uerying the Data Source

1. From the Server Explorer, right-click the Processes icon anNew Process.

The TurboIntegrator window appears.

2. Click the Data Source tab and select ODBC as the Dataso

3. Click the Browse button next to the Data Source Name fie

4. The ODBC Data Sources dialog box appears.

5. Select NewDB and click OK.

NewDB.mdb has one table, ACCOUNT, which has 27 fieldsan SQL query to select information from six of them. All Omust use the SQL dialect of the underlying DBMS. The syn

Page 239: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-17

ry, an SQL

ery using the ery and paste it

ears:

M] FROM ACCOUNT;

uery.

Access query will be different from that of an Informix queServer query, and so on.

To guarantee the correct syntax, you can first create the ququerying facility of the underlying DBMS, then copy the quinto the TurboIntegrator Query field.

6. In the Query field, type the following statement exactly as it app

SELECT [ACCOUNT_ID], [PARENT_ID], [NAME], [TYPE], [SALESREP], [SALESTEA

7. Click Update to view the first ten records returned by the q

Page 240: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-

Id

s of each field in

e column names

ctions.

18 Applix TM1 TurboIntegrator Guide

entifying Variables

After querying the source data, you must identify the contentthe query results.

1. Click the Variables tab.

The grid on the variables tab should appear as follows:

Note that the Variable Name column has been filled with thfrom the database.

2. Change the selections in the Contents column to these sele

Column ID Contents

ACCOUNT_ID IgnorePARENT_ID IgnoreNAME ElementTYPE ConsolidationSALESREP ConsolidationSALESTEAM Consolidation

Page 241: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-19

M

the grid.

ping to the DB

You are now ready to map variables.

apping Variables

First, you have to map elements to dimensions.

1. Click the Maps tab, then click the Dimensions sub-tab.

The single variable you identified as an element appears in

2. In the Dimension column, type DB.

3. Select Create from the Action drop-down menu.

4. Select Numeric from the Element Type drop-down menu.

The Dimensions sub-tab should appear as follows:

You’re now ready to map consolidation variables.

1. Click the Consolidations sub-tab.

TM1 correctly identifies each consolidation variable as mapdimension.

Page 242: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-

sub-tab should

20 Applix TM1 TurboIntegrator Guide

2. Set the Child Variable for each consolidation variable.

When you’ve set all the Child Variables, the Consolidationsappear as follows:

Cons. Variable Child Variable

TYPE SALESREP

SALESREP NAME

SALESTEAM TYPE

Page 243: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-21

Sa

rocess executed

ving and Executing the Process

To save and execute the process:

1. Click the Execute button .

TM1 prompts you to save the process.

2. Save the process as create_DB_dimension.

After a few seconds, you should see confirmation that the psuccessfully.

3. Close the TurboIntegrator window.

4. Open the Server Explorer.

5. Double-click the new DB dimension.

The DB dimension opens in the Subset Editor.

Page 244: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-

enu bar to

hierarchy levels.

22 Applix TM1 TurboIntegrator Guide

6. Select Edit → Sort → Hierarchy from the Subset Editor mdisplay the dimension elements and consolidations.

The DB dimension contains over 40 elements and has four A portion of the dimension appears below.

Page 245: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-23

C

reate a cube,

D

esses icon and

limited; and the

sand Separator

ld and select the

reating a Cube and Processing Data

The next example shows how to use TM1 TurboIntegrator to cdimensions, and elements and process data at the same time.

efining the Data Source

1. In the left pane of the Server Explorer, right-click the Procselect Create New Process.

2. Click the Data Source tab on the TurboIntegrator window.

3. Set the Datasource Type as ASCII; the Delimiter Type as DeDelimiter as Semicolon.

Ignore the Quote Char and Number of Title Records fields.

4. Make sure the Decimal Separator is period (.) and the Thouis comma (,).

5. Click the Browse button next to the Data Source Name fiefile newcube.csv in your TI_data directory.

Page 246: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-

ce.

oll across the

Id

dentify the

Type drop-

ther variables,

24 Applix TM1 TurboIntegrator Guide

6. Click Preview to view the first ten records of the data sour

Each record in newcube.csv contains 20 fields. You can scrdisplay grid to view all fields.

entifying Variables

After loading the source data into TurboIntegrator, you must icontents of each field in the source.

1. Click the Variables tab.

2. For each variable, select a type from the associated Variabledown list.

For variables V1, V2, and V3, the type is Numeric. For all othe type is String.

Page 247: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-25

Contents drop-nt type for each

Contents

Consolidation

Consolidation

Consolidation

Element

Consolidation

Consolidation

Element

Element

Element

Element

3. For each variable, select a content type from the associateddown list. Refer to the following table to identify the contevariable.

Variable Name Contents Variable Name

V1 Data V11

V2 Data V12

V3 Data V13

V4 Element V14

V5 Consolidation V15

V6 Consolidation V16

V7 Consolidation V17

V8 Consolidation V18

V9 Consolidation V19

V10 Element V20

Page 248: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-

llows:

26 Applix TM1 TurboIntegrator Guide

When you are finished, the Variables grid should appear as fo

Page 249: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-27

M

ons. Now you g a new cube.

M

data during d to log changes.

apping Variables

You’ve identified variables for data, elements, and consolidatihave to map the variables and provide instructions for creatin

apping the Cube

To provide cube mapping instructions:

1. Click the Maps tab.

2. Click the Cube sub-tab.

3. Select Create for the Cube Action.

4. Type NewCube in the Cube Name field.

5. Select Store Values for the Data Action.

6. Do not turn on the Enable Cube Logging option.

When you enable cube logging, TM1 logs changes to cube processing. You are creating a new cube, so there is no nee

Page 250: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-

28 Applix TM1 TurboIntegrator Guide

The Cube sub-tab should appear as follows:

Page 251: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-29

M

ment type to

Action, and Ele-

ariable.

Element Type

Numeric

Numeric

Numeric

Numeric

Numeric

Numeric

Numeric

Numeric

apping Element Variables to Dimensions

You can now map all variables you identified as having an Eleappropriate dimensions.

1. Click the Dimensions sub-tab.

2. Using the following table as a guide, specify a Dimension, ment Type for each element variable.

You can accept the default Order in Cube values for each v

Element Variable Dimension Action

V4 date Create

V10 item Create

V14 customer Create

V17 job Create

V18 country Create

V19 agent Create

V20 book Create

Data variables measure Create

Page 252: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-

ear as follows:

M

type to

the variable will

lements.

30 Applix TM1 TurboIntegrator Guide

When you are finished, the Dimensions sub-tab should app

apping Data Variables

You must now map variables you identified as having a Data individual elements.

1. Click the Data sub-tab.

2. For data variable V1, enter weight as the element to whichmap.

3. For V2, enter conversion.

4. For V3, enter pieces.

5. In the Element Type column, select Numeric for all three e

Page 253: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-31

M

dentified as

nd Child Vari-

The Data sub-tab should appears as follows:

apping Consolidation Variables

You must now map consolidation paths for all variables you ihaving a Consolidation content.

1. Click the Consolidations sub-tab.

2. Using the following table as a guide, specify a Dimension aable for each consolidation variable.

Cons Variable Dimension Child Variable

V5 item V6

V6 item V7

V7 item V8

V8 item V9

V9 item V10

V11 customer V12

Page 254: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-

or all

ear as follows:

32 Applix TM1 TurboIntegrator Guide

3. You can accept the default Weight and Component Order fconsolidation variables.

When you are done, the Consolidation sub-tab should app

V12 customer V13

V13 customer V14

V15 job V16

V16 job V17

Cons Variable Dimension Child Variable

Page 255: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-33

, insert elements , and populate

Sa

rocess executed

You’ve now completed mapping to create new dimensionsand consolidations into the dimensions, create a new cubethe cube with data.

ving and Executing the Process

To save and execute the process:

1. Click the Execute button .

TM1 prompts you to save the process.

2. Save the process as create_newcube.

After a few seconds, you should see confirmation that the psuccessfully.

Page 256: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Creating a TurboIntegrator Process Table of Contents | Index

A-

has been created created.

amine the newly

34 Applix TM1 TurboIntegrator Guide

3. Open the Server Explorer and note that the cube NewCube and populated, and that all required dimensions have been

Browse the new cube (it’s very sparsely populated) and excreated dimensions.

Page 257: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-35

A

that can be hereby dited by s and TM1 rules

E

the procedures statements that

nce. Each M1 based on the ou can edit these urboIntegrator

he data source is

ube, dimensions, cessing.

dvanced Scripting

Use the Advanced tab of TurboIntegrator to create parameterspassed to a process at runtime or to edit process procedures, tenhancing the capabilities of TurboIntegrator. Procedures are ecreating scripts that incorporate both TurboIntegrator functionfunctions.

diting the Prolog, Metadata, Data, and Epilog Procedures

You can enhance the capabilities of TurboIntegrator by editingthat define the actions of a process. A procedure is a group of manipulate TM1 data or metadata.

A process includes four procedures that are executed in sequeprocedure contains generated statements that are created by Toptions you select elsewhere in the TurboIntegrator window. Yprocedures by adding your own statements that incorporate Tfunctions and Rules functions.

The procedures contained within a process are:

Prolog A series of actions to be executed before tprocessed

Metadata A series of actions that update or create cand other metadata structures during pro

Page 258: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-

s intended to ccordingly, you

given procedure.

ould add an function that g. Therefore, the

Ed

o lines.

r each record in

e data source is

36 Applix TM1 TurboIntegrator Guide

When editing procedures, keep in mind that each procedure iexecute certain types of actions at specific times in a process. Ashould create actions or statements that are appropriate for a

For example, to export processed data to an ASCII file, you wASCIIOutput function to the Data procedure. ASCIIOutput is amanipulates data, and it should be executed during processinData procedure is the correct location for the function.

iting a Procedure

To edit a procedure:

1. Click the Advanced tab on the TurboIntegrator window.

2. Click the sub-tab for the procedure you want to edit.

3. Enter your statements in the text box before the

#****GENERATED STATEMENTS START**** line.

or after the

#****GENERATED STATEMENTS FINISH**** line.

You should not edit generated statements between these tw

Data A series of data actions to be executed fothe data source.

Epilog A series of actions to be executed after thprocessed.

Page 259: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-37

C

imension with

reating a Dimension with Unbalanced Hierarchies

In this exercise, you’ll use the following input file to create a dunbalanced hierarchies.

TOTAL,NORTH,TK1,G1TOTAL,NORTH,TK1,G2TOTAL,NORTH,TK1,G3TOTAL,NORTH,TK1,G4TOTAL,NORTH,TK2,G5TOTAL,NORTH,TK2,G6TOTAL,SOUTH,TK3,G7TOTAL,SOUTH,TK3,G8TOTAL,SOUTH,TK3,G9TOTAL,SOUTH,TK4,G10TOTAL,SOUTH,TK4,G11TOTAL,SOUTH,TK4,G12TOTAL,TK5,G13TOTAL,TK5,G14TOTAL,TK6,G15TOTAL,TK6,G16TOTAL,TK6,G17TOTAL,G18TOTAL,G19

Page 260: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-

esses icon and

38 Applix TM1 TurboIntegrator Guide

The final result will look like this:

To begin creating the dimension:

1. In the left pane of the Server Explorer, right-click the Procselect Create New Process.

Page 261: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-39

ct

ult settings.

e.

Id

dentify the

V1, V2, and V3.

The TurboIntegrator window opens.

2. Select the ASCII Datasource Type.

3. Click Browse next to the Data Source Name field and seleunbalanced.csv in your TI_data directory.

4. Leave all other options on the Data Source tab at their defa

5. Click Update to view the first ten records in the data sourc

entifying Variables

After loading the source data into TurboIntegrator, you must icontents of each field in the source.

1. Click the Variables tab.

2. In the Contents column, select Consolidation for variables

Page 262: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-

M

you have to ths.

on; Create for

p-down list for

40 Applix TM1 TurboIntegrator Guide

3. Select Element for variable V4..

apping Variables

You’ve identified variables elements and consolidations. Nowmap the variables to a dimension and define consolidation pa

1. Click the Maps tab.

2. Click the Dimensions sub-tab.

3. For element variable V4, enter unbalanced as the Dimensithe Action; and Numeric for the Element Type.

4. Click the Consolidations sub-tab.

5. In the Dimension column, select unbalanced from the drothe three variables.

6. For the Cons. Variable V1, select V2 as the Child Variable.

7. For the Cons. Variable V2, select V3 as the Child Variable.

Page 263: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-41

C

boIntegrator

d Metadata nsion hierarchy. ted statements boIntegrator

s between the

8. For the Cons. Variable V3, select V4 as the Child Variable.

opying Generated Statements

TM1 generates statements dynamically as you change options in the Turwindow.

You’re going to edit the generated statements on the Prolog ansubtabs of the Advanced tab to accomodate an unblanced dimeTo make things a little easier, you’ll copy and paste the generaso that they’ll be available after you change options in the Turwindow.

1. Click the Advanced tab, then the Prolog sub-tab.

2. Copy the DimensionDestroyand DimensionCreate functioncomment lines

#****GENERATED STATEMENTS START****

#****GENERATED STATEMENTS FINISH****

and paste them below the comment lines.

Page 264: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-

element to a and string

ponent (child)

42 Applix TM1 TurboIntegrator Guide

3. Click the Metadata sub-tab.

There are two functions:

The DimensionElementInsert function adds a simple (leaf)dimension. You can use this function to add both numeric elements.

The DimensionElementComponentAdd function adds a comto a consolidated element.

Page 265: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-43

ast comment

R

ntents column to

ble to be used in ot processed by scripts.

4. Copy the generated statements and paste them below the lline.

emoving the Generated Statements Permanently

1. Click the Variables tab and change the selections in the CoOther.

When a variable is identified as Other, the variable is availaadvanced scripts. If a variable is identified as Ignore, it is nTurboIntegrator and thus cannot be referenced in advanced

Page 266: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-

he Advanced

1,V2,1.000000);2,V3,1.000000);3,V4,1.000000);

44 Applix TM1 TurboIntegrator Guide

2. To verify that the statements have been removed, click on ttab, then the Prolog and Metadata sub-tabs.

The statements should appear as follows:

Prolog

#****GENERATED STATEMENTS START****#****GENERATED STATEMENTS FINISH****

DIMENSIONDESTROY(’unbalanced’);DIMENSIONCREATE(’unbalanced’);

Metadata

#****GENERATED STATEMENTS START****#****GENERATED STATEMENTS FINISH****

DIMENSIONELEMENTINSERT(’unbalanced’,’’,V4,’n’);DIMENSIONELEMENTINSERT(’unbalanced’,’’,V1,’c’);DIMENSIONELEMENTINSERT(’unbalanced’,’’,V2,’c’);DIMENSIONELEMENTINSERT(’unbalanced’,’’,V3,’c’);DIMENSIONELEMENTCOMPONENTADD(’unbalanced’,VDIMENSIONELEMENTCOMPONENTADD(’unbalanced’,VDIMENSIONELEMENTCOMPONENTADD(’unbalanced’,V

Page 267: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-45

Ed

b, which appear

2,1.000000);3,1.000000);4,1.000000);

nbalanced.csv, imension

y. The script, ds.

ying length, you he script should propriate is can be hich allows you

conditions.

This IF y, the statements

iting the TurboIntegrator Statements

Examine the script that currently exists on the Metadata sub-taas follows.

DIMENSIONELEMENTINSERT(’unbalanced’,’’,V4,’n’);DIMENSIONELEMENTINSERT(’unbalanced’,’’,V1,’c’);DIMENSIONELEMENTINSERT(’unbalanced’,’’,V2,’c’);DIMENSIONELEMENTINSERT(’unbalanced’,’’,V3,’c’);DIMENSIONELEMENTCOMPONENTADD(’unbalanced’,V1,VDIMENSIONELEMENTCOMPONENTADD(’unbalanced’,V2,VDIMENSIONELEMENTCOMPONENTADD(’unbalanced’,V3,V

This script, which was generated based on the first record in uis valid for records that contain four fields. The script creates delements from each field in the source, then creates a hierarchhowever, is not valid for records containing less than four fiel

Because the source file unbalanced.csv contains records of varmust modify the script to evaluate each record in the source. Tdetermine the correct level of consolidation and specify an apconsolidation path for each possible level of consolidation. Thaccomplished by editing the script to include an IF function, wto execute other TurboIntegrator statements based on defined

1. Click the Advanced tab, then the Metadata sub-tab.

2. Insert the line

IF (V4@<>’’);

before the first DIMENSIONELEMENTINSERT statement. statement indicates that if the string variable V4 is not empt

Page 268: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-

hould skip to the

1,V2,1.000000);2,V3,1.000000);3,V4,1.000000);

nsolidated to the level hierarchy is the parent of

tement.

ng variable V3 is f V3 is empty,

46 Applix TM1 TurboIntegrator Guide

that follow should be executed. If V4 is empty, processing snext conditional statement.

The Metadata sub-tab now appear as follows.

#****GENERATED STATEMENTS START****

#****GENERATED STATEMENTS FINISH****

IF (V4@<>’’);

DIMENSIONELEMENTINSERT(’unbalanced’,’’,V4,’n’);DIMENSIONELEMENTINSERT(’unbalanced’,’’,V1,’c’);DIMENSIONELEMENTINSERT(’unbalanced’,’’,V2,’c’);DIMENSIONELEMENTINSERT(’unbalanced’,’’,V3,’c’);DIMENSIONELEMENTCOMPONENTADD(’unbalanced’,VDIMENSIONELEMENTCOMPONENTADD(’unbalanced’,VDIMENSIONELEMENTCOMPONENTADD(’unbalanced’,V

When IF (V4@<>’’) is true, TurboIntegrator inserts three coelements (V1, V2, V3) and a single numeric element (V4) inunbalanced dimension. TurboIntegrator also creates a four-where V1 is the parent of V2, V2 is the parent of V3, and V3V4.

3. Insert the line

ELSEIF (V3@<>’’);

after the last DIMENSIONELEMENTCOMPONENTADD sta

This conditional ELSEIF, statement indicates that if the strinot empty, the statements that follow should be executed. Iprocessing should skip to the next conditional statement.

Page 269: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-47

IF (V3@<>’’) is

s three fields. ent from each

(V3@<>’’);.

1,V2,1.000000);2,V3,1.000000);

solidated he unbalanced chy where V1 is

tement.

essing reaches <>’’) and

ecord contains nsion element

4. You must now insert statements to be executed when ELSEtrue.

When ELSEIF (V3@<>’’) is true, the source record containAccordingly, the statements should create a dimension elemfield, then create a hierarchy of three levels.

5. Insert the following statements immediately after ELSEIF

DIMENSIONELEMENTINSERT(’unbalanced’,’’,V1,’c’);DIMENSIONELEMENTINSERT(’unbalanced’,’’,V2,’c’);DIMENSIONELEMENTINSERT(’unbalanced’,’’,V3,’n’);DIMENSIONELEMENTCOMPONENTADD(’unbalanced’,VDIMENSIONELEMENTCOMPONENTADD(’unbalanced’,V

When IF (V3@<>’’) is true, TurboIntegrator inserts two conelements (V1, V2) and a single numeric element (V3) into tdimension. TurboIntegrator also creates a three-level hierarthe parent of V2 and V2 is the parent of V3.

6. Insert the line

ELSE;

after the last DIMENSIONELEMENTCOMPONENTADD sta

7. You must now insert statements to be executed when procthe ELSE statement. (This occurs when both ELSEIF (V4@ELSEIF (V3@<>’’) are false.)

When processing reaches the ELSE statement, the source rtwo fields. The statements you insert should create a dimefrom each field, then create a hierarchy of two levels.

8. Insert the following statements immediately after ELSE;.

Page 270: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-

1,V2,1.000000);

solidated ed dimension,

tatement. ENDIF

ld appear as

48 Applix TM1 TurboIntegrator Guide

DIMENSIONELEMENTINSERT(’unbalanced’,’’,V1,’c’);DIMENSIONELEMENTINSERT(’unbalanced’,’’,V2,’n’);DIMENSIONELEMENTCOMPONENTADD(’unbalanced’,V

These statements instruct TurboIntegrator to insert the conelement V1 and the numeric element V2 into the unbalancand to create a hierarchy where V1 is the parent of V2.

9. Insert the line

ENDIF;

after the final DIMENSIONELEMENTCOMPONENTADD sindicates the end of the IF statement.

When you are done, the completed Metadata sub-tab shoufollows.

Page 271: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-49

1,V2,1.000000);2,V3,1.000000);3,V4,1.000000);

1,V2,1.000000);2,V3,1.000000);

1,V2,1.000000);

ced_dim.

#****GENERATED STATEMENTS START****#****GENERATED STATEMENTS FINISH****

IF (V4@<>’’);

DIMENSIONELEMENTINSERT(’unbalanced’,’’,V1,’c’);DIMENSIONELEMENTINSERT(’unbalanced’,’’,V2,’c’);DIMENSIONELEMENTINSERT(’unbalanced’,’’,V3,’c’);DIMENSIONELEMENTINSERT(’unbalanced’,’’,V4,’n’);DIMENSIONELEMENTCOMPONENTADD(’unbalanced’,VDIMENSIONELEMENTCOMPONENTADD(’unbalanced’,VDIMENSIONELEMENTCOMPONENTADD(’unbalanced’,V

ELSEIF (V3@<>’’);

DIMENSIONELEMENTINSERT(’unbalanced’,’’,V1,’c’);DIMENSIONELEMENTINSERT(’unbalanced’,’’,V2,’c’);DIMENSIONELEMENTINSERT(’unbalanced’,’’,V3,’n’);DIMENSIONELEMENTCOMPONENTADD(’unbalanced’,VDIMENSIONELEMENTCOMPONENTADD(’unbalanced’,V

ELSE;

DIMENSIONELEMENTINSERT(’unbalanced’,’’,V1,’c’);DIMENSIONELEMENTINSERT(’unbalanced’,’’,V2,’n’);DIMENSIONELEMENTCOMPONENTADD(’unbalanced’,V

ENDIF;

10. Choose File → Save and name the process create_unbalan

Page 272: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-

nbalanced llows.

50 Applix TM1 TurboIntegrator Guide

11. Choose File → Execute to execute the process.

12. To verify that the dimension was built correctly, open the udimension in the Dimension Editor. It should appears as fo

Page 273: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-51

C

which is created

sv in your e prompted to

eep All

etCreate() and ubsets.

reating Subsets

In this exercise you create subsets for the dimension newdim, by the dimension process.

1. Open the process subsets in the TurboIntegrator window.

You might have to edit the data source to point to region.cTI_data directory. If you change the data source, you will bspecify how process variables should be handled. Select KVariables.

This example uses the TM1 TurboIntegrator functions SubsSubsetElementInsert() to create and populate dimension s

Page 274: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-

52 Applix TM1 TurboIntegrator Guide

Part of the source file looks like this:

Here are the scripts for the process subsets:

Prolog

#****GENERATED STATEMENTS START****#****GENERATED STATEMENTS FINISH****SubsetCreate(’NewDim’,’Europe’);SubsetCreate(’NewDim’,’US’);SubsetCreate(’NewDim’,’ROW’);

Page 275: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-53

view the newly

C

ute. If you want ntry Sweden in

n this way:

sv in your e prompted to

eep All

Metadata

#****GENERATED STATEMENTS START****#****GENERATED STATEMENTS FINISH****SubsetElementInsert(’NewDim’,V4,V0,0);

2. Execute the process.

3. In the Server Explorer, expand the newdim dimension andcreated subsets.

reating Attributes

The AttrPutS function assigns a value to a string element attribto assign the string Europe to the Continent attribute of the couthe NewDim dimension, you would write the AttrPutS functio

AttrPutS(‘Europe’,'NewDim',’Sweden’,'Continent');

1. Open the Attributes process in TurboIntegrator.

You might have to edit the data source to point to region.cTI_data directory. If you change the data source, you will bspecify how process variables should be handled. Select KVariables.

2. Click the Variables tab.

Note that V4 and V5 have been identified as Attribute.

Page 276: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-

iables.

and the type for

generated

1 and V2 were owever, be

54 Applix TM1 TurboIntegrator Guide

3. Click the Formula cell for V5.

It reads V5=V0|V4;

This formula concatenates the values of the V4 and V5 var

4. Click the Maps tab and the Attributes sub-tab.

The attribute type for variable V4 has been defined as TextV5 as Alias.

5. Click the Advanced tab and the Data sub-tab to show the statements and two additional statements.

#****GENERATED STATEMENTS START****V5=v0|v4; AttrPutS(V4,’newdim’,V0,’continent’);AttrPutS(V5,’newdim’,V0,’cont’); #****GENERATED STATEMENTS FINISH****

AttrPutS(V4,’newdim’,V1,’continent’);AttrPutS(V4,’newdim’,V2,’continent’);

The two statements above were added manually because Vnot declared as contents in the Variables tab. They must, hassigned the text attribute Continent.

6. Save and execute the Attributes process

Page 277: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-55

Vi

to open the

selection does

isplay this

from a

ewing the Attributes

1. In the Server Explorer, double-click the newdim dimensionSubset Editor.

2. Select View → Toolbars from the Subset Editor. If the Aliasnot have a checkmark, select it to display the Alias toolbar.

3. Click the Alias button to toggle the aliases on and off.

4. Click the Subset All button (the upside-down “A”).

5. Choose Edit → Select By → Attribute from the menu to ddialog:

6. Select a value from the drop-down list to display countriesparticular continent in the Subset Editor.

Page 278: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Advanced Scripting Table of Contents | Index

A-

56 Applix TM1 TurboIntegrator Guide
Page 279: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents | Index

B-1

ns in

TurboIntegrator amount of time

B Locking ConsideratioTurboIntegrator

This appendix describes how to manage server locking duringprocess execution to optimize performance and maximize thethe server is available to users.

Page 280: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Overview Table of Contents | Index

B-

O

tegrator must when updating m the server. In

s a "lock" on the server while a

ure (Prolog, each procedure. te functions that e is that other

that allow a TM1 server lock as

ons, including king, are fully

trol functions to

R

or process to s execution. If d users are r for user

2 Applix TM1 TurboIntegrator Guide

verview

TurboIntegrator runs inside the TM1 server. As such, TurboIntake precautions not to corrupt memory or cause a server crashserver objects at the same time that users are trying to read froorder to protect against this possibility, TurboIntegrator placeserver that prevents other users from reading or writing to theTurboIntegrator process is executing.

By default, the lock is placed at the beginning of every procedMetadata, Data, and Epilog) and removed at the conclusion ofThis is done on the assumption that each procedure will execuupdate objects on the TM1 server. The downside of this schemusers can not access the server while a procedure is running.

To alleviate this situation, TurboIntegrator provides functions administrator or TurboIntegrator process creator to release therequired during process execution. All TurboIntegrator functiprocess control functions that can be used to mange server locdescribed in the TM1 online help.

The following sections describe how to use select process conmanage locking during TurboIntegrator process execution.

eleasing the Lock in Repetitive Processes

The function AllowExternalRequests instructs a TurboIntegratcheck for users attempting to contact the server during procesuser requests are detected, process execution is suspended angranted access to the server. The process then checks the serve

Page 281: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Overview Table of Contents | Index

B-3

the process

etitive Metadata “in the e server.

made by users ith or conflict . Such conflicts sion subset data ed when a

D

through the

dimensions but ger of user edits e the LockOff process is rocedure to n function at

activity at five-second intervals. If no user request is detected resumes execution.

This function can be inserted in the middle of a lengthy or repor Data procedure. The effect is that TurboIntegrator will run background,” giving priority to users attempting to contact th

IMPORTANT: When running a process that incorporates the AllowExternalRequests function, it is possible for the updateswho access the server during process execution to interfere wwith computations or updates that are applied by the processare especially likely when a prosess uses a cube view or dimensource. Consequently, AllowExternalRequests must not be usprocess uses a cube view or dimension subset data source.

eactivating and Reactivating the Lock

TurboIntegrator also provides direct control of the server lockfunctions LockOn and LockOff.

Use LockOn to enable the server lock in TurboIntegrator.

Use LockOff to remove the server lock.

These functions are best used in a simple process that updatesdoes not alter data values. In this circumstance there is no danconflicting with TurboIntegrator updates, so you can safely usfunction to ensure that the TM1 server is not locked while therunning. Insert the LockOff function at the end of the Prolog pdisable locking during process execution, and insert the LockOthe beginning of the Epilog procedure to restore locking.

Page 282: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Overview Table of Contents | Index

B-

r by preventing erver. If such a rminates the rboIntegrator

while the r details.

U

the TM1 server

and These functions . All changes are nction is

nd the TM1

M

or process that

f the Prolog pro-

inning of the

4 Applix TM1 TurboIntegrator Guide

While the lock is removed, TurboIntegrator protects the servethe execution of functions that modify data structures on the sfunction is detected, TurboIntegrator produces an error and teprocess. The table at the end of this appendix identifies the Tufunctions that modify data structures on the server.

IMPORTANT: You must use BatchUpdate if you update cubesTurboIntegrator lock is turned off. See the following section fo

sing the Batch Update Capability

TurboIntegrator provides access to the batch update facility ofwith the functions BatchUpdateStart and BatchUpdateFinish.

Typically, the BatchUpdateStart function is used in the prologBatchUpdateFinish in the epilog of a TurboIntegrator process.accumulate all cube changes in a temporary storage structurethen committed in “one shot” when the BatchUpdateFinish fuexecuted.

Batch updates are further described in the TM1 Clients Guide aonline help.

inimizing Locking in a Simple Process

To minimize the locking performed by a simple TurboIntegratupdates dimensions and cubes, do the following:

1. Execute BatchUpdateStart followed by LockOff at the end ocedure.

2. Execute LockOn followed by BatchUpdateFinish at the begEpilog procedure.

Page 283: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Overview Table of Contents | Index

B-5

ilog procedure,

A

nce of processes ting LockOn at

sequence of pilog procedure

C ocess

o minimize the you can use the sers to access

rolog, then values a temporary

The process should run in an "unlocked" state in all but the Epmaximizing server availability.

pplying the Server Lock Across Processes in a Chore

You may want to block access to the TM1server while a sequeis executed within a chore. This can be accomplished by executhe end of the Prolog procedure in the first process within theprocesses, and then executing LockOff at the beginning of the Ein the final process within the sequence.

ombining LockOff/LockOn and BatchUpdateStart/BatchUpdateFinish in a Pr

If you have a process that does update data values, but want tamount of time the server is locked during process execution,following combination of TurboIntegrator functions to allow uthe TM1 server during process execution:

Insert these functions in the Prolog procedure:

LockOff;

BatchUpdateStart;

Insert these functions in the Epilog procedure:

LockOn;

BatchUpdateFinish(0);

This combination of functions turns off server locking in the Pinitiates batch updates on the TM1 server. All changes to datacommitted within the TurboIntegrator process are then held in

Page 284: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Overview Table of Contents | Index

B-

rned on, then all

Lo

er different her chores as

s using the tions and not the ty.

Fu

ns and indicates Functions that ied to the TM1 ess is terminated

6 Applix TM1 TurboIntegrator Guide

storage structure. In the Epilog procedure, server locking is tuedits in temporary storage are written to disk.

cking Considerations for Multiple Processes in Separate Chores

Multiple TurboIntegrator processes can run concurrently undchores, and each will share the available processor with the otlong as the server lock is off.

In order to take advantage of this feature, Applix recommendBatchUpdateStart/BatchUpdateFinish or LockOn/LockOff funcAllowExternalRequests function to maximize server availabili

nction Impact on TM1 Server Data Structures

The following table lists all TurboIntegrator and Rules functiowhether the function alters data structures on the TM1 server.alter data structures cannot be executed while the lock is applserver. If such a function is executed, the TurboIntegrator procwith an error message..

Function Alters Data Structures?

abs NO

acos NO

AddClient YES

AddGroup YES

Page 285: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Overview Table of Contents | Index

B-7

AllowExternalRequests NO

AscIIDelete NO

AscIIOutput NO

asin NO

AssignClientToGroup YES

atan NO

AttrDelete YES

AttrInsert YES

attrn NO

AttrPutN YES

AttrPutS YES

attrs NO

bdate NO

bdayn NO

capit NO

Function Alters Data Structures?

Page 286: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Overview Table of Contents | Index

B-

8 Applix TM1 TurboIntegrator Guide

CellGetN NO

CellGetS NO

CellPutN YES*

CellPutS YES*

centr NO

char NO

code NO

cos NO

CubeCreate YES

CubeDestroy YES

CubeGetLogChanges NO

CubeSetLogChanges NO

date NO

dates NO

datfm NO

Function Alters Data Structures?

Page 287: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Overview Table of Contents | Index

B-9

day NO

dayno NO

delet NO

DeleteClient YES

DeleteGroup YES

dfrst NO

DimensionCreate YES

DimensionDeleteallElements NO**

DimensionDestroy YES

DimensionElementComponentAdd

NO**

DimensionElementComponentDelete

NO**

DimensionElementDelete NO**

DimensionElementInsert NO**

DimensionSortOrder NO**

Function Alters Data Structures?

Page 288: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Overview Table of Contents | Index

B-

10 Applix TM1 TurboIntegrator Guide

dimix NO

dimnm NO

dimsiz NO

dnext NO

dnlev NO

dtype NO

dys NO

elcomp NO

elcompn NO

ElementSecurityGet NO

ElementSecurityPut YES

elisanc NO

eliscomp NO

elispar NO

ellev NO

Function Alters Data Structures?

Page 289: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Overview Table of Contents | Index

B-11

elpar NO

elparn NO

elweight NO

EncodePassword NO

ExecuteCommand NO

exp NO

Expand NO

FileExists NO

fill NO

fv NO

if NO

insrt NO

int NO

isleaf NO

isund NO

Function Alters Data Structures?

Page 290: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Overview Table of Contents | Index

B-

12 Applix TM1 TurboIntegrator Guide

ItemReject NO

ItemSkip NO

ln NO

log NO

long NO

lower NO

max NO

min NO

mod NO

month NO

mos NO

now NO

numbr NO

OdbcClose NO

OdbcOpen NO

Function Alters Data Structures?

Page 291: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Overview Table of Contents | Index

B-13

OdbcOutput NO

paymt NO

ProcessBreak NO

ProcessQuit NO

pv NO

rand NO

RemoveClientFromGroup YES

ReturnSqlTableHandle NO

ReturnViewHandle NO

right NO

round NO

roundp NO

SaveDataAll YES

scan NO

SecurityRefresh YES

Function Alters Data Structures?

Page 292: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Overview Table of Contents | Index

B-

14 Applix TM1 TurboIntegrator Guide

ServerShutdown YES

sign NO

sin NO

sqrt NO

str NO

subnm NO

SubsetCreate YES

SubsetDeleteAllElements YES

SubsetDestroy YES

SubsetElementDelete YES

SubsetElementInsert YES

SubsetGetElementName NO

SubsetGetSize NO

subsiz NO

subst NO

Function Alters Data Structures?

Page 293: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Overview Table of Contents | Index

B-15

tabdim NO

tan NO

time NO

timst NO

timvl NO

today NO

trim NO

undef NO

upper NO

ViewColumnDimensionSet YES

ViewConstruct YES

ViewCreate YES

ViewDestroy YES

ViewRowDimensionSet YES

ViewSetSkipcalcs YES

Function Alters Data Structures?

Page 294: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Overview Table of Contents | Index

B-

be executed

on and changes

16 Applix TM1 TurboIntegrator Guide

Notes:

YES* - These functions do alter data structures but can safely when batch update is on.

NO** - Dimension functions operate on copies of the dimensiare committed only at the end of the Metadata procedure.

ViewSetSkipzeroes YES

ViewSubsetAssign YES

ViewTitleDimensionSet YES

ViewTitleElementSet YES

ViewZeroOut YES*

whoami NO

width NO

year NO

yrs NO

Function Alters Data Structures?

Page 295: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents | Index

C-1

rved

nt errors in your bles with names

r:

C TurboIntegrator ReseWords

This appendix lists TurboIntegrator reserved words. To preveTurboIntegrator scripts, you should avoid creating TM1 variathat match any of the words listed in the following tables.

There are four categories of reserved words in TurboIntegrato

• Rule Function Names

• Process Function Names

• Implicit Variable Names

• TurboIntegrator Keywords

Page 296: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Rule Functions Table of Contents | Index

C-

R

�� ��

�� ���

�� ���

� ����

� ����

� ���

�� �����

�� ���

�� ���

�� ������

�� ��� �

�� ����

�� ���

��

��

��

��

��

��

��

��

��

2 Applix TM1 TurboIntegrator Guide

ule Functions

� ����� � �����

�� ����� ���� ���

�� ����� �� ��

�� ���� �� ���

�� ���� �� �

�� ���� ���� ����

� ����� �� ����

��� ������ ��� �����

� � ����� ������ �����

��� ��� ����� ����

� ����� ��� �����

� � � �� �� ����

�� ��� ��� ���

����� ���� ����

�� ������ ���� ���

� ������� ����� � ���

���� !"#$�% �!&$� ������� �� � �

� ������ ��� �����

� ����� ��� ������

�� ���� ��� ����

�� ����� ��� � ���

� ������� ��� �����

Page 297: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Process Functions Table of Contents | Index

C-3

P

�! �')$& *���("��"& "(�$

�! �')$& *�$�� ���"& "(�$

�� ��������$

�� �����+$�

�� �����'#+'#

�� &�*$���&$"1

�� &�*$���&&�&

�# &�*$���. #�,�&$"1

�# &�*$���. #�,�%�&$�' #

�# &�*$���. #�,�' #

�# &�*$���. #� ��&�&&�&

�# &�*$���. #��&)"�

�" &�*$���. #���� #

�" &�*$���. #�$& �'��&&�&

�$ &�*$���. #� #%�$��"0$

�$ &�*$���' #

�$ '(� �%� $-

�$ �$)�2$�� $�#�&�)�&�'+

�$ �$#'&���� "(�$�"�!�$

�$ �$#'&�� $-�"�!�$

�% �'�$��"!�&�)� �$

rocess Functions

!�� $�# �'($�&$"#$ � )$�� ����$)$�#���$&#

!�&�'+ �'($�$�#&�, � )$�� ����$)$�#���$&#�,�� "�

��-�.#$&�"��$/'$�#� �'($�. �#� � )$�� ����$)$�#& �* +"��")$

����$�$#$ �'($�$#��0�%"�0$� � )$�� ���. �#�

����'#+'# �'($��*1�2$&& !$ � )$�� ����&#�&!$&

� 0��� $�#"��-�&! �'($&�*$���$$!$&� ��$)$�#�$*'& #,�$#

� 0��� $�# ��&�'+ �'($�$#����"&")� ��$)$�#�$*'& #,'#

#&�$�$#$ �'($�$#��� &#'"� ��*�!$"��-�&!

#&���$&# �'($�$#��0�%"�0$� �.$*'#$��))"�!

#&'#� �'($�$#���"& "(�$���"'�$ �.$*'#$&�*$��

#&'#� �'($�$#�� *$&�$)($&� �.+"�!

#& ��� "� �'($����"! � �$�. �#�

#*%�+!"#$� � �% �$�$#$�� $�# �$#&�*$���&&�&� �$� &$*#�&,

#*%�+!"#$�#"&# �$�$#$�&�'+ �$#&�*$���&&�&� �$�")$

���$#� � )$�� ���&$"#$ ���'��

���$#� � )$�� ���$�$#$�����$)$�#� �#$)�$3$*#

�����+!"#$"(�$ � )$�� ���$�#&�, �#$)�1 +

��'#� � )$�� ���! # �0�� "��$# ��*1�44

��'#&�+�&# ��"��+&$"! � )$�� ����$)$�#��)+��$�#�!! ��*1��

��'#� � )$�� ����$)$�#��)+��$�#�$�$#$ �')($& ��#& �0

�&$�' # � )$�� ����$)$�#�$�$#$ �')($& ��#& �0�.

Page 298: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Process Functions Table of Contents | Index

C-

P

�" � $-�$#�1 +�'�$�"�'$�

�$ � $-�$#�1 +�$&�$�

�$ � $-�'(�$#��� 0�

�$ � $-�'++&$���$&�$��$#

�# � $- #�$� )$�� ���$#

�# � $- #�$��$)$�#�$#

�# � $-�$&��'#

�# � �!*"&!� �$�$"&*%

�'

�'

�'

4 Applix TM1 TurboIntegrator Guide

rocess Functions (Continued)

2$�"#"��� �'(�$#�$�$#$�����$)$�#� � $-���')��'++&$���$&�$��$#

*'& #,�$4&$�% �'(�$#�$�#&�, � $-����#&'*#

&2$&�%'#��-� �'(�$#��$)$�#�$�$#$ � $-�&$"#$

#�%�&$�$&(��$�$��"0$� �'(�$#��$)$�#���$&# � $-�$�#&�,

& �0���("��"& "(�$ �'(�$#�. �#� � $-�. �#�

& �0�$�� ���"& "(�$ �'(�$#��&)"#�#,�$�$# � $-�.#&"*#�1 +�'�$�"�'$��$#

& �0 ��')($& �'(�$#�$#��$)$�#�")$ � $-�.#&"*#�1 +�'�$�"�'$��$#

& �0 ��')($&�. �'(�$#�$#� 5$ � $-�.#&"*#�1 +�$&�$��$#

(�$#�� "��$# �'(�$#������$# � $-��-� )$�� ���$#

(�$#�&$"#$ �-"+�� "�� #%& �* +"��")$ � $-��-�'++&$���$&�$��$#

(�$#�&$"#$�,�� � $-���')�� )$�� ���$# � $-�$#�1 +�"�*�

Page 299: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Implicit Variable Names Table of Contents | Index

C-5

Im

T

�"

�"

�"

�"

�"

�"

�"

�"

�"

�"

�"

�"

�"

�"

�"

(&

$��

$��

$�

plicit Variable Names

urboIntegrator Keywords

#"��'&*$������$* )"��$+"&"#�& �"#"��'&*$�������� $�#�!

#"��'&*$������$� ) #$& �"#"��'&*$�������� $�#�"�0'"0$

#"��'&*$������$"!$&�$*�&!� �"#"��'&*$"��-�&!

#"��'&*$������'�#$�%"&"*#$& �"#"��'&*$�'$&,

#"��'&*$����� %�'�"�!�$+"&"#�& �"#"��'&*$ ,+$

#"��'&*$�'($2 $- �"#"��'&*$��$�"��$&&�*$������$*# ��

#"��'&*$� )$�� ���'(�$# �"#"��'&*$��$&�")$

#"��'&*$�")$��&�� $�# � ��&�&&�&��0�".

#"��'&*$�")$��&�$&2$& ��"�'$

#"��'&*$�����"#"��0 ��� ��&�&&�&���#$)�1 +

#"��'&*$��������$*# ���#& �0 ��"�'$

#"��'&*$�����'($�")$ �"�'$6��6�#& �0

#"��'&*$����� $&"&*%,�")$

#"��'&*$������*"# ��

#"��'&*$����&�2 !$&

$"1 $�! 4

$ 4

$ 4 -% �$

!

Page 300: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

TurboIntegrator Keywords Table of Contents | Index

C-

6 Applix TM1 TurboIntegrator Guide
Page 301: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents |

Index 1

I

AAAA

Cch

ch

ch

CCco

co

co -32

ndex

dditional CoSCII files 1-2SCII flat file

cube 1-33

aracteristicbase 3-27hierarchy 3navigationa

aracteristicsmapping 4-

oreautomatic edefinition 1

hore Setup Wlient 4-7nnection parSAP 4-6

nnection striMSAS 2-4TM1 2-4

nsolidations

nnection Parameters 4-7

1-10

-27l attributes 3-28

4-2212

xecution 1-72-5, 1-71izard 1-74

ameters

ng

cube view 1-56dimension subset 1-66mapping 1-28multiple 1-29ODBC 1-46

conventions 1-xidocumentation 1-xi

cubeASCII flat file 1-33creating 1-33data source 1-33mapping 1-26, 1-35variables 1-34

cube viewconsolidations 1-56data source 1-48, 1-50dimension 1-56executing process 1-56mapping 1-55saving 1-56saving process 1-56variables 1-54

currencyimporting from SAP 4

Page 302: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents |

2

Dda

dada

da

di

ources 1-11

processes 1-3

Applix TM1 TurboIntegrator Guide

tamapping 1-28

ta procedure 1-5, 1-6ta source 1-6cube 1-33cube view 1-48, 1-50defining 1-11dimension subset 1-58, 1-59variables 1-18

ta variablesmapping to dimension 1-37

mensionASCII flat file 1-11cube view 1-56mapping 1-26mapping consolidation variables 1-37mapping data variables 1-37mapping element variables 1-36ODBC 1-46ODBO 2-21query cubes 3-26subset consolidations 1-66subset data source 1-58, 1-59subset map 1-64, 1-65, 1-66subset variables 1-62

Eelements

importing from data sEpilog procedure 1-5, 1-6

FFilter String field 4-41fixed length records 1-15flat file 1-1functions

use in TurboIntegrator

Hhierarchies 4-25

Iimporting data

ASCII Flat File 1-10overview 1-2

InfoCube 4-8, 4-33

Kkey figures 4-18, 4-45

LLanguage 4-7license

client-side 1-10

Page 303: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents |

Index 3

Mm

m

MmMM

M

2-14

SAP 1-9, 3-10TM1 with TurboIntegrator 1-9TM1 without TurboIntegrator 1-9TurboIntegrator 1-8

apdimension subset 1-65

appingconsolidation variables to dimension 1-37consolidations 1-28cube 1-26, 1-35cube variables 1-35cube view 1-55data 1-28dimension 1-26dimension element variables 1-36ODBC 1-44variables 1-25

DX 2-26essage log 2-25etadata procedure 1-5, 1-6icrosoft Analysis Services 1-1, 2-1, 2-2connecting 2-7connection string 2-5importing a cube 2-6–2-16importing a dimension 2-17–2-24

SASconnection string 2-4

OODBC 1-2

catalog 2-3consolidations 1-46dimension 1-46mapping 1-44saving process 1-46variables 1-44

ODBC processexecuting 1-47

ODBOCatalog 2-2cube 2-10cube dimensions 2-10, Data Source 2-2data source 2-1, 2-3dimension 2-21Location 2-2, 2-3location 2-3Provider Name 2-2SAP 3-2saving cube 2-16

ODBO dimensionsaving 2-21

ODS tables 4-44exporting to 4-42

OLAP 2-1OLE DB 2-1

Page 304: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents |

4

PPapr

Pr

Qqu

s C-5

ords C-5

4-12, 4-22 4-6

to BW 4-6

3-22

Applix TM1 TurboIntegrator Guide

ssword 4-7ocessdefinition 1-4editing 1-68executing 1-32, 1-71executing cube view 1-56executing ODBC 1-47executing on demand 1-71executing query cube 3-33executing subset 1-66procedures 1-5running ODBO 2-24saving 1-31saving cube view 1-56saving ODBC 1-46saving ODBO 2-24saving query cube 3-33saving subset 1-66tips 1-7

olog procedure 1-5, 1-6

ery cubeaggregations 3-36dimensions 3-26executing 3-33importing 3-22large 3-34

reducing size 3-36saving 3-33size 3-34

query cubes 3-19query, SQL 1-42

Rrecords, fixed length 1-15relational database 1-1reserved words

implicit variable nameoverview C-1process functions C-3rule functions C-2TurboIntegrator keyw

Role Filter 4-30

SSAP 1-1, 2-2

BW 4-6characteristics 3-3, 3-8, connection parameterscurrency 4-32dimensions 3-3display names 3-5establishg a connectionhierarchies 4-13, 4-25hierarchy 3-8importing query cube

Page 305: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents |

Index 5

SASASA

SA

SAse

-28, 4-29

1

2-26–2-30

importing security 4-28info cube 3-2, 3-5key figures 4-18, 4-45limitations on importing cubes 3-9mapping characteristic attributes in TurboIntegrator 4-

13mapping characteristics in TurboIntegrator 4-12, 4-23mappping an InfoCube in TurboIntegrator 4-8, 4-33mappping an ODS table in TurboIntegrator 4-44mappping an SAP table in TurboIntegrator 4-40object hierarchy 3-4query cube 3-5query cubes 3-19RFC 4-2roles 4-30technical names 3-5terminology 3-2–3-9, 4-2–??using wildcards 4-35variable types 3-22variables 3-21, 3-30virtual cubes 3-9P Logon 3-3P ODBO Provider 3-3P securityimporting 4-29P tableimporting 4-40P tables 4-40

curity

importing from SAP 4SQL query 1-42STET 1-7subset map

dimension 1-66executing 1-66saving 1-66

System 4-7

TTable Name field 4-41TM1 1-1

connection string 2-4cube 1-1message log 2-25

TM1 Message Log 2-25TurboIntegrator 1-1, 1-3

executing a process 1-7functions 1-3importing data 1-4importing from MDX ODBC 1-39process 1-6reserved words C-1tutorial A-1

tutorialcreating a process A-4data directory A-2overview A-2

Page 306: Applix TM1 TurboIntegrator Guidepublic.dhe.ibm.com/software/data/cognos/... · | Index iii Chapter 2 Importing Data from MSAS OLE DB for OLAP Data Sources . . . . . . . . . . . .

Table of Contents |

6

UUU

UU

Vva

vi

WWww

Applix TM1 TurboIntegrator Guide

NC 1-12niversal Naming Convention

data source 1-12ser 4-7serName Filter 4-31

riablescube 1-34cube view 1-54data source 1-18default names 1-19dimension subset 1-62map cube 1-35mapping 1-25mapping consolidation to dimension 1-37mapping to dimension 1-36ODBC 1-44SAP 3-21

rtual cubes 3-9

HERE clause 4-41ildcards 4-35orksheet 1-1


Recommended