Variable Exit in Sap BI 7.0 - How to Start



Similar documents
Using User Exit for Variables in BEx Reporting

SAP Master Data Governance- Hiding fields in the change request User Interface

Data Source Enhancement Using User Exit

Maintaining Different Addresses and Ids for a Business Partner via CRM Web UI

Business One in Action - How can we post bank fees and charges while posting Incoming or Outgoing Payment transactions?

Integrating Easy Document Management System in SAP DMS

Alert Notification in SAP Supply Network Collaboration. SNC Extension Guide

TM111. ERP Integration for Order Management (Shipper Specific) COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Data Archiving in CRM: a Brief Overview

Understanding HR Schema and PCR with an Example

NetWeaver Business Client (NWBC) for Incentives and Commissions Management (ICM)

Table of Contents. How to Find Database Index usage per ABAP Report and Creating an Index

Business Requirements... 3 Analytics... 3 Typical Use Cases... 8 Related Content... 9 Copyright... 10

Enterprise Software - Applications, Technologies and Programming

SAPFIN. Overview of SAP ERP Financials COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Process Archiving using NetWeaver Business Process Management

Sending Additional Files from SAP Netweaver PI to third Party System

HR400 SAP ERP HCM Payroll Configuration

Log Analysis Tool for SAP NetWeaver AS Java

R/3 and J2EE Setup for Digital Signature on Form 16 in HR Systems

Budget Control by Cost Center

UI Framework Logo exchange without skin copy. SAP Enhancement Package 1 for SAP CRM 7.0

Sample Universe on Microsoft OLAP Cube

Consume an External Web Service in a Nutshell with good old ABAP

Third Party Digital Asset Management Integration

How to Create a Support Message in SAP Service Marketplace

AC200. Basics of Customizing for Financial Accounting: General Ledger, Accounts Receivable, Accounts Payable COURSE OUTLINE

How to Add an Attribute to a Case, Record and a Document in NW Folder Management (ex-records Management)

Integration of SAP Netweaver User Management with LDAP

UI Framework Simple Search in CRM WebClient based on NetWeaver Enterprise Search (ABAP) SAP Enhancement Package 1 for SAP CRM 7.0

K in Identify the differences between the universe design tool and the information design tool

Xcelsius Dashboards on SAP NetWaver BW Implementation Best Practices

Portfolio and Project Management 5.0: Excel Integration for Financial and Capacity Planning

SAP NetWeaver BRM 7.3

Single Sign-On between SAP Portal and SuccessFactors

User Experience in Custom Apps

Mass Maintenance of Procurement Data in SAP

USDL XG WP3 SAP use case. Kay Kadner

UI Framework Task Based User Interface. SAP Enhancement Package 1 for SAP CRM 7.0

LO Extraction Part 1: SD Application Short Overview

Duet Enterprise Add SAP ERP Reports and SAP BI Queries/Workbooks to Duet Enterprise Configuration

Integration of Universal Worklist into Microsoft Office SharePoint

BW Workspaces Use Cases

Configuring Single Sign-on for SAP HANA

How-to-Guide: Middleware Settings for Download of IPC Configuration (KB) Data from R/3 to CRM System

How To Use the BPC Mass User Management Tool in BPC 10.0 NW

Download and Install Crystal Reports for Eclipse via the Eclipse Software Update Manager

SAP Sustainability Solutions: Achieving Customer Strategies

Compliant, Business-Driven Identity Management using. SAP NetWeaver Identity Management and SBOP Access Control. February 2010

Business Process Change Analyzer in SAP Solution Manager 7.1

SAP DSM/BRFPlus System Architecture Considerations

How to Schedule Report Execution and Mailing

Quick Guide EDI/IDoc Interfacing to SAP ECC from External System

SAP Central Process Scheduling (CPS) 8.0 by Redwood

ERP Quotation and Sales Order in CRM WebClient UI Detailed View. SAP Enhancement Package 1 for SAP CRM 7.0 CRM Sales - SFA

Secure MobiLink Synchronization using Microsoft IIS and the MobiLink Redirector

Application Lifecycle Management

How To Use the ESR Eclipse Tool with the Enterprise Service Repository

LO Extraction Part 2 Database Update Logic

AP Integration with BRFplus VERSION V APRIL SAP AG

SAP Portfolio and Project Management

Supporting SAP POS Best Practices Setting Log File Sizes and Retention

SAP Service Tools for Performance Analysis

