BW Text Variables of Type Replacement Path

Similar documents
Duet Enterprise: Tracing Reports in SAP, SCL, and SharePoint

Single Sign-on For SAP NetWeaver Mobile PDA Client

How to Find Suitable Enhancements in SAP Standard Applications

BC100. Introduction to Programming with ABAP COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

How to Handle the System Message in SAP NetWeaver Mobile 7.1

SAP AddOn Quantity Distribution. by Oliver Köhler, SAP Germany

EWM125. Labor Management in SAP EWM COURSE OUTLINE. Course Version: 16 Course Duration: 4 Hours

BIT460. SAP Process Integration Message Mapping COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

PLM210. Master Data Configuration in SAP Project System COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Configuring relay server in Sybase Control Center

SAP NetWeaver Identity Management Identity Center Minimum System Requirements

Visual Composer Modeling: Data Validation in the UI

Visual Composer for SAP NetWeaver Composition Environment - Connectors

How to Enable Single Sign-On for Mobile Devices?

Quick View Insider Microblog: Why Is There No Inbox?

Enterprise Search Extension for SAP Master Data Governance

AC507. Additional Functions of Product Cost Planning COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Duplicate Check and Fuzzy Search for Accounts and Contacts. Configuration with SAP NetWeaver Search and Classification (TREX) in SAP CRM WebClient UI

NET311. Advanced Web Dynpro for ABAP COURSE OUTLINE. Course Version: 10 Course Duration: 4 Day(s)

SAP BusinessObjects Predictive Analysis 1.0 Supported Platforms

ADM950. Secure SAP System Management COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

BC430 ABAP Dictionary

DS50. Managing Data Quality with SAP Information Steward COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

BOCE20. SAP Crystal Reports for Enterprise: Advanced Report Design COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

MDG100 Master Data Governance

BOC320. SAP Crystal Reports - Business Reporting and Report Processing Strategies COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

ADM900 SAP System Security Fundamentals

ADM950. Secure SAP System Management COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Visual Composer Modeling: Migrating Models from 7.1.X to 7.2.0

Crystal Reports 2008 FixPack 2.4 Known Issues and Limitations

BW310. BW - Enterprise Data Warehousing COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

BOC310. SAP Crystal Reports: Fundamentals of Report Design COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

TBW30 SAP BW Modeling & Implementation

Testing Your New Generated SAP NetWeaver Gateway Service

DEV523 Customizing and Extending PowerDesigner

BC480 PDF-Based Print Forms

HA150 SQL Basics for SAP HANA

Installing SAP NetWeaver Mobile Client (eswt) on a Storage Card

Quick View Insider: Understanding Quick View Configuration

How to reuse BRFplus Functions Similar to R/3 Function Modules using BRF+ Expression Type Function Call

BC410. Programming User Dialogs with Classical Screens (Dynpros) COURSE OUTLINE. Course Version: 10 Course Duration: 3 Day(s)

Quick View Insider: How Can I Change the Colors? (SNC 7.0)

BC405 Programming ABAP Reports

Using JournalEntries and JournalVouchers Objects in SAP Business One 6.5

How to Download Software and Address Directories in SAP Service Marketplace

BC404. ABAP Programming in Eclipse COURSE OUTLINE. Course Version: 15 Course Duration: 3 Day(s)

BC400. ABAP Workbench Foundations COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

ADM100 AS ABAP - Administration

BC400 Introduction to the ABAP Workbench

BC490 ABAP Performance Tuning

How to Check or Derive an Attribute Value in MDG using BRFPlus

TBIT44 PI Mapping and ccbpm

LO Extraction - Part 6 Implementation Methodology

Message Alerting for SAP NetWeaver PI Advanced Adapter Engine Extended

Manual Activities of SAP Note Globalization Services, 2012/06/05

Visual Composer s Control Types

EDB358. System and Database Administration: Adaptive Server Enterprise COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

ADM960. SAP NetWeaver Application Server Security COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day

ADM960. SAP NetWeaver Application Server Security COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

EDB116. Fast Track to SAP Adaptive Server Enterprise COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

SAP Afaria Post- Installation Part 1

Using Default Values in Backend Adapter

AFA461 SAP Afaria 7.0 System Administration (SP03)

How to Set Up Data Sources for Crystal Reports Layouts in SAP Business One, Version for SAP HANA

GRC100. GRC Principles and Harmonization COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

EDB367. Powering Up with SAP Adaptative Server Enterprise 15.7 COURSE OUTLINE. Course Version: 10 Course Duration: 2 Day(s)

Web Dynpro: Column Coloring in ALV

What are Specifics Concerning the Creation of New Master Data?

EDB785 SAP IQ Administration

Automatic Deletion of Similar/Identical Requests from InfoCube after Update

Quick View Insider: How Do I Set Quick View as SNC s Entry Screen?

EP350. Innovated Content Management and Collaboration COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

How to Guide to create Sample Application in IOS using SUP ODP 2.2

