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

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

Calculating the Ageing of the Materials

Analysis Process Designer (APD): Part - 1

SAP BW - Dynamic Call Customer Exit Variables Using Same Exit

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

Creating Marketing Project Report through Report Painter

SAP Business Workflow: Identify Transport Request for Workflow

SAP BW - Virtual Characteristic Exit (RSR00002)

SAP CRM/BW - Business Partner Enhancement and BW Extraction

Efficient Monitoring Techniques Do You Want Something Better than RSPCM?

Establishing RFC Connection between Data Stage SAP BW

Integrating SAP BW with Microsoft BI Using Open Hub Technology

How to Perform Benefits Checks using Participation Monitor

Procedure for Transferring Documents from Financial Accounting to Controlling

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

Reporting Data in Alternate Unit of Measure in BI 7.0

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

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

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

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

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)

How to Add a New Personnel Development Profile to PPPM

Invoicing Plan Enhancement in Purchase Order

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

Stock Transfer between Storage Locations of the Same Plant

Setting up Organizational Plan

Like Modeling and Life Cycle Planning A Case Study

Automatic Rework Order using Reason of Variance Key

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

PCM Implementation for BW

Complete Guide to Learn Organizational Plan & Role Resolution in Workflow

HR Payroll Posting into FICO Expense Account

Introduction to Process Chains in SAP BI 7.0

Independent Multiple Samples in Supply Chain Management

How to Load Data into Planning Book from Flat File

Subcontracting of Project Stock

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

Automatic Packaging in SNC A Case Study

Batch Management with Multiple Units of Measurement

Exception Handling in Service-Oriented Architecture

Integrate XI and BI in SAP NetWeaver 2004s

Integrating MDM with BI - Part 1

Dynamic Daily Work Schedule Based on Clock Times

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

Data Loading Strategy for Global Data Warehousing Implementation

Four Methods for Planning Data Validation in BPC70NW

SAP Sustainability Performance Management v1.0 (Part 3)

SAP Technical Upgrade Project

SAP Business Process Management Base Configurations

Transporting the Appraisal Templates in Performance Management

Customer Field for SRM SC Web Dynpro Application

Fixing Sales Prices of Merchandise on par with Competitors

Purchase Order Settings in SAP SRM

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

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

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

Purchasing Discount in Kind

SRM Org Structure Part 2 Tools, Tables and Reports

Setup Matrix Generation in a Complex Manufacturing Environment

Promote Standardized Solution in SAP Environment

Pricing in SAP CRM E-Commerce Product Catalog

Approved Manufacturer Part List (AMPL)

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

SNP: CTM Concepts, Demand Prioritization and Supply Categorization

SAP BusinessObjects Rapid Marts Overview - 1

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

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

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

Object based Navigation based on Business Objects and POWL

APO: Characteristics Based Forecasting

GOA Contracts Price Validation Functionality

SAP Release Change and Unicode Migration. A Customer Experience Report

Guideline to Map Calibration Process in SAP PM and QM Module

Quality Based Invoice

Active Ingredient Management and Batch Balancing

The Enterprise SOA Implementation Lifecycle Explained

Demand Release and Forecast Consumption Consumption in APO SNP

Working with the New GL Migration Cockpit

CRM Worklist: Advance with Dialog not Supported

Guidelines: Activating Source Inspection for Externally Procured Parts

Management of Global Employees

SAP for Insurance Part 1

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

Business Process Management with JRULE

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

SAP QM Overview for ABAP Developers

SAP Upgrade Delta Document SD Module

Adding Inventory. 1. From the Home screen, go to Operations Inventory Search Product Inventory. The Search Product Inventory screen displays.

SAP Public Budget Formulation 8.1

SAP Business One Financial Consolidation

Overview on ROI (Return on Investment) From SAP

SAP MM - POSTING PERIOD

How Slaughter Planning of Poultry Works in SAP

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

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

Transcription:

Using Customer Exit Variables in BW/BI Reports: Part - 5 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: 31 May 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... 14 Disclaimer and Liability Notice... 15 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 based on User Input Date. Live Scenario: In most of the SAP-BI/BW reports (Here I taken Sales example) users want to see the Sales revenue data for Financial Year Period based on Users Input date. Steps: Create User Entry Variable ZDATE_M on 0CALDAY. For reference look into the following screens. 2011 SAP AG 3

Create Customer Exit Variable ZFYP_CE 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, zbdatj LIKE t009b-bdatj, zbuper LIKE t009b-poper, zper LIKE t009b-poper, ZGJAHR LIKE T009B-BDATJ. DATA : ZDT TYPE SY-DATUM. CASE i_vnam. WHEN 'ZFYP_CE'. IF i_step = 2. LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZDATE_M'. CLEAR: l_s_range. ZDT = loc_var_range-low. CALL FUNCTION 'DATE_TO_PERIOD_CONVERT' EXPORTING I_DATE = ZDT * I_MONMIT = 00 I_PERIV = 'V3' IMPORTING E_BUPER = ZBUPER E_GJAHR = ZGJAHR * EXCEPTIONS * INPUT_FALSE = 1 * T009_NOTFOUND = 2 * T009B_NOTFOUND = 3 * OTHERS = 4. IF SY-SUBRC <> 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. * CONCATENATE ZBUPER ZGJAHR into ZFYP. CONCATENATE ZGJAHR ZBUPER into l_s_range-low. 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 'DATE_TO_PERIOD_CONVERT' will take Date and Fiscal Year Variant, as input, and it will give Fiscal year period. Report Designer: 2011 SAP AG 9

2011 SAP AG 10

In Filters: Drag & Drop 0FISCVARNT, 0CALDAY and restrict 0FISCVARNT with V3 (as per India) and 0CALDAY with User Input Variable. In Rows: Drag and Drop Material and Plant. In Columns: Create New Selection and Drag and Drop Amount and 0FISCPER, restrict 0FISCPER with ZFYP_CE 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 010.2009 period, because 01.01.2010 means 010.2009. 2011 SAP AG 13

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 14

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 15