Restricting F4 (Input Help) Values While Running a SAP BW Query

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

Custom Process types Remote Trigger and End Time

How to use Boolean Operations in the Formula as Subsidiary for IF Condition

Reporting Duplicate Entries

Triggering the Process Chains at Particular Date using Events

Linking Documents with Web Templates

Using Radio Buttons in Web Template

Using Nested Exception Aggregation in BEx Reports- Scenario

Integration of Web Dynpro for ABAP Application in Microsoft Share Point Portal

Creation of Key Figures with Higher Decimal Place Precision

Developing Crystal Reports on SAP BW

Implementing Customer Exit Reporting Variables as Methods

MDM Import Manager - Taxonomy Data (Attribute Text Values) Part 3

Using Customer Exit Variables in BW/BI Reports Part - 1

SAP BW Copy Existing DTP for Data Targets

POWL: Infoset Generation with Web Dynpro ABAP

Using Query Extract to Export Data from Business warehouse, With Pros and Cons Analyzed

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

ABAP Code - Recipients (Specific Format) SAP BW Process Chain

Material Master Archiving in Simple Method

DB Connect with Delta Mechanism

How to Write Inverse Routine with Expert Routine

Step by Step Method for File Archival in BW

Extracting Missing Fields of Data Source Which Are Present In Their Extract Structure

Maintaining Roles and Authorizations in BI7.0 - RSECADMIN

Creating Custom SU01 Transaction Code with Display and Password Reset Buttons

SAP BI Global Report Variable user exit modularization

Using Rule Group in SAP-BI. Part - 1

Implying Security on Business Object XI 3.1 Universe having SAP BW as Source

Validity Table in SAP BW/BI

Data Mining: Scoring (Linear Regression)

Replacement Path: Explained with an Illustrated Example

SAP BI BO Unit/Currency Logic for Unknown Units Case Study

Hierarchy in Business Objects with Expanded Hierarchy Logic

MDM Syndicator: Custom Items Tab

Information Broadcasting Part 3 Scheduling the First Report

Currency Translation in SAP BI Step by step Guide

Extraction of Hierarchy into Flat File from R/3 and Loading in BW System

Creation of Sets in SAP-ABAP, How to Read them INI SAP-ABAP Reports

Graphical Mapping Technique in SAP NetWeaver Process Integration

Step by Step Guide How to Use BI Queries in Visual Composer

Easy Lookup in Process Integration 7.1

Purpose of Goods Receipt Message indicator in Purchase Orders

Standalone BW System Refresh

How to Create Top of List and End of List of the ALV Output in Web Dynpro for ABAP

Displaying SAP Transaction as Internet Application in Portal

How to Create View on Different Tables and Load Data through Generic Datasource based on that View

Database Statistics During ODS Activation

ecatt Part 6 System Data Container

Material Listing and Exclusion

How to Display Result Row in One Line While Reporting On Multiproviderer

Step By Step: the Process of Selective Deletion from a DSO

Customizing Characteristic Relationships in BW-BPS with Function Modules

Open Hub Destination - Make use of Navigational Attributes

List of Values in BusinessObjects Web Intelligence Prompts

Generate Export Data Source

Changing the Source System Assignments in SAP BW Objects without Affecting the Data Modeling

Step-By-Step guide to Virtual InfoCube Implementation

Routines in SAP BI 7.0 Transformations

Loading the Data for Time Dependent Hierarchy in SAP BI

Role and Scope of ABAP in SAP BI

Step by Step Procedure for DSO Creation

How to Default Variant Created for Report Developed In Report Painter/Writer

Process Chain Log Deletion

Errors while Sending Packages from OLTP to BI (One of Error at the Time of Data Loads through Process Chains)

How to Configure User Status in mysap SRM

SAP BI Analysis Authorization (Customer Exit Variables)

Xcelsius Tricks Part 5 Create a Loading Bar in SAP Crystal Dashboard and Presentation Design (Xcelsius 2008)

Customized Transaction to Trigger Process Chain from Failed Step

Data Mining: Decision Trees

Reading Enhanced DataSource fields for the Remote Cube

Procedure to Trigger Events in Remote System Using an ABAP Program

SDN Community Contribution

SAP BusinessObjects Translation Manager Functionality and Use

Freely Programmed Help- Web Dynpro

Data Flow During Different Update Mode in LO Cockpit

Download SAP Query Output to Local/ Network Folders in Background

How to Create and Execute Dynamic Operating System Scripts With XI

How to Display Traffic Lights for Exceptions in BI Web Reports

SDN Community Contribution

Recreating BIA Indexes to Address the Growth of Fact Index Table

How to Check BW system Before Go-Live

Template Designer: Create Automatic PDF Documents for Attachment or Print Purpose

Transfer Material Attributes (Material Type) from R/3 to SAP GRC Global Trade Services (GTS)

This article explains the steps to create a Move-in letter using Print Workbench and SAPScripts.

How to Work with F4 Input Help Effectively in BEX

How to Reference External JAR Files in Web Dynpro DC in SAP NW Portal 7.3

Explore to the Update Tab of Data Transfer Process in SAP BI 7.0

SAP QM-IDI Interface. SDN Contribution. Applies to: Summary. Author Bio. SAP QM Interfaces