ADM920 SAP Identity Management

How to Integrate Google Maps into a Web Dynpro ABAP Application Using the Page Builder

BC401. ABAP Objects COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

Business Objects Integration Scenario 2

Working with Data Sources in the SAP Business One UI API

Personalizing SAP BusinessObjects Explorer Information Spaces

How can a Reference Query Be used?

SAP BusinessObjects Dashboards 4.0 SAP Crystal Dashboard Design 2011 SAP Crystal Presentation Design 2011

TBW60. BW: Operations and Performance COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

LO Extraction Part 4 Update Methods

SMP541. SAP Mobile Platform 3.0 Native and Hybrid Application Development COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

Remote Monitoring User for IBM DB2 for LUW

How to Integrate Microsoft Bing Maps into SAP EHS Management

EDB377. Fast Track to SAP Replication Server Administration COURSE OUTLINE. Course Version: 15 Course Duration: 5 Day(s)

SMP521. SAP Mobile Platform - Native and Hybrid Application Development COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

TBIT40 SAP NetWeaver Process Integration

Extending DME Transfer Files According to Spanish Banking Control Council to Support Non- Euro Payments

Building a Real-time Dashboard using Xcelsius and Data Integrator

EP200. SAP NetWeaver Portal: System Administration COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

Upgrade MS SQL 2005 to MS SQL 2008 (R2) for Non-High-Availability NW Mobile ABAP System

NET312. UI Development with Web Dynpro for ABAP COURSE OUTLINE. Course Version: 10 Course Duration: 4 Day(s)

Overview of Caffeine ABAP to Go

How to do a Manual Kernel Upgrade of an SAP Server

How to Access Images of SAP Netweaver Demo Model JAVA

How to Work with Analytical Portal

What s New / Release Notes SAP Strategy Management 10.1

Using Xcelsius 2008 with SAP NetWeaver BW

Transcription:

BW Text Variables of Type Replacement Path Applies to: This article is applicable to SAP BI 7.0. For more information, visit the EDW homepage. Summary This document shows how to use and also helps in the analysis of issues with BW text variables of type replacement path. The document will show how to create a sample query using this feature, discuss some parameters, tables and functions which will help in the analysis of problems in this area. Author: Ricardo de Azeredo Rosa Company: SAP Labs Brazil Created on: 11 July 2010 Author Bio Ricardo is a Support Consultant in SAP Labs Brazil since 2007. He has worked extensively on SAP R/3 and BW as a PM Certified and BW Consultant since 2002. His knowledge includes PM, CS, DMS, PP, PS modules and BW systems. Since 2004 he has focused his knowledge in Business Warehouse working in various critical projects in this area. 2010 SAP AG 1

Table of Contents Text variables of type Replacement Path:... 3 Replacement Path Tab... 8 Hints Regarding Issues in this area:... 9 Detailing this issue:... 13 Replacing texts and/or Key:... 15 Tables T009 and T009C text for 0FISCPER.... 15 Related Content:... 17 Copyright... 18 2010 SAP AG 2

Text variables of type Replacement Path: This is possible to use text variables in order to handle dynamically the descriptions of formulas and selections in the query designer. This is useful, for instance, when you are using date restrictions in your query and you want to show the values listed by these restrictions in the query result. Below you will find some screenshots of a simple example: You have created a query with 3 selections where the characteristic 0FISCPER is restricted by 3 different months as per figure below: Next 3 figures show the details for each selection, where the characteristic 0FISCPER has been restricted by values 010.2010 for selection 1, 011.2010 for selection 2 and 012.2010 for selection3: 2010 SAP AG 3

Picture below shows the result when you execute the query (transaction RSRT). The information provided is not clearly understandable because this is showing the description provided for the selections in the query definition ( Selection1, Selection2 and Selection3 ): This is possible to make more understandable the result of this query replacing the static description of these columns by a dynamic description depending on the restriction set. In this case, using text variables you will be able to replace the description for your selection ( SelectionX in the example) by the value that you have restricted the characteristic 0FISCPER on each of these selections. You can follow the steps below in order to use that: In the selection definition, field Description, create a new text variable: Pressing the Create New function: 2010 SAP AG 4

In the next screen, you inform the Processing By as Replacement Path and the reference characteristic which you want to replace the information (that is 0FISCPER in our example). The Technical name is automatically suggested by system and it can be edited if necessary (VAR_20100503200426 in this example): In the tab Replacement Path you need to inform with query object you want to replace the information (infoobject or variable) and also with data from that object should be used for replace. In our example it will be informed as Infoobject and Key respectively. You can find more information regarding the fields from that tab in the online documentation informed in item Replacement Path Tab of this document. 2010 SAP AG 5

After save the new variable, it is going to be available and can be informed in the description field of our selections, as in figure below (if you enter that manually, this will require the tag & before and after the technical name of the variable): This is possible to set the same variable for all 3 selections from our example: 2010 SAP AG 6

