SAP Press - SAP NetWeaver BI 7.0 Migration Guide

179

description

etret

Transcript of SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Page 1: SAP Press - SAP NetWeaver BI 7.0 Migration Guide
Page 2: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Daniel Knapp

SAP® NetWeaver BI 7.0 Migration Guide

Bonn � Boston

228_Book.indb 3 7/31/08 9:53:30 AM

Page 3: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

ISBN 978·1·59229·228·8

C> 2009 by Gali leo Press Inc., Boston (MA)

1st Edition 2009

German Edition first published 2008 by Galileo Press, Bonn, Germany.

Galileo Press is named after the Italian physicist, mathematician and philosopher Gali leo

Galilei (1564-1642). He is known as one of the founders of modern science and an advo·

cate of our contemporary, heliocentric worldview. His words Eppur si muove (And yet i t moves) have become legendary. The Galileo Press logo depicts Jupiter orbi ted by the four

Galilean moons, which were discovered by Galileo in 1610.

Editor Eva Tripp

English Edition Editor Jon Franke

Translation Lemoine International, Inc., Salt Lake City, UT Copy Editor Julie McNamee

Cover Design Silke Braun

Cover Image Getty lmages/Krzysztof Dydynski

Layout Design Vera Brauner Production Kelly O'Callaghan Typesetting PulJii:. lu:::: r~· De>ign c1ruJ Prvlfucl ivu Se1vil.e:., ln ....

Printed and bound in Canada

All tights testi'Ved. Neithet this publication nor any patt of it

may be copied or reproduced In any form or by any means or translated into another languaa;e. without the prior con· sent of Galileo Ptess GmbH. Rheinwet1callee 4, 53227 8onn, Germany.

Galileo Press makes no w.uranties or representations with

re-spect to the content heteof and specifically disclaims any Implied warranties of merchantability or fitness for any par· ticular purpose. Galileo Press assumes no responsibil ity for

any ertof'S that may appear in this publiGation.

•Galileo Ptess· and the Galileo Press logo are registeted trademarlcs of Galileo Ptess GmbH. Bonn, Germany. SAP PRESS is an imprint of Galileo Press.

All of the scteenshots and graphics reproduced in this book are subject to copyright C SAP AG, Oietmar~Hopp~AIIee 16, 69190 Walldorf, Germany.

SAP, the SAP· I.ogo, mySAP, mySAP.com, mySAP Business Suite, SAP NetWeavet, SAP R/3, SAP R/2, SAP B28, SAP­tronic, SAPscript, SAPBW. SAPCRM. SAP EartyWatch, SAP Atc.hiveLink, SAP GUI, SAP Business W()lkflow, SAP Business Engineer, SAP Business Navigator, SAP Business Framework, SAP Busin~ss Information Warehouse. SAP int~r-enterpri~ solutions. SAP APO, Acceler.ltedSAP, lnterSAP. SAPoffice, SAPfind, SAPf11e, SAPtime, SAPmail. SAP .. access, SAP~EDI, R/3 Retail, Accelerated HR, Accelerated HiTcch. Accelcr~

ated Consumer Ptoducts, ASAP, A8AP/4, ALE/WE8, BAPI, Business Framework, BW Explorer, Enjoy~SAP. mySAP.com c-busincss platform. mySAP Enterprise Portals, RIVA, SAP· PH IRE, TeamSAP. Webflow und SAP PRESS are registered or unregistered trademarks of SAP AG, Walldori, Germany.

All other products mentioned in this book are registered or unregistered tr.tdemarks of their respective companiH.

Page 4: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Copyrighted Material

SAP' Essentials Expert SAP knowledge for your day-to-day work

Whether you wish to expand your SAP knowledge, deepen it, or master a use

case, SAP Essent ials provide you with targeted expert knowledge that helps sup­

port you in your day-to-day work. To the point, detailed, and ready to use.

SAP PRESS is a joint initiative of SAP and Galileo Press. The know-how offered by

SAP specialists combined with the ex pertise of the Gall leo Press publishing house

offers the reader expert books in the field. SAP PRESS features first-hand informa­

tion and expert advice, and provides useful skills for professional decision-making.

SAP PRESS offers a variety of books on technical and bus~ness related topics for

the SAP user. For further Information. please visit our website:

www.sap-press.com.

Egger, Fiechter, Kramer, Sawicki , Weber

SAP Business Intelligence (BI)

2007, 656 pp., ISBN 978-1 -59229-082-6

Galoppin, Caems

Managing Organizational Change during SAP Implementations

2007, 364 pp., ISBN 978-1 -59229-104-5

Vanstechelman, M ergaerts, Matthys

SAP NetWeaver Application Server Upgrade Guide

2007, 582 pp., ISBN 978-1 -59229-144-1

Scholer, Zink

SAP Governance. Risk and Compliance

2008, 380 pp., ISBN 978-1-59229-191-5

Copyrighted Material

Page 5: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

5

Contents

Introduction ............................................................................................... 9

1 Basic Principles of Migration ................................................... 13

1.1 What Is Migration? ..................................................................... 131.2 Maintenance Cycle of SAP Software ............................................ 141.3 Using New Functions .................................................................. 151.4 How Long Does the Migration Process Take? .............................. 171.5 Version Names ............................................................................ 18

2 Technical Migration .................................................................. 21

2.1 Migrating the System Landscape ................................................. 212.1.1 Sandbox System ............................................................... 212.1.2 Emergency Transport Track ............................................... 222.1.3 “Frozen Zone” Variant ...................................................... 242.1.4 Conclusion and Recommendation ..................................... 25

2.2 Migrating Individual Systems ...................................................... 252.2.1 Basic Principles ................................................................. 262.2.2 Planning and Preparation .................................................. 272.2.3 Preparing and Upgrading the System ................................ 312.2.4 Post-Processing the Migration .......................................... 322.2.5 Using SAP GUI .................................................................. 34

2.3 Summary .................................................................................... 35

3 Concept (Functional) Migration ............................................... 37

3.1 Introduction to Concept Migration ............................................. 373.1.1 Data Flow Concept ........................................................... 383.1.2 Authorization Concept ..................................................... 393.1.3 Reporting ......................................................................... 40

3.2 Basic Principles and Flow of the Concept Migration .................... 413.2.1 Migration Sequence ......................................................... 41

228_Book.indb 5 7/31/08 9:53:30 AM

Page 6: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6

Contents

3.2.2 Migration Principle ........................................................... 423.3 Summary .................................................................................... 44

4 Migrating the Data Flow .......................................................... 47

4.1 Data Flow Concepts .................................................................... 474.1.1 3.x Data Flow Concept ..................................................... 494.1.2 7.0 Data Flow Concept ..................................................... 524.1.3 Differences Between the Two Concepts ............................ 56

4.2 Concept Migration Model ........................................................... 584.2.1 Old Data Flow Objects ..................................................... 594.2.2 Data Flow Migration Concept ........................................... 59

4.3 Simple Migration Example .......................................................... 614.3.1 Migrating the Update Rule and the InfoSource 3.x ........... 614.3.2 Migrating the Transfer Rule ............................................... 654.3.3 Migrating the DataSource 3.x ........................................... 694.3.4 Conclusion ....................................................................... 71

4.4 Complex Migration Example ....................................................... 724.4.1 Introducing the Example ................................................... 724.4.2 Start Routine .................................................................... 764.4.3 Migration ......................................................................... 794.4.4 Conclusion ....................................................................... 83

4.5 Recommendations for the Migration Project ............................... 834.5.1 Cost Considerations .......................................................... 834.5.2 Recommendation ............................................................. 85

4.6 Summary .................................................................................... 85

5 Migrating Authorizations ......................................................... 87

5.1 Authorization Concepts .............................................................. 875.1.1 Setting Up Analysis Authorizations ................................... 895.1.2 Assigning the Authorization .............................................. 945.1.3 Comparing the Authorization Concepts ........................... 94

5.2 Principle of Migrating Authorizations .......................................... 955.3 Sample Migration ....................................................................... 99

5.3.1 Authorizations in SAP BW ................................................ 995.3.2 Migrating the Authorization ............................................. 1015.3.3 Other Assignment Methods .............................................. 105

228_Book.indb 6 7/31/08 9:53:30 AM

Page 7: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

7

Contents

5.4 Recommendations for a Migration Project .................................. 1065.5 Summary .................................................................................... 106

6 Migration in Reporting ............................................................. 109

6.1 Functional Design in Reporting ................................................... 1096.1.1 The Query as a Fundamental Concept ............................... 1096.1.2 BEx Query Designer .......................................................... 1126.1.3 BEx Web Application Designer ......................................... 115

6.2 The Principle of Migration in Reporting ...................................... 1176.2.1 Migrating Queries ............................................................ 1186.2.2 Migrating Query Views ..................................................... 1196.2.3 Migrating Web Templates ................................................. 1196.2.4 Special Considerations When Migrating Web Templates ... 120

6.3 Sample Migration of a Query ...................................................... 1216.3.1 Application Description .................................................... 1216.3.2 Migrating the Query ......................................................... 1246.3.3 Conclusion ....................................................................... 126

6.4 Sample Migration of a Web Template ......................................... 1266.4.1 Description of the 3.5 Web Template ............................... 1276.4.2 Migrating the Web Templates ........................................... 1346.4.3 Correcting SAP_BW_TEXT Commands .............................. 1426.4.4 Correcting the JavaScript Statements ................................ 1436.4.5 Creating a JavaScript-Statement with the Wizard .............. 1456.4.6 Creating and Editing a LINK_ITEM Web Item ................... 1466.4.7 Calling the Web Template for the First Time ..................... 1496.4.8 Initial Conclusions ............................................................ 1506.4.9 Optical Migration ............................................................. 1506.4.10 Conclusion ....................................................................... 151

6.5 Special Considerations When Performing a Migration ................. 1526.5.1 Table Interface .................................................................. 1526.5.2 Using JavaScript ................................................................ 1536.5.3 Using SAP BW Commands ................................................ 154

6.6 Recommendations for Your Migration Project ............................. 1556.6.1 Recommendations ............................................................ 1556.6.2 Cost Estimation ................................................................ 157

6.7 Summary .................................................................................... 159

228_Book.indb 7 7/31/08 9:53:30 AM

Page 8: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

8

Contents

Appendices ..................................................................................... 161

A Bibliography ......................................................................................... 163B List of Acronyms .................................................................................. 165C Glossary ............................................................................................... 167D Translation of Web Items ...................................................................... 171E Author ................................................................................................. 173

Index ......................................................................................................... 175

228_Book.indb 8 7/31/08 9:53:30 AM

Page 9: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Introduction

The term "migration," which derives from the Latin migratio (to ramble or hike), describes a simple concept. However, many companies associate a time-consuming and complex process with it. Usually, companies are faced with the topic of migra­tion when new software releases are available or the maintenance period of the product that's currently being used expires. With rega rd to the data warehousing solution, the latest version of SAP NetWeaver 7.0 Business Intelligence (Bl) has been available for two years now; however, approximately 70% of all companies us ing SAP NetWeaver Bl still use one of its predecessors, such as SAP Business Warehouse (BW) 3.x.

One of the many reasons for this may be rooted in an aversion to using new ver­sions that might contain bugs or malfunctions. A similar behavior can be found in the automotive industry: Yo u usually don't buy a new car immediately after it has been introduced to the market. What is even more important is the IT maxim never to touch a running system. This principle indicates that IT systems that work well should not be replaced by other systems whose proper functionality is still uncertain. Not only does this principle apply to complex system landscapes but it also holds true for the operating system of your work center, for example. Would you format the hard disk of your machine and install a new operating system when the old one runs without any problem?

A migration to SAP NetWeaver Bl d iffers from the migration of other systems in several aspects. For example, SAP Net Weaver BI still supports all concepts of SAP BW 3.x, which means you don't need to customize anything. After migrating to SAP NetWeaver BI, you can decide whether you want to customize the system according to the newly ava ilable functions, and if so, you can de termine when and in what order you want to proceed. The concept migration, that is, the use of new concepts and options, can be carried out in separate s teps; a "big bang" implementation isn't necessary.

This book will describe the complete migration from SAP BW 3.x to SAP Net Weaver BI to help you overcome any skepticism related to this migration task. The book starts with a general overview of the topic of migration, followed by a comprehen-

9

Page 10: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Introduction

sive description of the technical and the concept migration of SAP NetWeaver Bl. After that, the individual areas of a concept migration are covered in greater detail, such as the migration of authorizations and data Rows as well as the migration in the context of web reporting. These chapters contain useful real-life examples and cost estimates.

Contents of This Book

To carry out a migration from SAP BW 3.x to SAP NetWeaver BI, you must under­stand the different concepts of these two releases so that you can migrate them from the legacy system to the new one later. For this reason, each of these con­cepts is described in great detail, which makes the book attractive even for begin­ners with a basic knowledge of da ta warehousing solutions as well as the terminol­ogy used in this context. However, even the technically savvy users among you should read the introductory Sections 4.1 , Data Flow Concepts; 5.1, Authorization Concepts; and 6.1, Concepts Used in Reporting. because performing the migra­tion project requires profound knowledge of the differences between individual concepts.

The book has been written in such a way that you don't have to read it from cover to cover; you can pick those chapters that interest you most. If you don't have any knowledge of migration in general, start with Chapter 3, Concept Migration. To migrate individual areas, you can read the respective chapters only. However, even if you do have sufficie nt knowledge related to migration, you should read Chapter 3 because it describes the various aspects related to migrating concepts to SAP NetWeaver Bl. If you need further information about the technical aspects of a migration, read Chapter 2, Technical M igration.

The book is structured as follows:

.,. Chapter 1: Basic Principles of Migration Chapter 1 describes the basic principles of a migration process, including what migration means and why it's necessary. In addition, you 'll get an overview of the maintenance cycles for SAP software and of the new functions provided by SAP NetWeaver Bl. The chapter ends with a brief outline of potential costs and a summary of the different version names of the SAP data warehousing solution.

" Chapter 2: Technical Migration

10

Chapter 2 introduces the technical aspects of a migration project as well as its procedures. The chapter describes the objects involved in a technical migra tion

Page 11: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Introduction

and the concepts and methods based on which the migration proj ects are car­ried out in real life.

I> Chapter 3: Concept Migration The concept migration deals with readjusting concepts from legacy systems. The chapter begins with a description of the concepts available in SAP NetWeaver BI and their objects. After that, the chapter describes the basic principles and processes of the concept migration of these objects. which have been estab­lished in practice.

I> Chapter 4: Migrating the Data Flow Chapter 4 provides details on migrating the data flow. In this context, it's important for you to understand the data flow concepts of SAP BW and SAP NetWeaver Bl, which are described in detail at the beginning of the chapter. The chapter then continues with a description of the migration concept, that is, how objects of the old data flow are migrated into the new one. After describ­ing the migration concept, we walk through a simple and a complex migration project to show you the possible pitfalls. Chapter 4 ends with real-life observa­tions and a cost estimate.

I> Chapter 5: Migrating Authorizations Chapter 5 provides a detailed description of how to migrate the authorization concept. Similar to Chapter 4, this chapter first describes the two authoriza­tion concepts: the legacy system and the new system. After that, the chapter describes the method recommended by SAP for migrating authorizations on the basis of an example. This chapter also closes with real-life observations and an estimate of the costs involved.

1> Chapter 6: Migration in Reporting Migration in the context of web reporting, that is, the migration of queries and reports, is usually a very complex task. Similar to the two preceding chap­ters, the different concepts used in reporting are introduced at the beginning of Chapter 6, with a special focus on the differences. In reporting, migration projects consist of automatic and manual migration tasks, which are described in greater detail in the course of this chapter. After that, you'll see a query and a web template migrated in a sample project. Because some important web reporting concepts have been eliminated. these aspects are described in great de tail along with some recommendations as to how you should proceed in this context. The chapter ends with a reference to real-life scenarios and an estimate of the costs involved.

11

Page 12: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Introduction

.. Appendix The Appendices contain useful references to the literature used in th is book as well as further reading, a list of abbreviations used, a glossary contain ing the most important terms from SAP BW and SAP NetWeaver BI, and a comparison of old and new web items available in BEx Web Application Designer.

Target Groups

If you're a part of any of the following groups, the information on migration in this book will be very helpful:

.. Developers who work in the business intelligence environment and are currently challenged with a migration from SAP BW 3.5 to SAP NetWeaver BI will find va luable information, recommended actions, and comprehensive examples to support thei r migration tasks.

.. Consultants who work in the area of business intelligence and have to carry out migration projects from SAP BW 3.5 to SAP NetWeaver Bl for customers will find usefu l practical tips and learn how to have a successful migration .

.. Administrators and SAP Basis consultants who carry out the technical migration and attend the concept migration will obtain an overview of the tasks to be car­ried out as well as a collection of SAP Notes that leads to the successful migra­tion of legacy systems.

.. Users with a general interest in the topic of migration, students, and other users requiring comprehensive information about the concepts available in SAP BW 3.5 or SAP NetWeaver BI will find detailed descriptions of both old and new concepts in Section 4.1, Data Flow Concepts ; Section 5.1 , Authorization Con­cepts; and Section 6.1 , Concepts Used in Reporting.

12

Page 13: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

13

Basic Principles of Migration1

Migration is a recurring issue in companies. Depending on the size of an enter-prise and the different kinds of software it uses, software systems may need to be migrated once every three to six years, but no later than when the maintenance cycle for the legacy software expires.

What Is Migration?1.1

In general, migration describes the replacement of a considerable portion of the software, hardware, or data that’s being used. This does not refer to the act of patching software because patching doesn’t alter the technical basis — usually SAP NetWeaver in the area of SAP software — in any way. During a migration process, however, the technical basis is replaced entirely. This also differentiates a migration project from an upgrade project, which merely improves the basis by promoting it to a later release status.

Example

The switchover from SAP NetWeaver 2004 to SAP NetWeaver 7.0 represents a migra-tion. However, increasing the patch level within SAP NetWeaver, for instance, from Support Package Stack 03 (SPS) to SPS 04, is not a migration. This process is referred to as “patching” the SAP system.

A migration process consists of two different parts: the technical migration and the concept migration.

TechnicalEE migration During a technical migration, the technical platform is replaced by a newer version. Ultimately, the technical migration “merely” consists of installing the migration package (see Chapter 2, Technical Migration).

Concept migrationEE The concept migration is carried out after the technical migration and includes the replacement of existing concepts and processes. New releases contain new functions that can only be used if specific requirements are met. Therefore, the

228_Book.indb 13 7/31/08 9:53:31 AM

Page 14: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

14

Basic Principles of Migration1

concept migration implements the new concepts and processes to meet the requirements for operating the new release and to make sure the new functions can be used (see Chapter 3, Concept Migration).

Usually, old concepts continue to be provided in a new release, but they are marked as being obsolete and are often entirely eliminated in subsequent releases. Old concepts are preserved only for reasons of compatibility and should be replaced by new ones.

Example

A technical migration involves, for example, the replacement of the SAP NetWeaver 2004 platform by SAP NetWeaver 7.0.

The concept migration in SAP NetWeaver BI implements, for example, the new data flow or replaces the old authorization concept with the new one.

There are two main reasons why you should perform a migration:

The warranty period for your legacy system expires.EE

You want to use functions of the new system that aren’t available in the old EE

system.

The following two sections describe these reasons in greater detail.

Maintenance Cycle1.2 of SAP Software

The warranty on SAP systems is subject to a firmly defined cycle, as shown in Figure 1.1.

Mainstream Maintenance(Standard Support Fee)

ExtendedMaintenance(+2% Fee)

ExtendedMaintenance(+4% Fee)

Customer-SpecificMaintenance(Standard Support Fee)

5 Years 1 Year 2 Years

RestrictedShipment Unrestricted Shipment

Maintenance Phases for SAP Software (Source: SAP AG)Figure1.1

228_Book.indb 14 7/31/08 9:53:31 AM

Page 15: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

15

Using New Functions 1.3

The warranty cycle is divided into two phases: mainstream maintenance and cus-tomer-specific maintenance.

MainstreamEE maintenance The mainstream maintenance period for SAP products expires after five years; customers who do not conclude any specific follow-up contract with SAP have no additional warranty claim for the software after the expiration date. This five-year period is covered by the regular SAP support contract.

Customer-specificEE maintenance The additional customer-specific maintenance phase can last up to three years. The first year includes an extra charge of 2%, whereas the second and third years require an extra charge of 4% each on top of the support contract.

Consequently, the maximum duration of the warranty period for an SAP product can be eight years. After that, you must replace the system with a new version; that is, you must migrate the legacy system, provided you want to continue the maintenance cycle. The migration process upgrades the technical basis to the new-est version. After this has been done, you can again wait for another eight years until the next migration becomes due.

Using New Functions1.3

The second reason for a migration project is the requirement to use new functions that are only available in the new release. Especially in the business intelligence area, numerous new functions have been developed recently, which make a migra-tion necessary. The following list describes some of those functions:

BExEE Report Designer The SAP Business Explorer Suite was complemented by the Report Designer. The Report Designer enables you to design reports with specific output for-mats, such as A4. You can also export these reports in PDF format or use them as the default print output.

RemodelingEE Toolbox The Remodeling Toolbox enables you to customize InfoCubes in SAP NetWeaver BI even if the InfoCube contains data.

228_Book.indb 15 7/31/08 9:53:31 AM

Page 16: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

16

Basic Principles of Migration1

Data flow conceptEE The data flow concept of SAP BW 3.5 has been completely revised (see Section 4.1, Data Flow Concepts). Thus, InfoSources have become optional objects; update and transfer rules have been combined into transformations; and the data transfer process has been redeveloped to provide an improved error-han-dling functionality.

Real-timeEE data acquisition The new real-time data acquisition concept extracts data from source systems in real time. This technique enables you to transfer and update data with little time delay from the source system (as soon as the data is available there) to the SAP NetWeaver BI system.

SAPEE NetWeaver Portal The SAP NetWeaver Portal is a new component, the use of which is mandatory for operating the BI system. SAP NetWeaver BI cannot run if you don’t operate an SAP NetWeaver Portal (provided you want to use new functions). This new concept has moved many components, such as the BI Administration Cockpit and Information Broadcasting, into the portal.

Authorization conceptEE The authorization concept has been completely revised and designed to pro-cess more details. It now allows you to use authorizations for key figures and characteristic values (for more information on authorizations, see Chapter 5, Migrating Authorizations).

Drag and dropEE The drag and drop functionality has been established in web applications. You can now modify filters and drilldowns within web applications by using drag and drop.

BI-integrated planningEE The planning functionality in SAP NetWeaver BI has been completely revised. For example, the SEM-BPS component (Business Planning and Simulation) has been replaced by so-called ready-for-input queries.

You cannot use these functions of the new release until you have carried out a concept migration successfully.

The concept migration, in turn, consists of several different parts that must be processed either simultaneously or in a certain sequence. In the context of SAP NetWeaver BI, the following three tasks are relevant:

228_Book.indb 16 7/31/08 9:53:31 AM

Page 17: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

17

How Long Does the Migration Process Take? 1.4

Adapting the authorization conceptEE

Changing the data flowEE

Redesigning the web reporting functionEE

As you will see in Chapter 3, Concept Migration, you don’t need to stick to this order when carrying out the concept migration.

How Long Does the Migration Process Take?1.4

A migration process should be planned carefully and on time because it cannot be completed within a couple of days. For one thing, in addition to the pure software migration, you may also need to carry out a hardware migration if the minimum hardware requirements of the new release are higher or if the legacy system did not live up to your expectations. Also, a lot of things have changed in-between the different SAP software releases, which caused other interdependen-cies to occur between SAP components and which require comprehensive testing after the migration process has completed. This is the case in SAP NetWeaver 7.0, for example, because the SAP NetWeaver Portal has become an integral part of the software.

Depending on the products you use, the technical migration may take one to three months, whereas the concept migration can take three to 12 months, if you have to load many modules from SAP ERP 6.0 into the SAP NetWeaver BI system, for example.

With regard to the migration from SAP BW 3.5 to SAP NetWeaver BI, which is the focus of this book, the technical migration takes approximately one or two months, whereas the concept migration can take one to six months, depending on the size of the data warehouse and the number of functions used. Additional time and work may be needed if you want to implement new functions.

One of the essential benefits of migrating to SAP NetWeaver BI is that you do not have to carry out the migration process as one “big bang.” This means that you don’t need to implement all parts of the concept migration in a single step. Instead, you can implement individual areas separately. For example, you can change the data flow first, then put it into live operation, and continue with adjust-ing the authorizations afterwards.

228_Book.indb 17 7/31/08 9:53:31 AM

Page 18: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

18

Basic Principles of Migration1

Note that a migration from SAP BW 3.5 to SAP NetWeaver BI may also consist of the technical migration only; that is, you could replace the SAP NetWeaver plat-form and continue to use the old concepts. However, this is not really advisable for the following two reasons:

You cannot use any new functions. New functions will not be released until you EE

have migrated at least one subarea.

You merely postpone the concept migration into the future because subsequent EE

releases will most likely no longer support old concepts.

Tip

You should perform the concept migration in any case, but don’t migrate all compo-nents at the same time, and take your time when carrying out the migration process. Chapter 3, Concept Migration, explains in detail the sequence you should follow.

Version Names1.5

SAP BW is still often used to refer to the SAP data warehouse solution. Strictly speaking, however, SAP BW only refers to one version (see Figure 1.2).

SAP NetWeaver2004

SAP NetWeaverVersion

Name ofData Warehouse

Time

SAP NetWeaver2004s

SAP NetWeaver7.0

SAP BW 3.5 SAP BI

April2006

July2007

SAP NetWeaver BI

Version NamesFigure1.2 of SAP NetWeaver and the SAP Data Warehouse Solution

Earlier generations of the SAP Data Warehouse up to and including Version 3.5 were called SAP Business Information Warehouse (SAP BW). With the introduction of the new SAP NetWeaver 7.0, which was initially released as SAP NetWeaver 2004s, the name was first changed to SAP Business Intelligence (SAP BI). Around July 2007, SAP changed it again to SAP NetWeaver BI (BW 7.0).

228_Book.indb 18 7/31/08 9:53:32 AM

Page 19: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

19

Version Names 1.5

SAP NetWeaver BI is the short form for SAP NetWeaver 7.0 Business Intelligence.

Note

In the following chapters, SAP BW is used for releases up to and including SAP BW 3.5, whereas SAP NetWeaver BI refers to the new release from SAP NetWeaver 7.0.

228_Book.indb 19 7/31/08 9:53:32 AM

Page 20: SAP Press - SAP NetWeaver BI 7.0 Migration Guide
Page 21: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

21

Technical Migration2

This chapter focuses on the technical migration of your system landscape. For bet-ter readability and to keep the text concise, the term “migration” is used to refer to technical migration in this chapter, unless otherwise noted.

The word “migration” always involves the migration of the entire system landscape. For this reason, the chapter is divided into the following two main sections:

MigratingEE the System Landscape The migration of your system landscape is based on a classical pattern, which is described in the first section.

MigratingEE Individual Systems Having discussed the basic principles of migrating the system landscape, this section describes how you can migrate individual systems.

Migrating the System Landscape2.1

As mentioned previously, the migration of a system landscape follows a classical pattern as described in this section. In fact, this general pattern can be used for SAP BW system landscapes as well as any other SAP system landscape.

A technical migration project is a very complex task that — once completed — cannot be easily undone. As a rule, the migration will take you approximately one week per SAP BW system in your system landscape. By adding the time needed for designing and testing, you should take into account a total duration of up to two months. Non-BW systems, such as SAP ERP systems, typically require even more time (up to six months).

Sandbox System2.1.1

It makes sense to use an example to “practice” the migration project. This is par-ticularly useful for the concept migration that will follow. This sandbox system rep-resents the first system to be migrated; it is not part of your system landscape. The

228_Book.indb 21 7/31/08 9:53:32 AM

Page 22: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

22

Technical Migration2

system should be set up on a separate server to test the migration process. Usually, the sandbox system is a copy of your live system; however, some customers use the quality assurance system as a basis (see Figure 2.1).

Names of Systems Within the System Landscape

Due to the many different names that are used within your system landscape, we’ll use the following naming convention for the systems in a three-system landscape:

Development system EE The first system is the one on which you carry out development tasks.

Quality assurance system (QA system) or test sytem EE The second system is used for testing purposes.

Production system or live system EE The third system is used for production purposes.

D01ExistingSystem Landscape Q01 P01

S01System Copy and Migration

Creating a Sandbox System as a Copy of the Production SystemFigure2.1

In Figure 2.1, D01 represents the development system, Q01 the QA system, and P01 the production system. S01 stands for the new sandbox system.

Sandbox system S01 is identical to production system P01, which is the first sys-tem to be migrated after the copy process. This migration process will be described in greater detail in Section 2.2, Migrating Individual Systems. After the technical migration has completed successfully, the system will be released for consultants and developers in your enterprise to start “practicing” the concept migration.

Emergency Transport Track2.1.2

To avoid a complete standstill of the development work in your system landscape, it is useful to create an emergency transport track, that is, to set up two additional

228_Book.indb 22 7/31/08 9:53:32 AM

Page 23: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

23

Migrating the System Landscape 2.1

systems that you can use for development purposes while the actual system land-scape is being migrated. Figure 2.2 illustrates this variant.

D01ExistingSystem Landscape Q01 P01

S01System Copy and Migration

D01‘ Q01‘Emergency TransportTrack

Copy Copy

Migration via an Emergency Transport TrackFigure2.2

Systems D01’ and Q01’ are exact copies of the original systems, D01 and Q01, and are excluded from the migration process. These systems are used for development purposes and will be removed after the migration process is finished. As soon as the system copies have been created, you can start migrating the existing system landscape (see Figure 2.3).

D01ExistingSystem Landscape Q01 P01

S01System Copy and Migration

D01‘ Q01‘Emergency TransportTrack

Migrating the System LandscapeFigure2.3

228_Book.indb 23 7/31/08 9:53:33 AM

Page 24: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

24

Technical Migration2

As shown in Figure 2.3, the transport route from Q01 to P01 is temporarily discon-nected because transports from systems with a higher SAP Basis release to systems with a lower SAP Basis release should not be carried out. This is usually not pos-sible anyway. The differences between the two systems are too big for a transport to work. At this point, the emergency transport track comes into play, which you can use to continue developing as before.

At this stage, the D01 and Q01 systems have already been migrated, whereas pro-duction system P01 and the systems of the emergency transport track, D01’ and Q01’, are still located on the old release. The production system won’t be migrated until the D01 and Q01 systems, as well as the transport route in-between the two, have been tested successfully (see Figure 2.4).

D01ExistingSystem Landscape Q01 P01

System Landscape After Successful MigrationFigure2.4

To do that, you must first remove the transport route of the emergency transport track and reconnect the old system landscape — now on the new release (e.g., SAP NetWeaver BI) — with the production system. After that, the D01’ and Q01’ systems, as well as the sandbox system, S01, should be removed. Some companies continue to use the sandbox system for a while, depending on whether additional tests are supposed to be carried out.

What follows next is the comprehensive post-migration maintenance work men-tioned at the beginning, which is caused by the emergency transport track. During the migration process, the entire development work was carried out on the sur-rogate systems, D01’ and Q01’, but not on the systems of your system landscape, D01 and Q01. Consequently, production system P01 has a newer status than D01 and Q01; that is, the versioning within your system landscape is incorrect. There-fore, it is mandatory to apply all changes that were made on D01’ and Q01’ to the D01 and Q01 systems as well, which can be a very complex endeavor, depending on the number of developments made.

“Frozen Zone” Variant2.1.3

Sometimes, customers decide against the emergency transport track because it is time-consuming and requires new hardware. The third argument against it

228_Book.indb 24 7/31/08 9:53:33 AM

Page 25: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

25

Migrating Individual Systems 2.2

is the increased maintenance work during and after the migration process. For this reason, you can also use a different variant, the so-called frozen zone. As the name suggests, in a frozen zone, the systems of the system landscape are locked during the migration process. During the course of the migration, you must not carry out any development work or transports within your system landscape. The advantage of this is that no additional systems and servers are needed; however, no development work can take place for the duration of the migration process.

Conclusion and Recommendation2.1.4

Your decision as to which variant you want to use should be based on the specific situation. If you cannot halt all of your development tasks, you should opt for the emergency transport track. Especially in large enterprises, it’s then essential to order the required new hardware as early as possible because the ordering process usually involves many approval steps.

