Using Customer Exit Variables in BW/BI Reports: Part - 9

Similar documents
Using Customer Exit Variables in BW/BI Reports: Part - 5

Calculating the Ageing of the Materials

Analysis Process Designer (APD): Part - 1

SAP BW - Dynamic Call Customer Exit Variables Using Same Exit

SAP BW - Virtual Characteristic Exit (RSR00002)

How to Restart a Failed Process Chain if Repeat Option is not Applicable

Creating Marketing Project Report through Report Painter

SAP CRM/BW - Business Partner Enhancement and BW Extraction

SAP Business Workflow: Identify Transport Request for Workflow

Efficient Monitoring Techniques Do You Want Something Better than RSPCM?

How to Perform Benefits Checks using Participation Monitor

Procedure for Transferring Documents from Financial Accounting to Controlling

Reporting Data in Alternate Unit of Measure in BI 7.0

Related to Process Type in BI 7.0: Decision between Multiple Alternatives

Integrating SAP BW with Microsoft BI Using Open Hub Technology

Travel Management: Posting of Expenses to Different GL Accounts based on the Kind of Travel (Domestic or International)

Solution Manager Service Desk Support Team Creation

How to Update the Currencies and Unit of Measurements from ECC Source System to BI System by Automatically and Manually

Establishing RFC Connection between Data Stage SAP BW

Integration of Multiple Campaigns Functionality of SAP CRM 2007 to ECC 5.0 or lower

Decommissioning of NLS Implementation for SAP BI

How to Repair Master/Transaction Data Load Error Due to trfc Stuck

FI Enhancement Technique How-To-Guide on the Usage of Business Transaction Events (BTE)

Creation of BI Master Data in Integrated Planning (IP) through Web Layouts

Introduction to Process Chains in SAP BI 7.0

Guidelines for Creating a QM Certificate for Delivery in Product Lifecycle Management

Stock Transfer between Storage Locations of the Same Plant

Automatic Rework Order using Reason of Variance Key

PCM Implementation for BW

Complete Guide to Learn Organizational Plan & Role Resolution in Workflow

Invoicing Plan Enhancement in Purchase Order

Like Modeling and Life Cycle Planning A Case Study

Setting up Organizational Plan

How to Load Data into Planning Book from Flat File

How to Add a New Personnel Development Profile to PPPM

Automatic Packaging in SNC A Case Study

Integrating MDM with BI - Part 1

Data Loading Strategy for Global Data Warehousing Implementation

HR Payroll Posting into FICO Expense Account

SAP Sustainability Performance Management v1.0 (Part 3)

Subcontracting of Project Stock

SAP Technical Upgrade Project

Independent Multiple Samples in Supply Chain Management

Using the Switch Document for Change of Supplier Process (Utility Industry)

Batch Management with Multiple Units of Measurement

Customer Field for SRM SC Web Dynpro Application

Exception Handling in Service-Oriented Architecture

Purchase Order Settings in SAP SRM

Dynamic Daily Work Schedule Based on Clock Times

Migration of DIR (Document Info Record) with Attachments - DMS

UWL Configuration for Opening Web Dynpro ABAP Application for Appraisal Document in EHP4

Purchasing Discount in Kind

Four Methods for Planning Data Validation in BPC70NW

Step By Step Configuration Document of Employee Self Service (ESS)

Fixing Sales Prices of Merchandise on par with Competitors

Setup Matrix Generation in a Complex Manufacturing Environment

SAP Business Process Management Base Configurations

Promote Standardized Solution in SAP Environment

Transporting the Appraisal Templates in Performance Management

Approved Manufacturer Part List (AMPL)

The author is working as a Technical Analyst in Infosys Technologies Limited.

SRM Org Structure Part 2 Tools, Tables and Reports

SNP: CTM Concepts, Demand Prioritization and Supply Categorization

White Paper: Master Data Syndication from SAP NW MDM to Backend SAP & Non-SAP Application via SAP NW PI

SAP BusinessObjects Rapid Marts Overview - 1

Installation Guide: Open Text Archiving and Document Access for SAP Solutions (DocuLink Component)

Collaboration of Production Process with Contract Manufacturers in Hi-Tech Industries

Batch Specific UOM Inventory Management: Stock Keeping with Dynamic Conversion Factor

Pricing in SAP CRM E-Commerce Product Catalog

Product Allocation Strategy Based on Marketing Strategy

Transportation Chain-Shipping Cost Calculation for Multi leg with Different Vendors in SAP

Impact Analysis of Technical Upgrade from SAP for Insurance Collections/Disbursements (FS-CD) 4.7 to ECC 6.0

APO: Characteristics Based Forecasting

Guideline to Map Calibration Process in SAP PM and QM Module

Active Ingredient Management and Batch Balancing

The Enterprise SOA Implementation Lifecycle Explained

Object based Navigation based on Business Objects and POWL

Demand Release and Forecast Consumption Consumption in APO SNP

GOA Contracts Price Validation Functionality

Quality Based Invoice

Guidelines: Activating Source Inspection for Externally Procured Parts

SAP Release Change and Unicode Migration. A Customer Experience Report

SAP for Insurance Part 1

Leveraging SAP for Outsourcing and Collaboration Scenarios in High-Tech Industry

Working with the New GL Migration Cockpit

SAP Upgrade Delta Document SD Module

Management of Global Employees

Business Process Management with JRULE

SAP QM Overview for ABAP Developers

Overview on ROI (Return on Investment) From SAP