Now, using the text variable type replacement path, the result is that the description for each selection is going to be replaced by the value from which 0FISCPER has been restricted in that selection, as you can see in the figure below: So, the presentation of data using this feature is more understandable. It also can be dynamically handled in case you restrict you characteristic by a variable in the selections. 2010 SAP AG 7

Replacement Path Tab Some more information about Replacement Path Tab can be found in the online documentation below: Replacement Path: Replacement with a Characteristic Value http://help.sap.com/saphelp_nw70/helpdata/en /03/6ba03cc24efd1de10000000a114084/fram eset.htm Replacement Path: Replacement from Variable http://help.sap.com/saphelp_nw70/helpdata/en/43/ 565cd22fc95f6ce10000000a1553f6/frameset.htm 2010 SAP AG 8

Hints Regarding Issues in this area: In case the information provided by your variable is not returning the expected value, you can try to analyze that using the debug in transaction RSRT. For instance, in query below using a text replacement path variable, this is returning # instead of the description. In order to analyze this issue you can execute the query in transaction RSRT and entering in debug mode ( /h + enter ) before to press the execute button. When you reach the debug screen you can set a break point in the function module RRSV_CHAVL_TO_VALUE_CONVERT as you can see in figures below: 2010 SAP AG 9

After that, you can continue pressing F8. The code should stop in the break-point set as in the image below: In the ABAP Stack area, by double clicking in FORM ELTTXT_VAR_REPLACE this is possible to analyze the values passed to function module RRSV_CHAVL_TO_VALUE_CONVERT: 2010 SAP AG 10

Some interesting information is passed to the function module by structure L_S_VAR_LRECH, as you can see below: Backing to the code, you can set a break-point just after the call of FM RRSV_CHAVL_TO_VALUE_CONVERT and verify the value returned by that FM in the variable L_REPLTEXT: Note that in this case L_REPLTEXT is # which is our problem. Checking the values passed to that Function Module in structure L_S_VAR_LRECH, we can see that L_CHAVL in this case is K12010010 and the L_S_VAR_LRECH- FOFFSET is 0010. This explains the issue: L_S_VAR_LRECH- FOFFSET= 0010 means that an offset of 10 has been set to the value K12010010. In this case it will remove all the information from L_CHAVL. In such case system is programmed to show # instead of blank. 2010 SAP AG 11

This is possible to confirm that FOFFSET is responsible by the issue if you change the value for L_S_VAR_LRECH-FOFFSET in the debug mode from 0010 to 0: The L_REPLTEXT should be correctly displayed after execute FM RRSV_CHAVL_TO_VALUE_CONVERT with L_S_VAR_LRECH-FOFFSET=0, as you can see below: 2010 SAP AG 12

Detailing this issue: The information from L_S_VAR_LRECH comes from table RSZGLOBV. In this case in order to fix the issue you need to maintain the correct OFFSET for your variable in that table (for this example the variable is TEXT_VAR_1): Replacing the FOFFSET from 10 to 0, for instance: After that, this is required to regenerate the query in transaction RSRT: 2010 SAP AG 13

So, it should return the desired results executing the query after the procedure: Note: You can execute the FM RRSV_CHAVL_TO_VALUE_CONVERT in transaction SE37. You can use the values passed to this FM in the debug mode as reference and this is also help in the analysis of issues in this area. 2010 SAP AG 14

Replacing texts and/or Key: You can see in the previous example that this is returning the KEY of characteristic 0FISCPER and not the text as in some other examples from this document ( K12010010 instead OCT 2010 ). This is because the information from RSZGLOBV stored in the field FLAGR. If you want to change that you can select the option FLAGR = 3 instead of 1 for that variable: In case it is set to 3, the text is going to be displayed in the query result: Note: It is not recommended to change values directly in the tables. The idea in this case is just to illustrate how it works. You will reach the desired results if you manage the parameters for the variable using the Bex Query Designer in the Replacement Path Tab for the variable definition. Tables T009 and T009C text for 0FISCPER. In case you set your variable to be replaced by the text of 0FISCPER, the information selected by FM RRSV_CHAVL_TO_VALUE_CONVERT in this case is stored in table T009C and this depends on the Fiscal Year Variants settings from table T009. In the example from the previous session these are the values for those tables: T009: T009C: 2010 SAP AG 15

And this information is often loaded by the Transferring Global Settings feature as per online documentation below: http://help.sap.com/saphelp_nw70/helpdata/en/d4/e262419f5d031de10000000a155106/frameset.htm 2010 SAP AG 16

Related Content: You will find additional information in the following links: http://help.sap.com/saphelp_nw70/helpdata/en/af/809528939d5b4fbff7e16a5bdc0d85/frameset.htm http://help.sap.com/saphelp_nw70/helpdata/en/ee/1e9b3c334d8c15e10000000a114084/frameset.ht m http://help.sap.com/saphelp_nw70/helpdata/en/d4/e262419f5d031de10000000a155106/frameset.ht m For more information, visit the EDW homepage. 2010 SAP AG 17

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