If you have additional questions regarding these name changes, please contact your SAP Account Executive.

Accounts Receivable. SAP Best Practices

Project Governance The Role Of The Business Process Owner

Query, Read, Create and Update CLOUD FOR CUSTOMER ODATA SERVICE QUERY, READ, CREATE AND UPDATE

OData in a Nutshell. August 2011 INTERNAL

BW362. SAP BW powered by SAP HANA COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

Intelligent Business Operations Chapter 1: Overview & Strategy

Sales Planning Detailed View. SAP Enhancement Package 1 for SAP CRM 7.0 CRM Sales - SFA

SAP Cloud Strategy - Timeless Software. Frank Stienhans on behalf of Kaj van de Loo SAP

SAP Business ByDesign Reference Systems. Scenario Outline. SAP ERP Integration Scenarios

SOP through Long Term Planning Transfer to LIS/PIS/Capacity. SAP Best Practices

How to Configure Access Control for Exchange using PowerShell Cmdlets A Step-by-Step guide

Production Subcontracting (External Processing) SAP Best Practices

SAP NetWeaver BPM Tutorial for Beginners: My Name and Age BPM Tutorial

Unified Service Description Language Enabling the Internet of Services

Installation Guide Customized Installation of SQL Server 2008 for an SAP System with SQL4SAP.VBS

BICS Connectivity for Web Intelligence in SAP BI 4.0. John Mrozek / AGS December 01, 2011

Run SAP like a Factory

Fixed Asset in SAP Business One 9.0

SAP How-To Guide: Develop a Custom Master Data Object in SAP MDG (Master Data Governance)

SAP HANA Cloud Integration Document Version: Template Guide for SAP Sales and Operations Planning

How to Set Up an Authorization for a Business Partner in Customer Relationship Management (CRM) Internet Sales: Sample Case

Configuring Distribution List in Compliant User Provisioning

Thread Dump Viewer for SAP NetWeaver AS Java

SAP BusinessObjects Increasing Stability by Setting Limits on Max. Retrievable Cells from SAP BW into Web Intelligence using BICS

Next Generation Digital Banking with SAP

Learning Series: SAP NetWeaver Process Orchestration, secure connectivity add-on 1c SFTP Adapter

Microsoft Excel 2007 & SAP Business Explorer Compatibility

Supplier Master Data Governance

Finding the Leak Access Logging for Sensitive Data. SAP Product Management Security

Matthias Steiner SAP. SAP HANA Cloud Platform A guided tour

RUN BETTER Become a Best-Run Business with Remote Support Platform for SAP Business One

Delta Queue Demystification

Ariba Network Integration to SAP ECC

Certificate SAP INTEGRATION CERTIFICATION

Learning Series: SAP NetWeaver Process Orchestration, business to business add-on EDI Separator Adapter

SAP GRC Access Control: Background jobs for risk analysis and remediation (formerly Virsa Compliance Calibrator)

Transcription:

Variable Exit in Sap BI 7.0 - How to Start Applies to: This article is applicable to SAP BI 7.0. For more information, visit the Business Intelligence homepage. Summary This document provides an introduction for the creation and management of variables type customer exit in BW queries. Author: Ricardo de Azeredo Rosa Company: SAP Labs Brazil Created on: 24 May 2009 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 Intelligence (BW, SEM and Planning) working in various critical projects in this area. 2009 SAP AG 1

Table of Contents Variable Exit Starting...3 Project Management of SAP Enhancements...3 BEX Query Designer and Variable Type Customer Exit...4 Customer Exit and ABAP Code...5 Testing and Debugging...6 Additional Information...8 Related Contents...9 Copyright...10 2009 SAP AG 2

Variable Exit Starting SAP provides a variable of type customer exit for BW queries which customer is able to manage its values depends on their business requirements. It is necessary some background in ABAP to start in this area, the proposal of this document is to help on those tasks. It is structured in the following sequence: Project management of SAP Enhancements Query BEX Query Designer and Variable Type Customer Exit Customer Exit and ABAP Code Test and Debug Additional Information Project Management of SAP Enhancements In order to start it is necessary to activate a new project for a SAP enhancement. So as to execute that you need to call the transaction CMOD, inform a name for your project and press the button create. A second screen requesting a short description will be showed, just enter the required information and save : 1 2 It is necessary to inform the enhancement for your new project. In the list, select that one responsible for handle the variables in the BI/BW queries: RSR00001 BI: Enhancements for Global Variables in Reporting Choosing components, it is possible to verify that function module EXIT_SAPLRRS0_001 is already assigned for the new project, selecting that one (by double clicking), system jumps to the function module definition which has basically an instruction like INCLUDE ZXRSRU01.. Actually the report ZXRSRU01 is reserved for store the customer code which will manage the variable values in the BW query. Now it is necessary to create the report ZXRSRU01 in transaction SE38. But before this procedure we need a variable which will be handled in that report. In the next item the steps to create a simple query and a user exit variable type will be explained. 2009 SAP AG 3

