Sie sind auf Seite 1von 11

Enhance Report-Report Interface Create Custom Report Type as Receiver

Applies to:
Development and support based on SAP BI 7.0. For more information, visit the EDW homepage.

Summary
The article shows the example of Enhancement in Report-Report Interface and Step by step process for Create Custom Report Type as Receiver. Author: Lakdawala Ashish

Company: Capgemini Created on: 09 August 2011

Author Bio
Ashish is a SAP BI consultant having more than 4 years of experience in SAP BI and currently working in CAPGEMINI. He has extensively worked in SAP BI Development & Production Support projects .His core skill areas are design and development using SAP BI 7.0, SAP BW 3.5, ABAP, VC and BPS/IP.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 1

Enhance Report-Report Interface - Create Custom Report Type as Receiver

Table of Contents
Key Concept ....................................................................................................................................................... 3 Business Scenarios ............................................................................................................................................ 3 Solution ............................................................................................................................................................... 4 Step by Step Method Data Model ....................................................................................................................... 4 Step 1: Create an ABAP Class with the Interface IF_RS_BBS_BADI_HANDLER ........................................ 4 Step 2: Creating an Implementation to the BAdi RS_BBS_BADI ................................................................... 7 Step 3: - Creating Sender/Receiver Assignments .......................................................................................... 8 Output: ................................................................................................................................................................ 9 Related Content ................................................................................................................................................ 10 Disclaimer and Liability Notice .......................................................................................................................... 11

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 2

Enhance Report-Report Interface - Create Custom Report Type as Receiver

Key Concept
In todays challenging business environment, sometimes business need to pass complex set of parameters from one report to another report/Web page to understand each and every aspects of report. When standard methods provided by SAP do not fulfill this complicated requirement then developer have to look for custom report types. Following document shows how to enhance report to report interface by creating custom report type as Receiver.

Business Scenarios
A query is created on the top of multiproviders to see the quantity of material produced by plant. Each plant is linked with their location by means of attribute. Ex. 1000 Hazira, 2000 Mumbai, 3000 Pune. Now business wants to see the report with plant and quantity with the jump to facility which shows the location detail of the selected plant in Wiki. For Ex. Here business wants to see the location of plant 1000 on Wiki.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 3

Enhance Report-Report Interface - Create Custom Report Type as Receiver

Solution
To achieve this requirement you need to enhance the report to report interface by creating custom report type as a receiver. So you can pass the desire location information to wiki page. Custom report type in report to report interface

Step by Step Method Data Model


Note: Kindly refer the comments in the code for more detail.

Step 1: Create an ABAP Class with the Interface IF_RS_BBS_BADI_HANDLER Go to SE24, Create a class. Ex ZA_IF_RS_BBS_BADI_HANDLER

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 4

Enhance Report-Report Interface - Create Custom Report Type as Receiver

Specify the interface IF_RS_BBS_BADI_HANDLER

Select the methods tab page. Create method CLASS_CONSTRUCTOR.

Since the method doesnt exist in the interface, you must create it manually.

Change the method IF_RS_BBS_BADI_HANDLER~GET_TARGETS in order to obtain an input help under report in the maintenance transaction for the sender-receiver assignment.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 5

Enhance Report-Report Interface - Create Custom Report Type as Receiver

Change the method IF_RS_BBS_BADI_HANDLER~CALL_URL in order to create the URL and append the required parameter.

Note: As the purpose of the document is How to create Custom report type, I have used direct coding rather than any complex coding like master data reading or function module reading

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 6

Enhance Report-Report Interface - Create Custom Report Type as Receiver

Step 2: Creating an Implementation to the BAdi RS_BBS_BADI Go to SE19, Choose to option classic BAdi. Enter RS_BBS_BADI as the name of BAdi.

Create Implementation. Enter name of the implementation (In the Example: - Z_RS_BBS_BADI_DET)

Choose the interface tab page. Enter a name for the implementing class and copy the proposal from the system (in the example: za_if_rs_bbs_badi_handler)

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 7

Enhance Report-Report Interface - Create Custom Report Type as Receiver

Step 3: - Creating Sender/Receiver Assignments Go to RSBBS - Report to report interface. Choose your report as a sender and then create assignment. In Maintain sender/receiver assignment, under Report type chooses one of the objects you implemented yourself from the input help (in the example: Find in Wiki).

Then Click on Transfer and press the SAVE button.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 8

Enhance Report-Report Interface - Create Custom Report Type as Receiver

Output:
Execute report in BEx Analyzer/RSRT/Portal.

Right click on any of the plant for which you want to see the location detail in wiki. In Context menu, under Go to option you can see your custom define option Search at Wiki.

Click on Search at wiki. It will open the Wiki page of location for the plant 2000 - Mumbai.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 9

Enhance Report-Report Interface - Create Custom Report Type as Receiver

Related Content
Report-Report Interface Introduction to the Class Builder For more information, visit the EDW homepage

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 10

Enhance Report-Report Interface - Create Custom Report Type as Receiver

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.

SAP COMMUNITY NETWORK 2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com 11

Das könnte Ihnen auch gefallen