Step by Step Guide on How to Use Cell Definition in BEx Query

SDN Community Contribution

Data Extraction & DS Enhancement in SAP BI Step by Step

Open Text DocuLink Configuration - To Access Documents which are Archived using SAP

Financial Statement Version into PDF Reader

Solution to the Challenges in Pivoting

Data Inconsistency in the Cube and Aggregate

Steps to Activate ALE Delta for Custom Master Datasource Created on ZTable

Load Info Cube in SCM 5.0 (BI 7.0)

SDN Community Contribution

Add /Remove Links on ESS Home Page in Business Package 1.5

Transcription:

Restricting F4 (Input Help) Values While Running a SAP BW Query Applies to: SAP BI 7.01 Summary This article briefs out the way to restrict F4 values (Input help values) while running a SAP BW query with the help of BADI RSR_VARIABLE_F4_RESTRICT_BADI. This feature was not available with previous versions of SAP BW (before SAP BW 7.01, SP 9). Author: Amandeep Sharma Company: Australand Property Group, Australia Created on: 1st October 2011 Author Bio Amandeep Sharma is working as a Senior BW/BI Developer in Australian company Australand Property Group. He has more than 6 years of SAP BW/BI/BO experience. He has worked on various support/implementation projects while working in consulting companies like SAP Labs India, IBM India, and HCL Axon Australia. Currently, he is involved in SAP BW green field implementation in Australand Property Group, Australia. 2011 SAP AG 1

Table of Contents Introduction... 3 Business Scenario... 3 Solution... 4 Result... 10 Related Content... 11 Disclaimer and Liability Notice... 12 2011 SAP AG 2

Introduction While running a SAP BW query, sometimes F4 help (Variable input help) returns a long list of unwanted values. Users may not be interested to see all the returned values and this may confuse users or waste a lot of time while selecting a right value from the list. There was no way to restrict the input help values before SAP BI 7.01. With Support Package SAPKW70109 SAP has provided BADI RSR_VARIABLE_F4_RESTRICT_BADI. BADI RSR_VARIABLE_F4_RESTRICT_BADI has 3 methods as given in below screen shot. In this document we will explain how to enhance this BADI to restrict F4 values. This document will discuss GET_RESTRICTION_FLAT method which can be used to restrict the input help values for simple characteristics variables. Business Scenario Let s take one simple scenario where we can use RSR_VARIABLE_F4_RESTRICT_BADI BADI to restrict input help values. For a simple Fiscal Year Period Variable, it can display a number of fiscal periods when user hits F4 as below: But users only want to see fiscal periods of last year. 2011 SAP AG 3

Solution Go to SPRO and execute the IMG activity BAdI: Restricting the value help in the Variables Screen as below: Following screen will display any existing active implementation of BADI RSR_VARIABLE_F4_RESTRICT_BADI. Click on. Below message will appear. 2011 SAP AG 4

Click on. Give implementation name and give description of the implementation for your reference. Click ok. In the below screen give RSR_VARIABLE_F4_RESTRICT_BADI as BAdI implementation name and ZF4TEST as class name and click ok as below: 2011 SAP AG 5

In the below screen select given row. Click on. Below screen will appear: 2011 SAP AG 6

Double click on.below screen will appear: Now we can see three methods in class ZF4TEST of BADI RSR_VARIABLE_F4_RESTRICT_BADI. Double click on method GET_RESTRICTION_FLAT. You can see below example code has been given by SAP. 2011 SAP AG 7

'ZP_TestFPVar' is the variable for which input help values will be restricted.) 'ZTest_Query' is the technical name of the query for which you want to restrict the input values. Comment above code and write your code as below: DATA: lv_year TYPE n LENGTH 4, lv_fiscalperiodlow TYPE /bi0/oifiscper, lv_fiscalperiodhigh TYPE /bi0/oifiscper. IF i_vnam EQ ZP_TestFPVar'. READ TABLE i_t_compid WITH TABLE KEY table_line = 'ZTest_Query' TRANSPORTING NO FIELDS. IF sy-subrc = 0. lv_year1 = sy-datum+0(4) - 1. CONCATENATE lv_year 001 INTO lv_fiscalperiodlow. CONCATENATE lv_year 012 INTO lv_fiscalperiodhigh. l_s_range-iobjnm = i_iobjnm. l_s_range-sign = 'I'. l_s_range-option = 'BT'. l_s_range-low = lv_fiscalperiodlow. l_s_range-high = lv_fiscalperiodhigh. APPEND l_s_range TO c_t_range. ENDIF. After activating the code, go back to enhancement Implementation screen. Click on. Click on. Below screen will appear. 2011 SAP AG 8

Click on and enter IO 0FISCPER as below: Click ok. Now we have defined the InfoObject for which this BADI will be called. 2011 SAP AG 9

Result Now run your query 'ZTest_Query' and you will notice input values have been restricted to only last year fiscal periods as below: 2011 SAP AG 10

Related Content For more information please go through these URLs: https://service.sap.com/sap/support/notes/1416952 https://service.sap.com/sap/support/notes/1461962 http://help.sap.com/saphelp_nw73/helpdata/en/22/1e9b3c334d8c15e10000000a114084/content.htm 2011 SAP AG 11

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 12