However, if it isn’t a problem in your company to stop all development work entirely for a period of three to four weeks, then you should declare the three systems a frozen zone and forbid all developments. This is by all means the most cost-efficient and least work-intensive way.

Excursus: Migration to SAP ERP 6.0

In migrations from SAP ERP systems, such as SAP R/3 4.6C, to the new Release SAP ERP 6.0, the technical migration takes several months. In that case, you should always use the emergency transport track variant because a development standstill for such a long period of time is impossible.

Migrating Individual Systems2.2

Let’s now consider the migration of an individual system from your system land-scape. You must carry out this procedure for each system in your system landscape to upgrade your system landscape to the new release SAP NetWeaver BI.

228_Book.indb 25 7/31/08 9:53:33 AM

Page 26: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

26

Technical Migration2

Basic Principles2.2.1

Usually, the SAP Basis department in your company carries out the technical migra-tion of each individual system. The process consists of several steps recommended by SAP. SAP provides an Upgrade Master Guide for each new release that describes the process of the technical migration. This chapter describes the principle steps, which are always up-to-date. Refer to the Master Guide for individual reports and tips.

Upgrade Master Guide

The Master Guide is available in the SAP Service Marketplace under the /instguides quicklink. To get there, visit https://service.sap.com/instguides, and navigate through the menu on the left. Then choose Installation & Upgrade Guides • SAP NetWeaver • SAP NetWeaver 7.0 (2004s) • Upgrade. Then, a reference to the Upgrade Master Guide displays in the Planning section.

The Upgrade Master Guide contains all of the steps required for the migration. The migration of individual systems is based on the following procedure:

Planning the migration and performing prechecksEE to check whether all require-ments for a migration are met

Preparing the technical migration (PreparationEE )

Performing the technical migration (UpgradeEE )

Post-processing the technical migration (Post ActivitiesEE ), which also serves to prepare the concept migration

The contents of the individual phases are clearly defined and should be strictly adhered to. Each phase of the migration contains a comprehensive list of SAP Notes from the SAP Service Marketplace that can be used for troubleshooting, cor-recting errors, or retrieving information. The SAP Notes are a useful complement to the Upgrade Master Guide.

Recommendation

You should strictly adhere to the migration processes defined by SAP by following the Upgrade Master Guide. If necessary, consult with external specialists to obtain expert support.

228_Book.indb 26 7/31/08 9:53:33 AM

Page 27: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

27

Migrating Individual Systems 2.2

Planning and Preparation2.2.2

The migration project begins with planning, where you work out the steps you’ll have to carry out. As described in Chapter 1, Basic Principles of Migration, SAP NetWeaver 7.0 requires the operation of an SAP NetWeaver Portal (provided you want to use new functions in reporting). Apart from that, you must migrate several other objects as listed here:

Upgrade the database of your SAP BW system.EE

Upgrade the Application Server ABAP to SAP NetWeaver 7.0.EE

Install/upgrade an Application Server Java with usage type “BI Java” and “EP” EE

(Enterprise Portal).

Activate the BEx WebEE environment to operate the SAP Business Explorer Suite.

Activate (optional) the technical content and monitoring tools, such as the BI EE

Administration Cockpit.

As mentioned, SAP provides a long list of SAP Notes on the topic of migration for each phase. The complete lists are contained in the Upgrade Master Guide, sorted by subject matter.

After you know which tasks you’ll need to perform during the migration phase, you can start preparing the migration:

Transport systemEE and users Prior to starting the migration process, you should either release and transport or delete all open transport requests. After that, you should forbid the creation of transport requests for the duration of the migration process and prevent all non-SAP Basis users that are directly involved in the migration (developers, administrators, etc.) from logging in to the system.

Background processesEE Furthermore, you must stop all background processes during the migration phase because they could hamper the process. You can delete or deallocate background processes using Report RSBTCDEL2 (see Figure 2.5). See also, SAP Note 784969 on this topic.

228_Book.indb 27 7/31/08 9:53:33 AM

Page 28: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

28

Technical Migration2

Deleting Background Jobs via Report RSBTCDEL2Figure2.5

Repairing InfoObjectsEE To avoid a loss of data during the migration process, you should activate and check all InfoObjects. To do that, start Transaction RSD1, and select all InfoOb-jects. Then activate all InfoObjects that are not highlighted in green. Moreover, all other objects such as InfoCubes and so on should be active as well. For this purpose, you can use the RSUPGRCHECK report (see Figure 2.6), which checks your BW system for active and inactive versions. See also SAP Note 1032367 on this topic.

Comprehensive Upgrade ChecFigure2.6 k of the SAP BW System

228_Book.indb 28 7/31/08 9:53:34 AM

Page 29: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

29

Migrating Individual Systems 2.2

Consistency of master dataEE Prior to upgrading to SAP NetWeaver BI, you should check your master data for consistency by using Report RSDMD_CHECKPRG_ALL (see Figure 2.7). How-ever, note that you should always select subsets of your InfoObjects to avoid long runtimes and potential aborts.

Report RSDMD_CHECKPRG_ALL for Checking Master Data ConsistencyFigure2.7

Additional consistency checksEE The ANALYZE_RSZ_TABLE report enables you to carry out additional consis-tency checks for your SAP BW system. This report checks internal SAP BW tables for consistency. See also SAP Notes 792779, 966080, and 1020826 on this topic.

Activating and repairingEE ODS objects After upgrading from SAP BW 3.5 to SAP NetWeaver BI, you’ll notice that ODS objects do not exist anymore. To avoid this problem, you should make sure that all ODS objects are active before starting the migration. After that, run Report RSDG_ODSO_ACTIVATE (see Figure 2.8), and read SAP Note 861890.

228_Book.indb 29 7/31/08 9:53:35 AM

Page 30: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

30

Technical Migration2

Repairing and Activating ODS Objects (Report RSDG_ODSO_ACTIVATE)Figure2.8

After you have completed all preparatory work, you can start the migration pro-cess. For this purpose, you should download the necessary software from the SAP Service Marketplace .

Database and transport systemEE Download database release needed for SAP NetWeaver BI. You can fi nd it in the SAP Service Marketplace under /patches. You should also download the latest transport fi les, which are located in the same directory.

SAPEE GUI To use all functions after the upgrade, you need a new SAP GUI . You need at least SAP GUI 6.40 Compilation 5 as well as .NET Framework 1.1 to con-tinue your daily work. The .NET Framework is required to activate the SAP NetWeaver BI component in SAP GUI, which contains the new SAP Business Explorer Suite (for more information on SAP GUI and the required versions, see Section 2.2.5, Using SAP GUI).

SupportEE packages Download the currently available support packages for SAP NetWeaver 7.0, which are also located under the /patches quicklink in the SAP Service Market-place. Experience has shown that you should never choose the latest support package. Therefore, always stay one or two release statuses below the currently available support package.

SPAM/SAINT updatesEE As a rule, you should always install the latest SPAM/SAINT updates in your SAP BW system before starting the migration process.

228_Book.indb 30 7/31/08 9:53:35 AM

Page 31: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

31

Migrating Individual Systems 2.2

Important Note

After upgrading the system to SAP NetWeaver 7.0 BI, you usually need to patch it; that is, you must install new support packages. Choose your target support package with care, and stick to the following rules:

Do not choose the latest support package availableEE .

SAP strictly recommends discontinuing the use of Support Packages 11 through 13. EE

Therefore, you should install Support Package 10 or 14.

As mentioned earlier, it’s necessary to run an SAP NetWeaver Portal. If you already have an older version of the SAP Java Engine, you can upgrade and use it (Java Engine Version 6.30 or higher); otherwise, you must install the new Java Engine 7.00. In any case, you should refer to SAP Notes 927255 and 853572.

SAP NetWeaver 7.0 also causes a change in the directory structure on your server. In this context, you should refer to SAP Note 919046, which describes how to migrate to the new structure.

When you have completed all preparatory tasks, you can start upgrading your system.

Preparing2.2.3 and Upgrading the System

The upgrade process for your SAP BW system starts by executing the PREPARE com-mand at the operating system level. This command is part of the upgrade tools available from the SAP Service Marketplace. Note that when you execute this com-mand, the system creates log files of up to 10GB. For more information on this topic, see SAP Notes 762426, 96317, and 816211.

The upgrade wizard has turned into a graphical tool that facilitates the upgrade process considerably. In the first step, you must select the administrator user on the system, who is supposed to carry out the upgrade. After that, you must specify which PI_BASIS package you want to use. SAP Notes 539977 and 557584 contain valuable tips and information about the requirements in this context.

During the course of the upgrade process, the upgrade wizard prompts you for various passwords. The passwords, also referred to as upgrade keywords, are con-tained in the Upgrade Master Guide:

Upgrade keyword for SAP Basis 7.00: 20746614EE

Upgrade keyword for SAP Basis 7.00 SR1: 24623123EE

228_Book.indb 31 7/31/08 9:53:35 AM

Page 32: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

32

Technical Migration2

Upgrade keyword for SAP Basis 7.00 SR2: 30546999EE

Upgrade keyword for SAP Business Content 7.02: 4075693EE

Upgrade keyword for SAP Business Content 7.03: 3740746EE

Upgrade keyword for SEM/Finbasis: 4735387EE

Upgrade keyword for the ST-A/PI component: Contained in SAP Note 597673EE

During the upgrade process, the wizard asks you whether you want to use new security policies and tools. Here, you should follow the instructions displayed onscreen and read the respective messages to get an overview of the entire functionality.

As is the case with initial installations of SAP systems, you can never be sure that the system won’t crash. However, numerous SAP Notes are available that provide detailed information on error messages that may occur during the upgrade pro-cess. You can find a list of these SAP Notes in the respective places in the Upgrade Master Guide.

Post-Processing2.2.4 the Migration

After the successful system migration, you must carry out some follow-up tasks to complete the process entirely. Refer to the Upgrade Master Guide for more detailed information about this topic.

SAP Load GeneratorEE You can access the SAP Load Generator via Transaction SGEN to precompile programs and transactions (see Figure 2.9). If you forget to call this transaction, the initial call of Transaction RSA1 may well take 20 to 30 minutes.

Conversion errorsEE during the upgrade Check for conversion errors in the longpost.log file that was created during the upgrade process. If you find conversion errors, you should proceed as described in SAP Note 197886.

StartingEE background processes You must restart the background processes that were stopped at the beginning of the upgrade process. To do that, run report BTCTRNS2 with user DDIC in client 000.

228_Book.indb 32 7/31/08 9:53:35 AM

Page 33: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

33

Migrating Individual Systems 2.2

SAP Load Generator, Transaction SGENFigure2.9

NewEE SAP Crypto Library Download the latest version of the SAP Crypto Library, which is located in the SAP Service Marketplace under the /tcs quicklink.

SPAM/SAINT updatesEE After the migration process is fi nished, you should install the latest SPAM/SAINT updates in your SAP NetWeaver BI system prior to installing new sup-port packages.

Furthermore, SAP recommends migrating the authorizations to the new concept (see Chapter 5, Migrating Authorizations). If you don’t want to do that, you must activate the old authorization concept after the system upgrade. By default, the system is set to the new authorization concept after the migration process (see Figure 2.10).

228_Book.indb 33 7/31/08 9:53:36 AM

Page 34: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

34

Technical Migration2

Selecting the Authorization SystemFigure2.10

You can set the authorization concept in the Implementation Guide (IMG) (Trans-action SPRO) under SAP NetWeaver • Business Intelligence • Settings for Reporting and Analysis • General Settings for Reporting and Analysis • Anal-ysis Authorizations: Select Concept.

All additional tasks to be carried out are specifi ed in the Upgrade Master Guide. On one hand, these tasks are related to the database, on the other hand, they “merely” consist of executing (approx. 25 to 30) reports. The Upgrade Master Guide always contains an up-to-date list of these reports.

Using SAP GUI2.2.5

After the migration, you must use SAP GUI 6.40 Compilation 5 or higher for the system to operate accurately. Otherwise, you can’t use the new Business Explorer Suite and basic functions in the Data Warehousing Workbench. Therefore, many customers use the new version, SAP GUI 7.10, if they need to replace SAP GUI anyway.

Although this is a viable choice, you should take into account the minimum requirements for SAP GUI 7.10, provided you use Windows XP as your client operating system:

You must use Microsoft Offi ce XP (2002) SP2 or higher.EE

To support Microsoft Offi ce XP SP2, SAP GUI 7.10 Frontend Patch 3 or higher EE

must be installed.

SAP GUI 7.10 requires .NET Framework 2.0 (in contrast to SAP GUI 6.40, which EE

requires only .NET Framework 1.1).

228_Book.indb 34 7/31/08 9:53:36 AM

Page 35: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

35

Summary 2.3

In one of our customer projects, the distribution of SAP GUI 7.10 caused a lot of problems due to the first of the preceding requirements because we hadn’t planned to install SP2 for Office XP.

On Windows Vista machines, you must always use SAP GUI 7.10 because this operating system no longer supports SAP GUI 6.40.

Summary2.3

This chapter described how to carry out a technical migration. It started with a general description of how you should migrate a system landscape. Every migra-tion process starts with a sandbox system, that is, a system that is set up for the purpose of practicing. After that, you can carry out the migration either via an emergency transport track or by creating frozen zones. Depending on the size of the system and the necessity of development work that runs in parallel to the migration process, you should determine which of the two variants meets your requirements better.

The chapter then described how to migrate an individual system. In this context, you learned about the Upgrade Master Guide as a central document that always contains the most up-to-date information.

The migration process itself consists of the following four phases:

Planning the migration, including a check of the migration requirementsEE

Preparing the technical migration (Preparation)EE

Performing the technical migration (Upgrade)EE

Post-processing the technical migration (Post Activities)EE

The planning phase is the most important one because you check whether a migra-tion is feasible. This phase is followed by the preparation and execution of the migration, both of which take place at the operating system level. After a success-ful migration, you must carry out several post-processing tasks to remove errors that may have occurred and to make the system usable.

228_Book.indb 35 7/31/08 9:53:36 AM

Page 36: SAP Press - SAP NetWeaver BI 7.0 Migration Guide
Page 37: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

3 Concept (Functional) Migration

After you have technically upgraded the SAP BW system to SAP NetWeaver Bl. you can start migrating the feature.

This chapter introduces and describes concept, or function migration as well as the work steps it involves. After that, you' ll learn about the individual areas to be migrated and get a de:ailed overview of the migration process.

Nammg Convention

In the following section, concept migration is referred to simply as the • migration," un­less otherwise noted.

3.1 Introduction to Concept Migration

Usually, the concept migration immediately follows the technical migration. Whereas the techn ical migration upgrades the system t~ch nically to the new

release SAP NetWeaver Bl. the concept migration implementS the new conceptS. or function that come with SAP Net Weaver BI:

• Data flow concept

• Authorization concept

• Reponing

Note that carrying out the concept migration is not mandatory. All features and procedures that you know from SAP BW are still supported; however, SAP does not develop them any further. Furthermore, you cannot ·Jse the new functions provided in SAP NetWeaver 81 until you have implemented the new features. Consequently, if you want to use new functions contained u1 one of the three new

features, you must perform the concept migration for the relevant area.

37

Page 38: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

3 I Concept (Functional) Migration

Reasons for Migration

You only need to carry out a concept migration if you want to use new functions in SAP NetWeaver Bl. You only need to migrate the respective area - data flow, authoriza­t ions, or reporting - from which you want to use new functions.

The following sections provide a brief description of the three areas, including the differences from the previous release.

3.1.1 Data Flow

The data flow comprises the entire ETL process (Extraction Transformation Load· ing), which extracts data from a source system, then transforms and cleanses the data, and finally updates the data into lnfoProviders.

The data flow consists of the following objects you should already know from SAP BW: DataSource, transfer rule, lnfoSource, update rule, and Info Providers, such as lnfoCubes or ODS objects.

The following areas have been completely redesigned:

"' The lnfoSource is no longer a mandatory object but optional.

"' The transfer and update rules have been combined into what is referred to as the transformation.

"' The InfoPackage is used only for requesting data from the source system. The new data transfer process (DTP) is used to update data to the data targets. The DTP contains improved and new error-handling methods.

"' The underlying ABAP programming language was replaced by its object-ori­ented variant, ABAP Objects.

In addition to these substantial changes, some other minor changes should be mentioned:

"' The modeling of lnfoCubes was made similar to that of ODS objects.

"' The ODS object was renamed to SAP NetWeaver Bl DataStore object (DSO). The functionality of the object hasn't changed at all and was complemented by a write-optimized DSO.

"' Transformations can now be modeled graphically by linking source and tar· get fields with each other via drag and drop. Moreover, transformations not

Page 39: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Introduction to Concept Migration 1 3.1

only contain a start routine but also the new end routine, and you now have the option to control transformations entirely through ABAP routines (expert routines).

~ The flow of data from a DataSource to an lnfoProvider is now directly displayed in a tree structure within the RSA 1. However, the Display Data Flow option continues to be available.

~ The Reporting Agent has been eliminated and can only be accessed via Informa­tion Broadcasting in the SAP NetWeaver Portal.

~ The persistent staging area (PSA) is now linked with the DataSource and no lon-ger with the transfer rule or the new transformation.

The migration process itself is more or less automatic and is integrated in Transac­tion RSA1 . This transaction enables you to either create new objects for each old object or migrate your old objects. However, due to the switchover from ABAP to ASAP Objects this process involves some manual post-processing work that shouldn't be underestimated.

For more information on the new and old data flow concepts as well as on the migration process, refer to Chapter 4, M igrating the Data Flow.

3.1.2 Authorizations

Authorizations are intended to protect sensitive data against unauthorized access. The reporting authorizations that you already know from SAP BW fu lfill this pur­pose, and you can use them for managing your authorizations. These reporting authorizations are based on the known SAP authorization objects.

In SAP NetWeaver Bl, the reporting authorization was replaced with analysis authorization. The main difference between these two types of authorization is that the ana lysis authorization is no longer based on authorization objects, but it represents a separate new model fo r maintaining authorizations. In general, autho­rizations continue to be controlled at a very detailed level. The following five levels are ava ilable for authorization control:

~ At InfoCube level

~ At characteristic level

~ At characteris tic value level

39

Page 40: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

3 I Concept (Functional) Migration

.,. At key figure level

.,. At hierarchy node level

The process of maintaining authorizations at hie rarchy node level is now identical to maintaining value authorizations from an analysis authorization; both processes can be controlled via the same transaction. The use ofinfoObject OTCfAUTHH for maintenance purposes has been completely done away with.

The migration process is conu·olled via ABAP Report RSEC_MIGRATION, which runs automatically. Depending on the level of complexity of your current autho­rization concept, the au tomatic migration process may require some manual post­processing.

For further information on migrating the authorization concept and a description of both concepts, see Chapter 5, Migrating Authorizations.

3.1.3 Reporting

Migrating the reporting system is by far the most complex task within the con­cept migration procedure because SAP has moved reporting entirely to the SAP Netweaver Portal. Compared to previous releases, this provides you with many addi tional options to implement your specific reporting requirements; however, note that SAP also removed some or the functions due to the shift into the SAP NetWeaver Portal.

The most fundamental changes related to the SAP NetWeaver BI reporting system include the followi ng:

.,. The move of the reporting system into the SAP NetWeaver PortaL

.,. The new SEx Report Designer as a reporting tool that enables you to design custom reports with specific output formats, such as A4 .

.,. A complete redevelopment of the Business Explorer Suite, which consis ts of the BEx Analyzer, BEx Query Designer, BEx Web Application Designer, and the SEx Report Designer .

.,. The relocation of Information Broadcasting. role menu, and ABC analysis into the SAP NetWeaver Portal. The preliminary calculation via the Reporting Agent is now also controlled through Information Broadcasting.

See Chapter 6, Migration in Reporting, for more detailed information on the reporting functions as well as the migration process.

40

Page 41: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Basic Principles and Flow of the Concept Migration 1 3.2

The following section provides a detailed description of the three areas - data flow, authorizations, and reporting - and discusses the migration principle in general.

3.2 Basic Principles and Flow of the Concept Migration

In contrast to the technical migration, the concept migra tion does not have to follow a strict sequence with regard to migrating specific areas. It's up to you to decide when you want to migrate which of the three areas - data flow, authoriza­tions, and reporting - or whether you want to do that at all.

You should migrate only the parts that you actually want to migrate. For example, if the new web reporting function is important for you, you should migrate it right at the start or even migrate only this part and nothing else. Or if you want to carry out only the technical migration to upgrade to the latest release status, you can do that without any problem. However, you should bear in mind that although SAP continues to support all old concepts, it doesn' t develop them any further. Thus, it is possible that old concepts wi ll be eliminated entirely in releases that follow SAP NetWeaver 7.0.

Therefore, you should decide on which areas you want to migrate prior to starting the whole migration project. Depending on the capacities available to you, you should then carry out the individual migration steps ei ther s imultaneously or one after the other.

3.2.1 Migrat ion Sequence

Experience has shown that it makes sense to perfo rm the concept migration in a s ingle process; however, due to the freedom you have regarding which areas of a sys tem landscape you want to migrate, companies usually take their time for the implementation. The essential advantage of this approach is that it allows you to verify, implement, and test every single concept. The implementation as a "big bang" is not necessary and by no means advisable.

In its slide collections for the technical migration (see Appendix A, Bibliography), SAP recommends migrating the authorization concept immediately after the tech· nical migration. This makes a lot of sense. The authorization system is by far the most sensitive element in an SAP NetWeaver Bl system, and it must the refore be

41

Page 42: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

3 I Concept (Functional) Migration

tested extensively. Consequently, you should start the migration project in your company by migrating the authorizations first, in collaboration with the SAP Basis department.

After you have done that, it's difficult to tell which steps should follow next. In any case, you should migrate those parts first that are most important to you. For example, if you want to make use of new rep01ts and concepts, you should start by implementing the web reporting fu nction. However, if you want to benefit from the advantages of the error-handling function in data updates, you should first migrate the data flow and thus implement data transfer processes.

Technical Migration

Concept Migration Migration of

Authorizations

/~ Migration of the Migration of the

Data Flow Reporting System

Figure 3.1 Recommended Sequence of Steps in Concept Migration

If your system capacities are sufficient, you should opt for a simultaneous migra­tion of both the data flow and the reporting system (see Figure 3.1).

3.2.2 Migration Principle

Each part of the migration process should adhere to the following princip le: none of the old objects must be overwritten or replaced; instead, all objects must first be copied and then migrated.

Page 43: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Basic Principles and Flow of the Concept Migration 1 3.2

Preserving the Old Concepts

All original objects are left unchanged during the migration process. Instead, the objects are copied and then created with new tech nical names.

Each area is migrated in a different manner:

,. Authorization concept The migration of the authorization concept starts automatically with the execu­tion of an ASAP report (RSEC_MIGRATION). In some cases. it may be necessary to carry out some post-processing work.

,. Data flow concept The new data flow concept is carried out separately for each data flow. The migration itself runs more or less automatically; however, note that activating the newly created objects requires some manual work if you have used custom routines for their implementation .

... Reporting The migration of the reporting system consists of two different parts: the com­pletely automatic and optional migration of a query, followed by the migration of a web application. The migration of the web application is initiated using a

migration tool; however, unfortunately this tool usually reaches its limits very quickly if reports become too complex. For more information on this, see Chap­ter 6, Migration in Reporting.

Authorizations are migrated using a multistep ASAP report, which you must first provide with users whose authorizations you want to migrate. Here, you must specify all users who belong to a user group. After you've done that, the migration process runs automatically based on the method you selected.

Depending on the level of complexity of your authorization concept, some manual post-processing may be necessary. Simple concepts, on the other hand, can be implemented using the ABAP report; however, you should always test these con­cepts extensively afterward.

For further information on migrating authorizations, refer to Chapter 5, Migrating Authorizations.

Data flows must always be migrated individually. Thus you can carry out the migration step by step and customize and test each transformation separately. Post-processing work becomes necessary whenever you use ASAP in start routines

43

Page 44: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

3 I Concept (Functional) Migration

or rules because in SAP NetWeaver SI, the basic programming language is ASAP Objects and no longer ASAP. Depending on the level of complexity of the routines you use. the migration effort may increase considerably. For detailed information on the exact procedures and the amount of work involved, refer to Chapter 4, Migrating the Data Flow.

In reporting, the migration process consists of the automatic migration of queries . Because SAP NetWeaver BI can process queries created in SAP BW 3.5, this step is optional. However, if you do want to migrate a query. then note the exception to the preceding rule in the following box.

Migrating Queries

After you have migrated a query, you can no longer open it using old tools. Thus, the query is the on ly object that is overwritten during the migration process, provided you save it under the same name.

After the optional query migration, you can migrate web applications, if you have any. To start this process, you must use a migration tool that's integrated in the BEx Web Application Designer. However, note that this process requires some considerable manual post-processins work, which shouldn't be underestimated.

This work, in turn, consists of the concept migration itself, which reestablishes the functionality of the system after the migration process. and of the optical migra­tion, which adapts the layout to the SAP NetWeaver Portal after the migration. For further information on migrating the reporting system, see Chapter 6, Migration in Reporting.

3-3 Summary

This chapter described the concept migration. You learned that you can migrate the following three different concepts:

... Data flow concept

... Authorization concept

... Reporting

These three concepts can be migrated independently, but SAP recommends migrat­ing the authorization concept immediately after the technical migration.

44

Page 45: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Summary I 3·3

Having described the three concepts and their new features. the chapter then cov­ered the sequence and overall flow of the migration process. To a wide extent, the authorization concept is migrated automatically by means of an ASAP report. Data flows are migrated individually and automatically but must be customized due to the changeover from ABAP to ABAP Objects. The reporting system begins with the optional and automatic migration of a query. After that. you can migrate web applications into the new version by using a migration tool. Note that this requires a considerable amount of manual work.

45

Page 46: SAP Press - SAP NetWeaver BI 7.0 Migration Guide
Page 47: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

4 Migrating the Data Flow

This chapter explains how to migrate the data flow by first introducing you to the concepts of data flow from SAP BW and SAP NetWeaver Bl and then familiariz­ing you with the migration method. Finally, you will see a simple and a complex migration project as well as a cost estimate and real-life observations.

4.1 Data Flow Concepts

To migrate the data flow, it's essential that you understand the data flow concepts of both the old and new releases before you start and are able to differentiate between them because these differences cause difficulties at certain points of the migration.

The chapter begins by explaining both the SAP OW 3.x and the SAP NetWeaver

BI data flow concepts in more detail. This will also provide newcomers to this top ic with a good overview. Section 4.1.3 follows th is, highlighting the differences between the two concepts.

Naming Convention

In the following sections, the term "3.x data flow concept" refers to the data flow con­cept up to and including SAP BW 3.5. The term "7.0 data fl ow concept" refers to the new data flow concept from SAP NetWeaver 81.

An SAP BW system is used to extract information from several source systems, cleanse it (to transform it), enrich it, and hence make it available for reporting that is not dependent on any particular source sys tem. In an SAP BW system, differ­ent object types are avai lable for high-performance analysis and consolidated data storage; the two most important ones are the Operational DataStore object (ODS object) and the lnfoCube.

47

Page 48: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

4 I Migrating the Data Flow

Note

The ODS object has been referred to as a DataStore object (DSO) since the SAP NetWeaver Bl release. Because we're curren tly discussing the 3.x data flow, the terms that apply to this release will also be used.

The greatest difference between the ODS object and the InfoCube lies in the type of data storage. ODS objects are genera lly made up of three relational database tables (active data, new data, and change log); the InfoCube, on the other hand, is based on the SAP enhanced star schema, which is used for storing multidimen­sional structures in relational databases. Depending on the size of the InfoCube, database tables can emerge here in high double figures.

The multidimensional database model is another type of data storage. It's opti­mized for reporting and allows more flexible analysis options than "normal" data­base tables. Therefore, you can combine each field within an InfoCube with any other field, and underlying key figures are still given the correct values.

This is why it's essential to transform the data from the mostly relationally struc­tured source systems to the multidimensional structures. which is a very time­cuu>tuuiug pruCt:».

Besides transforming the data to the multidimensional database model. data in the source systems usually exists in different formats.

Example

Source system 1 saves a date in the format YYYYMMDD in the database; source system 2, on the other hand, uses the internal display DDMMYYYY. You need to decide on one format to be used in reporting. The other format is transformed accordingly.

Consequently, the data provided by the source system must as a rule be cleansed and consolidated to ensure a standard format in reporting.

SAP BW 3.5 and SAP NetWeaver BI do this in exactly the same way; the 3.x data flow concept has, however, been further developed and honed over the years. Objects became obsolete, new objects were added. and objects have become optional. In the following sections , you 'll see what the concepts look like and what has changed.

Page 49: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Data Flow Concepts I 4.1

Definition of Terms

If you are unsure about some of the terms used in the following sections, the majority of them are explained in the glossary.

4.1.1 3.x Data Flow Concept

Figure 4.1 outlines the basic framework of the 3.x data flow concept.

Communication Structure

Transfer Suucture

Transfer Structure Extract

Structure

Info Provider

DataSource

Figure 4.1 Overview of the 3.x Data Flow

SAPBW

SAP System