BEX Query Designer and Variable Type Customer Exit 1. In the query designer 7.1, create a new query following the standard procedure. Select the characteristic which you want to filter and create a new variable: 2. Select the technical name and the description for your new variable in the appropriated area: 3. Set the type Customer exit in the field Processing by : 4. Select your characteristic and restrict that one by the variable created in the previous item as a filter for your query (use the drag and drop): 2009 SAP AG 4

5. Create a simple query in the Rows/Columns area that we can use as example: 6. Save your query and now we are able to create the customer exit in the program ZXRSRU01. Customer Exit and ABAP Code Now the program ZXRSRU01 can be created, you can use the transaction SE38 for that. The most important information here is that the customer exit program will receive the variable name of the BW query in the ABAP variable i_vnam, which is defined as an import parameter in the function module EXIT_SAPLRRS0_001 and the BW query s variable value is handled in the table E_T_RANGE. So: it is necessary to create a program that check the variable name in order to confirm if we are handling the correct one and manage its current values in the table E_T_RANGE. It is an example of the code: *&---------------------------------------------------------------------* *& Include ZXRSRU01 *&---------------------------------------------------------------------* DATA: l_s_range TYPE rrrangesid. CASE i_vnam. WHEN 'Z_RARTST'. l_s_range-low = '12345'. l_s_range-sign = 'I'. l_s_range-opt = 'EQ'. APPEND l_s_range TO e_t_range. ENDCASE. You can create a similar program for a test proposes. Just be careful with the name of the variable, it should be the same you have informed in the restriction of your query in the previous item (in this example Z_RARTST of course the technical name.). Active and save your new program before leave. Before to execute the test, you need to go in the transaction CMOD once more and activate the customer exit otherwise the system will not execute your code. 2009 SAP AG 5

Your Customer Exit is ready to be tested. Transaction RSRT is a good option for that: Testing and Debugging Note: This is not the idea of this document to discuss about ABAP debug; maybe some knowledge in this area is required First, set a break point in your code, for instance, as per example below: Call transaction RSRT and execute your query: 2009 SAP AG 6

The program will stop in the statement BREAK-POINT: It is possible to verify the values assigned in the runtime for the variables (I_VNAM, for instance): After the statement APPEND (some F5 s in the debugger tool), this is the value for E_T_RANGE: Verify that the E_T_RANGE-LOW value has already the desired value 12345. And this is the result for in the variable screen (if you press F8 to continue the execution of the program and leave the debugger): The Variable was populated with required value, exactly as expected. 2009 SAP AG 7

Additional Information Of course this is just a simple example for starting with this feature. Some additional knowledge is required for deeper developments in this area. In the debug mode you are able to explore some other parameters like I_STEP and I_S_RKB1D for instance. Checking I_S_RKB1D, just as an example, you have access to the query attribute, it means that beyond the variable name it is possible to check some other information in order to set the variable value, like query and infoprovider name and so on. Checking the I_STEP, as another example, it will help you to set the time that exit is triggered, as following: I_STEP = 1 Call directly before the variable is entered I_STEP = 2 Call directly after the variable is entered. This step is activated only if the same variable could not be filled for I_STEP = 1 and it is not ready for input. I_STEP = 3 In this call, you can check the values of the variables. Activating an exception (RAISE) causes the variable screen to appear again. I_STEP = 2 is also then executed once more. I_STEP = 0 The enhancement is not called from the variable screen. The call can come from the authorization check or from the monitor. 2009 SAP AG 8

Related Contents http://help.sap.com/saphelp_nw70/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/frameset.htm note 492504 - Dependent customer exit-type variables http://help.sap.com/saphelp_nw70/helpdata/en/f1/0a56f5e09411d2acb90000e829fbfe/frameset.htm For more information, visit the Business Intelligence homepage. 2009 SAP AG 9

Copyright Copyright 2009 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 document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. 2009 SAP AG 10