SAP MM - POSTING PERIOD

How Slaughter Planning of Poultry Works in SAP

CUSTOMER Customizing Tables for Transfer Types and Enhancement Spot Container for EPC BADIs

SAP Public Budget Formulation 8.1

SOX Audit Environment

SAP Certified Application Professional Reporting and Analysis with SAP NetWeaver Business Warehouse (BW 7.0)

Transfer of Archived SAP ERP Data to SAP NetWeaver BW. Using PBS archive add ons

The information contained herein reflects current planning and may be changed at any time without prior notice Product Management SAP NetWeaver (BI)

The Role of ISO in Strategic Asset Lifecycle Information Management

DRAFT How to Use SAP Activate Content in SAP Solution Manager 7.2

Transcription:

Using Customer Exit Variables in BW/BI Reports: Part - 9 Applies to: SAP NetWeaver Business Warehouse (Formerly BI), Will also work on SAP BI 3.5. EDW homepage. Summary This article gives clear picture about how to use Characteristic Customer Exit Variables in SAP-BW/BI Reports. Author: Surendra Kumar Reddy Koduru Company: ITC Infotech India Ltd. (Bangalore/INDIA) Created on: 01 June 2011 Author Bio Surendra Kumar Reddy Koduru is a SAP BI Lead Consultant currently working with ITC Infotech India Ltd (Bangalore/INDIA). He has got rich experience and worked on various BW/BI Implementation/Support Projects and he is the author for various Articles and Blogs (SAP-BW/BI) in SAP Community Network. SAP COMMUNITY NETWOR 2011 SAP AG 1

Table of Contents Introduction:... 3 Live Scenario:... 3 Steps:... 3 Code:... 6 Code Explanation:... 9 Report Designer:... 9 Selection Screen:... 12 Report Result:... 13 Related Content... 15 Disclaimer and Liability Notice... 16 2011 SAP AG 2

Introduction: This article addresses the requirement of Customer Exit variables in BW/BI Reports; in this article I m explaining the following scenario How to use the Characteristic Customer Exit Variables in BW/BI Reports, how to display the data for Fiscal Year Period data based on User Input Month and Year (0CALMONTH). Live Scenario: In some of the SAP-BI/BW reports, users want to see the Sales revenue data for the Fiscal Year Period based on Users Input 0CALMONTH. Steps: Create User Entry Variable ZMY_U on 0CALMONTH. For reference look into the following screens. 2011 SAP AG 3

Create Customer Exit Variable ZFYPM_C on 0FISCPER. For reference look into the following screens. 2011 SAP AG 4

2011 SAP AG 5

Code: Goto CMOD TCode in SAP-BW/BI and then give your Project Name and click on Change button. Click on Components 2011 SAP AG 6

Double Click on EXIT_SAPLRRS0_001 Double Click on INCLUDE ZXRSRU01. 2011 SAP AG 7

Write the following Code in the ABAP Editor in ECC: *&---------------------------------------------------------------------* *& Include ZXRSRU01 *&---------------------------------------------------------------------* DATA : l_s_range TYPE rsr_s_rangesid, loc_var_range LIKE rrrangeexit. DATA: ZMONTH TYPE RSCALMONTH, ZFISCPER TYPE RSFISCPER. CASE i_vnam. WHEN 'ZFYPM_C'. IF i_step = 2. LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZMY_U'. CLEAR: l_s_range. ZMONTH = loc_var_range-low. CALL FUNCTION 'FISCPER_FROM_CALMONTH_CALC' EXPORTING IV_CALMONTH = ZMONTH IV_PERIV = 'V3' IMPORTING * EV_FISCPER3 = * EV_FISCYEAR = EV_FISCPER = ZFISCPER. l_s_range-low = ZFISCPER. l_s_range-sign = 'I'. l_s_range-opt = 'EQ'. APPEND l_s_range TO e_t_range. ENDLOOP. ENDIF. ENDCASE. Save and Activate the above code and project. 2011 SAP AG 8

Code Explanation: The Function Module FISCPER_FROM_CALMONTH_CALC will take Month,Year and Fiscal Year Variant as input, and it will give the Fiscal Year Period which is equal to for that Month and Year. Report Designer: 2011 SAP AG 9

2011 SAP AG 10

In Filters: Drag & Drop 0CALMONTH and restrict with ZMY_U User Input Variable. In Rows: Drag and Drop Material and Plant. In Columns: Create New Selection and Drag and Drop Amount, 0FISCVARNT, 0FISCPER and restrict 0FISCVARNT with V3 (as per India) and 0FISCPER with ZFYPM_C Variable like above. Save and Execute the Report : 2011 SAP AG 11

Selection Screen: Once you execute the report you can see the following selection screen: 2011 SAP AG 12

Report Result: See the following Report Result: Here the result is displayed for 003.2011, because for 06.2011, the equivalent Fiscal Year Period is 003.2011. 2011 SAP AG 13

See the below Image from RSRT, i.e. execute the report in RSRT then see Input and Output like below. 2011 SAP AG 14

Related Content Using Customer Exit Variables in BW Reports Part - 4 Using Customer Exit Variables in BW Reports Part - 3 How to use Customer Exit Variables in BW Reports: Part - 2 Using Customer Exit Variables in BW or BI Reports Part - 1 Using Text Variables with Customer Exits in Report Headings Using Text Variables with Customer Exits in Report Headings Variables of Type Customer Exit 2011 SAP AG 15

Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document. 2011 SAP AG 16