Using Customer Exit Variables in BW Reports Part - 3
Using Customer Exit Variables in BW Reports Part - 3
Applies to:
SAP BW 3.5, Will also work on SAP BI 7 visit the Business Intelligence homepage.
Summary
This article gives clear picture about how to use Characteristic Customer Exit Variables in SAP-BW/BI Reports. Author(s): Company: Surendra Kumar Reddy Koduru ITC Infotech India Ltd. (Bangalore/INDIA)
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.
Table of Contents
Introduction: ........................................................................................................................................................ 3 Live Scenario: ................................................................................................................................................. 3
Steps: ........................................................................................................................................................................... 3 Code: ........................................................................................................................................................................... 6 Code Explanation:........................................................................................................................................................ 9 Report Designer: .......................................................................................................................................................... 9
Introduction: This article addresses the requirement of Customer Exit variables in BW/BI Reports, in this article Im explaining the following scenario How to use the Characteristic Customer Exit Variables in BW/BI Reports based on 0CALDAY. Live Scenario: In most of the SAP-BI/BW reports (Here I taken Sales example) users want to see the Sales revenue data for entire Financial Year Period. Whenever the User will executes the report he/she dont want to enter the from Date and To Date, but they want to see the Starting Date and Ending Date of the Financial Year Period based on System/Current Date. Eg: Suppose user will execute this report on 23.10.2009, and he want to the data from 01.04.2009 to 31.03.2010 (This is as per INDIA Financial Year Period). To display the data in report as per above example, we need to use the Customer Exit Variable on Date (0CALDAY). Steps: Create Customer Exit Variable on Calendar Day (0CALDAY) Create ZC_FYFD variable on 0CALDAY, the properties are.. Type of Variable Variable Name Processing by Characteristic Variable Represents Variable Entry Check ready for input For reference look into the following screens. = Characteristic = ZC_FYFD = Customer Exit = Calendar Day = Interval = Mandatory
Code: Goto CMOD TCode in SAP-BW/BI and then give your Project Name and click on Change button.
Click on Components
Save and Activate the above code and project. Code Explanation: The Function Module 'DATE_TO_PERIOD_CONVERT' will take System date and Fiscal year Variant and it will give Fiscal Year period and Year. Take the Year and Fiscal year Variant than pass to 'FIRST_AND_LAST_DAY_IN_YEAR_GET' Function Module, so it will give First and Last Day of the Fiscal Year. Report Designer:
In Report Rows: Drag and Drop Material. In Report Columns: Create New Selection and Drag and Drop 0AMOUNT Key figure and 0CALDAY and restrict 0CALDAY with ZC_FYFD Customer Exit variable.
Save and Execute the Report : You can see the following selection screen with Starting and Ending Financial year period dates.
Related Content
Using Customer Exit Variables in BW or BI Reports Part - 1 How to use Customer Exit Variables in BW Reports: Part - 2 Using Text Variables with Customer Exits in Report Headings Using Text Variables with Customer Exits in Report Headings For more information, visit the Business Intelligence homepage.