(")optional

The figure is divided into two areas. The lower part shows an SAP system as a source system; the upper part contains the SAP BW system.

DataSource

The data flow always begins with a DataSource. A DataSource is a set of fields that are provided for transferring data to the SAP BW system. Using the Service API (SAP!). which contains the programs for extracting data from SAP source systems, there is a special feature that allows the DataSource to be created directly in the

49

Page 50: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

4 I Migrating the Data Flow

source system. In all other source systems, the DataSource is created in the SAP BW system.

Extraction Structure

The DataSource has an extraction stmcture, which contains the field catalog of the fields to be extracted. The extraction can be implemented using database tables, views, or function modules. For database tables or views, it makes sense to use objects that are already available; you can hide fields that are not required in the DataSource maintenance.

Transfer Structure

You can reduce the number of fields to be extracted before they are transferred to the SAP BW system if, for example, not all of the fields are required in SAP BW. The subset of these fields is ca lled the tranifer structure.

Replication

For an SAP source system. the DataSource and the related transfer structure must be introduced to SAP BW after they have been created. This is called the replica­tion process, which passes the transfe r structure on to the SAP BW system so it is available for use.

References to the Objects

To make it easier to understand and differentiate the new SAP NetWeaver Bl release from the old one, objects that were available in both releases are referred to in this chapter as "object 3.x• for SAP BW 3.x and "object• for SAP NetWeaver Bl. The objects are referred to in exactly the same way in SAP NetWeaver Bl.

lnfoSource 3.x

The data in the 3 .x data flow concept can only be transferred if an lnfoSource 3.x is assigned to the DataSource 3.x, whose fields are assigned to one another within the transfer rules. The use of the InfoSource 3 .x and the transfer rules is mandatory.

Like a DataSource 3.x, the InjoSource 3.x has a large number of fields that are available as InfoObjects. It is, however, j ust a structure description and does not

50

Page 51: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Data Flow Concepts I 4.1

physically contain any data. It is used for transforming and consolidating the data delivered from the DataSource and can be supplied with data from multiple Data­Sources. It is linked to the transfer rules and is activated when these rules are acti­vated. The same applies to the DataSource 3.x, which is also linked to the transfer rules. The field catalog of the InfoSource 3.x, which is based on InfoObjects, is referred to as the communication structure.

Transfer Rules/PSA

The transfer rule is a central object in the 3.x data flow concept. When you activate the transfer rule, besides activa ting the DataSource 3.x and the InfoSource 3.x, you also activate the persistent staging area (PSA). This activates all runtime objects. The PSA is a relational database table that physically receives the data from the source system. It is made up of the fields from the transfer structure of the DataSource 3.x.

In Figure 4.1, the PSA object is highlighted in da rk gray; it's the first object to physically carry data. It's also referred to as the persistent object, like the InfoPro­vider in th is figure too.

Transfer Options

Within the transfer rules, fields can be allocated using assignments, form ulas, or ASAP routines. There are hardly any limits to transformation.

Update Rules

After you've created the InfoSource 3.x and activated the transfer rules, the data can be updated in InfoProviders, such as InfoCubes or ODS objects, after it has been transformed and cleansed. You do this using the update rules that have the same name, which are linked with an InfoSource 3.x.

Like transfer ru les, update ru les are transformations that update the data as a communication structure of the InfoSource 3.x in InfoCubes or ODS objects using ass ignments, formu las, or ABAP routines. They always write in persistent

objects.

Page 52: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

4 I M igrating the Data Flow

Info Package

Alongside the 3.x data flow runs the IrifoPackage, which is used both for reques ting data in the source system and for updating it in the data targets. It accompanies the entire data flow from the DataSource 3.x to the InfoProvider. The InfoPackage can be enhanced by selection conditions that are used to extract just specific contents from the source system and update these in lnfoCubes.

Types of lnfoSources 3.x

The ETL (Extraction Transformation Loading) process illustrated in Figure 4.1 is dependent on the type of InfoSource 3.x. There are basically two InfoSource 3.x types:

• InfoSources with direct updating

• InfoSources with flexible updating

The preceding example is based on an InfoSource with flexible updating. lnfoS­ources with flexible updating can also supply other lnfoProviders with data at the same time. They are used primarily to update flow data in InfoCubes and ODS obj ects.

InfoSources with di rect updating. on the other hand, are not linked with Info­Cubes or ODS objects via update ru les. They are used to update precisely one target object and are generally used to update master data in InfoObjects. The data flow runs in a similar way to the InfoSource with flexible updating. with the exception that there are no update rules. This is why the update rule in Figure 4.1 has (*) next to it.

The next section explains the 7.0 data flow concept from SAP NetWeaver BI.

4.1.2 7.0 Data Flow Concept

The data flow within the new 7.0 data flow concept is d isplayed in detail in Figure 4.2.

Like the figure displaying the 3.x data flow concept. Figure 4.2 is divided into two parts, displaying the source system in the lower part using an SAP source system as an example, and displaying the SAP NetWeaver BI system in the upper part.

52

Page 53: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Transformation Rules

Optional in SAP { NetWeaver 81

Application Structure

Transfer Structure

Extract Structure

lnfoProvlder

Data Source

Figure 4.2 Data Flow Concept in SAP NetWeaver 81

DataSource

Data Flow Concepts I 4.1

In SAP NetWeaver Bl, the data flow always begins with a DataSource too. When you use Service API (SAP I), which contains the programs for extracting data from SAP source systems, you still have the special feature that allows the DataSource to be created directly in the source system.

Structures

The DataSource is made up of the extraction structure, which contains the field catalog of the fields to be extracted. In some applications. it does not make sense to transfer all of the fields from the source system to the SAP Net Weaver Bl system, which is why fields of the extraction structure can be hidden. We call this subset of the fields the transfer structure, although this - unlike in SAP BW 3.x - is only referred to as such in the source system. After the DataSource has been replicated

53

Page 54: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

4 I M igrating the Data Flow

in SAP Net Weaver BI and then activated, the transfer structure is called the applica­tion structure, but it has the same meaning as in SAP BW.

Central DataSource Object

In contrast to the old data flow, the DataSource has replaced the transfer rule as the central object on which the persistent PSA can be found. After the Data­Source has been replicated, you activate the DataSource, not the transfer rules . In doing so, the transfer structure is transferred from the source system, and the PSA is created based on the field structure of wha t is now the application structure.

The InfoSource is written in italics in Figure 4.2. In the new data flow, it has become an optional object; that is, you can leave it out. The transformation has replaced the related construction that comprised the transfe r rule, lnfoSource and update ru le. As a result, we no longer differentiate between direct and flexible updating; rather we now j ust refer to (flexible) updating or transformation.

Transformation

The display format of the transformation has been revised, and new functions have been added (see Figure 4.3). In addition to the start routine for the transfer and update ru les (with which we are already familiar) that accesses the source structure and can thus process data packages before the actual transfo rmation, the end routine and expert routine have also been developed. The end routine, in contrast to the start routine, accesses the target structure; in other words, it accesses the data after the transformation. The expert routine replaces the auto­matic transformation; using this routine, the developer has to manually assign the data in ABAP objects within a method. When you choose the expert rou­tine as the transformation, the s tart and end routines are no longer ava ilab le. Furthermore, no monitor entries are written; the developer has to do these himself.

You can therefore link DataSources directly with InfoProviders, such as Info­Cubes and DSO objects, as well as with InfoObjects. All types of updates or transfers have become transformations; a distinction is no longer made between the two forms.

54

Page 55: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Data Flow Concepts I 4.1

Source

Start Routine

Data Packase (changed)

Transformation Rules

Data Package

Tarset

Figure 4·3 New Options within Transformation

lnfoPackage and the Data Transfer Process

The JnfoPackage. which in SAP BW 3.x is responsible for requesting data in the source system and then updating it in the data targets, is now only responsible for requesting data from the source system in SAP NetWeaver Bl. The earlier options, which allowed data to be updated in the InfoProvider, are no longer ava ilable. They have been replaced by the data tranifer process (DTP). Data transfer processes always accompany a transformation and connect persistent objects. in other words, objects that physically carry data. It is therefore necessary to give each transformation a DTP, w hich controls the updating process.

Although the DTP does not at firs t appear to be necessary, it has numerous advantages.

55

Page 56: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

4 I M igrating the Data Flow

.,. Save erroneous data records Data packages that have errors do no t automatically cause the update to termi­nate. The incorrect information is written to an error stack, which processes it and updates it after correction .

.,. Clarity within the data flow The DTP increases the clarity wi thin the data flow, particularly if many tempo­rary objects in the system are involved in the data flow .

.,. Semantic groups Depending on the crite ria you define, data transfe r processes can distinguish between data records that are to be named the same and ones that are not. We refer to "semantic groups" with in the DTP here .

.,. Enhanced filter conditions Yo u can specify fil ter conditions that contain each field of the source structure and were not j ust defined as selection parameters.

Other special features are described in the following section.

4.1.3 Differences Between t he Two Concepts

This section summarizes the diffe rences between the 3.x and the 7.0 data flow concepts and lists the special features for migration .

.,. Transformation replaces transfer and update rules The various rules available in SAP BW 3.x for data transformation (transfer rules, update rules) have been replaced by transformation, which can be mod­eled easily using graphical ass ignment.

.,. Start, end, and expert routines in the transformation The start routine, which could be used in transfer and update rules, has been enhanced by the end routine and the expert routine. The end routine accesses the target structure; using the expert routine, you can (and must) make all ass ignments with ABAP objects .

.,. InfoSource as an optional object The InfoSource is no longer a mandatory obj ect. You can now decide if you want to use an InfoSource or not.

.,. New object: Data transfer process The data transfer process replaces the updating of data in the data targets by

Page 57: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Data Flow Concepts I 4.1

Info Packages. DTP accompanies transformations and updates data between per­sistent objects.

~ DataSource as a central object The PSA is now attached to the DataSource and no longer to the transfer ru le. When the DataSource is activated, all of the objects required for the data request are activated.

~ Displaying the entire data flow in the Data Warehousing Workbench Besides being able to display the data flow graphically via the context menu. you can now also view it directly in the Data Warehousing Workbench (see Fig­ure 4.4).

"" 'iiJ IT2 personal administration

"" ~ ODSO DS_IT2PA-> CUBE IC_IT2PA

"" 9 DataStore HR-PA (lechn. layer)

"" ~ ODSO DS_IT2Q4 -> ODSO DS_IT2PA

"" 9 Employee (source layer)

"" ~ RSDS OHR_PA_O IT2_21 0 -> ODSO DS_IT2Q4

~OHR_PA_O

Figure 4-4 Displaying the Data Flow Within the Data Warehousing Workbench

~ DSO and InfoCube modeling alignment You now modellnfoCubes in the same way as DSO objects. The alignment has been carried over from the modeling of ODS objects in SAP SW 3.x.

~ Conversion from ABAP to ABAP objects All source tex ts within SAP NetWeaver Bl, whether they are start routines, end routines, or routines that make assignments with in transformations from the source structure to the target structure, now have to be written in ASAP objects.

The migration of the data flow can, to a large extent, be carried out according to predefined rules and concepts. However, it is precisely the final point mentioned, the conversion from ASAP to ASAP objects as the underlying programming lan­guage. that very frequently hinders the migration. In addition to the related object orientation within transformations and the different syntax, the conversion is fur­the r complicated by the fact that object names have changed.

For you. this means that wherever you have used ASAP source text within the data flow, for example, in start routines, characteristic routines, or routines with in

57

Page 58: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

4 I Migrating the Data Flow

update rules , you won't be able to get around making manual adjustments. Depending on the complexity of the source text, these are time-consuming aspects of the data flow migration.

What does not cause a problem, on the other hand, is the omission of the Info­Source as a mandatory object. You can continue to use the InfoSource and don't have to delete it. You simply have to migrate the transfer and update rules from and to the InfoSource in transformations.

Recommendation

In some cases, the lnfoSource was a "necessary evil" because no changes had been made to the field contents from DataSource to lnfoSource. To maintain a clear overview, you should delete the lnfoSource in these instances.

You should also become famil iar with the new concepts to get the most out of them. Make full use of the transfer processes, for example, and use the error stack. Take a look at the end routine and consider whether this might sometimes be more usefu l than the start routine.

4.2 Concept Migration Model

Now that you are familiar with the two data flow concepts from SAP BW 3.x and SAP NetWeaver BI, let's move on to the migration methods. Sections 4.3, Simple Migration Example, and 4.4, Complex Migration Example, present both a simple and a complex example of a migration, respectively.

Basic Rules

In this section, you'll work primarily with basic ru les that should help you carry out the migration step by step. These rules are referred to again in the examples in Sections 4.3, Simple Migration Example, and 4.4, Complex Migration Example, to make it easier for you to follow the migration. The basic ru les are identified by a gray box and are num­bered.

As already mentioned in Section 2.1, Migrating the System Landscape, a migra­tion always affects the entire system landscape; the concept migration is no exception to this. As a result, you always migrate the data flow on the develop­ment system and transport it to the production system after it has been tested successfully.

Page 59: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Concept M igration Model 1 4.2

To prevent data loss and problems during migration, SAP has created a way of reversing the migration, but this only works up to a certain point, which will be noted in the example.

4 .2.1 Old Data Flow Objects

After you have carried out the technical migration, you see your objects in Trans­action RSA 1 (Data Warehousing Workbench) in their familiar form , except that a small white box is displayed in front of each object (see Figure 4.5).

"" 0 Purchasing Groups

"" D(] o OPUR_C04 2LIS_02_S01 1

"" @ o Purchasing groups -

"" - o from 2LIS_02_S01 1 for <No Text Available in this Language> ~ o Purchasing groups

Figure 4-5 Old Data Flow in an SAP NetWeaver Bl

The box means that a newer vers ion exis ts for the specified objects. Because Info­Cubes do not change in the data flow, the Purchasing Groups InfoCube shown in Figure 4.5 Is not marked with a white box.

4.2.2 Data Flow Migration Concept

The most important rule to follow when migrating the data flow is the order in which you migrate the objects. Migra tions are generally carried out top-down; in other words. they begin at the data target and end at the DataSource 3.x. This is, a t the same time, the first basic rule.

Basic Rule 1: Sequence

The data fl ow migration is carried out top-down. It a lways begins at the data target and ends with the migration of the DataSource 3 .x.

Accordingly. the objects are migrated in the following order for a data flow like the one shown in Figure 4.5:

1. Update ru le (0PUR_C04 2LIS_02_S011)

2. InfoSource (Purchasing Groups)

59

Page 60: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

4 I Migrating the Data Flow

3. Transfer rule (from 2LIS_02_S011 for JT2 Client 100)

4. DataSource (2LIS_02_S011)

Next, you need to consider whether the InfoSource in this data flow is really required or whether the data flow can be transferred directly from the DataSource to the InfoCube.

As mentioned at the start, it's generally possible to reverse a migration if, for example, you discover that problems have occurred with the new data Row. This, however, only applies under certain conditions, which leads to basic rule number two.

Basic Rule 2: Undo the Migration

In principle, you can undo the migration of the data flow provided that the DataSource has not yet been migrated. If you selected the WITH ExPORT option when migrating the DataSource, you can always restore the data flow to the old data flow.

The WITH EXPORT option for migrating the DataSource indicates whether you want to export the old structure information of the DataSource to the tables provided for th is. The advantage of doing this is that you can restore a migration using Transaction RSDS if any errors occur. Selecting this option increases the migration time of the DataSource by approximately one to two minutes.

Note, however, that the old information exported from the DataSource is not transported. The migration can therefore only be restored on the development system and must then be transported.

In principle, the migration is an au tomated process, which is executed by the SAP NetWeaver Bl system. Manual adjustments are only necessary if you have source text within routines or have made field assignments (see Section 4.4, Complex Migration Example). If. on the other hand, transfer and update ru les are based on assignments only, the migration runs automatically.

Basic Rule 3: Automatic Migration

The data flow migration runs automatically. You' ll only need to intervene manually at most when using your own ASAP source text wit hin transfer and update rules.

You have already learned about the improvement to the new data flow, which means that we no longer differentiate between transfer and update and that we

60

Page 61: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Simple Migration Example I 4-3

now simply talk about transformation. As a result. transfer rules and update rules always become transformations, as summarized in basic rule 4.

Basic Rule 4: Transformation

Transfer and update ru les are migrated to a transformation. A distinction is no longer made between transfer and update rules.

In the following sections. you'll see how the basic ru les apply in practice through the use of a simple and a complex example.

4.3 Simple Migration Example

This simple example uses the migration of the data flow to the Purchaser Group InfoCube, which has been copied one-to-one from the Business Content. The data Row from Figure 4.5 is shown in Figure 4.6 once again.

~ 0 Purchasing Groups ~ [;l(] o OPUR_C04 2LIS_02_S01 1

""' ..:; o Purchasing groups ""' - o from 2LIS_02_S01 1 for <No Text Available in this Language>

13'P o Purchasing groups

Figure 4.6 3.x Data Flow for the Purchasing Groups lnfoCube

Note

Business Content is always available in the old 3.x data flow concept except in a small number of cases . When using Business Content, you must therefore also migrate the data flow in an SAP NetWeaver Bl system!

The migration strictly follows basic rule 1. In this example, it therefore begins with the update ru le and ends with the DataSource 3.x.

4.3.1 Migrating the Update Rule and the lnfoSource 3.x

Before you start, look more closely at the update rule. The update ru le is only migrated automatically if the update rule does not contain any routines you've programmed yourself (see basic rule 3). Although these routines are also u·ans­ferred , you may have to correct them manually after the migration because of the

61

Page 62: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

4 M igrating the Data Flow

conversion from ASAP to ASAP objects. The update rule in this example does not contain any code in the form of a start routine or routines for calculating key fig­ures. as shown in Figure 4.7.

Update Rules Display: Rules

!BE]jgcr!] ~16Dn 11 ·II mdfJ~

lnfoCube I8PUR_Ce4 ~ Purchasing Groups

lnfoSourte I2LIS_02_S011 I Purchasing groups

Version 0 IAcllve .:11 Saved

Object status ~ Active. executable

Los! Changed By I SAP I ~86. 2997 99:35:11

Person Responsible fSAP -=:J con1en11e1ease [ 2 i 2] ~· OispJa·,· Start Rou1Jne I

':!2.da18 ruiH

Status I Key Figures I Ty. SrteFietds I

- 0 ~~ilj~·~~·o(c~·~~-~~~~~ ~

~ Number of contracts EJ

0 Numberofcontractitems ~ Number of contract Items G -0 Number of delh'enes ~ Number of delrvenes -

- 0 Number of scheduling agreeme _ 4a

~ Number of scheduling agr

0 Invoiced amount 4=a Invoiced a moun!

0 No. ofPurch.Orders ~ No. of Pure h. Orders

- 0 Number of requests for quotalio_ q;. ~'- Number of requests for q

- 0 Etrective purchase order value ~

~~ Eft'ective purchase order

0 Number or purchase order sch8_ ~ Number or purchase order

0 Number of purchase order items <- ~te:~L Number or purchase order

0 Number of quotation items 4a Number of quotation item EJ - 0 Number or request for quotation I . ~ ~ Number of request for qu EJ IIJIII

Figure 4·7 Update Ru le for Purchasing Groups lnfoCube

According to basic ru le 4, the new data flow no longer contains any update ru les; they become a transformation. You migrate the update rule to a transfo rmation via the context menu for the update rule (ADDITIONAL FUNCTIONS • (REATE TRANSFOR­

MATION), as shown in Figure 4.8.

"" ~~.OP.IJ.R."c.o.•.2.L.1~-'V • o Purchasing g Qlsplay

CS83FHGQD~1 2LIS_02_S011

"' til a rrom2~ J<hange ~nguage> 2US_~~ ~ a Purch

Qelete 2US_02_SOI 1

~ lnfoSet HCM SCT " !dd~onatFunctions • Q.reate Transformabon

~MP HR

Figure 4.8 Creating the Transformation from the Update Rule

62

Page 63: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Simple Migration Example I 4·3

Basic rule 5, which is introduced later in Section 4.4.3, states that no objects are deleted during a migration; copies of the old objects are always created. This means that the undo function mentioned in basic rule 2 is also always available for the migration.

After the transformation has been created, the SAP NetWeaver 81 system recog­nizes that it's an update rule, which is linked to an lnfoSource 3.x. This is why the SAP NetWeaver 81 system asks you whether you also want to migrate the lnfoS­ource, to which you can answer yes (see Figure 4.9).

@'Copy Update Rule to Transformation

:~:~!.~.i~·.~~j~·~·.~~.~:~·~·.~~iii~~.:.Y.~.~:~~·~.\1 Select an Info Source

®Copy Info Source 3.x to New lnloSource

0 Use Available Info Source

lnfoSource:

Figure 4.9 Creating a Copy of the tnfoSource

J

Referring aga in to basic rule 5, the old lnfoSource 3.x stays the same and is just copied; in other words, the old data flow remains untouched. In th is example, the new lnfoSource is given the technical name Y2LIS_02_S011 (see Figure 4.1 0).

@'Create lnloSource IBI ~

lnfoSource IY2LIS_02_S011 [d') long Description I created from 3.x lnfoSource Purchasing groups I

Application Component IMM_PUR I Purchasing

COi)Yrrom

ObjectType l lnloSource i!l l Name E!JS_02_S011 -:I

~00 Figure 4.10 Creating the lnfoSource as a Copy of the 3.x lnfoSource

Page 64: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

4 I M igrating the Data Flow

After you've specified the parameters, you can start the transformation process. A log is then displayed informing you that the transformation of the update ru le and the lnfoSource 3.x was successful (see Figure 4.11).

~ 1181W I 00 I I '\Jii!!l l il=. P~rii .I IL9lcJ>I i!!l~ i!!l<tl11 i!!l l@o I ao j6o I os I Ty ... Message Text

0 - Copying the Info Source -

0 iniOSource Y2LIS_02_S011 was successfully created and activated

0 -Copying the Up dale Rules -

0 Currency/unH OLOC_CURRCY assigned -0 currency/unit OLOC CURRCY assigned

0 Transformalion saved successfully

-

~~§:!~lEI Figure 4.11 Migration Log for the Update Rule and the lnfoSource 3.x

You can then see in the RSA 1 that the data flow for the Purchasing Groups Info­Cube has changed. You now have two InfoSources that supply the InfoCube with data. The InfoSource j ust created from the upda te rule is still inactive, as Figure 4.12 shows.

v> " Purchasing Groups V' Dl] TRCS Y2LIS 02 S011 ·>CUBE OPUR C04

~ Created from 3.x lnfoSource Purchasing groups _____::::_ D(l c OPUR_C04 2LIS_02_S011 _

[> ~ c Purchasing groups

Figure 4 .12 Data Flow after Migrat ing the Update Rule and lnfoSource 3.x

A transformation is - even if it does not contain any ASAP code - never ac tivated after it has been migrated successfully ; its status is always inactive. You must now edit the transfo rmation manually and activate it, provided th is is possible (see Figure 4.13). You do this by performing a simple check of the transformation created. In this case, the check runs without errors, so it can be activated.

Page 65: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Simple Migration Example I 4·3

The data flow has now been migrated successfully up to the JnfoSource. Next, you migrate the transfer rule.

trans-f0rm3!10tl fd•l !iOIO Elltl'iS ~li!l'n ljt!p

::.<I IQC00Q

Transformation Change

.. - 19111J ~~ !'(f"S"" ... .o;;;;;p! 10 ····-·l[j [9rranst0fmaoon ~U8_02_801 1 ·• CUBE OPUR_C04

Souree e CteMed trom 3..ti.W::.SOYrte PurthUfng OfOYpS('I'2US_0'2_S011)

Tlrgtt 0 Purchultlg Groups (OPuR_C04)

Vel'l•on o lnProcess 0 9 Nolsmo AciJYeVerSIOfl OO(es)NotElllst • EdittdVerston

::o ~ €i lOOt~ i-~ I'll•'*•"•• *'""'"- ·;F;:,..,.--,;=;;;:-.,--,

• C•...wd•-t.allllf.S.Uce ,..dNIIInll•~ (Yli.JS ~tl_Mttl ......... ... OCAI.OAV .,_......, OCALMONIH ~Y-.Hef'Ch

O<AI.WOO< c...v .. ,.,. OCON"AACTS ~OICCII'Vtlt'l.t

OCON'I'fll:jl{M ~OI(:II)'Vtdt--· ,......01 ......... OOII...so<DS Hl.orf;ler 01 -=~ .,-_..ett sc:twd.Ae ns

""""" fis~~~--

"''"'"'"" r~..-.~

" ~_.,... _ ........

CLOC_CI..ftftiCV ""'~-C)ti)_M_OAO NO Of~ OrOet• O«>J!fO_a.Jl ~Oif~JICtq.dflllent

~-VH. &retOYesu-c~~ ~

""-"'""" M.I!W 01 P,..Cf\Mt ... tcfllcUio .._.

""f""' ~ 01 p.ntMoso cwder w.

""""-- .......,,__ " ~,..., --.

• •

. .

........... "'eOIIted lpt.

1 C'\1 QCALDAV (!) ~ o.y 2 ..-\1 QC:.AuiOrml (!) ~ Y•M:teh

3 vU IX.At.v.t!K (,'!) ~ Y-~Necf/; 4 ,/i,? cnscKR (!) FlsC:IIi'fC!W/~oOCI

$ ....-\1 CA$1CYAII.HI (!) fllctl.,.....,...owt

• CJVII(H_¢1110 8 ,..t? ~-ORO 4-.1 ~~ - ~-<JII.(XI 7 .... v ~OAOlP 4 ~'-*'00r01.t'

s ..-V oY8()0ft 4 v~ i .r\1 ~ lflVerlliCr'l 10 ,./IJ OVTVft 4 VfAielpaCJrll:k!porlf'I!J

= ~ u I(V ~ 4 roc•cr o.-..toee~ ... • OOOWTR.JfSM ') OCON'!JIJf'M 0 _.,_..._,_

• CUL_SICtEOS It OOEL_S06>S ..Q ,.,.._OI~A9-

= ONVCO_.......,. IS CINII'CO,.Mfll .eJ ....U:ed....on

r:H:> jV(_(N) 0 No. Of P\lctl Orclll't

~-Rf.O_Ol,Jl _Q M.o!WOI•ecMII$~~*8

- ...... -- ~B ' l!J

Figure 4.13 Edit ing and Checking the Transformation for Activat ion

Migrating the Transfer Rule

After you have successfully activated the transformation, you have a completely new data flow from a new InfoSource to the InfoCube OPUR_C04. You then have to migrate the transfer rule. Here too, you should check first that no programming is contained, which must later be adjusted manually. Figure 4.14 shows you that th is is not the case here.

Page 66: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

4 I Migrating the Data Flow

lnfoSource 2LIS 02 S011 Display

Create kevfigure I m D

---=:1

OataSourcetrrans. Structure ••• Transfer Rules

rot R

Communication S1rJTrans,errules

lnfoObjecl Oesctipl Tp Rule lnfoObjecl Oesctipl 9CALOAY Calend-ar 0 _ 4:::- OCALOAY EJI 9REVERSEDDC lnd~t•tor 0

9CALNONTH CalendarYe_ 4:::- OCALHON'EJ Value ty-pe t 8CALWEEK Calendar ve . *' OCALWEEI Vetsaon nu VRSIC 8CONTRACTS Contracts *' d/> OCONTRA! carendarye SPMO

Figure 4.14 Checking the Transfer Rule for the Use of ABAP Source Text

A transfer rule also becomes a transformation here too (see basic rule 4). You therefore migrate the transfer rule in the same way as the update rule by choos­ing (ADDITIONAL FUNCTIONS • (REATE TRANSFORlv\ATION) from the context menu, as Figure 4.15 shows.

"" IXJ o OPUR_C04 2US_02_S011 CSB3F

"' ~ o Purchasing groups 2LIS_O

a ~at~;a~s~r ~i~;; """ "-• if~b.l~ .i.~ .lh.i.s.L.~~~~.~l!~~j 2US_O OPUR -

G:BinfoSet HCM BC ~hange IS_HR

~MP_HR I Delete MP_HR

Technical Content JL 6ddHional Functions • ~reate Transformation IA_JWRS Financials Management & Controlling l Qlsplay logs

Figure 4.15 Creating the Transformation from the Transfer Rule

When migrating the transfer rule, the SAP NetWeaver Bl system also asks you for which InfoSource you want to create the new transformation. Because you have already migrated the InfoSource 3.x in the previous step, you can specify the copied InfoSource in this step. The system wi ll defaul t to this InfoSource when it begins (see Figure 4.16).

66

Page 67: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Simple Migration Example I 4-3

@'Copy Transfer Rule to Transformation

Before Rules Can Be Copied, You Must

Select an lnfoSource

0 Copy Info Source 3.xlo New lnfoSource

®use Available lnfoSource lnfoSource: ,.1 Y"'2:-cli;-;;S-c0;c:2~S9""t7t ------.,....,[~

Created from 3.x lnfoSource Purchasing groups

Figure 4.16 Use of the New lnfoSource for the Transformation to Be Created

A warning message "Automatic time conversion not possible for source field SPMON" is then displayed. You can confirm this message in this step. The sys­tem indicates to you that it is unable to perform the automatic time conversion from field SPMON to field OCALMONTH because it does not recognize the data type of the field SPMON. You can correct the problem directly afterward in the transformation.

You receive this message again for other fi elds for which automatic time conver­s ion is also not possible . When the mig ration is complete, o summary of activ ities for the migration is displayed in tl1e application log (see Figure 4.17).

~ 181 'ij' I oo I ''I '\Ji i!ll 1 1 :1 ·1~1 :- II g I@! (!)I ~a ~nl<ml iDI I [l@o I r.:o I~ o I o 4]

Ty ... Message Text

0 - Copytng me lnfoSource - -0 lnfoSource Y2LIS_02_S011 already exists. The system will use this for the copy 0 ';;:;. CopYfng the Transfer Rules~ -0 ['fraiiSformation savad successfully -

Rl~~[!j][!] Figure 4.17 Application Log After Migrat ing the Transfer Rule

The new (inactive) transformation of the DataSource 3 .x to the new InfoSource has now been added to the data flow, as is shown in Figure 4.18.

Page 68: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

4 Migrating the Data Flow

'V" 0 Purchasing Groups "'(;(J TRCSY2US_02_S01 1 ·>CUBE OPUR_C04

V" <::) Crea1ed from 3.x lnfoSource Purchasing groups "' (;() RSDS 2US_02_S011 IT2_100 ·> TRCSY2US_02_S011

1-----"'- "=;;;o from 2LI8_02_8011 for •No T~Avail-able in this Language~ if> a Purchasing groups

Figure 4.18 Enhanced New Data Flow Following the Migration

The disp lay can be confusi ng at first because the transfo rmation appears directly below the transfer rule. It will only be displayed correctly after the DataSource 3.x has been migrated.

You can now edit and check the transformation you have just created and then activate it (see Figure 4.19).

RSOS 2U9_02~801_1 lf7:~~ TRCS V2U8_02_601 I f!l Put~SU'IOQI"CUPS QUS_0?_$011)

e Ci't".MtO lll'(lm3;,1'110~PuMHIIIO OIOI.Cit(r2US_c»_8011)

Q hPfoctu :1 C3 SMII

""""-• """"'"' STOINO C4nco!l

''"''"''"" ~v-~ ...... "_,,. """"" ClfillrdlrV-~

"""' -- OOOHIAAC1$ ,.,....OIOOriiK'II ,_ ttl,_,~ """""""' ,....-OIOOril«'',_ ,. ...

""""'"' """' (-~, ..... - ,.....01 .... \n

...... --- ............ ,.,...or~·---~"" ...... I'W~JitOQI ,.,,,,. ,..,.~,.,.,...

'""" IV<f'IOooo.> (J I$'CVNIHI ,_...,... __

" ""' - _,_...., ...... _..

" - f'tv .. v_.. ca.oe.a.N~Cv ~C\r_.,

" ... -lOCIIO..t...cy QI/C)~_($11) NOOIII\f<fl~

" ....... ....... <NO.)a!O_COT ,.,...01'-_.._,.~ ,. _, ._...., OOIIDtllt_YIIIL !I'«Wt~~......,

" ""'' IVU.~Of\lers oPO .. n~ ~-p.I~MCI01ll0w.Af-. .. """ -- " ""-""" ,.,...Ofjlo,l'cr-(lnfllr._

" ... ~ .. _.....,. --" """ .... ~JrOOt~ .. ...... ... _

(Cii Ctwd: wueuiiJ~ 110 tl'lors b.;M

Figure 4.19 New Transformation of DataSource 3.x to lnfoSource

. .

!;]

~ ltl8l v

Even though the transformation check ran successfully, y ou should still correct the warning message that appears when the transformation was created. This message informed you that an automatic time conversion was not possible; in other words,

68

Page 69: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Simple Migration Example I 4 ·3

the system does not recognize that fields SPMON, SPTAG, and SPWOC have a time

format. You can resolve th is problem by ass igning the InfoObjects OCALMONTH, OCALDAY, and OCALWEEK to the three fields SPMON, SPTAG, and SPWOC. By doing this, you are expla ining to the SAP NetWeaver BI system that this is the for­

mat in which the fields from the DataSource arrive. Figure 4.20 demons trates this procedure using the SPTAG field as an example.

@Rule Details lEI ..,

Description I I Targt lnfoObjct 0 IBCALDAY I Calendar Day Rule Type 0 ~e Characteristic !!) Direct Update

Sourte Fields of Rule:

~l8lldiOOI ll~l!iJ.I -

~I Field I Long Description IType ILng ... IConv .... IIOAssgnmnl I Long Description I SPTAO Calendar day OATS 8 Ocaldal'f li1l

Target Fie lOS Of RUle:

~J 181WI 00 161 Info Object lc .. Long Description I Type ILng ... IConv .... l OCALDAY 0 Calendar Day JDATS I 81 I

~I TransferValues I 00EI~ 00 Figure 4.20 Assigning the lnfoObjects OCALDAY to the DataSource Field SPTAG

Do the same for the fields SPMON (lnfoObject OCALMONTH) and SPWOC (InfoObject OCALWEEK). You can then activate the transformation.

4-3·3 Migrating the DataSource 3.x

SAP software provides a special case in the system for test purposes. You can cur­ren tly load an InfoCube using two di ffe rent data flows, the old one and the new

one. To do this, you have to create data transfer processes for the new transforma­tions. The system allows this interim solution until you can ensure that the new

data flow is working correctly. Only then can you migrate the Data Source.

Page 70: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

4 I Migrating the Data Flow

You also migrate the DataSource via the context menu. To do this, choose MIGRATE from the DataSource context menu (see Figure 4.21).

~~·~ llisplay C04 '1

sfer P~ Qopy ...

CT ll_cQ~e~le~~--------------------·11 ' Manage

ement ship M

Manag Com~

nshlp ala

Q_isplayOataSource in Source System

Replicate Metadata

~reate Transformation ...

Q.reate oata Transrer Process ...

Q.reate Info Package ...

Q.reate Transfer Rules

Mill rate

Figure 4 . 21 Migrating the DataSource 3.x via the Context Menu

Remember to always use the W1m ExPORT function for the migration (see basic rule 2); otherwise, the migration can no longer be undone (see Figure 4.22). You can then reverse the migration at any poinl using Transaction RSDS (CHOOSE DATA­SOURCE • RESTORE 3.X OS FROM THE MENU). The Info button in the window points this out to you once more.

G Transfer Rules and Transfer Structures lve Deleted as a Resun oflllfgration of 3.x DataSource

2US_02_S01 1 (IT2_t00) How IS Migration to Be Performe-d?

tnro II X Can<el

Figure 4.22 Migration Options for the 3.x DataSource

There is another special feature for the migration of the DataSource 3.x. In a stan­dard migration, all objects in the system stay the same, and just copies are created. For the migration of the DataSource 3.x, however, the transfer rules are deleted and can only be restored again by Transaction RSDS (provided you selected the migration option WiTH EXPORT).

When you choose the WITH EXPORT option, the migration takes about two to three minutes. The migration of the 3.x data flow is then comple ted. You have success-

70

Page 71: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Simple M igration Example I 4·3

fully migrated all of the objects involved in the data flow. The system then displays a screen in the RSA 1, similar to that in Figure 4.23.

"' ~;;riJJi~tit~bio;; .. :~·cueEoPui(co< · · · · -~~flJziiiiiLe·. = "" ~Created from JjC lnfoSource Purchasing groups Y2US_02_SOI1 a

_ "' D() RSDS 2US_02_S011 fT2_100-> TRCS Y2US_02_S011 QO~XHBFVP23TRE "----~Purchasing groups 2U S_02_S01 1

"" D() o OPUR C04 2LIS 02 SOli CSB3FHGQOK66AT -® 0 Pu~chaslna Q~OU;S 2LIS 02 SOi l

Figure 4.23 New Data Flow After the M igration

The migration is thus concluded. As a final step, you can now delete the lnfoSource 3.x objects and the update rule, provided the test for the new data flow has nm successfully.

To now use the data flow, you have to create a data flow process for the persistent objects DataSource and lnfoCube (see Figure 4.24).

@ Creation of Data Transfer Process lEU

Data Transfer Proc. liiJS_02_S011 /IT2_1 00 ·> OPUR_C04

OTrTYPe lstMd~rd (Con e -o Scheduled) oj f rarget ofOTP

ObjeciType lnfoCube OQ Name OPUR_C04 Purchasing Groups

Source of OTP

Obje<IType Data Source 1:11

1

DataSource 2Li S_92_SGt t 1@1 ~ ce System IT2 199 I

~ Figure 4.24 Creating a Data Transfer Process via the Context Menu

4-3·4 Conclusion

This simple example was intended to show you that a migration does not normally require manual intervention, provided you haven't used source text of your own. However, because you are often required to do so, the next example explains how to approach migration for complex data Rows.

Page 72: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

4 I Migrating the Data Flow

4.4 Complex Migration Example

The complex example is intended to show you where the limits of automatic migration are. This is the case if you have used ABAP code within transfer and update rules that cannot be copied one-to-one. After the transfer or update rule has been successfully migrated, it cannot be activated. Syntax errors in the trans· formation freque ntly cause this problem, which requires manual intervention on your part.

Caution

SAP NetWeaver Bl systems mostly contain solutions that have been adapted to suit individual customers and are in themselves very different. This chapter, therefore, only points out possible causes of errors and provides you with general tips on how to per­form the migration.

The example presented here comes from the area of Human Capital Management (HCM). Like the simple example, it comprises a DataSource 3.x, an InfoSource 3.x, and an lnfoCube, which are all linked to each other via transfer and update rules.

441 Introducing the Example

The example loads the infotype 0008 (basic pay for employees) in a corresponding InfoCube in the SAP BW system. The infotype has a repetitive structure, which is why it can be typically used in a start rou tine (or alternatively a DataSource that is implemented via a function module). However, to keep things as simple as possi· ble, we'll leave the description of the DataSource in the source system out because it isn't relevant for the migration. You can consider this to be a "black box."

A repetitive structure contains a large number of field names that are all the same except for their end digits, for example, ABC01, ABC02, ... ,ABC 50. Info type 0008 contains the fields LGA01 to LGA40 and BET01 to BET40, where LGA stands for wage type and BET for amount.

In this way. you can assign 40 different wage types and their amounts to an employee, which are stored in just one data record of a table. This is efficient data storage for a transactional system such as the SAP HCM system. It does, however, complicate the evaluation of the data in an SAP BW system enormously. It doesn't make sense, for example, to create one InfoObjec t for each wage types field in info-

72

Page 73: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Complex Migration Example I 4-4

type 0008 because the field has no meaning. Consequently, the wage type 1000 can be ass igned to an employee with the personnel number 4711 in field LGA01; however, an employee with the personnel number 4712 is ass igned the wage type 1000 in field LGA02. This means that you can never evaluate all of the amounts for wage type 1000 because all 40 lnfoObjects must be included.

Therefore, you should transpose the repetitive stnicture; in other words, instead of creating 40 fields in one data record in an extreme case, create one field in 40 data records (see Figure 4.25).

Key Fields

Transformed Data Record

PERNR BEGDA ENDDA LGART BETRG

4711 01/01/2007 12/31/9999 1001 4 ,502.17

4711 01/01/2007 12/31/9999 1002 511 .13

4711 01/01/2007 12/31/9999 4000 30.00

... .. . ... ... ... Key Fields

Figure 4.25 Transposing the Repetitive Structure

In the example, the three wage types 1001, 1002, and 4000 are ass igned to employee 4711. These are contained in a data record in the format from infotype 0008 and are now transformed so that a data record is created for each wage type, which is then transferred to the InfoCube. By doing this, the preceding evaluation of all amounts can be carried out for the wage type 1000.

There are (at least) two variants for the conversion. With the first variant, you can develop your own extractor, which transforms the data and supplies it to the SAP BW system. The second variant transforms the data within a start routine in the transfer ru le, as we've done here.

The conversion of the 3.x data flow in the SAP BW system is shown in Figure 4.26.

73

Page 74: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

4 I Migrating t he Data Flow

Figure 4.26 3.x Data Flow for the Complex Example

The technical name of the UataSource that extracts the data from infotype OOOH

is HRITOOOS. It's linked to the lnfoSource w ith the technica l name IS_PYS via a transfe r rule with a start routine. This, in turn, updates the data in the InfoCube

IC_PY. The data is updated by an InfoPackage. Figure 4.27 illustrates the entire data flow within the migrated SAP BW system.

"' ({I Boste Poy IC_PY 1.• '<' !;(I 0 IC_PYIS_PY8 D2L5S4C02938LRX .. ~ I@ .r:No TextAvallable ln this Language• IS_PY8

"" tl o from HRrT0008 for «No Text Available in this Language• HRJT0008 "' 1;:1> o HRIT0008 HRIT0008

- Iii ZPAK.,.D2L5VL8UZI 1 PillA ZPAK.,.D2L5VL8UZI...

Figure <P7 Data Flow Within the SAP BW System

You can see that the data flow is still in the 3.x format and must be migrated.

The DataSource from infotype 0008 provides you with the following fields:

" PERNR (Personnel Number)

" SPRPS (Lock Indicator)

74

Page 75: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

,.. ENDDA (Valid To Date)

,.. BEGDA (Valid From Date)

,.. TRFAR (Pay Scale Type)

,.. TRFGB (Pay Scale Area)

,.. TRFGR (Pay Scale Group)

,.. TRFST (Pay Scale Level)

,.. WAERS (Currency Key)

,.. BSGRD (Capacity Utilization Level)

,.. LGA01 (Wage Type 01)

,.. BET01 (Amount 01)

,.. LGA02 (Wage Type 02) to LGA39 (Wage Type 39)

,.. BET02 (Amount 02) to BET39 (Amount 39)

,.. LGA40 (Wage Type 40)

,.. BET40 (Amount 40)

Complex Migration Example I 4-4

In th is example. the DataSource exu-acts the forty wage types and amounts from infotype 0008. Besides transposing the repetitive structure, the remaining fields should be updated one-to-one in the lnfoCube. This produces the following struc­ture for the lnfoSource:

,.. OCALMONTH (Calendar Month)

,.. OEMPLOYEE (Employee)

,.. OPAYSCALEAR (Pay Scale Area)

,.. OCOUNTRY_ID (Country Grouping)

,.. OPAYSCALETY (Pay Scale Type)

,.. OPAYSCALEGR (Pay Scale Group)

,.. OESGFORCAP (Employee Subgroup Grouping for Collective Agreement Provision)

,.. OPAYSCALELV (Pay Scale Level)

,.. OPAYPCT_CHA (Capacity Utilization Level in%)

,.. OCURRENCY (Currency)

75

Page 76: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

4 I Migrating the Data Flow

I> OAMOUNT (Amount)

., OWAGETYPE (Wage Type)

This includes all fields that originate from the DataSource.

The InfoCube includes one field more than the InfoSource (FfE), whose content can be calculated from the capacity utilization level. Another ABAP Routine is used here, which may later have to be adjusted manually. The dimensions of the Info­Cube are shown in Figure 4.28.

::: 0 Dimensions I> Ill- Data Package <:> Ill- Time

0 Calendar YeariMonth 0 Calendar Year

I> Ill- Unit <:> j. Wage Type

,Ill Wage Type ,Ill Counby Grouping

<:> Ill- Employee ~Employee 4} Capac.ity Utilization Level in %

,Ill FTE _"" Ill- Pay Scale

,Ill Pay Scale Area ,Ill Pay Scale Type ,Ill Pay Scale Group ,Ill Pay scale Le-;el ,Ill Employee Subgrp Grouping for Collective Agreement Pr<Msions

Figure 4-28 Dimensions of the lnfoCube IC_PY from the Complex Example

442 Start Routine

The transformation of the repetitive structure is now performed by the start rou­tine. It transforms fields LGA01 to LGA40 (or BET01 to BET40) so that the relevant information can always be found in LGA01 and BET01. This increases the number of data records in the data package. In other words, from one data record with wage type and amount information, a maximum of forty data records can be cre­ated, whose information exists in LGA01 and BET01 (refer to Figure 4.25).

The source text of the start routine is displayed in Listing 4.1. The transformation begins with a LOOP statement for each data package. To avoid producing forty para-

Page 77: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Complex M igration Example I 4 -4

graphs with (almost) identical source text, the start routine has been developed with field symbols. (Alternatively, you could also use a DD ... VARYING loop.)

What is important is the termination condition at the end of the loop. By continu· ally adding new data records, the data package grows and grows. In other words, the LOOP statement would never end. As a result, statements are only executed if one of the fields LGA02 to LGA40 is still filled. At the end, all of the information is in data record LGA01, and the loop can terminate.

DATA : 1 _s_datapa k_l i ne TYPE transfer_str ucture . 1 _s_datapak_l i ne_ne1• TYPE transfer_structure . 1 _s_errorlog TYPE rssm_s_errorlog_int . 1 v _index TY PE i . lv_do_index TYPE i . 1 v_str _index TYPE string . lv_lgart TYPE fieldname . lv_betrg TY PE fie ldname .

FIHD·SHIBOLS : <fs_betrg> TY PE ANY. <fs_lgart> TYPE ANY.

LOOP AT datapak INTO l_s_datapak_line . lv_index = sy·tabix .

* Delete locked employee IF l_s_datapak_li ne·sprps- ·x·. DELETE datapak INDEX lv_index .

* Only write wage types in the first field * and create new record ELSE.

IF l_s_datapak_line-lga02 IS NOT INITIAL .

CLEAR l _s_datapak_line_new . 110V E ·CORRESPONDING l_s_da tapa k_l i ne

TO l_s_datapak_line_new . CLEAR l_s_datapak_line_n ew-l ga02 . ( ... ] CLEAR l_s_datapak_line_new-lga40 .

77

Page 78: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

4 I M igrating the Data Flow

DO 40 TIMES . lv_do_index - sy · index . l v_str_index = lv_do_index .

*If smallet· than 10 ·> 0 IF lv_do_index < 10 . CONCATENATE ·o· lv_str_index

INTO lv_str_index . END IF . CONDENSE lv_str_index NO·GAPS .

* Create field names CONCATENATE 'LGA ' l v_str_index

INTO lv_lgart . CONDENSE lv_lgart NO·GAPS . CONCATENATE ' BET ' lv_st r_index

INTO lv_betrg . CONDENSE lv_betrg NO·GAPS .

* Assignment from source structure ASSIGN COMPONENT lv_lgart OF STRUCTURE

l_$_datapak_linc TO <fo_lgart> . ASSIGN COMPONENT lv_bet rg OF STRUCTURE

l_s_datapak_line TO <fs_betrg> .

* Fi II LGAOl!BETOl " target structure " IF <fs_betrg> IS NOT INIT IAL . l_s_datapak_line_new· lgaOl = <fs_lgart> . l_s_datapak_line_new ·betOl- <fs_betrg> . APPEND l_s_datapak_line_new TO datapak .

END IF . ENDDO .

* De I ete current record ( termination condition!) DELETE datapak INDEX l v_index .

ENOl F. ENOl F.

ENDLOOP . " at datapak into l_s_datapak_line

* abort <> 0 means skip whole data package!!! ABORT = 0.

Listing 4.1 Source Text of the Start Routine

Page 79: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Complex Migration Example I 4-4

This start routine consists of just the section in which you may add source text

yourself. The start routine itself is a program called CONVERSION_ROUTINE. In SAP NetWeaver BI, the procedure has changed; the program has become a method. This also changes key field names, such as DATAPAK and the data type TRANS­

FER_STRUCTURE. Later in th is section, you'll see what happens to these fie ld names during the migration.

4.4.3 Migration

In the complex example, the migration is also carried out according to basic ru le 1, which means that it starts with the update rule. Although we expect the migration

to run successfully, we can't activate the transformation because it contains our own source text. The transformation contains a routine that assigns the capacity utilization level to the FTE field divided by 100 (see Listing 4.2).

*result value of the routine data : l v_fte type /biO/oipaypct .

l v_fte_c(lO) type c .

lv_fte • COMM_STRUCTURE · paypct_cha I 100 . lv_fte_c = lv_fte.

RESULT = lv_fte_c.

* if the returncode is not equal to zero , the *result 11ill not be updated

RETURNCOOE- 0.

* if abort is not equal to zero . the update * process wi II be cance 1 ed

ABORT • 0.

Listing 4.2 Creating the FTE Field Information as the Capacity Uti lization Level Divided by 100

You start the migration by right-cl icking the update ru le and choosing ADDI­TIONAL FUNCTIONS • (REATE TRANSFORMATION from the context menu. You are asked to decide what should happen w ith the connected InfoSource 3.x (JS_pY8).

We will migrate it in the same step. as we did in the simple example (see Figure 4.29).

79

Page 80: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

4 I Migrating the Data Flow

@Copy Updata Rule to Transformation

r~.~f.q·~~-.~Y.i~-~-.9.~.~-~-~.-.9.~.~J~~;.-x9.~.-~~~~1 Select an lnfoSource @Copy lnfoSource 3.x to New lnfoSource

Ouse Available lnrosource lnrosouree: J

Figure 4.29 Creating a New lnfoSource Based on the 3.x lnfoSource

You can then give the DataSource a new name. In this case, we place a Z in fron t of the technical name and create ZIS_PY8 as the new DataSource (see Figure 4.30).

@Create lnfoSource 0~

lnfoSource ,~IS_PY8 ~ Long Oeserlptlon !created rromJ.)( 1nrosource rnrotype ooos (Basic PWJ I

Application Component jZGP_"IG ] ZGP_MIO

Copy from

Object Type l lnfoSource i!IJ Name I IS_PY8 I

-

2]~

Figure 4.30 Creating the New lnfoSource ZIS_PY8

The migration for the update rule and the InfoSource 3.x then begins. It concludes with the migration log with which you are already familiar. In this case, a warning message is disp layed, which relates to the specific routine for the FTE (ANZFTE) characteristic (see Figure 4.31). The message advises you to check the syntax for the routine.

The transformation has now been created, but its status is still inactive. The subse­quent syntax check in the transformation now even runs without errors.

Why is this? Because this behavior will also occur for the start routine, the answer to this will be provided later in this section, when we 'll be dealing with the situa­tion after migrating the transfer rule.

80

Page 81: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Complex Migration Example I 4-4

~ilr8IW flllil=r~~Elil 1·1- l ·l1 [9[d;!Ofll!il al-miol lf@11.~016 • 'as Ty ... Message Text 0 _..... Cop)ing the lnfoSource - -0 lnfoSource ZIS_PY8 was successfully treated and activated - -0 -Copying the Update Rules .....,.

0 cunencytunit OCURRENCY assigned 0 Routine nach ANZFTE (Oruppe: 01) YArd a us Vortage Obernommen.

6 Routine according 10 ANZFTE (group: 1) created. CMckthe syntax -0 Transformation saved successfully

0~@aljj]IE! Figure 4.31 Log for the M igration of the Update Rule and lnfoSource 3.x

After the syntax has been checked successfully, you can activate the transformation. Your data flow up to the InfoSource should resemble the one shown in Figure 4.32.

'V" ~Basic Pay <> jl(l TRCSZIS_PYS ·>CUBE IC_PY

- ~Created from3x lnfoSource lnfo!ype OOo8(9aSicP.;i

Figure 4.32 Data Flow After Migrating the Update Ru le and lnfoSource 3.x

Next, you migrate the transfer rule via the context menu for the transfer rule (ADD ITIONAL FUNCrJ ON$ • ( REATE TRANSFO RMATION). Do not create a new lnfoS· ource now. Instead, select the Info Source Z!S_pY8, which you created in the pre­vious step. The subsequent log informs you again that the InfoSource was copied successfully (see Figure 4.33).

~ l8l'ii'IOOI -l'l'lolil .. i •l?\1•lil 9ld;l ol~al-mial lf@IT~o (62 o•l Ty ... Message Text

0 - Copying the lnfoSource -

0 lnfoSource ZIS_PY8 already eXists. The syslem will use ltlis forlhe copy -0 -Copying lhe Transfer Rules - -~ Startrouline wird aus Vorlage Obernommen 0 J Start routine copied suctessfl.Ji ty -o [!!!nsformalion saved successfu1ty

0~gljj]oo

Figure 4-33 Log for the M igration of the Transfer Rule

81

Page 82: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

4 I Migrating the Data Flow

As mentioned earlier, the syntax check for the transformation created from the transfer rule ran without errors, which is an unexpected result.

The concepts from the 3.x and 7.0 data flow have changed fundamentally; that is , the program for the start routine has become a method. Here too, all parameter names have changed, as mentioned earlier.

The SAP migration program, which is used for migrating the update and transfer ru les, adds the old program for the start routine to the new method and transfers the new parameters to the old ones (see Figure 4.34). In doing this, field names do not have to change from their old transformation, and the transformation can still run automatically, provided that the source texts do not have to be converted.

METHOD start _routi ne.

PERFORM start routine CHANGING SOURCE_PACKAGE.

( ... J

ENDMETHOD.

New Parameter Name <SOURCE_ PACKAGE)

=

FORM startroutine CHANGING DATAPAK.

[ .. . J

END FORM.

Old Parameter Name (0ATAPAK)

Figure 4.34 Calling the Old Start Routine from the New Routine

Transfer and update rule migrations therefore run automatically; they only require manual intervention if obsolete ABAP constructions are used. These aspects are summarized for you in the following basic ru les:

Basic Rule 5: Migrating Update Rules and Transfer Rules

Update and transfer rules, wh ich contain ABAP source code within field assignments or start routines, must generally be adjusted manually because the SAP migration program transfers new field names to the old ones. Adjustments are on ly necessary if obsolete ABAP statements were used, wh ich are no longer allowed in t he course of ABAP ob­jects.

Many developers shy away from converting their ABAP statements to ABAP objects because this can be a time-consuming process. If, to begin with, you just

82

Page 83: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Recommendations for the Migration Project 1 4 ·5

want to restore the functionality following the migration, then it's also possible to use an interim solution. Move the source text from the start routine to a func­tion module. and call this from the migrated routine. This allows you to continue working with ABAP in the function module without having to take the - actually useful - syntax restrictions in ABAP objects into account. However, you should only use this as a temporary measure to ensure the initial operation.

You can now migrate the DataSource 3.x by choosing Migrate (migration WiTH

ExPORT) from the context menu of DataSource HRIT0008. The entire data flow is then available to you, as Figure 4.35 shows. You now just have to create a data transfer process. and you can then test the migration.

""' ~Bas-ic Pay "<' (:(]TRCSZIS_PY8·>CUBE IC_PY

o ~Created from3x rnroSource rnfotype 0009 (Basic Pay) " (:(] RSOS HRIT0008 IT2 200 ·• TRCS ZIS_PYS

~ IP HRIT0008

Figure 4-35 Data Flow After Successful Migration

4-4-4 Conclusion

The only exception for migrating the data flow occurs in the transfer of the ABAP

syntax to the ABAP objects syntax. There is no automatic program here to take the work off your hands. However, the syntax check within the transformations does indicate to you the areas that need editing. You can then use the F1 Help at the points the errors occurred to find out what construction has taken their place.

4.5 Recommendations for the Migration Project

To conclude this chapter. let's talk about the project costs now that you have seen how the data flow is migrated.

4.5.1 Cost Considerations

Migrating the data flow is a largely automated process. in which you only have to intervene manually if you have developed your own source text that is no longer compatible with ABAP objects. This does not mean that you now have to imple­ment your fu nction module-based logic in classes. Rather, the aim is to replace

Page 84: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

4 I Migrating the Data Flow

language constructs that were allowed in ASAP but which are now obsolete in ABAP objects with new constructs that are ABAP object.

Example

In ABAP, it was possible t o use internal tables without header lines. ABAP object s no longer allow this syntax, wh ich means that source texts of the following type are obso­lete:

DATA : 1t_tab1e TYPE TABLE OF tab1 .

CLEAR 1 t_tab 1 e . 1t_tab1e-fe1d = · 123 ·. APPEND 1t_tab1e .

You have to replace this construction with the following:

DATA : 1t_tab1e TYPE TABLE OF tab1 . 1s_tab1e LIKE LINE OF 1t_tab1e .

CLEAR 1s_tab1e . 1s_tab1e-fe1d = "123' . APPEND 1s_tab1e to 1t_tab1e .

The cost of migrating the data flow is thus considered to be relative ly small, in par­ticular when you compare this with migrating the web reporting. Furthermore. you can also temporarily resort to the variant that allows you to move the source text of your routines to function modules and to call this in the migrated routines.

Depending on the complexity of your data model, however, this migration can also drag out and take weeks. As a guide, you can estimate about one hour (although this can vary for very complex routines) for the pure migration of a simple data flow (1 InfoCube, 1 InfoSource, 1 DataSource), including a short test. For each persistent object (e.g .. InfoCube, ODS object) you add, you can calculate a further half hour.

To estimate the costs. you can create an Excel table from one of the data flows. To do this, look at the data flow in the Data Warehousing Workbench by clicking DISPLAY DATA FLOW in the context menu of an Info Provider. This displays a graphi­cal view of the data flow for the Info Provider. Either transfer the list to an Excel table, or add the cos ts directly to the graphic.

The migration of our simple example and of our complex example would each take one hour. This time was not completely used up because the source text was

Page 85: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Summary I 4.6

already ASAP object-compliant. Other examples, on the other hand, could be more complex and may take more than one hour.

Note, too, that selection conditions in Info Packages now only apply for the extrac­tion up to the PSA. If you want to make selections beyond this, you have to develop new fi lter criteria in the related data transfer processes. This can also take time. Furthermore, your process chains change to the effect that you have to insert data transfer processes.

4.5.2 Recommendation

You should migrate the data flow because the new functions certainly justifY the relatively low costs of the migration. Note, however, that changes to the data flow can also bring about changes to other applications too, such as process chains. In addi tion to the pure migration costs, additional costs can also arise if you want to use new concepts, such as error stacks, and so on, which were not previously possible.

4.6 Summary

In this chapter, you have learned about migrating the data flow. The beginning of the chapter covered the structures of the data flows in SAP BW and SAP NetWeaver BI and the differences between these. This knowledge is essential for carrying out the migration.

The chapter then detailed the migration process for you. You also learned about the SAP migration procedure and witnessed what problems can arise and where. The main objective of converting the data A ow lies in the transformation of ABAP to ABAP objects.

You saw the principle applied in both a simple and a complex example as a com­plete migration was carried out in each case. Finally, you now know the costs involved in this migration and how you can calculate these costs.

Page 86: SAP Press - SAP NetWeaver BI 7.0 Migration Guide
Page 87: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

5 Migrating Authorizations

This chapter shows you how to migrate from the old authorization concept to the new one. As in the previous chapter, you'll fi rst ge t an introduction to the authori­zation concepts of SAP BW and SAP NetWeaver BI and see the differences between them. Then, the migration principle will be explained, followed by an example. The chapter will be rounded out with some notes about the effort requi red to migrate from the old to new concept.

5.1 Authorization Concepts

The introduction of the analys is authorization has significantly changed the autho­rization concepts of SAP BW and SAP Net Weaver Bl. So, we'll start by discussing the new concept and then highlight how it differs from the old au thorization concept.

In SAP NetWeaver Bl, ana[ysis authorizations are responsible for reporting. This type of authorization differs from the classic SAP authorization concept and is cre­a ted and managed with the new Transaction RSECADMIN. You can use analys is authorizations to ass ign authorizations in reporting at va rious levels:

1> Authorization at the InfoCube level Here you limit the authorization to individual lnfoCubes. Users have full au tho· rization or no authorization at all for a given InfoCube.

.. Authorization at the characteristic level As is the case with assigning authorizations for InfoCubes, y ou can assign autho­rizations for individual characteristics. Accordingly. reporting users can use the characteristic completely or not at all.

I> Authorization at the characteristic value level This authorization contro ls individual characte ristic attributes, so the level is used often. With this authorization, you can limit users to individual values or sets of values, such as to individual company codes, organizational units, or material groups.

Page 88: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

5 I Migrating Authorizations

.,. Authorization at the key figure level When you assign authorizations for key figures, you can prohibit access to indi­vidual key figures.

1> Authorization to the hierarchy node level An additional level assigns authorizations for hierarchies. Here you have an option to assign authorizations to subtrees or individual nodes that you can also define in relation to other nodes. You can also assign authorizations at the leaf level in a hierarchy.

All properties of analysis authorizations can be combined with each other. Nev­ertheless, an analysis authorization functions are different from what you might expect:

1> When accessing data that corresponds to a subset of the authorized data (suc­cessful authorization check), you see the data according to your selection (see Figure 5.1).

D.:1ta according to .:1nalysis .:1uthoriz.:1tion

Selected dataset of a

query

Authorization check OK Data displays according to selection

Total Quantity of Data

Figure 5.1 Successful Authorization Check - Data Is Displayed

.,. If you attempt to access data that is not covered by your authorization, you don't see the subset for which you actually do have authorization. You simply receive a message: "No authorization" (see Figure 5.2).

Authorizations for hierarchies and key figures are exceptions to this rule. If you have authorizations for specific hierarchy nodes, the data of the hierarchy for which you have authorization is displayed when you include the hierarchy. The situation is similar for key figures in that you see the key figures for which you have authorization.

88

Page 89: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Authorization Concepts I 5.1

Data according to analysis authorizatio=.n::-----.J~

Authorization check failed

No data being displayed ("No authorization")

Selected dataset of a

query

Total Quantity of Data

Figure 5.2 Unsuccessful Authorization Check - No Data Is Displayed

5.1.1 Setting Up Analysis Authorizations

You can ass ign ana lysis authorizations only for lnfoObj ects that you have flagged as relevant to authorizations. You make the setting for an InfoObject with Transac­tion RSD1 in the BUSINESS EXPLORER tab. These InfoObjects are then availab le to you for use in analysis authorizations.

You can create analysis authorizations using Transaction RS ECADMIN (see Figure 5.3). They are managed in the Authorizations tab with the main tenance function.

Management of Analysis Authorizations

.. . ' f'Us8rV AnalySIS l

Authonzations

I. Malnlenante I

I~ Generation I

I I~ Transport I

Figure 5.3 Initial Screen of Transaction RSECADMIN to Manage Analysis Authorizations

Page 90: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

5 I M igrating Authorizations

After you select the maintenance function. you can either open an existing authori­zation or create a new one. To create a new one, en ter a technical name, and select

CREATE (see Figure 5.4).

Maintain Authorizations: Initial Screen

~~ Display H f1' Change jj 0 Create ii !O Copy IIH Delele jj..;. us agel

Authorization ~~-~-G)

Figure 5.4 Creat ing a New Analysis Authorization

You then see a screen that you can use to define the authorization structure. All of

the options noted at the beginning of this section are available to you here. You can assign au thorizations for characteristics, characteristic values . InfoCubes, hier­archies, or key figures (see Figure 5.5).

0 Create new authorltatlon

e h1St1t Special characteriStiCS

e lnfoCube authoriution

[J [J

0 Total authoritaUon

Q Auresation authorilation

Figure 5.5 Assigning Authorizations wi th Transaction RSECADMIN

The sample analysis au thorization, YORGUNIT, consists of eight d iffe rent charac­teristics. The first four characteristics were created with GENERATE NEW AuTHo­

RIZATION: they are limitations for specific characteristics and characteristic values.

90

Page 91: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Authorization Concepts I 5.1

The asterisk (*) in the INTERVALS column means that the analysis authorization assigned a full authorization for the characteristic. For example, you can assign a full authorization by selecting the FULL AUTHORIZATION button after you insert the characteristic.

The other four authorization objects were inserted automatically as soon you selected INSERT SPECIAL CHARACTERISTICS. This approach is essential. If you do not insert the special characteristic, your authorizations will not function downstream. The four characteristics originating from technical content have the following meanings:

.,. OTCAACTVT

Defines the activity that a user may execute (example: 03- display) .

.,. OTCAIPROV

Defines the InfoProvider for which the user will be authorized later on. In this case, it's a full authorization that is not limited to one lnfoProvider) .

.,. OTCAKYFNM

Controls the authorizations for key figures. You can define the key figures that the user will later be ab le to use in a report. In this case, it's a full authorization for all key figures.

I> OTCAVALID

Defines the validity of the authorization. Here you have an option to define periods for which the authorization is valid. This option is helpful if you review authorizations annually and want to have them automatically expire after a year.

Caution

After the technical migration, the four lnfoObjects from the technical content are not yet flagged as relevant to authorization. You still have to set the flag to ensure that the analysis authorizations function correctly. In some cases, you might also have to transfer t he four characteristics from the Business Content.

Every analys is authorization must contain the four objects, even if you do not define any limits. In this case, you define the full authorization four times.

You can use details to define the values for which a characteristic should be limited for each row (see Figure 5.6).

Page 92: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

5 I Migrating Authorizations

AUthorization: IYORGUHJT I Description: NO IEXI EXISTS l Chatact IBORGUNJT --::J

~erarchy Aulhortzab""'OnSl

lm ['i1'!8Ui!~DlJI!Il!l601 ..-a;;;, lnltMIS

J L._l9 .... [Technical Charac:ter. (from) JTethnital Charact Value (to) Jell _ I EQ 50000020 I

I 911 El

Figure 5.6 Assigning Authorizations in the Detail View

The detail view is split into VALUE AUTIWRIZATIONS and HIERARCHY AUTIIORIZA­TIONS. In the VALUE AUTHORIZATIONS tab, you can list individual values or sets of values for which the user should have authorization.

Caution

Note that you can work on ly with the I (include) option for characteristics and key figures, which means that authorizations such as "All organizational units except 50000020" are impossible. You can resolve th is situation by adding the following two rows:

• I, B~ 00000000, 50000019

• I, B~ 50000021, 99999999

The first row includes all organizational units between 00000000 and 50000019 (BT stands for "between"); the second row contains all organizational units above 500000021. Th is approach excludes organizational unit 50000020.

You can use the HIERARCHY AUTHORIZATIONS tab to define authorizations for hier­archy nodes. First, you define the Hierarchy for which a user should have autho­rization. Then, you define one or more Nodes, the Type of Authorization, and the Validity Range of the hierarchy (see Figure 5.7).

The hierarchy type defines the areas for which the authorization is to apply. You can select from the following types:

• Authorization only for the selected notes.

• Authorization for the subtree beneath the nodes.

• Authorization for the subtree beneath the nodes. including a level number that you absolutely must create. You maintain the number in the hierarchy level input field.

92

Page 93: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Authorization Concepts I 5 .1

@ Maintain Authorizations: YORGUNIT Edit m....-Definition of Hierarchy AuthoriZation

~ Hierarchy I

Nodes r

Type of Authorization D [Only the Selected Nodes

,

Hierarchy Level e Validity Range

- - - ~

1Naoe. Version Ident1cal and Key Date Less Than or Equal to .

~00 Figure 5·7 Defini t ion of the Hierarchy Authorization

... Authorization for the complete hierarchy .

... Authorization for the subtree beneath the nodes, including a level number for the node that you can create. You maintain the number in the H IERARCHY LEVE L

input field.

The validity range indicates how precisely a hierarchy authorization must agree with a selected display hierarchy so that it's subject to an authorization check. The following four values are distinguished:

... Type 0 corresponds to a very strict agreement. The name, version, and validity date must agree, depending on the reporting key date .

... Type 1 checks only the name and version of the hierarchy; the validity does not play a role .

.,. Type 2 assigns an authorization when the name of the hierarchy is identical; vers ion and validity period do not play a ro le here .

... Type 3 turns off the authorization check according to the preceding criteria; no more authorization checks are performed.

Take to heart the rule that authorizations should be created as narrowly as possible.

93

Page 94: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

5 I M igrating Authorizations

5.1.2 Assigning the Authorization

You can now assign the authorization to users directly, which is a good idea when you work with a relatively small number of users and authorizations. However, you should not take this approach when deal ing with several analysis authoriza­tions and users for administrative reasons.

Normally, you assign the ana lys is authorization of a ro le using Transaction PFCG (role maintenance), and then the role is assigned to a user or to user groups. The

analys is authorization is included with authorization object S_RS_AUTH (see Fig· ure 5.8).

r-12310016

~ o:o Nnu311y 9uttneu lnforuuon 1113rtfl0use

Le CX::0 lia, .:_"~!Vall )' II An~IY$1$ Ail\hOrlzttiOM 11'1 Ro le

~(XX) Q. "~!Wall)' 81 AnJI)'ll$ Al.rt.IIOrlUtlOAS 1n Role

L., ~ 81 Analrsu Auti'Kirintlons "- YORGillllll

.. $JC$_AUTM

Figure 5.8 Including Analysis Authorization YORGUNIT in a Role wi th Authorization Object S_RS_AUTH

The following subsection compares the two authorization concepts.

5.1.3 Comparing the Authorization Concepts

81AUlH

The greatest difference between the authorization concepts of SAP BW 3.5 and SAP NetWeaver BI is the technical foundation of the authorization. In the old release, reporting authorizations are based on SAP authorization objects. You had to ere· ate specific SAP authorization objects with Transaction RSSM for every lnfoObject that you wanted to protect. Authorization in SAP NetWeaver Bl, however, is based on the new analysis authorization that no longer has anything in common with SAP authorization objects (except that analysis authorizations must be linked with authorization object S_RS_AUTH when used in roles}.

In addition to this technical difference, the use of the reporting authorization from SAP BW 3.5 has been severely limited. Table 5.1 summarizes the differences, which are also used in various SAP presentations.

In terms of the number of objects that could be recorded, reporting authorizations were limited to 10. The limitation is no longer present in SAP NetWeaver Bl. The

new product also offers you new options to assign authorizations for navigation

94

Page 95: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Principle of Migrating Authorizations 1 5.2

attributes. And finally, authorizations are no longer assigned for combinations of InfoObjects and InfoCubes; they are now assigned only for InfoObjects.

Up to SAP BW 3.5 As of SAP Net Weaver Bl

Technical basis SAP authorization object Analysis authorization

Maintenance Cannot be changed later Can be changed on

Number of objects 10 objects Unlimited

Navigation attribute Only at the global level Individually

Hierarchy authorizations Separate maintenance Corresponds to a value with OTCTAUTHH authorization

Relevance to authorization By lnfoObject and Only with the lnfoObject lnfoCube setting

Table 5.1 List of the Differences Between Reporting and Analysis Authorization

5.2 Principle of Migrating Authorizations

This section covers the migration process from reporting to analysis in more detail, followed by an example that demonstrates the migration of a reporting authorization.

The migration of the authorization concept is carried out with a migration tool that is part of ASAP report RSE(_MIGRAT!ON. The ASAP report supports you during migration of the reporting authorization and executes the migration according to your specifications. Note, however, that the process normally involves some man­ual follow-up work, as seen in the warning displayed after you call the report (see Figure 5.9). The simpler the design of your authorization concept, the less work you'll have to perform later on.

SAP indicates that abou t 80% of the migration process can occur automatically. The remaining 20% requires manual post-processing work. In addition, customer exit variables that were created for OTCTAUTHH are not part of the migration. For such items, manual work is always needed.

Migration of the authorization concept behaves in a manner similar to that of reporting. Existing objects are not overwritten. They are only regenerated based

95

Page 96: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

5 Migrating Authorizations

on the old authorizations, and you can then test the regenerated items and assign

them to users.

@'Gener'al lnfotmatlon

J11portant Notes

o Th1s •1grat1on help 1s prov1ded to allow you to convert ex1st1ng authorization data fro• a 81 systea (version< 7.9) . lt supports •anual conversion . It cannot replace •anual conversion co•pletely because the t•o concepts are not tully coJpatible and so•e settings differ depending on the aodeling. You can expect t o have to aanually edit or partially reaodet the authorization concept .

o The siapler the author ization concept, the less ed1ting required. After eigration, coaplex authorization concepts 1ay deaonstrate different behavior. This applies 1n particular to conc.epts based on the co•patfb1lfty •odes for referenci ng character1st1cs wfth hierarchy an~ referencing navigation attributes . This •ust be chec~ed in detail and adapted •anually, if requ1red .

o The •1orat1on help 1s des1gned tor only a te• •1orat1ons dur1ng the upgrade. lt is not intended for regular •1gration of newly created authorfzat 1ons or authorizations generated using the old concept .

G G

Figure 5.9 Important Notes About Executing Migration Report RSEC MIGRATION

Report RSEC_MIGRATION begins with a template that you can use to specify the user or users for whom the migration is to be executed (see Figure 5 .1 0).

Note

You can successfully migrate only complete user groups. Accordingly, you should always select the users that belong to a user group. Otherwise, you receive an error message when the report executes: "The migration affects more users than are being migrated." The report then aborts with "return code 8.'"

Migration Authorizations: Set User

IG Nel<l Step (2nd) J

~~liill AIIVsers I ID rnformabon users lor lh8 Mlflralon User [Alias I'll ~~~~!.f.l (~ B

G ;=;

Figure 5.10 Selection of Users for Whom Authorization Will Be Migrated

Page 97: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Principle of M igrating Authorizations 1 5.2

You then receive a list of the reporting authorization obj ects that are assigned to a user in an authorization (see Figure 5.11). In the list, you can now define which values of the authorization objects are to be migrated.

~q, Next Step (3rd)f

IDDI Reporttno Aul'lonzaaon ObJs. fOr Migrauon

IIIIi grate )AuthoriZation Object I f!lll .......... ~ .......... JvOROUNrT35 El

0 S_RS_ICUBE G 0 S_RS_ODSO

0 S_RS_ISET

[J S_RS_MPRO

Figure 5.11 Defining the Reporting Authorization Objects That Will Be Migrated

Here, too, no te that authorization objects S_RS_ICUBE, S_RS_MPRO, S_RS_ISET, and S_RS_ODSO are no longer used in SAP NetWeaver BI. Instead, you can use InfoObjects OTCAIPROV, OTCAACTVT, and OTCAVALID from the technical con­tent. During migration, they are populated according to the entries in the fields noted previously.

After you've selected the reporting au thorization objects, you must define the assignment method (see Figure 5.12). Yo u can select from the following three methods:

~ Direct Assignment to Users With di rect assignment, the users selected at the beginning are assigned d irectly to the new authorizations. No new authorization profi les are created, and no changes are made to roles. After the migration, you can check and change the assignment using Transaction RSU01. In technical terms, this step gener­ates new analysis authorizations that you can then maintain with Transaction RSECADMIN.

~ Generate New Profile This method creates new authorization profiles. For each authorization, you receive a new profile that you can implement in a new role concept. The old role concept remains in place. The technical names of the new profiles begin with RSR_ and an eight-digit number.

~ Enhance Existing Profile This option enhances existing analysis authorizations with authorization obj ect

97

Page 98: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

5 I Migrating Authorizations

S_RS_AUTH, in which a new analysis authorization is created for each reporting authorization. The migration tool attempts to maintain the profile with as few changes as possible.

.. Undo Migration Here you have an option to undo an earlier migration completely. Created pro­files are deleted. Additional S_RS_AUTH authorization objects that have received new analysis authorizations are kept, but they no longer have any values.

Migration Authorizations: Characteristics

l<f> Next Step (4th) I -

SelettAssignment Method ...........,_..,, ...................

I :.~.l?.l.r.~~~~~-~~~~-~~~-'~-~~~-~~ .... ............ 0 Generate New Profile

0 Enhance Existing Proflle

0 Undo Mlgrabon

Figure 5.12 Selecting the Migration Method

You select direct ass ignment when you have a simple authorization concept with a limited scope and only a few users . This option is inappropriate in all other

cases.

If you have many roles in which you maintain reporting authorizations, we recom­mend that you generate new authorization profiles. The old role concept is main­tained, and you receive a new role concept that you can assign to users as profiles during migration.

You should enhance existing profiles with some caution because it involves the role concept. Roles are kept in their original condition and enhanced with autho­rization object S_RS_AUTH. All other authorization profi les remain untouched.

Caution

If you use Transaction PFCG to regenerate an authorization profile, you can remove from the migration any entries that were inserted by the th ird option.

The execution of the report generates an application log that is displayed after execution. If you close it, you can reopen it using Transaction SLG1 (obj ect RSEC_ BW _AUTH, subobject MIGRATE).

Page 99: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Sample Migration I 5·3

The following section shows you this ultimately very simple process with the use

of an example.

5.3 Sample Migration

To begin, the authorization is introduced in the old SAP BW 3.5 system and then

migrated.

5.3.1 Authorizations in SAP BW

In SAP BW, authorizations are created with Transaction RSSM, in which you can define authorization objects. The SAP BW authorization to be migrated is based on authorization object YORGUNIT35 and consists of InfoObject Organizational

Unit (OORGUNIT), as illustrated in Figure 5.13.

~~~!!E.!l!.ill __ YORGUNIT35)oro. Unit (Version 3.5) OKN~PP

Organizational Unlt

Figure 5.13 SAP BW 3.5 Authorization Object YORGUNIT35 from Transaction RSSM

As you saw in Section 5.1 , Authorization Concepts. reporting authorizations in SAP BW can run only with a combination oflnfoObject and InfoProvider. Accord­

ingly, after you maintain the authorization objects, you must check the lnfoProvid­ers to which the authorization should apply (see Figure 5.14). In this example, we link the authorization with InfoCube Personnel Management (IC_pERMNG).

99

Page 100: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

5 I M igrating Authorizations

IC_IT2PY

tC_PAO

IC_PAI

IC_PERMN(l

IC_PY1

lntoSet HCM BCT

MP_HR

MP _IT2HR

MP _PAO

MP _PAl

MP _PT1

MP_PY

Figure 5.14 Turning on a Check of lnfoProvider Personnel Management

You have now generated an SAP authorization object that can be checked against and used on Info Cube Personnel Management and InfoObject Organizational Unit. To define any limitations and to assign the new object to a user, you must define a role in Transaction PFCG. The new authorization object must be present in the role (see Figure 5.15).

CC0 11¥1utlly 8uS1MU lnfor-UtlOft tltrthOVU CCO 1\h.ltlly SAP MlnUt JMOrNt101'1 IJ3rth0u1e · lltll0rt1no

l..e CCQ e. .&, llanu.llly Qr9 Unlt {Yert lon 3 $)

l..s OCO Q. llan(J.I\ly Or9 Unlt (Vtrtlon 3 S)

L p Oroantnuontl untt 1000001 2

.. ... YORGU1Uil5

l · 1231a&1&09

Figure 5.15 Role YORGUNIT35_ROLE with Its Related Authorization Object

The role used here is named YORGUNIT35_ROLE and consists only of SAP BW authorization object YORGUNIT35, which was just created. The authorization was limited so that all users of this g roup have access to organizational unit 50000012 but not to any other unit.

The authoriza tion was assigned to user BI_DKNAPP, w ho belongs to user group SAPBW35. The group was created so that we only have to migrate one user.

100

Page 101: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Sample Migration I 5·3

Note

In addition to role YORGUNIT35_ROLE, user BI_DKNAPP also has a standard role that controls the access to SAP Business Explorer. But because the role is irrelevant to migra­tion, it isn't discussed further here.

5.3.2 Migrating the Authorization

The authorization created in this manner will be automatically migrated with report RSEC_MIGRATION. After confirming the warning message, you mus t enter one or more users who will be migrated. Here, user BI_DKNAPP is selected.

The report then automatically knows which authorization objects the user has. In th is case, reporting authorization YORGUNIT35 is selected and will be migrated (see Figure 5.16).

nq, Next Step (Jrd}(

~ Rep011ing Autllortzation OOJs fOr Migration

Migrate IAulhortzation Object ligll ........ ..!~!.. ....... lvOROUNrT35 G

0 S_RS_ICUBE B 0 S_RS_OOSO

0 S_RS_ISET

0 S_RS_MPRO

Figure 5.16 Selecting the Authorization to Be Migrated: YORGUNIT35

In the next step, you must define which method the migration will use. You can choose among the following methods:

~ DIRECT ASSIGNMENT TO USERS

~ GENERATE NEW PROFILE

~ ENHANCE EXISTING PROFI LE

Because we're dealing with a simple example here, we could select DIRECT ASSIGN­MENT TO USERS. In the real world, however, this option is rarely used. We'll select the second option, GENERATE NEw PROFILE, because th is first step should not touch the old profiles (see Figure 5.17).

101

Page 102: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

5 I Migrating Authorizations

Migration Authorizations: Characteristics

~~ Next Step (4th) I Select Assignment Method

0 Direct Assignment to Users

I @".?.~.~-~-~~~~--~~--6~fli~.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·.·_·j 0 Enhance Existing Profile

0 Undo Migration

Figure 5.17 Method Selection: Generate New Profile

A screen is then displayed that shows the details of the migration and the char­acteristics. These options refer to compatibility with earlier versions of SAP BW (before SAP BW 3.0). Here you decide if you also want to generate authorizations and authorization copies for the li sted options, which means that you can assign the same authorizations to navigation attribu tes that you used for the objects defined previously. In this case, you don't define an option because you don't need compatibility with earlier versions (see Figure 5.18).

Details of Migration: Characteristics

I~ Execute Directly II~ Execute in Background I Which Characteristics Receive Copies of Authoriz.?

IH Explanations I Create Value Authorizations for/

0 ~ Navigation Attributes (A .. B)

D Referencing NavigatiOn Attnbutes (A BR)

Create Hierarchy Authorizations for/

0 /Jl~ Navigation Attributes (A ... B)

0 J.O Referencing Navigation Attributes (A..BR)

0 a."' Refe rencing Characteristic (BRH)

Figure 5.18 Maintaining the Details of the Migration

102

Page 103: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Sample Migration I 5 ·3

But maintenance of the last option. Standard Value for Authorization-Relevant

Characteristics is pretty important. This option checks the assignment to the Info­Providers created in the old Transaction RSSM. Because authorizationYORGUNIT35 can consist only of a subset of InfoObjects that are relevant to authorizations, they

would not be able to run after the migration because all of the InfoObjects that are relevant to authorization must be contained in an analysis authorization. This option now defines the enhancements for the analysis authorization if characteris­

tics are found that were not contained in it. In this case, we click on Fu LL AUTIIO­RIZATION because the old reporting authorization supported limitations only for

the organizational unit. The report can then be executed directly.

You then receive a log that contains information on the errors (if any) that occurred

during execution (see Figure 5.19).

Display logs

~~~0 OatefflrneJVser II\JmbeiEnernaiiO 10bfett b1 Sub-objed te:d ITran (Program I Mode

...::..._o o3.03.2oos tO:s7.l1 Clt(t.~App ,. Wigra!IIOn BJ.M._ AUChortzatton 0 .. hllgration OfBIA SE38 CL.,..RSO_... Dialog pro-_ 0 Problem etass •mp,ort.Jnl 28 0 Problem ctassAddlllo~l lniOrmation 8

<>li''!J 'I8 I'ii'Hllll oc l'iJ :.II ·I · i ! Qioblol~ <>l-rnlol ,oi» pa:o I oo 1 o,. 1 ~-··l~saoe rex~ (Lru ~ ~&l1bllify" NIW llfiiOUit aut; Ret Cl'lll<lt:ltlt$tlt$ wf!h l'litr t[fl -o Thtl us.ers for lt'letr81l$ffne41istwillbtmi!lt11tel 0 Reading authoflzatlon <:ontent by obte«s 0 Reading of &UII'Ionzations for avthonz:atlon objet.t VOROVNITJS was stJC(essl\ll

0 Oetellon of data from pre<mus mlorabon 0 oeteo.'On or Old mlgralliOn data tor "EX:end Prot!e" metnod 0 Rote VOROVNIT35_ROLE fe<Jetltf3~e<l 0 V$tt eompari$On (Of rO .. YORGVNIT35_ROlE fii«U$i.ll

0 PrOIIe f.l'231 0016, role YORGVNIT35_ROLE· upd~te suteessfUI 0 OeteRon otold migra~n data tof "Oite<1Au6gnmenr methocJ

0 Otd miorallon lr.foonauon cJeteted 0 conslrUellon Of authorlza1ioM: t"om oiG ptOIIIe$(authoriZa!!ons

0 ~ ~lhorilalio~ 1·1.2'31001600 tor authOriZation ol)jtdYORO~IT35 .-antftutd

Figure 5.19 log After Execution of the M igration

As you can see, report RSEC_MIGRATION created a new profile, RSR_00000001,

which it assigned to user BI_DKNAPP. The report also generated a new analy­sis authorization from authorization object YORGUNIT35 and named it

YORGUNIT3500.

You can select the new analysis authorization, YORGUNIT3500, in Transaction

RSECADMIN. You rece ived an informative text that you could use to recognize

103

Page 104: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

5 I M igrating Authorizat ions

it (see Figure 5.20). If you then want to change the authorization later on, you receive a note that y ou are working with a generated authorization.

81 Authoriz. !Short Oescripti ... jMedium Oescripti ... j long Oescripti ...

OBI ALL

YOROUNIT

YOROUNIT3500

Figure 5.20 Selection of the Migrated Authorization

You can now see what the report did with the old reporting authorization (see Figure 5.21).

Maintain Authorizations: YORGUNIT3500 Edit

l P' Change •·• Display 1160 Check Format ll <>e- Usage liD Information I Authorization:

Short T ext:

Medium Text

Long Text:

COSTCENTER

OCO AREA

ORGUNIT

OTCAACTYT

OTCAIPROY OTCAKYFNM

TCAYALIO

[YOR6ijNIT3509 ] ..:L:::as::,t ,::Chc:a:::n.!:ge:.:d::...: _...JfOX!cDK:.::N:.::A::...PP __ ......:;9c3 _:9c3:.:. 2:.:.00:.:8~;,'::...11:..::::...17:..::..:.1 '-17

!Migration YORGUNIT I jObject YORGUNIT35

lorg. Unit (Version 3.5)

Figure 5.21 Maintenance of Generated Au thorizationYORGUNIT3500

The following activi ties occurred:

" All of the InfoObjects relevant to authorization contained in InfoProvider IC_ PERMNG were added to the full au thorization (OCALYEAR, OCOSTCENTER, and OCO_AREA).

104

Page 105: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Sample Migration I 5·3

., All standard authorizations that must be contained in every analysis authorization were inserted (OTCAACTVT, OTCAIPROV, OTCAKYFNM, and OTCAVALID) .

., The standard authorizations and the limitation from the role for the organiza-tional unit were copied.

Put more precisely, the organization unit contains a limitation for value 50000012, the activity for value 03 (display), and the InfoProvider for value IC_PERMNG. The migration was successful, and you can now remove the old authorization profiles.

5.3.3 Other Assignment Methods

If you select an assignment method different from the one selected in step 3, role YORGUNIT35_ROLE is inserted and enhanced with the new profile. In Transaction PFCG in maintenance of the authorization, you can see that a new authorization based on authorization object S_RS_AUTH was added (see Figure 5.22) and linked to the generated analysis authorization, YORGUNIT3500. The old branch of the authorization was not touched.

~ CCO 1\anvally 9us1nHs Infor•atlon lfarehwse A$

~ a:::oEil~"~nually 81 An•lnts Alltl'lortnttons tn Rol e

~ 0C0 (» llarwually ntgratt4 Rti)Ot'ttng Allti'IOJ'Ua1.1on l)t'Of1lt 1·12'l18fH6

L . tf 81 Mal ysts Autl'lortzattons Hill YOIIGUNIT

$_R$_AUTH

T · 12310916

~ 0:::0 1\.ainually SAP B~ntness ln1oraatton VIJf'ettouse · Reporting

~ 0::0 E;l ~ 1'\ani&Ollly Org Untt (Veruon 3 $)

Lc:, cx::o 1» 1\.ainually Oro Untt (Verst on 3 5)

L . Q1 OI'Oat~U'aUon.al unn

••• YORGIJHIJ35

T · 1231081$98

59890012

Figure 5.22 An Edited Role from the Migration Report After the M igration

When you select this method, you can set the old authorization branch to inactive after a successful test.

Reporting authorizations are , by design, controlled with variables that are created with authorization variables. After the migration, the variables are always still present and don't need to be adjusted because they have a standard replacement path for authorizations. No extra work is required here.

105

81AUJH

ORGUNIT

Page 106: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

5 I Migrating Authorizations

5.4 Recommendations for a Migration Project

In the previous section, you learned how you can use the migration report to transfer authorizations from SAP BW and how the report functions. In any case, the migration report migrates only simple concepts smoothly and still requires manual follow-up work.

The 80/20 ratio of automatic to manual migration noted earlier is basically correct. Nevertheless, these numbers can vary, so that the 20% of manual work actually takes up far more than 20% of the time that an automatic migration requires. In addition, these numbers don 't include the test phase that must be performed thor­oughly because of the sensitivity of the data.

The report always reaches its limits when too many users with various authoriza­tions are processed simultaneously. You can reso lve this problem by creating tem­porary user groups on the deve lopment system with Transaction SUGR to migrate only subsets of the actual users who must be migrated. That approach lowers the complexity of authorization objects (see Figure 5.23). This approach was used in Section 5.3.2 to reduce the number of users.

Maintain User Groups

[Q]IZ]~[m

vser oro up

Figure 5.23 Maintenance of User Groups with Transaction SUGR

In this phase, schedule enough time for the migration. The report itself runs for only a few minutes, but testing the generated authoriza tion and the correct fu nc­tioning of the objects that are involved along with the reporting authorizations consumes a great deal of time.

5.5 Summary

In this chapter, you learned about how the new analysis authorization functions and how it differs from the old concept of SAP authorization objects by providing

106

Page 107: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Summary I 5·5

more options when assigning authorizations and requiring manual adjustments when you migrate authorizations.

You then learned about Report RSEC_MIGRATION for migrating authorizations from SAP BW into the new analysis authorization of SAP NetWeaver Bl. Specifi­cally, we covered the following steps of the report:

1. Defining users

2. Selecting the authorization objects to be migrated

3. Selecting the assignment method

4. Maintaining the details of the migration

After executing the report, you generated new au thorization profiles and, if you selected the appropriate assignment method, roles that have been adjusted accord­ing to their old authorizations. You saw an example that demonstrated how the report works.

The chapter concluded with an examination of the critical factors and time that a migration can require.

107

Page 108: SAP Press - SAP NetWeaver BI 7.0 Migration Guide
Page 109: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 Migration in Reporting

In this chapter, the term "reporting" refers to al l reporting functions in the SAP data warehouse. Due to the technological evolution of SAP BW 3.5 into SAP NetWeaver Bl, reporting is currently the cost driver of concept migra tion.

To explain exactly why a time-consuming migration of reporting is necessary, this chapter opens by examining the similar yet technologically diverse designs of both versions. The designs are examined in detail to facilitate a discussion of the necessary migration. Next, we'll turn to the general principle of how reporting can be migrated, which is illustrated here with detailed examples. As in previous chapters. th is chapter closes with a discussion of cost considerations and some real-world applications.

6.1 Functional Design in Reporting

Reporting is based on the same functional design in both SAP BW 3.5 and SAP NetWeaver Bl but is implemented using different technology in each case. We'll therefore begin by examining the functiona l design. before turning our attention to the technological differences.

6 .1.1 The Query as a Fundamental Concept

Datasets in a data warehouse are usually stored in one-dimensional format. Special techniques are requi red to access a multidimensional dataset. In SAP BW and SAP NetWeaver BI. the technique used is a query. which can be implemented using a graphical application and represents the starting point for multidimensional que­rying of the dataset. Queries are created with the BEx Query Designer from the SAP Business Explorer Suite (BEx). This brings us full circle in terms of definitions because queries provide a starting point for the defin ition of lnfoProviders.

Info Providers

lnfoProviders are Bl objects for which a query can be created. Info Providers may physi­cally contain data (lnfoCubes, DataStore objects. lnfoObjects) or represent virtual views of data (VirtuaiProviders, Mult i Providers. lnfoSets).

109

Page 110: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

To display a report in any format requires a query. After you create a query, you then have additional options for designing the layout or selecting the display for­mat (see Figure 6.1 ).

lnfoProvider

I Presentation in MS Excel I Presentation as PDF

(")as of SAP Netweaver 91

Figure 6.1 Display Formats and Options in Reporting

Queries can be displayed directly on the Web if you use a standard web template provided by SAP. You can use a web template (or web application) to display the query in graphical format on the Web. Alternatively, you can use the SEx Web Application Designer (WAD) from the SAP Business Explorer Suite to design your own web templates, which you can then display on the Web.

SAP Standard Web Template

The SAP standard web template was created by SAP using the Web Application Designer and defined in Customizing. It allows you to display queries in a predefined format.

In SAP BW 3.5, the technical name of the standard web template was OANALYZER, and the correspond ing name in SAP NetWeaver Bl is OANALYSIS_PATTERN. In SAP NetWeaver Bl, the SAP standard web template is often also referred to as BEx Web Analyzer.

In addition to web display, you can also access queries directly in Microsoft Excel or export them from the Web to Excel.

110

Page 111: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Functional Design in Reporting 1 6.1

A query view (or view fo r short) is a saved view of the query data. It allows you to save filter settings and navigation steps and use these again the next time you call the view. For example, key figures are often sorted in ascending or descending order. You can create a view in the Web Analyzer or in Microsoft Excel in the BEx Analyzer. The standard web template provides elements such as the Save view button for this purpose.

One new feature of SAP Net Weaver BI is the BEx Report Designer, which allows you to output the view as a PDF. To do this, you create a report for a specific output format (e.g., DIN A4). This is useful because the scrolling option can't be trans­ferred from the Web onto paper. Reports cannot be migrated because the Report Designer did not exis t in SAP BW 3.5.

Support for the BEx Report Designer

After its purchase of the French company Business Objects, SAP announced that devel­opment of the BEx Report Designer would not continue beyond 2008. The last version of the BEx Report Designer will appear in SAP NetWeaver 7.1 at the end of 2008. As of 2009, the Xcelsius solution from Business Objects will be replaced by Xcelsius+. How­ever, maintenance support for the Report Designer will continue until 2016. For more information, refer to the SAP Developer Network (https:llsdn.sap.com) under Business Objects.

Table 6.1 lists the reporting objects and their applica tions.

The query. query view, and web template reporting obj ects are available in both SAP BW 3.5 and SAP NetWeaver Bl. However, reports can only be created with SAP NetWeaver BI. These are based on 3.5 queries, 3.5 queries that have already been migrated, or queries newly created with SAP NetWeaver BJ.

Reporting Object

Query

Query view

Web template

Report

Application from the SAP Business Explorer Suite

BEx Query Designer

BEx Analyzer or BEx Web Analyzer

BEx Web Application Designer

BEx Report Designer

Table 6.1 Table 6.1 Reporting Objects and Their Applications

111

Page 112: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

Naming Conventions

To distinguish clearly between new and old queries, queries from SAP BW 3.5 are re­ferred to here as 3.5 queries, whereas queries from SAP NetWeaver Blare referred to as 7.0 queries. The same approach is applied to web templates.

The following subsection provides a brief introduction to the applications used to create queries and web templates and the differences between these applications in the two SAP releases.

6.1.2 BEx Query Designer

You use the BEx Query Designer (see Figure 6.2) to create a query for a multidi­mensional dataset. The Query Designer defines the objects that can be evaluated when you execute the query.

iX·W'·[email protected].!§d#~W .:.fQTE @<til D ~ 191 CO 0 :s: · i:1l, -w-ml llil oo ~ 'ti' ll• ~ ~ [] l t!b · IC PERMNG

r I

8 D Key f igure i!J'S Calculated ~e)' Figure

'~ Res-tricted Key Figures

41! Amount <lil tO_AWDAY <lil tO_MAANZ

Free Olafac:teril6cs I CobMt I <1ll Numbe• of Action> fs D Oime-n.siont

i3. Personnel Area 8 ~ Key figurea

Bljt IC_PERMNGl 0100 4D No. of abs-ence days $. Controlling area

1!1 ,:ill Cost Centeo

l!l ,j! Job Rowt No. olllbse~ __j

111 . Organizational Unit • Otganitatton&l Unit a.Organiz ... .. rweol ...

• • Pers-onnel Area Jjf T "pc-;( ab•c~-J bT!'OOol ... r!l. Petl-Onnet Subarea !Hlrganiz ... .. r,. of ... l!lljt IC_PER14NG2 bT!'OOol ... 9 'jt IC_PERMNGJ

liJ,jl IO_AWART l!lljt IC_PERMNGT l!lljt IC_PERMNGU

mljt IC_PERMNGP

Fi"od )IO.,AWART

r r rr 'IIT2 Figure 6.2 8Ex Query Designer in SAP 8W 3.5

112

Page 113: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Functional Design in Reporting 1 6.1

As stated at the start of the chapter, a query is always based on an InfoProvider,

which is displayed here on the left, together with all of its characteristics and key figures . These can then be used for evaluation in the rows and columns. In this example, the report consists of a list of all types of absences and the absence days

per organizational unit for Personnel Area 0100. The preview in the bottom-right corner gives you an idea of how the report will appear later.

The FREE CHARACfERJSTICS a rea contains objects tha t can be used for navigation or for filtering on the Web or in Excel after the report is executed. If you place the PERSONNEL subarea in the FREE CHARACfERJSTICS area, for example, you can add

additional filters or breakdowns by personnel area after you execute the report.

In the FILTER area at the top, you can define characteristic restrictions, which are

invisible in the report and cannot be changed. If, for example, you want to define a restriction for a specific organizational unit that you don' t want the user to see,

you can do th is in the FILTER area.

Figure 6.3 shows the same query from the preceding example in the BEx Query

Designer in SAP NetWeaver BI 7.0.

pam .•. m .1 er · Query: New Query

PowsJC~ ··-Ei! c-.. c.;..,., !A< .. l ~s;;:,=~~•~:;:-:::=---nc-.-do,>--· 1'9 8 I~ .

G......,

o~a.He.~"l_ r Active

.,.QC)Grizet 4-Typc do b-Typct ol•

b-()r9WiU .t-Type ol a b-Type ol a ---'II

Expand To

I ::J

"' - r~ ..... /C.,...,, I

ll!l .,._;., I '~<~ '""" I =::JI ~ "2La

Figure 6.3 BEx Query Designer in SAP NetWeaver Bl

113

Page 114: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

The underlying principle of the Query Designer in terms of the positioning of rows and columns remains unchanged. However, the original Rows, COLUMNS, PREVI EW, FREE CHARACTERISTI CS, and FILTER areas are now divided between the following two tabs:

.,. Filter tab The FILTER tab contains default values and characteristic restrictions. The charac­teristic restrictions are identical to the FI LTER area in Query Designer 3.5. How­ever, the default values represent a modified view of the FREE CHARACTERISTICS. Although you could restrict characteristics directly in the Rows, COLUMNS, and FREE CHARACTERISTI CS areas with Query Designer 3.5, you must define these restrictions in the DEFAULT VALUES area in Que1y Designer 7.0. This is why it appears at first glance in Figure 6.3 as though no restriction has been made for the PERSONN EL area. The restriction is in fact hidden on the other tab .

.,. Rows/Columns tab The Rows/COLUMNS tab still contains the familia r view comprising Rows, COL­UMNS, Fll EE (HARACTE RI$TIC$, and the PREVIEW.

Additional Tabs

II you use advanced techniques, such as Conditions and Exceptions, two additional tabs of the same name are also shown. These are discussed in Section 6.3, Sample Migration of a Query.

The PllOPERTIES area on the extreme right is another new feature of the new Query Designer. In the older version, you could only access these settings through the function menu. Both versions are examined in greater detail in Section 6.3, Sample Migration of a Query.

Performance of the BEx Query Designer

The Business Explorer Suite is a collection of applications that you can install on your client PC. Performance, which was good in SAP BW 3.5, has significantly declined with SAP NetWeaver Bl because the applications were newly developed, and not only the SAP NetWeaver Bl server but also the SAP NetWeaver Portal is required to respond to requests.

114

Page 115: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Functional Design in Reporting 1 6.1

6.1.3 BEx Web Application Designer

The Web Application Designer allows you to develop your own web templates, which can be used for a specific query or as a default web template. A web tem­plate is always based on at least one query. which is then displayed, for example in a diagram. Figure 6.4 shows the Web Application Designer from SAP BW 3.5.

- ' ' . ~ 'llrt'tb r...,au ldt 11\.tH> "-t Td t..,. - -..,.. ~ 0~ 1:1 >< 'Iii" o~~>e t.a ' p:;;w; .... 311 11llll::l • J "

~ I< ;: ~{a •••Gil =-UKtty I

,. A.bt1>1W"• d")'C Jlff Ol"f~llo\1 111111111

- e. s....-s~ -'i ell• ... _, P, ... •~o..-..c-1<)-- ,-r--r-1 ID Got..e t....-o-Eb6. ::J -t;::-...... O'I~Qt ... ~l-~< ...... "-

--~---.-4.0(11'1

" It] ~-.. .... oovro:...., .... .:.1 c.....,o; l"" .. '-' 1

·- I Ca-.:pb.tt:al ~~~~~·sat

·-....... (_ ..... ""'~!## -I -·~-- ... i :.J

R

._, .... ,._, [: H1

Figure 6.4 BEx Web Application Designer in SAP BW 3.5

The Web Application Designer is divided into the following three areas:

~ Web Items area

~i

C'

~

On the top left, you will see predefined graphical objects, which you can use to display queries (e.g., tables. charts, drop-down boxes etc.).

~ Properties area Below the graphical objects area, the Properties area is where you can maintain the properties of web templates and all of the web items they contain.

~ Layout area In this largest area. you can position elements from the Web Items area. You can edit these graphically in the layout view or by using the HTML source code

115

Page 116: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

in the HTML view. Although the layout view offers limited flexibility, you can "pull out all the stops" in the HTML view and use everything from HTML to CSS o r JavaScript co design your layout.

The objects that you place in the layout view are indicated by a red <object> tag in the HTML view so that you can find them again easily. In addition to these <object> tags, a range of internal SAP BW macros (referred to as commands) are similarly highlighted in red after they are used. These macros are used to change filter settings, call different URLs. or read language-dependent text from ABAP programs, for example. They are discussed in detail in Section 6.4, Sample Migra­tion of a Web Template.

The structure of the Web Application Designer remains essentially the same. Fig­ure 6.5 shows the new vers ion with the same web template.

maa mtftf!ili¥l@U¥ ·UA'M#f§8§Mffffiti1 .=JQJ~ B WfbT~ Edt v.ew tt'laetl fOim.et Toott htlle W' ... H$ - 6 X

'0~86ll.tetl lc: illlll)IQ)'2JI~I:!ia:ii!I D<> ! ._....,_, · I> · I D Weblt~ "'X , ........ ,

f! N.,....IQJ'IP...,. liS f)OI p.,_

- Bt.tlonGr«~P 5ii' D~800(

O.uProYidef

Web Items I ReuJ.al:ltl!l Web J..s I Pl'~tiK "'X

,. .. ,...... . "' G~ol~ W'eb T~Pn'l'ld01tl

~~~-r~_l De~ r.::,.,..,:=i,E.,.....~,,;---- I

4i) L- !i>O<TMLJ<II!>o-1

ANAlYSIS . fTEN,..,1

Cra.plli('a} analysit

CHART_ITEiot.J

1\----------' ElrorsandW~ .,....._c ...... Figure 6.5 BEx Web Application Designer in SAP NetWeaver 81

116

(.112 • X

Page 117: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

The Principle of Migration in Reporting 1 6.2

The new Web Application Designer is divided into the following three areas: WEB ITEMS, PROPERTIES, and lAYOUT. What is new here is the subdivision of the

WEB ITEMS into STANDARD ITEMS and ADVANCED ITEMS, as well as the new names assigned to many of the web items. The old terms and their translations into the

new terms are provided in Appendix D, Translation of Web Items, to help you find your way around after the migration if you have been using the old Web Applica­

tion Designer.

In addition, HTML has been replaced by Extensible Hypertext Markup Language (XHTML). XHTML is an XML-compatible form of HTML, which follows stricter

syntax rules.

Example

In HTML, the <br> tag is often used for a line break. In XHTML, an opening tag cannot be used without a closing tag, which means that line breaks must be represented by the <br I> tag.

As you know, it may be difficult to switch web applications if you use your own source code. This is because the use of JavaScript has also been modified. Further­more, the discontinuation of certain functions, such as the table interface, makes

parts of the migration much more di fficult. This problem is dealt with in deta il in Section 6.5, Special Considerations When Performing a Migration.

The next section explains the principle of m igration in reporting and discusses important points you should be aware of.

6.2 The Principle of Migration in Reporting

As with the migration of the data flow, migration in reporting is not a compulsory process. You only need to perform a migration if you want to use new functions.

You can also start the migration w ith a single report and only continue with fur­ther reports after successful testing of the result. You do not necessarily have to

migrate all reports.

To allow you to open and edit both old and new SAP NetWeaver Bl objects, such

as queries and web templates, SAP provides both the old and new version of SAP Business Explorer tools in the new release. The Business Explorer start menu

117

Page 118: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

therefore appears as shown in Figure 6.6. This ensures that you can continue to use all reporting tools as normal after the technical migration.

~ BuStness Explorer • tWJ Bus1ness Explore;- (SAP BW 3 x) • ~ Planning Applications

'C1 GTK+ R<rtimo Environment • IGJ Anolyzer \!l' Anolyzer (SAP BW 3.x)

'CI SAP Front End • i;J Query DesiQner 111:1 Browser (SAP BW 3.x)

IF~-------Ej Report Designer ~ Oowrload Scheduler (SAP BW 3.x)

1i±1 Web Applkation OesiQner G:l Formatted ReportinQ ....;::;:..._ ________ I!:J Query Designer (SAP sw J .x)

li±t Web Appkation Designer (SAP BW 3.x)

Figure 6.6 Business Explorer Start Menu with Old and New Tools

Prerequisites for Using the Business Explorer

SAP NetWeaver Bl requires SAP GUI 6.40 Compilation 5 or higher to run the new Busi­ness Explorer tools. These can only be installed if the .NET Framework 1.1 is installed. For more details of the prerequisites, see the end of Section 2.2, Migrating the System

Landscape, in Chapter 2.

6 .2.1 M igrating Que ries

The migration of queries is vi rtually automatic. Each query is automatica lly migrated as soon as it's opened and saved in BEx Query Designer 7 .0. The old query is overwritten with the new version and can no longer be opened with BEx Query Designer 3.5. To avoid this, save the query under a new technical name. In this respec t, the query is an exception object because all other objects in the three areas of data flow, web reporting, and authorizations essentially remain in the old version.

However, the new BEx Report Designer 7.0 and BEx Web Application Designer tools can work with old queries. Therefore, you shouldn't migrate queries in the first step. You should only perform a migration if you want to use the new func­tions in the Query Designer, for example, new functions for creating exceptions and conditions.

From the point of view of the query. the question of whether the data flow had already been migrated is irrelevant. You can also create a 7.0 query in an Info­Provider with an old data flow. It's equally possible to create a 3.5 query in an

118

Page 119: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

The Principle of M igration in Reporting 1 6.2

lnfoProvider with a migrated data flow. A migration is only required to use new fu nctions.

6.2.2 Migrating Query Views

If you already use query views in web applications, you can continue to use these as normal. Unlike queries, query views are also downward compatible with the old application. If you call and save a query view in a new web application, the query view is saved in addition to the old version. This ensures that it can still be used with older web applica tions. The SAP BW 3.5 format of the query view is not overwritten.

This produces the following behavior:

~ The new query view is used in the new web applications.

~ The old query view is still used in the old web applications.

• The old query is used when you call the query view with BEx Analyzer.

6.2.3 Migrating Web Templates

The migration of web templates is the most time-consuming part of the migra­tion in reporting. The migration is triggered when you open a 3.5 web template with the migration tool from the new BEx Web Application Designer 7.0. In con­trast to the migration of queries or query views, the migration in this case is only partly automatic, in that the old objects from the 3.5 version are transferred to the new version. Due to customer-specific modifications in the form of JavaScript or the use of table interfaces, the remainder of the migration must be performed manually.

The migration produces two independent objects of the same web template in the database. that is , one 3.5 version and one 7.0 version. The two objects are inde­pendent of each other, which means that changes to the 3.5 object have no effect on the 7.0 vers ion.

You can continue to use queries and query views in 3.5 format in 7.0 web templates.

The migration of a web template involves the following steps:

1. The migration starts when you open a web template in version 3.5 in the migra­tion tool from Web Application Designer 7.0.

119

Page 120: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

2. After you open the template, the web template is converted into an XHTML­compatible format. This can be done manually or automatically as required.

3. After the migration into an XHTML-compatible format, a dialog box appears,

prompting you to finish the migration. Your web template is then displayed in the XHTML view of the Web Application Designer. Any relevant error or warn­

ing messages are displayed in the status window.

4. You can still view all of the old SAP BW macros that you've used. You should then convert these into the new format, for example, using the Command Wizard.

When you save the web template, you can give it a new name or keep the old technical name. Note that the o ld 3.5 version is not overwritten.

6.2.4 Special Considerations When Migrating W eb Templates

The migration of web templates is subject to a range of special considerations, which make the job of migration more difficult. You'll find a complete list of these special considerations in SAP Note 832713 ("Migration of web templates from BW

3.x to NetWeaver 2004s"), which is updated on an ongoing basis. Following is a list of the key points (refer to the SAP Note for the full list):

.,. The BROADCASTER and BROADCASTER IN DEX Web items are located in the SAP NetWeaver Portal in SAP NetWeaver BI and therefore can no longer be used in a web template. As a result, these web items are no longer available. The

same applies to the ROLE MENU, ABC ANALYSIS, and ALERT MONITOR web items, which are now similarly located in the portal runtime environment.

.. As mentioned earlier, many web items have been renamed, and some have

been added or removed. Appendix D provides a complete list of objects that have been changed or deleted .

.. Many SAP BW macros (or commands as they are a lso known) have changed in terms of syntax and semantics. Additional manual modifications are required

because only some macros can be migrated automatically .

.,. Most JavaScript functions have become superfluous due to the various types of

command definition. Where possible, an attempt is made to map commands to the new command structure during the m igration. However, this mapping

is not complete.

120

Page 121: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Sample Migration of a Query I 6 .3

~ The tab le interface or Web Design API for tab les is no longer available. No replacement for th is function is currently planned. However, if this fu nction is re-implemented, it won 't be automatica lly possible to migrate it, according to SAP.

~ JavaScript statements can only be migrated and used as of Support Package Stack 7 (SPS 7). The use of JavaScript in web templates is not permitted or pos­sible prior to SPS 7, so don't use a system lower than SPS 7. SAP also recom­mends that you don't use SPS 11-13 in a production environment. Therefore, use SPS 10 or SPS 14 or higher (see Section 2.2, Migrating Individual Systems, in Chapter 2).

The following sections explain how to migrate a query and a web template. This is followed by a discuss ion of the special considerations that apply to the migration of web templates. This chapter closes wi th some practical recommendations and a step-by-step guide to performing a migration in this area.

6.3 Sample Migration of a Query

This section provides a sample 3.5 query and 3.5 web template to illustrate migra· tion in reporting. First, let's discuss the query and web template in detail, before tu rning to the question of how to migrate the query. As you saw in the previous chapter, this process is virtually automatic.

6.3.1 Application Description

The report lists the "Top 10" customers in a calendar year. The calendar year can be filtered in the web template created late r. The city in which each company has its headquarters is also shown (see Figure 6.7). The technical name of the query is ZJWRS_T10_2004.

In addition to listing the customers, we want the query to show a ranking (from 1 to 10) before each customer name. Finally, the sales for each customer are to be shown and highligh ted in color. Because we want the ranking to be displayed in the first column and the sales figure in the last, the usual rows/columns lay· out can 't be used in this case. The Query Designer allows us to use a table layout instead.

121

Page 122: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 Migration in Reporting

OimenJ:iont lil-?t IC_RECHNT W-?t IC_RECHNT ID-?t IC_RECHNP

Fond

411 Rank ~ CuttOIWI81 ~ Cit> 411 Sale• (USO)

Figure 6.7 Example of a Query for Evaluating a Company's Top 10 Customers

The Top 10 customers are calculated using a condition. You specify that only the top 10 sales figures are to be output (see Figure 6.8).

t-5 Uef1ne londtuon

0 eac•iption jTop10eustotl"'f!fa

E vai!Mte the conditions ditp&afled below f01 r. AICho<....., ... ntheO._I_

(" wv;Je cherecteri$!U or~ d char6Ctet'l$bcl

Ch,roct~ T ec:tric4l None ij' 0 IO_KUNOE IO_KUNOE ~ 0 IO_KUNOE_IO_OATOl IO_KUNOE_IO_OR!Ol

~ 0 c.tendooY"" OCAI.YEAR

Displa:p al values fo. whic:h alleast one of the folowing conditions applies

Sttucue

r

Figure 6.8 Definition of the "Top 10" Condition for Sales Figures

122

New 10

'""""

OK c.nc.r

Page 123: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Sample Migration of a Query I 6.3

You use exceptions to produce color highlighting in the results. You can use an exception to assign various levels to the value ranges of a key figure, which will be highlighted in the results. The defin ition of exceptions is shown in Figure 6.9.

Exceptions

Exceptions actually indicate particularly critical values, for example, contracts that ex­ceed capacity.

J ' ' '

lsom(USOI

Exception Values I Cell Re•trictions l

F•om

m~ m •oo m 200 litl, JOO t:!J,•oo msoo m1SO m 1.000

-

l r

I To 50 100 200 300 400

500 750 l.(XXI

l r

~BodS

~ Bad B ~ Bad 7 6 MedumS 6 Medum S 6 Medum 4 0 Good 3 0 Good2 0 Goodl

r.

-

OK

Figure 6.9 Denning Exceptions for Color Highlighting of Sales Figures

II

II

New I Jc!<tc I

I

; 1 ~~"ramfer I .;..,_ .. _ ___.

c.ncel I

Finally, to tals rows are only shown for customers. The to tals rows for the cities are suppressed. Figure 6.10 shows the final result as it appears on the web.

After the query is executed, a warning message appears in the header of the web template to draw attention to the suppress ion of the totals rows fo r cities. This occurs because th is suppress ion may be incompatible with the condition in some cases. In this case, however, the message is irrelevant and is suppressed in the later web template.

123

Page 124: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

lll; .... w. cty

""""""

Figure 6.10 Result of the Query on the Web

6.3.2 Migrating the Query

..... -­''"" .. ...._. ---"'""" ---,,_

211)$,71 1,223,15 ..,. ... :mn 201,16 198.~

101.00 01!10

To migrate the query, first open it in the new BEx Query Designer 7.0. It also appears i.n the histo.ry of the most recently ed ited queries . When you open the query, an error message appears in the status window to draw attention to incor­

rect exceptions (see Figure 6.11).

Note also that there are a number of differences between the appearance of the

query here and how it was created in the old Query Designer. As you can see, the Rank is now shown in the Columns, even though a different layout was selected,

namely, the table layout.

This example is intended to illustrate that manual adjustments are possible, despite

the information provided by SAP. The first problem is that the tabular view config­ured in the old Query Designer has disappeared. This is referred to in the Re lease Notes for Support Package Stack 11:

The mode "Tabular View" was removed from the Query Designer. The BEx Report Designer offers instead numerous options for creating formatted reports. (Source:

Release Notes for SAP NetWeaver 7.0 SPS 11, Enterprise Reporting, Query and Analysis).

124

Page 125: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Sample Migration of a Query I 6.3

' ' ' . " _.llliA ..., ... """ '"" ... ; O~BoJI6l_.i!I'IX I!) f) ' gJ)1 1l~ .. l"' C,~"!;i 11!1;!1<>!- 11!1 1~ · - ·-i) IC,_A(I)IN : ;o- r-~ •• .n..c:, Q C.,__, c...v .. t:~~a.. ..... .!I e ~ K.,r.-" 6 lif$-~ 1'7 81~ · s O~~CMtor~~

. IO.,.RECH!U 41S .. '-IS0) •-I B e o-,'"*', ...... ...... 1_1.......,1

8 11Cji[01N1

5P f!::> lt.fi£0-INP 8 ICJI[O!Nl --IJit lbkod..l!£.1

[ilec:hnk; ....... jtc~rt.'lt.NI -

~A-• -s~ 1 ... ----.o, ~- ..O::r

><>•

•I ., ,.oer rl._.,c._ Jg,r:ol('CII;CnJ IF~ I

I .!J

,...,,_ !:J WMot:·:~VWA(t,l)_200t'wnoebt .... ._.......,.._""'!Moyl)..-. I

' O·~~ lo:--~~.~~~ I l!!l- ... 1'11>• ... IT2 A

Figure 6.11 Opening a 3.5 Query in the New BEx Query Designer

This means that our only options are to use the rows/columns layout or the BEx Report Designer.

The second problem occurs when we use exceptions. As of SAP NetWeaver BI, these are subject to strict syntax checks. which means that open value ranges , such as [1,000; #). are no longer permitted. This display must be replaced with a zoom command (see Figure 6.12), which is availab le in the new Query Designer.

Erroneous exception

Ale•t Level Operator From Value

I Good I ::::J I between .:JIHXlO !QI· I Trarufer I To Value

1111 ~I:

Correct exception I Aled Level Opeta!CI< V•lue

IJ Good 1 ..:., G1e~ert~n .:JPOOO Gl· ( Transfer l Figure 6.12 Extended Syntax Check and Correction for Exceptions

125

Page 126: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

After you correct the exception, a new warning appears in the message window to notify you that the query can no longer be edited with older versions of the Query Designer. If you then save the query under the same name, a similar message appears when you open the query in the old Query Designer (see Figure 6.13).

This: component was: edted With a more l'ecent ve.r$1on of the Edtct. You • have to use the more 1ecent vetsion to edt 1...-fu'ther poeesMgnot PQS5tie.l.lpdote yo.x front end.

II ()( Figure 6.13 Message Displayed When You Open a 7.0 Query in the Old BEx Query Designer

To demonstrate that 7.0 web templates also work with 3.5 queries, we' ll save the changed query under a different technical name (ZJWRS_T10_BEX70).

6.3.3 Conclusion

You've seen how you can perform a migration by merely saving a query. However, minor changes may occur, for example, if you used a tabular view or exceptions with open value ranges. On the other hand, the migration is completed within a short space of time.

The next section discusses the appearance of the corresponding web template and how it can be migrated.

6.4 Sample Migration of a Web Template

The migration of web templates is by far the most time-consuming part of the migration process. The process starts automatically but is interrup ted by required manual action and almost always results in manual post-processing, depending on how much of your own JavaScript or HTML source code you have used.

The next section follows the structure of the last section and begins by describing the structure of the existing 3.5 web templates before discussing how these are migrated.

126

Page 127: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Sample M igration of a Web Template I 6.4

6-4-1 Description of the 3.5 Web Template

The web template is based on the 3.5 query with the technical name ZJWRS_ T1 0_2004, which was described in the last section. The technical name of the 3.5 web template is ZJWRS_T10. Figure 6.14 provides an overview of the web template.

' .. ~·~ V')Wtf)l~ ldll ~ ~ T«!k l~ ... _..., H$

D el: !;IX '!i' a ~ e. ll " ~ • J u 1:'1 I~ ;, "" •"• GI "'·' " SIMMA~d f u....y I [SAP _BW_ TE:!\'T _!liD _11 51 "' 3 0$~1'-

"'' ~ .... ...J Ill""' n.. nportdalp:;.y.t>o lOp !Of _ _, b ello po•IXIJ'6'tdo6N Ye.e._l .. _,.,_t-10 .....-tk .......

QIO~b lr,e...-.•y,....,..--ct)...,oot,J'Ilo-coo.e.:'llhoiTtllffO•' kllllooV»-1~011-""••• ®Auoe-~

l<l"""-.... lilloQnppcrtdl Wtd~l )'='<lll_•,_,'ll

CI)G-~£1a(t. ..:.J ' . o.--

9 ISAP BW n.xr •liD 1161 f4cl (SAP BW TEXT IJm: 1171 ~

~AA~!iA.TIONB,!..OEX,. I ,-

•ISAP »w TEXT nm lJ8!2002

"' ISAf BW JW IJID ll21200d

• .:I I! G-..e: r Weblleofl'l I

~- . - l~tl:l•;ewo;..• I ·- jRSII_...........,_IT[W_NA.V_81.0CKI a> w•••

··-- lo.toloffiCMilffl_l 3QJ

ELLI ...,, lii"i'i.• "-""' """"'-' lJ ~ v-

I ..:.J

._,., ... J · - · J:, m

Figure 6.14 Web Template for Migration to SAP NetWeaver 81

The web template includes a centered header, which is currently [SAP_BW_ TEXT_!IID_47), This display, which only appears as shown in the layout view, indicates that the text to be displayed is determined using an ABAP program in the backend, rather than in the web template.

A short description of what the web template does is provided below the header. This text was entered in the web template directly.

127

Page 128: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 I Migration in Reporting

Below this description are two table columns. The generic navigation block web item, which you can use later to make filte r settings in the report, appears in the column on the left. On the right are four manual links, which implement the fo l­lowing functions:

"' Export to Excel

"' Export to CSV

"' Filter the report so that it only shows the results for calendar year 2002

"' Filter the report for calendar year 2004

The first two functions (Export to Excel and Export to CSV) were implemented with SAP BW commands. The two filter functions were created using custom JavaScript functions, which generate and call a new URL.

listing 6.1 shows the complete source code of the HTML view, which is essential for the migration of the web template.

<html> <!-- BW data source object tags --> <object>

<param name= ''OWNER" value=''SAP BW"/> <pa ram name• '' CMO '' va 1 ue• ''SET _OATA_PROV I OER '' /) <pa ram name= '' NAME '' va 1 ue= ''OATAPROV I OER_l '' I> <pa ram name ··ouERY'' va 1 ue• '' ZJI~RS_ Tl 0_2004 ··I> <param name= '' JNFOCUBE" value='' IC_RECHN"/> OATA_PROVIOER : OATAPROV IOER_l

<!object>

<object> <pa ram name= ''OWNER" va 1 ue= ''SAP _BW"' I> <param name• '' CMO" value• "SET_PROPERTJES"/) <param name= ''TEMPLATE_IO" value="ZJWRS_TlO '" /> <pa ram name•"SUPPRESS_SYSTEM_t·1ESSAGES" va 1 ue•"X" /) <param name="SUPPRESS_WARN!NGS" value="X"/> TEMPLATE PROPERTIES

<!object>

<head> <meta name= ''GENE RATOR" Content=''Microsoft OHTML Editing Control "> <title><SAP_BW_TEXT PROGRAM• ' ZBW_WEBREPORT_TEXTS '

KEY= ' OOl'><ltitle>

128

Page 129: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Sample Migration of a Web Template 1 6.4

< 1 ink href•" / sap/bw/Hi me/BEx/Sty 1 eSheets/BWReports. css ·· type•"text/css·· rel•"stylesheet"/>

<script language•"JavaScript"> <! ••

function filter(year) 1 var url SAP_BW_URL_Get() + ··&CMO~LOOC&TEMPLATE_IO­

ZJWRS_TlO&OATA_PROVIOER-DATAPROVIOER_ l& F I l TER_IOBJNM-OCAL YEAR&F I l TER_VALUE- '' + year :

//alert( uri) : SAPBWOpenURL(url) :

II· > <!script> </head>

<body bgcolor•''#ffffff'') <table border "0" width "600'' bgcolor• "#ffffff ">

<tr> <td valign-" top '' align•"middle" bgcolor•"#ddddff ''

colspan•"2"> <fonL ~Lyle " FONT WEIGHT : bold : FONT ·SI ZE : IBpL '' >

<SAP_BW_TEXT PROGRAH~ ' ZBW_WEBREPORT_TEXTS '

KEY• ' OOl ' ><!font> <ltd>

<ltr> <tr>

<td colspan•"2">&nbsp:<ltd> <ltr> <tr>

<td colspan•"2"> <font style-"FONT·SIZE : 9pt">

This report displays the top 10 customers for the period you choose . You can use the navigation pane to narrow the results . <br><br> I f you encounter any problems using the report , please contact the IT support hotline (555·1234) or write an e·mai 1 to [email protected] . We will contact you as

129

Page 130: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

soon as possible . <!font>

<ltd) <ltr> <tr>

<td colspan•"2">&nbsp : <ltd> <ltr> <tr>

<td valign•" top" wldth•"300"> <object>

<pa ram name···owNER'' va 1 ue•"SAP _BW"/) <param ndme•"CMO" value="GET_I TEM" /> <param name "N AME " value "NAVIGATIONBLOCK_l"/) <param name•"I TEM_CLASS"

value•"Cl_RSR_WWW_ITEM_NAV_BLOCK"/) <param name•"OATA_PROVIOE R" value="OATAPROVIOER_l "/) <pa ram name•"W I OTH" va 1 ue-"290"/) <param name•"SHOW_EMPTY_SLIC ER" value•"X"/) <param name•" ITEM_NAV_BLOCK_IOBJNM_l " value="OCALYEAR"/) <param name "BOOKEO_VALUES_l " val ue•"O" I> <param name•"ITEM_NAV_BLOCK_IOBJNM_2" value=" IO_KUNOE"/) <param name "BOOKED_VALU£S_2" value-"Q"/) <param name•" ITEM_NAV_BLOC K_I OBJNM_3"

va 1 ue•" IO_KUNOE_ IO_ORTO J" /> <param name•"BOOKEO_VALUES_3" value•"O"/) ITEH: NAVIGATIONBLOCK_I

<!object> <ltd> <td valign•" top" allgn•" left" width "300">

<table border· ··o·· width-"300 "> <tr>

<td class•"SAPBEXBorderFlexBoxTtl " wldth="290"> Options :<ltd>

<ltr> <tr>

<td valign "top ·· width "290 "> <A href•"<SAP _Blii_URL DATA_PROVIDER=' OATAPROVIOER_l'

CMD• ' EXPORT ' FORMAT• ' XLS ' >")<SAP _BW_TEXT PROGRAM• ' ZBW_W EBRE PORT_TEXTS " K£Y=' 002 ">

Excel<IA><br> <A href•"<SAP_BW_URL DATA_PROVIDER=' OATAPROVIOER_l '

Page 131: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Sample Migration of a Web Template I 6.4

CMD=. EXPORT . FORMAT=. CSV . >"" ><SAP _BW_TEXT PROGRAM=. ZB~I_WEBREPORT_ TEXTS . KEY =. 002 . >

CSV<JA><br> <A onclick=''javascript : fi lterl ' 2002 ' 1'' href='' f "> <SAP_BW_TEXT PROGRAM• ' ZBW_WEBREPORT_TEXTS ' KEY• ' 003 ') 2002</A><br> <A onclick• "javascript : filter( ' 2004 ' )'' href•"#"> <SAP_BW_TEXT PROGRAM=' ZBW_WEBREPORT_TEXTS ' KEY= ' 003'> 2004</A)

<ltd> <ltr>

<!table> <ltd>

<ltr> <tr>

<td valign· ··top" col span• "2'' ) <object>

<param name-"OWNER" value• ''SAP_BW"/> <par am name• ''CMO'' val ue- ''GET_l TEM"" I> <param name="NAME " value=''TABLE_l "/> <par am name• " I TEM_CLASS" va 1 ue• "CL_RSR_WWW_I TE~1_GRI 0" I> <param na mc-"OATA_PROVIOER" valuc- "OATAPROVIOER_l .. />

<param name•"CAPTION " value•"Oata"l> <param na me=''W IOTH " value=''600"/ > ITEM : TABLE_l

<!object> <ltd>

<!tr> <!table>

<!body> <!html>

Listing 6.1 Source Code of the ZJWRS_T10 Web Template

The web template consists of various special features. which are described next.

At the start of the template, you'l l see a JavaScript area containing the f i 1 ter(year I function. This function creates a new URL based on the year input parameter. This URL is then called via SAPBWOpenURL( ). The function is used in the options area and filters the results for the years 2002 and 2004.

Page 132: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

Next, a <SAP _sw_ TEXT> command is used to display the header of the web tem· plate. This command enables access to text elements in an ASAP program, for example, to ensure that texts can be displayed in multiple languages. The com· mand requires the following two parameters:

.,. The PROGRAM parameter The name of the ASAP program in the SAP BW system.

.. The KEY parameter The three-digit key of the text element.

In our example, the ABAP program is called ZBW_WEBREPORT_TEXTS and has three text elements (see Figure 6.15), which have also been translated.

Figure 6.15 Text Elements in the ZBW_WEBREPORTS_TEXTS ABAP Program

~ 1

9 12

The header is followed by standard text, which is formatted using CSS statements. Below this text is a table with two columns. The column on the left contains a generic navigation block, which can filter the three characteristics of calendar year, customer, and city. Various commands for filtering and exporting have been entered in the column on the righ t:

.. Export to Excel and CSV The <SAP _BW_URL> command allows you to perform an export. This command requires the DATA_PROV I DER (specifies the content to be accessed by the com·

Page 133: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Sample Migration of a Web Template I 6.4

mand), CMO (the command to be used for the DataProvider), and FORMAT (the export format) parameters. In our example, these are OATAPROV JOER_ l with the EXPORT command and XLS or CSV format.

~ Filter by calendar year The fi 1 ter<yearl JavaScript function is used here to filter the results according to the preceding logic. The <SAP _BW_TEXT> command is used again to display the text tha t is to be output.

A particular feature of the display in the column on the righ t should be pointed out at th is point. The SAPBEXBorderFl exBoxTtl CSS class was used here. This is an SAP BW standard CSS class, which is used, for example, to display the title of generic navigation blocks. It has been used in this case to adapt the layout of the options area to the layout of the navigation block and to demonstrate how the CSS classes have changed in the new release.

Finally, at the bottom of the screen, you'll see the query from the last section dis­played in the form of a table.

The following functions have thus been implemented in a web template and must be checked after the migration and corrected manually if required:

~ According to SAP, the generic navigation block used is not automatically migrated.

~ To display two languages, texts were read from an ABAP program using the <SAP _BW_TEXT> command.

~ Excel export fu nctions were implemented with the <SAP _BICURL> command.

~ The display of the options area in the column on the right is based on the SAP ·

BEXBorderFl exBoxTtl CSS class, which must be checked for errors after the migration.

~ A custom JavaScript function was used to implement filtering based on the cal-endar year characteristic (results restricted to 2002 and 2004).

Finally, warning and error messages were suppressed. The web template called is shown on the Web in Figure 6.16. Our objective is now to create exactly the same layout with a 7.0 web template.

Page 134: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

Top10 customers

This report displays the top 10 customers for the period you choose. You can use the navigation pane to narrow the resul1s.

If you encounter any problems using the report, please contact the IT support hotline (555-1234) or write an e­mail to lnto@supportde. We will contact you as soon as possible.

o ltavtgation Btocfc:

t

Colondar Yo"'

Customer City

"V Daten

Ct.lstomer 1--...,.:: I Ov;;;;:eroiRes<it

1----,1'1-11-1 009 2111-1017

- J 11-100S

~111-1 002 5 11-1007

t-_--:~6ct~11-1 004 7 11-1006

l----'s;-t111-1 oos

1--::9:-,.I I·HU 0 10 111-1021

AckerrMM

SChmkl

Kornfeld

stitz

SCI*Ie

Ne~M~Mn -Feuerstein Zeng~ling

Alhommer

l~l Optlonen:

Export to Excet ExporttoCSV Filter to 2002 Filter to 2004

Cly

I Res<Jt ----,Sales (USO)

I lim .....

Erfllt

Sternogen llmenau

lim.,_

ErkelellZ

lim"""" lim .....

"""""" Trsvnilei"l

I

Figure 6.16 Web Layout of the 3.5 Web Template

Migrating the Web Templates

1.223,15 400,00

233,92 201,16

198,46

101,80

f¥1/!IJ 57,44

47.431 t4.1K

In the new Web Application Designer, you start migration of the web template by selecting the menu option ExTRAS • MIGRATION TooL. First, you are shown an overview of the individual steps involved in the process (see Figure 6.17).

The first step is to select the web template to be migrated. Next, you can decide whether the conversion to XML is to be automatic or manual. Automatic conver­sion is selected here in our example. After you select the web template, you can start the conversion process (see Figure 6.18).

134

Page 135: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

i . l ' . ' "

1-!J Source Web TempiOIIl

T echnieal Name

Oeacription

liT Conversion So11ings

f7 Altl!nl)ttoae.ate I~XML autotMticaly

r Show CCf'I'Yefaion lrotA

~ Conversion Progress

I Close end Ed~

Figure 6.17 The M igration Tool in SAP NetWeaver Bl

i &•f.iQ,NFbfJi\Qii@M§I,§I§1@i§M,j

jjlJ Sou reo Web TcmpiOIIl

TechnicaiName ZJWRS_T 10

Oe•cription ZIWR$_110

~ Conversion Settings

P' Al.tCf1l)tlocrcde lnp.tXML 41UtOtMticaly

r ShowCorweu:tOnii'JIIA

l§l Close ond Ed~

Sample M igrat ion of a Web Template I 6.4

:;JQJ2!]

II I

1 Select Web T~ I C<.-..1 I

r a..noe 1

c...... I

Figure 6.18 Migration Tool Complete wi th Details for Starting the Conversion

135

Page 136: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

After conversion is started in our example, a critical message appears relatively quickly, which, at firs t glance, is rather confusing. The message indicates an appli­cation error (see Figure 6.19).

BEx"W"eb Application D esigner has encountered a problem and cannot proceed with the curentaction. We are sony for the inconvenience.

If you have processed some functions. the results might be lost. The application wfil not be closed. but processing is insecure. Try to backup your work and restart the application

P lease inform SAP about this problem.

Please describe in detailed steps how to reproduce this problem. Attach following baces to your description. too.

C:\DOKUME-1\dknaw\LO I<ALE- 1\Temo\bextrace wad 20080408 OS34.txt

Additional I nlormalion WAD revision 7005.5.1701.452 Internal ErroriD: F·CLEANSETITLETAG Error Message:

Figure 6.19 Application Error After Conversion Starts

Continue

On closer examination, however, you'll see that the migration tool has detected a problem with the conversion to XML, as can be seen in the trace fi le. The following text appears at the very top of this file: "TRACE FAIL how on earth can the string contain only an opening TITLE tag, and not a closing one as well?" (looks like even developers like to have a little fun sometimes!). This indicates problems with the <tit 1 e> tag, which we'll return to later.

After you confirm this "application error," the migration continues and ends with the oveJview shown in Figure 6.20.

Page 137: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Sample M igrat ion of a Web Template I 6.4

Soun:o Web Templ819

ZJWRS_I10

ZJw"RS_I10

Conversion Settings

Conversion Progress

. ................................................................

141 Cl ose and Edit

Figure 6.20 End of the Conver!;ion Process D uring t he M igration

The migrated web template then appears in the XHTML view. Listing 6.2 shows the complete source code after the migration.

<bi : bi sp xml ns- ··h t tp : //ww . w3 . org/TR/ REC · html40 '" xmlns :bi • "'h ttp : //xml . sap .com/2005/0l/bi/wad/bisp·· xmlns :jsp="http : //java .sun .com/JSP/Page" >

<html > <head >

<title > <! ·· BW data source object tags ·· >

<bi : text program="ZBW_WEBREPORT_TEXTS" key="OOl " I> <!title>

<link href• "bwmimerep : /1/sap/bw/mime//BEx/StyleSheets/ BWReports .css"

type="text/css" rel="stylesheet" I> <meta http· equlv· ··content · Type ·· content· ·· text/html :

charset=utf·S" I> <!head> <body bgcolor="#ffffff" >

137

Page 138: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 M igration in Reporting

<bi :OUERY_VIEW_OATA_PROVIOER n~me="OATAPROVIOER_l " > (bi : INITIAL_STATE val ue•"QUERY'' >

<bi :QUERY v~lue= '' ZJI4RS_Tl0_2004 '' !> <fbi : IN I Tl AL_STA TE>

<fbi :OUERY_VIEW_OATA_PROVIDER> <bi :TEMPLATE_PARAMETERS name- ''TEMPLATE_PARAMETERS_l " >

<bi :WARNINGS_VISIBLE v~lue=···· !> <bi : SYSTEtU·1ESSAGES_VISIBLE value="" I>

<fbi :TEMPLATE_PARAMETERS> <t~b l e wi dth="600'' bgcol or=''llffffff '' border="O" >

<tbody > <tr >

<td valign• " top" align- ··middle" bgcolor• "llddddff '' colsp~n="2 " >

<font style• "FONT· WEIGHT : bold : FONT-SIZE : 18pt·· [SAP_BW_TEXT :_x0020_PROGRAM_x003D __ x0022 __ x0027_ ZBW_WEBREPORT_TEXTS_x0027 __ x0022 __ x0020_KEY_x0030 _ _ x0022 __ x0027_00l_x0027_:SAP_BW_TEXT]&lt ;&quot : /font&gt ;

<!font> <ltd>

<Jtr> <tr >

<td colsp~n-" 2 " I> <ltr> <tr >

<td colsp~n-· 2 ·· > <font style="FONT·SIZE : 9pt" >

This report displays the top 10 customers for the per iod you choose . You can use the navigation pane to narrow the results . <br><br> If you encounter ~ny problems using the report . ple~se cont~ct the IT support hotline (555-1234) or write an e-mail to info@itsupport .de . We will contact you ~s soon as possible .

<!font> <ltd>

<!tr> <tr >

<td colsp~n-" 2 '' I>

Page 139: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Sample Migration of a Web Template I 6.4

<ltr> <tr >

<td valign=··top" width= "" 300" > <bi : NAVIGATION_PANE_ITEt1 name•''NAVIGATIONBLOCK_l"

designheight="300 " designwidth="290 " > <bi :WIDTH value- -290 " I> <bi : W ITH_TRAY va 1 ue=·-x-· type="CHOI CE" >

<bi :TRAY_SETTINGS type="COMPOSITE" > <bi :CAPTION_VISIBLE value· ··x- I>

<!bi :TRAY_S ETTI NGS> <fbi :WITH_TRAY> <bi :OATA_PROVIOER_REF value="OATAPROVIOER_l" I> <bi : FILTERING_E NABLEO value• "X" /) <bi :NAVIGAT!ON_BLOCK_CONTENT value="OUERYVIEW"" !>

<fbi :NAVIGATION_PANE_ ITEM> <ltd> <td valign=·· top" align=""left·· width="3oo ·· >

<table width• "300 "' border- ··o" > <tbody >

<tr > <td class="SAPBEXBorderFlexBoxTtl " width="290 ">

Options :<ltd> <!tr> <tr >

<td valign=" top" width="290" > <a >

<bi :attribute name•"hrer·· > <bi :EXPORT >

<bi : EXPORT_FOR~IAT val ue• "XLS" I> <fbi : EXPORT>

<fbi :attribute> <bi : text program="ZBioi_WEBREPORT_TEXTS"

key="002"" I> <Ia> <br I>

<a > <bi :attribute name="href" >

<bi :EXPORT > <bi : EXPORT_FORMAT va 1 ue="CSV" I >

<fbi :EXPORT> <fbi :attribute> <bi : text program• "ZBW_WEBREPORT_TEXTS"

key- ··oor I>

139

Page 140: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

<Ia> <br I> <a oncllck="javascrlpt : fllterl&apos :2002 &apos : )"

href="l/" >[SAP _BW_TEXT :_x0020_PROGRAI•1_ x003D __ x0022 __ x0027_ZBW_ WEBREPORT_TEXTS_x0027 __ x0022 _ _ x0020_KEY_x0030 __ x0027_003_ x0027_:SAP_BW_TEXT] 2002

<Ia> <br I> <a oncllck="javascrlpt : fllterl&apos :2004

&a pos : ) -href="l/" > [SAP_BW_TEXT :_x0020_PROGRAM_x0030 __ x0022_x0027 _ZBIU~EBRE PORT_ TEXTS_x0027 __ x0022 __ x0020_KEY_x0030 __ x0027_003_x0027 _ :SAP_BW_TEXT] 2004

<Ia> <ltd>

<ltr> <ltbody>

<!table> <ltd>

<ltr> <tr >

<td vallgn- · top· colspan- ··2· > <bl :ANAL YS I S_!TEI~ name="TABLE_l " des I gnhel ght=-300"

deslgnwidth- ''600" > <bi : w lOTH va I ue="600" !> <bi :W!TH_TRAY value- "X" type- -CHOICE" >

<bi :TRAY_SETTINGS type="COMPOSITE '' > <bi :CAPTION value- "Data ·· I> <bi :CAPTION_VISIBLE value="X" !>

<fbi :TRAY_SETTINGS> (/bi :WITH_TRAY> <bi :OATA_PROVTOER_REF value="OATAPROVIOER_l - I>

<fbi :ANALYSIS_ITE1·1> <l td>

<ltr> <It body>

<!tab I e> <bi : SCRI PT_I TEM name=" I~! GRA TEO_JAVASCRI PT_l TEM"

Page 141: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Sample Migration of a Web Template I 6.4

designheight="50" designwidth=" lOO" > Cbi : SCR IPT_CONTENT_TYPE_LIST val ue- "JAVASCR! PT"' I> <b i :SCRIPT value="bi large0ata: B6ZMIOYA98WWEXIOBCC78170W'' !>

(/bi :SCRIPT_I TE11 ) <!body>

<lhtml> <fbi : bi sp>

listing 6.2 XHTML Source Code After Migration of the Web Template

As you can see, the migration tool does not convert all custom HTML tags cor­rectly. Instead, it always inserts a blank space before the closing">" symbol. This produces the application error during migration, which occurs again during the syntax check:

.. Closing tag <!title> before <b i : text> is miss ing.

.. Unexpected < 1 tit 1 e > tag is removed .

.. The align attribute of the <td> tag contains the invalid value middle.

All of these messages are warning messages rather than error messages, and you should therefore correct the errors. The first two error messages are produced by the application error. In this case, the migration tool detected a blank space in the < t t t 1 e > tag and was unable to find the closing tag. However, removing the blank space does not eliminate the error, and the error message is still displayed.

This error message occurs because the <t t t 1 e> tag must not contain any SAP BW commands in SAP NetWeaver BJ. The error message only disappears after you remove the command.

After you correct the < t; t 1 e> tag, you must also correct the incorrect mi dd 1 e value in the a 1 i gn attribute. As you can see from Listing 6.2, the source code did not contain this value before the migration. To correct the value, replace it with cen · ter. After you do this, all warning messages disappear, and the web template is now syntactically correct.

Note

In the example provided here, the center value is replaced with middle again alter switching from the XHTML view to the layout view. This produces a new error message. This appears to be an application error.

141

Page 142: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

However, the web template is still not fully fu nctional because the migration tool was unable to convert all modules correctly. For example, tl1e JavaScript part no longer exists in the header area. and some SAP BW commands appear in an unusual green format (see circled area in Figure 6.21).

Figure 6 . 21 Migrated SAP _BW_TEXT Commands

You must correct this formatting manually because the tool was unable to convert it. All remaining corrections to be made to the web template are discussed in the next section.

6.4.3 Correcting SAP _BW _TEXT Commands

The <SAP _sw_ TEXT> commands were replaced with <bi :text> commands (see the following box).

The SAP _BW _TEXT Command in SAP NetWeaver 81

The <SAP _BW_TEXT> command for reading text elements from an ABAP program was re­placed in SAP NetWeaver 81 with an XHTML <bi : text> command, which comprises the same PROGRAt4 and KEY parameters. Thus, <SAP_BW_TEXT PROGRAM• ' A' KEY • ' 001 '> in SAP BW becomes <bi : text program- · A· key• · 001 · I> in SAP NetWeaver 81.

Therefore, correct all <SAP _BW_TEXT> macros in green formatting (refer to Figure 6.21) with the corresponding <bi : text> commands. as illustrated here by the example of the title:

"' Old source code [SAP _BW_ TEXT : _x0020_PROGRAM_x0030_x0022_x0027 _ZB\C~IEBREPORT _TEX TS_ x0027_x0022_x0020_KEY_x0030_x0022_x0027_001_x0027_ :SAP_BW_ TEXT)&lt :&quot : /font&gt ;

"' New source code <bi : text program• ' ZBICWEBREPORT_TEXTS ' KEY• ' 001 ' /)

Do the same with the two filter commands from the options area.

Page 143: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Sample M igration of a Web Template I 6.4

Caution

You need to check all <SAP _BW_ TEXT> commands that appear at first glance to have

been correctly translated. In our example, a subtle error managed to slip through. Al­t hough the migration tool generated correct <bi : text> commands for t he export com­mand, it deleted the word " Excel" or "CSV" from the description. As a resu lt, the fin­ished web template would contain the incomplete phrase " Export to"!

6-4-4 Correcting the JavaScript Statements

The JavaScript area initially appears to have disappeared. The migration tool has, however, recognized this area and transferred it into the relevant web item, namely. Sc ri pt. You wi ll find the Script web item at the very end of the source code (see Listing 6.3).

<bi : SCRIPT_ITEM name= .. IHGRATED_JAVASCRIPT_I TEW designheight - .. so ·· designwi dth- '' 100" >

<bi : SCRI PT_CONTENT _TYPE_Ll ST val ue= .. JAVASCRI PT .. /)

<bi : SCRIPT va l ue= ''bilarge0ata : B6ZMIDYA98WWEXIOBCC7Bl70W'' I> <fbi : SCRIPT_ITEM>

Listing 6.3 Migrated JavaScript Source Code

This is a key difference between SAP BW 3.5 and SAP NetWeaver BI with in the Web Application Designer. JavaScript source code can only be used in the Script web item and is no longer displayed in the HTML or XHTML view.

To display and change the source text. right-click on the Script item and select the Edit SCRIPT_ITEM option (see Figure 6.22). This also works in the XHTML view.

Cut

Copy

Paste

Ed1t SCRIPT _ITEM

Figure 6.22 Editing the SCRIPT_ITEM for Displaying the JavaScript Source Code

This opens a window in which the source code is displayed.

143

Page 144: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

This was automatically commented out after the migration. If you want to use it again, you must remove the comment, as instructed by the text generated for the JavaScript (see Figure 6.23).

Edit Script E ~ the suClt tel« and conlim you ~ a cancel Y CIU can also pcrtte code rto the conltol

Sc"" <!·· The folowrtg code has been copied ftom va-iou$ place$ Nide th8 Web l emplate and COI'IYI'Ief'lte Ol.t. If you wart lo reu;e t ~ remcwe the eOI'M'Ient and ~t the oode f l'leeettary, ··> <! .. r fln:tion Nter(yea~J{ va~ " ' " SAP_BW_URL_Ge<l) • '\omp£MO•LOOCI<omo; T E t.IP\A T E_IO oZI\IIR S _ T 1 OI<....,;OAT 1\,.PROVI DE R oOAT APR0\11 OER_I hmp;FIL T E R_IOBJ NM oOCA L\'1:AR~-;FIL TEA_ VALUE•" • ,...,, 1/""'(""l: SAPBVJO,...VRL(" I); ) lrl-·> <!··Endd;ec~ionfromt.t~gretioncopy anc~ COI'I'Inert. -> , .I ~-------------------~

OK c.ncel

Figure 6.23 Editing the JavaScript Source Code After Migration

The commenting out of the source code by the migration tool is a useful feature because the source code would otherwise no longer be functional after the migra­tion. In addi tion to the JavaScript functions used, the enti re syntax for passing parameters within the URL has thus also changed. The URL can now be considered to be a portal URL and no longer an SAP BW URL. Accordingly, a different server with d ifferent parameters is called.

The correction of this simple, two-line JavaScript function has suddenly become quite a complicated task. If you want to reuse th is function, you must follow these two steps:

1. Create a JavaScript statement with the Script Wizard, which performs filtering.

2. Remove the old <a> tags and replace them with the new LI NK_ITE~t web items (in the WEB ITEMS • VARIOUS • LiNK area).

3. Link the JavaScript function created with the Script Wizard in Point 1 to the new LI NK_ITE~I (the end result is that the LINK_I TEM becomes a <a> tag).

These steps are demonstrated in the next section, using the example of the old f i 1 ter (yea r > function, which performed filtering by calendar year (i.e., 2002 and 2004) for the OCALYEAR characteristic.

144

Page 145: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Sample Migration of a Web Template I 6.4

6-4-5 Creating a JavaScript-Statement with the Wizard

First, use the wizard to create a JavaScript statement. You can use the existing SCRIPT web item for this purpose. Right-dick to open it for editing. Then delete the migrated source code and choose CREATE WITH WIZARD. This opens a view, where you can select a command from a list. In our example, you need the SET_SELEC · T!ON_STA TE_S I MPLE command, which you 'll find under COMMANDS FOR DATA PRO­VIDER • DATA PROVIDER COMMANDS FOR FILTER VALUES • SET FILTER VALUE FOR A CHARACTERISTIC in the menu (see Figure 6.24).

Select a Command Select a COtMMnCI from yo.- f.wcdet bt Clf from a b t ol c01'1YJ\¥1dt by ~ lhe eppr()p'iote CCIC'IV'NI'Wi Yw can select a COft'll"'''aa' horn the bt d all e~ by telect~ the ehedl.box. J he ~ appears i-\ the favor~es isl

8 Del CanmandtlooDa<aPt<Mdet IB- Del Basic Data Providef Corrroands ill D l!:l Da<a Pto-Meo Conmandtloo A><et 1&- Del Oara Provide• Cc,..nmancb: fot Chatactetislics ~ 0 !;:, Oara Provide1 COI"'"tMt'Ids f01 Concitiont I Exceptions ill D l!:l Da<a Pto-Meo Conmandt loo o ... c.h ill D i!:l Da<a Pto-Meo C~ loo Doc"'""'' 6 D i!:l Da<a Pto-Meo Conmandt loo Flteo VolJet

0 l..:al l~ Help (UI-'tN_~t.tt.l.:l UH_UIALUtiJ D Remove ol F*eo Valvet IClEAR_AU_SELECTION_STATESI D Remove FlteoV-Ioo a Chao .. temtc ICLEAR.SELECTION_STATEJ D Remove FlteoV-Ioo a Litlcl Chaoaetefi~ict IClEAR_SELECTION_STATESI

El D Set Fl" V-ISET.SELECTION_STATEI D Set Fl" V-byDifete,. SouoeetiSET.SELECTION_STATE_8Y_81NOINGI D Set Fl" V-byl'olleo ISET _SELECTION.STATE_8Y_RLTERI

IV D l!:l Oala Pto-Meo Conmandt loo Hieoaoci-Oe• IV D b Oata Pto-Meo Conmandt loo Ooen!S.-.. F..-.eOons

1jl De::! Conmandtloo Plonni-og~ tjl DD CanmandtlooWebll., i!J DD CanmandolooWebTemolate•

Set Filter VoJue for a Characteristic [SET_SELEcnON..STATE...SIMPI..E) Set r4ter VM.Je foe a Chafacteristic

Figure 6.24 Selecting the SET_SELECTION_STATE_SIMPLE Function for Filtering Characteristics

Cl ick on Next to select the Data Provider for which you want to use the command. In our example, this is the OATAPROVIOER_l DataProvider. When you confirm the selection, a view opens, where you can select the characteristic you want to fil-

145

Page 146: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

te r. Here, select the OCALYEAR characteristic, and set the filter value to 2004, for example (see Figure 6.25).

. . ' -101~

Determine the Paremfdefs for the Command m AuisJ'I the r~ed value; to the l)ai'¥ndert. To cow the ddaut vM. I~ve the entJy bS t i;. To Create a c-Seouenee. C'-"> 'N"' c-w.

~ Set Filter Value for a Characteristic [SET_SEL.EcnON_STATE_SIMPLE) Set Fler Val.Jel01 • Chaf~Mtie

13 Data Bindi1g Ch&racte.istie I OCAL YUR lOCAL YEAR! ~t

B Command Specific Pa1ametm Sign IINCLUOING !Deldl ~

130peut01 EQUAL..SELECTION [Oelaul) ~

13 E""'' MEMBEA_HAME (Deld) ~

MtfT'IbefName I 2()04

M~rrber N.vne (MEMBER_NAME~ Technical ~~~daMe~

Dele<e I ""'Conmand I Back II OK I c ..... I figure 6.25 Edi ting the Command and Selecting the Characteristic to be Filtered

You have now created a JavaScript filtering function. As you can tell from the source code, the Script web item requires 73 lines for this function. You can now use this script to incorporate the filter into a LI NK_l TEM.

6-4.6 Creating and Editing a LINI<_ITEM Web Item

First. delete the old <a> tags. which no longer work correctly. Then select (see above) the LINK_ ITEM web item and insert it at the position previously occupied by the <a> statement. Next, you need to modifY the behavior of the application and implement the JavaScript function you have just created (see Figure 6.26).

Page 147: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Sample M igrat ion of a Web Template I 6.4

General Web Item Parameters

- Display 'w'dh in P.ilceb Height n Pixels VISiblly

~ lntcmoi Oi-&pl,y

Ql.ick.lrlo

""'~ - Beha ... ior

Alow Navi!)ation - Adion (Convnand T rigoered]

S"ipl F..-.cl)on

200 (Del d) 23 VISIBLE (OelaUIJ

OH(DelaUil

Text: (ZB\11_ W'EBREPORT _TEXT Oeld

OH(Deldl

On(Oeldl Se10>0 Fu ....... ISCRIPT _FUNCTIO • exeeuteJS_SET_SELECTION_ST

Figure 6.26 Implementing the JavaScript Function in the LINK_ITEM Web Item

Remember to use the text for the link (under In ternal Display). You also have the option of using an ABAP program to find and display the text. although this is now an outdated approach (see Figure 6.27). However, this is irrelevant for the migra tion because the sole obj ective of the fi rst step is to ensure that the new web template is functional.

- ' ..l!:I.!!J Edit Te xt in t.onguogo EN m Woct fte ~PUc:e ior the ted or ~the telll ci~.

T•IT)'Pe (' l~~rder;ondetf felt

C' l~TeoCStolod nObteet(YiebT~t fll~Wot>._..l

C" ~ieDIIStolodn TC!Ie

f'O' ~~ Repo~~ Telt(Obdetel

T~~~

I R~ jiiW_wt8REPOAT _t(XJS . ., ]Oil ![-........-. .. II Culri le.t~

r-• ~

•I

OK I c....! I

Figure 6.27 Selecting t he Report and the Text Element to Display the Text

147

Page 148: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

You can also customize this text. for example. by adding "2002" and "2004". How­ever, you must do th is in the XHTML view because it is not possible to access the source code from the properties view. Listing 6.4 shows a complete LI NK_ITEM

from the XHTML view:

<bi : Ll NK_I TEM name=" LI NK_I TEM_l .. des i gnhei ght=''23 ''

designwidth- " 200 '' >

<b i:HEJGHT value=" 23" I> <b i: TEXT_CONTENT value• " Text : <ZBW_WEBREPORT_TEXTS-003) 2002" >

<bi : text program• " ZBICWEBREPORT_TEXTS" key• " 003" I> 2002

<lb i : TEXT_CONTENT>

(bi :ACTION type• " CHOICE " va l ue• " SCRIPT_FUNCTJON" >

<bi : SCR!PT_FUNCT!ON value=

" execu teJS_SET _SELECT I ON_ST A TE_S I f1PLE_R2002 " /)

<lb i :ACTION>

(/bi : Ll NK_ITEM>

listing 6.4 Source Code of LINK_ITEM_ 1

Follow the same steps for filtering by the value " 2002 " , that is, create a new JavaScript function and link it to a second LINK_!TEM. The result is shown in Fig­ure 6.28.

llH ,_.,.... , !'! >OHML I o o- 1

[Text]

Tb:!s ~port chspl:a~ IM l()p !O~om!H (or lh! pniod youehoose. V011Wli!Ml the ~aonpMe to n.atn)W the tffillt,.

lfyouencouatenny pdl&ms usia& the: zt~port, p.leueeoa1&e! the rT S'Upporl ho!liM(S5:S..I234)otwrite ane.rmi) to lllto(!rupport .de. We Ml:leolltett you~ !IOO'nu _po~d,~ .

-:!it NAV1GATIONBL.OCJ..._1 OATAPROVIOER__I:ZJtl,j Optionen:

1

lText1 Excel l

T<xtl CSV m LINIUTOU I "' LIN<VTEIU I

~

~ ~ lit

Now DW Plovidef DATAPAO\IIDE ..

Figure 6.28 Layout View After Positioning of Both LINK_ITEMs

Page 149: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Sample M igration of a Web Template I 6.4

You can use the same technical name when saving the web template. As a result, a new 7.0 version of the old SAP BW 3.5 object is created. Meanwhile, the old object continues to exist and is still functional.

Calling the Web Template for the First Time

Now that the migration is finished, the next step is to call your web template for the first lime and view the resu lt. The web template is now fully functional. Figure 6.29 shows the result of the first call of the web template.

Top10 customers This u;port displays the lOP 10 tustomers for the period you choose. You can use the navigation pane to narrm the resutts.

If you em:ounter any problems using the report, please contact the IT support hotline (55$-1234) or write an e· mall to [email protected]. We will contact you as soon as possible.

I EJ O"'lons: Export to Ex~

... Spaten

• Kemzdien Export to CSN

~z- ~

• cu.toma ~

• .City

I

• freie Mert!Mie

• Calendar v~ar

... "" El CU\11111:: e~~.> :: 1';;, .. :: C.li,U'"...Oj :::

O.l••9b• :n.n u-•m --· , ... , .. ' L-..!0:1!:!!.1 11•10\i ...... ... z 100,00

ll• t\0$ •I>IIUJ aMJUc• • '"""' ll· fOZ: "" IIIM I.:M ' :01.16

H·W. :tltlt llilllt iJie • ..... H·tilOI

.. _, f ..... : • ~ ...

ll· tXIS """" IIMI.M l .... u-•m ,..., .... ..... ,. •L ~ ... 11·1010 rc!o9t•lt!l IIIMI.)t

;F-~ ll· la::t - · Tr.tunlll

Figure 6.29 f irst Call of the Edited Web Template

However, the results are disappointing because the layout differs from SAP BW 3.5 and is not what we were expecting. For example, all fonts used in the web items are several sizes too smal l. You'll a lso notice that the interface has been adjusted to the Portal layout in SAP NetWeaver Bl. As a result, web items are always displayed

149

Page 150: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

in an iView. where they can be expanded or collapsed as requ ired (tray). The lay­out of the SAPBEXBorderf1 exBoxTt 1 CSS class, w hich was used in the old version

and was incorporated into the Options area, still works in the new version but is out of sync with the rest of the layout.

6.4.8 Initial Conclusions

Even though functionality has been replicated. the layout is not fit to be presented to customers. Therefore, the functional migration, after which the web template

is functional once more, is usua lly followed by a migration of the layout (optica l migration).

6.4.9 Optical Migration

You can see the first results of optical migration immediately by deleting the old SAP BW style sheet from the XHTML view (see Listing 6 .5).

<1 ink hre f= "bwmi me rep : ///sap/bl</mi me//BEx/Styl eSheets/BWReports . css ·· type• "text/css" rel • "stylesheet" I>

Listing 6.5 Removing the Old SAP BW Style Sheet

After you do this, the new style sheet is used instead. which displays the correct font sizes.

As you can see in Figure 6.30, removing the style sheet produces a much-improved layout. Note that all manually used CSS formats are replaced by unformatted

text.

Caution

If you've used CSS formats from the old style sheet, these are replaced with normal text after you remove the style sheet. The greater the number of CSS formats you used in the old style sheet, the greater the number of changes to be made.

The final change to be made for our sample web template is the modification of

the Options area, in which the SAPBEXBorderfl exBoxTt l CSS class has been used. You can, for example, use a GROUP _I TEN e lement for th is purpose. This has a tray

that adapts the layout to the navigation block.

Page 151: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Sample M igration of a Web Template I 6.4

Top10 customers This report displays the top 1 o customers for the peliod you chOose. You tan use the naVIgation pane 10 nam>~ the results.

tfyou encounter any problems using the report. please c::ontact the IT suppor1 hoUine (555·1234) or write an e-mall to [email protected]. We 'NIII contact you as soon as possible.

I E1 Options:

• Spelen Export to Excel

. """"""""' Exooatocsy . ._, · Customer F1K to?OQ2 • Cty

• Fteie Mettrnrelle Fl « to?OQ4

• c.nc:tar Year

I D:wte-n El CU!tcwner: c~y: Rri #: Sale$ (USO) :

Gest~~Hergebnts 2 .609,77

11-1009 .._.,.,.,., - 1 c 1223:l!J 1 1-1017 Sctmdl utort 2 400.00

11 -tOOS Kcrnfeld Steinhagen 3 233.92

11 -1002 S11z ""'""" • 201,16

11 -1007 - ""'""" s 198,46

11-1004 N.........., &telanz 6 101 ,80

11-1006 - - ' 97.00

11-1008 Feuerstein - ~F :~~ 11-1010 Zengeotng -11-1021 ...,_.,.,. Tr~ 10 14,G4

Figure 6.30 Layout After Removing the Old SAP BW Style Sheet

6.4.10 Conclusion

In this section, you've learned how to migrate a very simple web template, and you've seen the changes that need to be made as a result of the migration. In addition, you've learned that the migration of a web template comprises both a functional and an optical migration. Functional migration restores functionality, whereas optical migration redesigns the display.

The following section discusses in de ta il the special considerations to be made in relation to the migration.

Page 152: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

6.5 Special Considerations When Performing a Migration

The first point to note is the fact, mentioned previously, that the web template

migration comprises both a concept migration and an optical migration. Depend­ing on the complexity of the functions and the layout, both migrations may be very time-consuming, particularly if you are not sure how or even if the old func­

tionality will be mapped in the new release.

This section deals with functions that can be implemented without any problem in SAP BW 3.5 but cannot be implemented in SAP NetWeaver, at least at first glance.

6.5.1 Table Interface

The first function for which there is unfortunately no equivalent in SAP NetWeaver BI is the table interface from the Web Design API for tables. The table interface was a practical way to modify or extend tables and navigation blocks on the web using

methods in a special ABAP class.

To do this, you created a class that inheri ted from the CL_RSR_www_MOOI FY_TABLE

class in Transaction SE24 in the back end. The class methods had to be redefined to modify rows and columns in a table or navigation block from the Web Applica­

tion Designer. You then had to define the resulting class in the TABLE INTERFACE CLASS parameter in a table or a navigation block (see Figure 6.31).

-- -

Properties New Template!

!Til TABLE_1

W eb Item I Value

Table: Scroll Area Below G!l Display Column Headers G!l Display Row Headers G!l Display Data Cells G!l Alfected Data Providers (list)

Data Dispaly from Value ... 1

X

Data Display to ValueR... 0 ~ Data Display from Value ... 1

Data Display to Value C ... 1()_·····- ·····- ····- ·····- ····- ·····- ··· Table lrierface Class L~.l,d.~Q!?.IFV,. _ ____ ____ _J

Figure 6.31 Defining a Table Interface Class for a • rable" Web Item

Page 153: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Special Considerations When Performing a Migration 1 6.5

This funclion doesn't exist in SAP Net Weaver 81. According to SAP. there are no plans to make the function available again in the future (see Release Notes for SAP

NetWeaver 7.0). The reason for this has to do with the relocation of reporting to the SAP NetWeaver Portal. You can therefore expect to encounter restrictions in

reporting if you've been using the table interface.

In some cases, the table interface was also used in SAP BW where it allowed func­

tions to be implemented faster than with the dedicated options provided. A good example of this is the display of documents using characteristic values. The table

interface was ve1y frequently used to display documents or related information by cl icking on certain characteristic values. The same can be done, in a slightly more complicated fashion, using the document management functionality in Knowledge

Management (see Appendix A, Bibliography).

6.5.2 Using JavaScript

As you've seen in the las t section, you can still use JavaScript, but it has become more complicated to do so. For example, due to XHTML compatibility, it's no longer possible to have <script> areas in the header area of the web template. Instead, you must place each JavaScript function within a Script web item.

However, this has no impact on functionality because it is only the storage loca­

tion that has changed. You can still access JavaScript functions in the attributes of HTML tags. as shown in Listing 6.6.

<body onload='' javascript :function(paraml . param2) '') [ .. . J <!body>

Listing 6.6 Example of the Use of a JavaScript

Therefore, the conversion of JavaScript statements, rather than their storage loca­

tion, results in the necessary modifications. Many functions are no longer sup­ported. for example, the SAPB~JOpe nURLI I and SAP _BW_URL_Getl I functions, which were required to create and call URLs. This is due to the relocation of reporting to

the SAP NetWeaver Portal.

We use JavaScript frequently in SAP BW 3.5 to create new, dynamic URLS, for

example, for changing a DataProvider or for filtering. This produced statement

153

Page 154: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

blocks with upwards of 200 lines of source code, which made the migration much more difficult later on. These functions then had to be translated into the new "language" of SAP NetWeaver BI.

6.5.3 Using SAP BW Commands

SAP BW commands are commands that you could use in the Web Application Designer. They allowed you to perform filtering, drill-downs, sorting, and exports. You could also use these commands to add text contained in text elements from ASAP programs.

These SAP BW commands are no longer available. However, they have been con­verted into new commands and can be used in their new, changed form. Practi­cally all of the SAP BW commands you would have used have been replaced with new commands in the migration tool. For example, we saw earlier how the export to Excel and CSV has been converted:

.. SAP BW command

<SAP_BI~_URL OATA_PROVIOER= ' OATAPROVIOER_l ' CMO- ' EXPORT ' FORMAT- ' XLS ' >

.. Corresponding command in SAP NetWeaver BI

<bi : EXPORT> <bi : EXPORT_FORMAT value-"XLS" /)

<fbi : EXPORT>

We also saw how the <SAP _B~l_TEXT> command has been replaced with a <bi : text> statement.

.. SAP BW command

<SAP_BW_TEXT PROGRAM• ' A' KEY- ' 00 1' )

.. Corresponding command in SAP NetWeaver BI

<bi :TEXT PROGRAM- 'A' KEY- ' 001 ' I>

It would go beyond the scope of this book to provide a list of all the new com­mands that correspond to the old SAP BW commands. However, you can refer to the SAP Library, where you 'll find an example of each new command.

154

Page 155: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Recommendations for Your Migration Project 1 6.6

The next section provides practical recommendations for performing a migration and methods for estimating the cost of migration.

SAP Library

The SAP Library is available online at http://help.sap.com. From there, you can navigate to the SAP Library documentation fo r SAP NetWeaver and select t he SAP NetWeaver 7.0 Library. Then drill down as follows to display an overview of the new commands: SAP NETWEAVER LIBRARY • SAP NETWEAVER BY KEY CAPABILITY • INFORMATION INTEGRA­TION: KEY AREAS • BUSINESS INTELLIGENCE • Bl SuiTE: BUSINESS EXPLORER • BEX WEB • WEB APPLICATION DESIGN: BEX WEB APPLICATION DESIGNER • WEB DESIGN API • COMMANDS.

Alternatively, use the following link: http:llhelp.sap.comlsaphelp_nw70/helpdatalen/7 118a 7842 26d1 d242e1 OOOOOOOa 1550b0/content. htm.

6.6 Recommendations for Your Migration Project

Although the web template you migrated earlier was a very simple one, you can already tell how complicated a task migration may become in the area of web reporting. Therefore. it's very important to perform a thorough check to determine whether a migration actually makes sense in your specific situation. A full list of recommendations for performing the migration is provided next.

6.6 .1 Recommendations

Determining the effects of a migration before you perform one is absolutely vital.

In practice, we have often encountered a problem directly related to the relocation of reporting to the SAP NetWeaver Portal.

Recommendation 1: Necessity of the Migration

Because reports can be migrated independently of other reports, you need to determine exactly which reports are to be migrated and which are not. Note also that all new reports are d isplayed with the SAP NetWeaver Portal, wh ich means that all URLs w ill

change. Therefore, it's very important to determine the effects of migration on other applications that interact with t he Bl system (see the following brief case study) .

155

Page 156: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

Case Study

If you want to use the new functions in SAP NetWeaver Bl, you need the SAP NetWeaver Portal, which was not available in release SAP BW 3 .5. For this reason, we developed a customized portal for one customer based on a BSP application, in which reports could be displayed via URL.

The portal we developed was extremely dynamic; for example, the technical name of a report was sufficient to display it. When it came to migrating a report, we had to consider what to do in relation to the customer-specific portal. Our options were as follows:

1> Continue to use the existing portal and convert t he dynamic to the new reporting functional ity.

1> Rebui ld the customer-specific portal in t he new SAP NetWeaver Portal.

Both options are conceivable and plausible. However, t he best option is to redesign the portal with the SAP NetWeaver Portal, which will continue to be viable in t he futu re and will allow for parallel operation.

If you decide that the migration is essential , for example, because you want to use new functions that are not available in SAP BW, it's still advisable not to migrate queries.

Recommendation 2: Migration of Queries

Because you can use a 3.5 query in a 7.0 web template without any problems, 3.5 queries should not be migrated. A query is thus upward compatible but not downward compatible. After you save a 3.5 query in BEx Query Designer 7.0, it can no longer be used in the older version.

Use of the BEx Report Designer, for example, to create DIN A4 formats for your report, is not a valid reason to perform a migration. A report may be based on a 3.5 query, and it's also possible to define a (predefined) portal URL of a report in an old 3.5 web application to create PDF reports.

Recommendation 3: Migration of Web Templates

Carefu l consideration must also be applied to the migration of web templates. First, determine whether the migration will add value. Reflect on the complexity of your re­port in answering this question. You should on ly migrate a web template if it will add value.

Page 157: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Recommendations for Your Migration Project 1 6.6

Of course. these recommendations are only relevant if you exert a certain influ­ence over the decision-making process in your company. for example, if you are an internal or external consultant. If the company has already decided in favor of a complete migration, all of the preceding cautionary notes are irrelevant.

In such a case, it's all the more important to estimate the amount of effort involved and to work out a plan for the migration. You should perform a migration of the reporting area as specified next.

Recommendation 4: Complete Migration of the Reporting Area

You should always begin thi s migration with one or two individual reports in the devel­opment system and have these approved by the business department in the test system after they have been migrated. Choose a very simple report and a very complex test case, based on the interaction and the source code. This will give you a good feeling of how much time and effort should be allocated to the migration.

6.6.2 Cost Estimation

The migration comprises several steps. If the decision has already been made to deactivate the old solution, you can also migrate the queries because the effort

involved is not excessive. Even in extreme cases, it will never take more than 30 minutes at most to migrate a query. including a test phase and the conversion of the exceptions. You should allow an average of 10 to 15 minutes per que1y, which means that you can migrate and test between 30 and 50 queries in one day.

Query views are not migrated because you will continue to use the old views. When they are saved again, a 7.0 version is stored in the database in addition to the 3.5 version. which means that query views are both downward- and upward compatible. You don't need to allocate any time for this.

This isn 't the case with the migration of web templates. however. As you've seen, it takes a lot of time to migrate even the simplest web template, in particular if you don't know how to convert certain constructs in the new release. When you are scheduling the migration of web templates, you must therefore include time for researching the new constructs that you'll have to use.

In exceptional cases, you may be lucky, and the migration may be virtually auto­matic from start to finish. This is the case if you haven't used any ASAP programs, a table interface. JavaScript. or SAP BW commands. In this scenario. you only

157

Page 158: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

need to invest time in the optical migration, which may also be completed in a relatively short space of time. This really is the exception because web templates are normally used to extract more information from a report.

If you are dealing with an exceptional case and therefore don't need to make any modifications in the form of the constructs specified previously, it may only take 15 to 30 minutes to complete the migration of a web template, including testing and visual adjustment. In other extreme cases, it may take several days to migrate a web template (in particular if functions are lost and this must be approved by the business department).

You should draw up an inventory of queries, query views, and web templates before the migration, and you should use categories to classify the web templates (e.g., 1 to 5, or simple to complex). Next, perform a test migration for a web tem­plate from each category, and record the time required in each case. This will give you a relatively accurate estimation of the time required for the complete migra­tion. Figure 6.32 shows an example of how this document may appear.

A c 0 E f G H

-;\- Preparation for cost estimation 2

..;. Web Templates 4

5 ,.....,...,. O.M1" . c.t .. c •• EnO<t Ito. of' .... TOUI effort

6 Z.w.RS T01 JOI)10~0rflt'I'S 2 1 1.51'YS 1 1.5h't

7 ZN-*IS TQ2 Totol oAewol ~s • 2 3Stvs 3 105tvs 8 Z~T03 ~lorlflfltionon~s 1 3 SOhrs 3 150tn 9 ZJI#I:S T(W P!I'SOMt'l COS1 . 2 • 80PU 1 8 .01'1't

10 Z.MRS TOS h:.s role pet or~ioMiunl s s 120tu 2 2~ Ohrz

t 1 Z..MRS_T08 Anetrys.s ot lbtente-Mm 3 ..... " St.t ht&

12 Z.MRS T07 """ s 13 :~roe I'Vfb.W of ertr~ end '"*'_gs 3 14 ZJI#I:S T09 PeraOI"nee "&edeot.n (e«rse 01 on&yeet) 3 15 l.MRS TIO Persomd Modc«<ll ardf'TE 2

Figure 6.32 Preparation for Cost Estimation in Excel

A lot of time may also be saved if many of the web templates you've used are similar. Take this into account when estimating the time required for the relevant category. Remember to allow time for becoming familiar with the process and for testing. This will give you an accurate estimate based on your experience and expertise.

Page 159: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

Summary I 6.7

6.7 Summary

This chapter discussed the migration of web reporting. We began with a bird's eye view of how reporting works in SAP BW 3.5 and SAP NetWeaver BI and the key concepts in reporting: queries. query views, web templates. and reports. The query is the cornerstone of reporting. Filters and drilldowns can be saved globally in a query view called initial drilldown. You can create web templates (web appli· cations) to modify the layout of a query. A report allows you to adapt to various output formats.

You then saw how each of these objects can be migrated. A query is usually migrated au tomatically. Query views don't need to be migrated, unlike web tern· plates. which make up the lion's share of the migration. Reports are only available as of SAP Net Weaver BI and are therefore no t relevant for migration.

We then migrated a sample query. and you saw how minor manual adjustments may also be required, for example, if exceptions were used.

Most of this chapter is dedicated to the subject of web template migration. You learned how to use the migration tool and which manual adjustments are required to complete a migration. You also saw how an optical migration (i.e., a modifica· tion of the layout) is necessary.

In the new SAP NetWeaver BI release, certain functions have unfortunately been discontinued or have been moved to the portal. As a result, it's more difficult or impossible to use these func tions (e.g .. the table interface). As a result, the effort involved in migration may be greater than you originally estimated.

We gave you four recommendations for performing a migration, which are recapped here:

1. Necessity of the migration Before you begin, make sure that the migration is really necessary.

2. Query migration As a rule, queries should not be migrated.

3. Migration of web templates Check each individual web template to determine whether it needs to be migrated.

159

Page 160: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

6 1 Migration in Reporting

4. Migration of the reporting area After a decision has been made in favor of a migration, perform a test migra­tion of a number of simple reportS and put together a valid cost estimation in consultation with the business department.

Lastly, you learned how to produce a relatively accurate estimate of the cost of migration (in terms of time and effort) based on your experience and expertise.

160

Page 161: SAP Press - SAP NetWeaver BI 7.0 Migration Guide
Page 162: SAP Press - SAP NetWeaver BI 7.0 Migration Guide
Page 163: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

A Bibliography

SAP AG, "Document Management in Knowledge Management," http://help.sap. com/saphelp _nw70/helpdata/de/60/1 c143bfaed2 7 2de1 OOOOOOOa 11402f/content. htm.

SAP AG, "SAP NetWeaver Upgrade Master," https://service.sap.com/inst­guidesNW07 (Guide [S-User-ID] required).

Ro land Kramer, "SAP NetWeaver 7.0 Bl. Upgrade Specifics" (2007), https://www. sdn.sap.com!irj/sdn/go!portal!prtroot!docs!libraryluuid/ 1 0564d5c-cf00-2a 1 0-7b87 -c94e382 677 42.

Horst Keller, and Sascha Kruger, ABAP Objects (Bonn: SAP PRESS, 2006).

SAP AG, "Using SAP BW Commands," http://help.sap.com/saphelp_nw70/helpdata! de/71/Ba 78422 6d1 d242e1 OOOOOOOa 15 50b0/content.htm.

SAP AG, "SAP's Release Strategy" (2006), http://www.sap.de/

SAP AG, "New SAP NetWeaver Bl Capabilities in SAP Net Weaver 2004s," (SAP TechEd 2005).

SAP AG, "A Complete Look at Security for SAP NetWeaver Bl," (SAP TechEd 2007).

Page 164: SAP Press - SAP NetWeaver BI 7.0 Migration Guide
Page 165: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

B List of Acronyms

OLAP

Advanced Business Application Programming

Application Programming Interface

Business Explorer

Business Intelligence

Bl Administ ration Cockpit

Business Warehouse

Cascading Stylesheets

Comma Separated Values

DataStore Object

Data Transfer Process

Enterprise Portal

Enterprise Resource Planning

Extraction Transformation Loading

Full Time Equivalent

Graphical User Interface

Human Capital Management

Human Resources

Hypertext Markup Language

Hypertext Transfer Prot ocol

Hypertext Transfer Prot ocol Secure

Knowledge Management

Operational DataStore

Online Analytical Processing

Online Transactional Processing

Online Service System

Portable Document Format

Persistent Staging Area

Real-Time Data Acqu isition

Page 166: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

B 1 list of Acronyms

166

Service API

SAP Developer Network

System Landscape Directory

Support Package Stack

Software Distribution Center

Uniform Resource Locator

Web Application Designer

Web Application Server

Extended Hypertext Markup Language

Extensible Markup Language

Page 167: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

C Glossary

Analysis authorizat ion In SAP NetWeaver Bl, the analysis authorization enables you to map authorizations to reporting data. Because this authorization is no longer based on the SAP authorization object, it differs substanti­ally from its predecessor. the reporting autho­rization . You can maintain analysis authoriza­tions using Transaction RSECADM IN.

Aut horizat ion object Authorization objects are responsible for assigning authorizations in the SAP system. In the classic scenario, an authorization object is integrated into roles that are assigned to users.

DataSource In SAP BW and SAP NetWeaver BI, DataSources are used to extract data from a source system. A DataSource represents a con­glomeration of fields that are extracted from the source system using different methods.

Data transfer process Data transfer pro­cesses serve to update data into data targets. They were introduced for the first time in SAP NetWeaver Bl. Data transfer processes always connect persistent objects and are thus involved in each transformation. Compared to the InfoPackage used in SAP BW, the e rror­handling feature of data transfer processes has been improved.

Data target See lnfoProvider

DSO object The DSO object (DataStore object) in SAP NctWcavcr BI replaces the ODS object (Operational DataStore) used in SAP BW. It's used to store detail and transactional data.

ETL process ETL stands for Extraction Transformation Loading and describes the loading process from a source system through to the multidimensional structures (InfoCubes) of a data warehouse. The extraction process involves the actual data request, the transfor­mation process cleanses and consolidates the incoming data. and loading refers to the final process of updating the data in the multidi­mensional data containers.

Field symbol Field symbols can be com­pared to pointers in the C programming langu­age. A field symbol is used to dynamically access the contents of variables. Field symbols represent an advanced technique in ABAP development.

InfoCube An lnfoCube is a multidimensi­onal object that's strucLUred according to the extended star schema of SAP. InfoCubes can contain data from differenL source systems for reporting purposes. An InfoCube may consist of a maximum of16 dimensions and 255 key figures, with dimensions and key figures being mapped as InfoObjects.

InfoObject InfoObjects represent the smallest entity to contain data. An lnfoObject can either have the type characteristic or key figure.

InfoPackage In SAP BW. InfoPackages are used to request data from a source system and to update this data in data targets. In SAP NetWeavcr Il l. in turn, lnfoPackages arc only responsible for requesting data, whereas the data update is carried out by a data transfer process.

Page 168: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

C 1 Glossary

Info Provider InfoProviders represent objects in an SAP Net Weaver Bl system on which you can define a query. These objects include the following:

I> DataStore object (OSO) ... InfoCube ... lnfoObject ... Virtual Provider ... lnfoSet ... Multi Provider

The first three of these objects are also refer­red to as data targets because they contain physical data. The last three objects in the pre­ceding list are merely logical views to datasets and do not contain any physical data.

Information Broadcaster The Information Broadcaster is a tool that enables you to precalculate, schedule, and dispatch reports. 111 SAP BW, tl1c lufo1umtiou Btocu..ka~lc:t wa:,

integrated via a specific web item, whereas in SAP Net Weaver Bl, it's stored centrally in SAP NetWeaver Portal.

InfoSource In SAP BW, InfoSources are mandatory objects within the data now from a DataSource to the InfoProviders. An Info­Source does not contain any physical data and is used for the transformation from source fields to target fields. In SAP NetWeaver OI, lnfoSources are optional.

ODS object In an SAP BW system, ODS ob­jects (Operational DataStore) are used to store transactional detail data. In SAP Net Weaver Bl, this type of object was replaced by the DSO object, which has the same function.

PSA The PSA (persistent staging area) is used for the initial storage of data during a data request process from source systems. The

168

lnfoPackage requests the data and stores it in the PSA before it is updated further.

Query To analyze the dataset in an SAP Net­Weaver Bl system, you generally need a query as a basis. A query represents a request to an JnfoProvider, which is created using the SAP BEx Query Designer.

Query View Within a query, you can cap­ture and save individual views. This way, you can make sure that the query has the same layout as before the next time you call it, for example, with a deactivated hierarchy and sorted by a specific key figure.

Real-time data acquisition (RDA) The real-time data acqu isition extracts data from an SAP source system in real time. As soon as a source system contains new data, this data is recognized and extracted into the SAP NctWeaver Bl system.

Reporting Agent The Reponing Agent enables you to precalculate reports and is an integral component of the Administrator Workbench (RSA1) in SAP BW. It is no longer available in SAP Net Weaver BI because its functionali ty is now provided by the Informa­tion Broadcaster.

Reporting authorization The reporting aut­horization is used in SAP BW to map autho­rizations to reporting data . Because it's based on the SAP authorization object, it differs substantially from its successor, the analysis authorization. You can maintain reporting authorizations using Transaction RSSM.

Sandbox system A sandbox system repre­sents a kind of test system that's used for the technical migration process. You set up a sand­box system to ·practice· the migration process in a sample system using live data. After the

Page 169: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

migration has finished, tl1e sandbox system is usually de-installed again.

SAP Business Explorer Suite The SAP Business Explorer Suite, or Business Explo-rer (SEx) for short, consists of reporting applications for SAP Net Weaver Bl. These applications allow you to create queries to the multidimensional dataset in the data ware­house. The Business Explorer Suite consists of the following applications:

...

... ... ...

BEx Query Designer

BEx Analyzer

BEx Web Application Designer

BEx Report Designer (new in SAP Net­Weaver Bl)

Transfer rule In SAP BW, the transfer rule is used to transfer data from a DataSource to an lnfoSource. In SAP NetWeaver Bl, the transfer rule was replaced by the transformation.

Transformation In SAP NetWeaver Bl, the transformation replaces the transfer and up­date rules tllat are used in SAP BW. It is used to transform source fields into target fields and provides a higher degree of flexibility in the update process.

Update rule Update rules are used to update data from an lnfoSource or lnfoProvider into

Glossary 1 C

an lnfoProvider in SAP BW. In SAP NetWea· ver 81, tlle transformation has replaced the update rule.

Web appl ication A web application is an object from reponing that is used to create cuswm query designs. You can create web applications, which are often referred to as web templates, using the BEx Web Applica­tion Designer.

Web item The Web Application Designer enables you to create your own web tem· plates, which, in turn, allow you to display queries. Basic elements - the so·called web items - are responsible for the display. Web items include tables, graphics, filters, and selection boxes.

Web template See Web application

169

Page 170: SAP Press - SAP NetWeaver BI 7.0 Migration Guide
Page 171: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

D Translation of Web Items

This section contains translations of web items that differ in Releases SAP Web Application Designer 3.5 and 7.0. Web items that are no longer available are marked as "deleted"; new web items are marked as "not ava ilable" in the WAD 3.5 column.

Web Item (WAD 3.5)

ABC classification

Ad -hoc Query Designer

Alert Monitor

Broadcaster

Chart

Checkboxes

Dropdown Box

Filter

Hierarchical Filter Selection

Map

Key Figure Overview

Label

Navigation Block

not available

not available

not available

not available

not available

not available

not available

not available

not available

Web Item (WAD 7.0)

deleted

deleted

deleted

deleted

Chart

Checkbox Group

Dropdown Box

Info Field

Hierarch ical Filter Selection

Map

deleted

Text

Navigation Area

Container l ayout

Filter Area

Menu Bar

Property Area

Tabs

Button Group

Link

Group

Input Field

Table D.1 Translations of Web Items from WAD 3.5 to WAD 7.0

Page 172: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

D 1 Translation of Web Items

Web Item (WAD 3.5)

not available

not available

not available

not available

not available

Radio Button Group

Role Menu

Prediction Simulation

Table

Text Elements

Web Item (WAD 7.0)

System Messages

Listbox

Report

Script

Custom Extension (as of SPS 14)

Rad io Button Group

deleted

deleted

Analysis

Info Field

Table D.1 Translations of Web Items from WAD 3.5 to WAD 7.0 (Cont.)

Page 173: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

E Author

Daniel Knapp finished his studies of information technology at the Technical University of Jlmenau, Germany, in 2004. After that, he joined IX ULT AG in Rosenheim, Germany, where he worked as an SAP Technology Consultant. Since 2006, he has been responsible for the Business Intelligence area at IT2 Solutions AG. His area of responsibility comprises the design and implementation of complex data models, the ex traction of data from SAP and non-SAP systems, as well as the areas of reporting, analys is, and performance optimiza­

tion in existing SAP business intelligence solutions.

In addition to implementing the SAP Business Information Warehouse/SAP NetWeaver Business Intelligence his work also focuses on integrating the NetWeaver Portal in the Human Capital Management (HCM) environment and on implementing Employee and Manager Self-Services. He has released several publications and given speeches at trade fairs and congresses on the topic of busi­ness intell igence.

Daniel Knapp is the au thor of several SAP PRESS books, including Developing SAP Applications with Adobe Flex (2006), which he co-authored with Armin Lorenz, Gunther Schoppe, Felix Consbmch, and Frank Sonnenberg; HR with SAP NetWeaver Portal (2007, available only in German under the title Personalwirtschaft mit SAP NetWeaver Porta{), which he co-authored with Harald Goetsch and Sven Herrmann; and Practical Data Modeling for SAP NetWeaver BI (2008, currently available only in German under the title "Praktische Datenmodellierung fUr SAP NetWeaver BI").

173

Page 174: SAP Press - SAP NetWeaver BI 7.0 Migration Guide
Page 175: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

175

0ANALYSIS_PATTERN, 1100ANALYZER, 110

A

ABAP objects, 38, 39, 44, 54, 57, 62, 82, 84ABAP program, 132, 147Analysis authorization, 39, 87, 89Application error, 136Application structure, 54Assignment

Direct, 94, 97Enhancement, 97Generating, 97

Assignment method, 97, 105Authorization, 39

Assignment, 94Characteristic level, 87Characteristic value level, 87Comparison, 94Concept, 16, 33, 37, 43InfoCube level, 87Object, 39, 94, 97, 99Profile, 97Relevant, 104System, 41

B

Background process, 27, 32Basic rule, 58, 59, 60, 61, 82Business Explorer (BEx), 111BEx Analyzer, 111BEx Query Designer, 111, 113, 125

Performance, 114BEx Query Designer 3.5, 112BEx Query Designer 7.0, 113BEx Report Designer, 15, 111BEx Web, 27BEx Web Analyzer, 111

BEx Web Application Designer, 110, 111, 115, 116BEx Web Application Designer 3.5, 115BEx Web Application Designer 7.0, 116BI Administration Cockpit, 16, 27Big bang, 41BI-integrated planning, 16Business Content, 61, 91Business Explorer, 27, 40, 44, 109, 111, 117, 118Business object, 111Business Planning and Simulation, 16

C

Characteristic restriction, 113, 114Characteristic routine, 57CL_RSR_WWW_MODIFY_TABLE, 152Command, 116, 120, 128, 132, 141, 142, 154, 155Command Wizard, 120Communication structure, 51Compatibility, 102Condition, 122Consistency, 29Conversion error, 32Conversion process, 134CONVERSION_ROUTINE, 79Cost estimation, 158CSS, 132, 150Customer exit, 95Customer-specific maintenance, 15

D

Data flowMigration, 47

Data flow concept, 16, 37, 43, 47SAP BW 3.x, 47, 49SAP NetWeaver BI, 47, 52

Index

228_Book.indb 175 7/31/08 9:54:22 AM

Page 176: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

176

Index

DATAPAK, 79DataProvider, 145DataSource, 38, 49, 53, 57, 74DataSource 3.x, 50

Migration, 69, 83Restore, 70

DataStore object (DSO), 38, 48Data transfer process (DTP), 16, 38, 55, 56, 71Data Warehousing Workbench, 57, 59Default value, 114Development system, 22, 58Directory structure, 31Document management, 153Drag and drop, 16, 38

E

Emergency transport track, 22End routine, 39, 54Error message, 141Error stack, 56ETL process, 38Exception, 118, 123, 125Excursus

Migration, 25Expert routine, 39, 54Export, 60, 70, 83, 128, 132, 154Extraction structure, 50, 53

F

Field symbol, 77Filter, 56, 113, 114, 128, 133Flow data, 52Free characteristics, 113, 114Frozen zone, 25Full authorization, 91, 103

G

Generic navigation block, 128

H

HierarchyAuthorization, 92Level, 92Type, 92

HTML view, 116

I

InfoCube, 38, 47, 51Personnel Management, 99Purchasing Groups, 59, 61

InfoObject, 52, 890TCAACTVT, 91, 970TCAIPROV, 91, 970TCAKYFNM, 910TCAVALID, 91, 970TCTAUTHH, 40, 95Repair, 28

InfoPackage, 38, 52, 55InfoProvider, 38, 51, 99, 109, 113Information broadcasting, 16, 40, 120InfoSource, 16, 38, 56

Recommendation, 58InfoSource 3.x, 50

Migration, 63, 79Type, 52

Infotype, 72Inventory, 158iView, 150

J

JavaScript, 117, 119, 128, 131, 142, 144, 145, 153

K

Knowledge Management, 153

228_Book.indb 176 7/31/08 9:54:22 AM

Page 177: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

177

Index

L

Layout, 117, 149Layout area, 115Layout view, 127Log, 64, 67, 80, 81, 103

M

Mainstream maintenance, 15Maintenance cycle, 13, 14Master data, 52

Consistency, 29Migration

Complete migration, 157Concept, 13, 37Cost, 157Definition, 13Duration, 17, 21, 84Effort, 106Necessity of, 155Optical, 150, 152Password, 31Planning, 27Post-processing, 32Preparation, 31Reasons, 14, 38Recommendation, 18, 25, 41, 85, 155Requirements, 17Sequence, 41, 59Technical, 13, 21, 41Undo, 60, 98

Migration Method, 98Migration program, 82Migration project

Recommendation, 106Recommendations, 83, 155

Migration tool, 120, 134, 154Migration with export, 60Multidimensional, 48

N

Naming conventions, 47, 112Navigation attribute, 95, 102

O

ODS object, 38, 47, 51Repair, 29

Optical migration, 150

P

Password, 31Patching

Definition, 13Patch level, 13Persistent staging area (PSA), 39, 51, 54Portal layout, 149Post activities phase, 26Precheck, 26Preparation phase, 26Production system, 22, 58Profile, 103

Q

Quality assurance system, 22Query, 43, 44, 109

Example, 121Migration, 118, 124Properties, 114Recommendation, 156

Query Designer, 168Query view, 111

Migration, 119

R

Real-time data acquisition, 16Release Notes, 124, 153Relevant to authorization, 91Remodeling Toolbox, 15Repetitive structure, 72Replacement path, 105Replicate, 53Replication, 50Report, 111

ANALYZE_RSZ_TABLE, 29

228_Book.indb 177 7/31/08 9:54:23 AM

Page 178: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

178

Index

BTCTRNS2, 32RSBTCDEL2, 27RSDG_ODSO_ACTIVATE, 29RSDMD_CHECKPRG_ALL, 29RSEC_MIGRATION, 40, 43, 95, 101RSUPGRCHECK, 28

Reporting, 37, 40, 43, 109Agent, 39, 40Authorization, 39, 94Functional design, 109Layout, 110Reporting object, 111

Role, 100Role concept, 97Routine, 76Rows/columns, 114

S

Sandbox system, 21SAPBEXBorderFlexBoxTtl, 133, 150SAP Business Information Warehouse, 18SAP BW, 18, 47SAP BW command, 154SAP BW macro, 116SAPBWOpenURL, 131, 153SAP_BW_URL_Get, 153SAP ERP 6.0, 25SAP GUI, 30, 34, 118

Requirements, 34SAP Load Generator, 32SAP NetWeaver 7.0, 18SAP NetWeaver 7.0 BI, 19SAP NetWeaver BI, 18, 19SAP NetWeaver Portal, 16, 31, 40, 44, 120, 153SAP Service Marketplace, 26, 30Selection parameter, 56Semantic group, 56Service API, 49, 53Source system, 52, 53Special characteristics, 91, 105Standard web template, 110Star schema, 48Start routine, 39, 54, 72, 76, 79Stylesheet, 150

Support package, 30Recommendation, 31

Support Package Stack, 13, 121, 124Syntax check, 125System landscape, 21, 22, 25, 58

T

Table interface, 117, 121, 152Table layout, 124TABL INTERFACE CLASS, 152Tag, 141Test system, 22Time conversion, 67, 68Top-down, 59Totals row, 123Trace, 136Transaction

PFCG, 94RSECADMIN, 87, 89, 103RSSM, 94SE24, 152SLG1, 98

Transfer rule, 16, 38, 50, 51, 56Migration, 65, 81

Transfer structure, 50, 53TRANSFER_STRUCTURE, 79Transformation, 38, 54, 56, 64, 81Transport route, 24Transport system, 27, 30Tray, 150

U

Undo, 60Update rule, 16, 38, 51, 52, 56

Migration, 61, 79Updating

Direct, 52Flexible, 52

UpgradeDefinition, 13

Upgrade check, 28Upgrade keyword, 31

228_Book.indb 178 7/31/08 9:54:23 AM

Page 179: SAP Press - SAP NetWeaver BI 7.0 Migration Guide

179

Index

Upgrade Master Guide, 26, 31Upgrade phase, 26User group, 96, 100, 106

V

Validity, 91Validity range, 93Value authorization, 92Variable, 105Version name, 18

W

Warning message, 141Web Analyzer, 110Web application, 43, 110Web Design API, 121, 152

Web item, 115, 117, 120LINK_ITEM, 144

Web itemsLINK_ITEM, 146Script, 143, 153

Web ItemsGROUP_ITEM, 150

Web template, 110, 156Migration, 119, 126, 134Recommendation, 156Special considerations, 120

Wizard, 145

X

Xcelsius, 111XHTML, 117, 153XHTML view, 137XML, 117, 134

228_Book.indb 179 7/31/08 9:54:23 AM