You are on page 1of 12

Reading Enhanced DataSource

fields for the Remote Cube

Applies to:
SAP BI 7.0. For more information, visit the EDW homepage.

Summary
SAP Remote Cube does not display the enhanced fields in the data source. The system does not run
Customer exits and application extensions (customer exit, BTE, BAdI) for direct access to the source system.
For reference click here. To overcome this shortcoming / limitation, the standard extractor should be
enhanced at the Enhancement Point.
Authors:

Sujay V Koparde, Rajesh Michael

Company: CapGemini India Pvt Ltd, Bangalore.


Created on: 10 January 2011

Author Bio
The authors work for CapGemini India. Expertises include ABAP and SAP BI.

SAP COMMUNITY NETWORK


2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


1

Reading Enhanced DataSource fields for the Remote Cube

Table of Content
Introduction ......................................................................................................................................................... 3
Scenario .............................................................................................................................................................. 3
Remote Cube ...................................................................................................................................................... 3
Definition ......................................................................................................................................................... 3
Approach to Scenario...................................................................................................................................... 3
How to Implement ........................................................................................................................................... 3
Enhancement Option .......................................................................................................................................... 3
Definition ......................................................................................................................................................... 3
Approach to Scenario...................................................................................................................................... 3
How to Implement ........................................................................................................................................... 3
Sample Code .................................................................................................................................................. 9
Output............................................................................................................................................................ 10
Related Content ................................................................................................................................................ 11
Disclaimer and Liability Notice .......................................................................................................................... 12

SAP COMMUNITY NETWORK


2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


2

Reading Enhanced DataSource fields for the Remote Cube

Introduction
SAP BI Remote Cube does not display the data for the fields which are enhanced in the Datasource. For the
enhanced fields to be populated, Customer Exit has to be written using TCode CMOD. However incase of
Remote Cube, Customer Exit is not called and hence the enhanced fields are not populated.

Scenario
We have installed Reporting Financials (EhP3) from the Business Content in the module Financial
Management & Controlling. According to the design there is a Multiprovider which has a Standard Cube and
Remote Cube (On the same Datasource). The remote cube is used for Data Reconciliation. The Datasource
has to be enhanced from different Tables as per the requirements. In case of Standard Cube, enhanced
fields are populated using Customer Exits. However this does not work for Remote Cubes.
In this document we will take an Example on the Datasource 0FI_AR_30 which has been enhanced with the
fields: ZZKUNN1 (Sold-to-party), ZMPFLAG (Multi Payer Flag), ZSUPCARR, ZBKTXT, 0LOGSYS,
ZDUN_PROC.

Remote Cube
Definition
A Remote InfoCube is a virtual InfoCube that does not physically store its own data in BW.
Approach to Scenario
The approach to scenario is by means of Implicit Enhancement Option explained next.
How to Implement
The scenario is implemented by means of Implicit Enhancement Option explained next.

Enhancement Option
The Enhancement Framework enables the customers to add functionality to standard SAP software without
actually changing the original repository objects, and to organize these enhancements as effectively as
possible. One of the ways of enhancement is by means of enhancement points.
Definition
Enhancement Options/Points are lines of code which are executed in addition to the existing SAP standard
code. There are two types of Enhancement Points: Explicit enhancement points which are provided by SAP
and the implicit enhancement points which are inherently available at the beginning or end of function
modules and subroutines.
Approach to Scenario
Since the SAP Remote Cube doesnt call custom function modules (which are part of the enhancement
RSAP0001), we can overcome this issue by implementing the implicit enhancement options in the extractor
function module. Here we will take an example of Customer Line Items Datasource 0FI_AR_30 to explain
the process involved. The corresponding extractor function module in which we would be implementing the
implicit enhancement option is SREP_FIAR_30.
How to Implement
Step 1: Goto TCode RSA2 and enter the Datasource Name

SAP COMMUNITY NETWORK


2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


3

Reading Enhanced DataSource fields for the Remote Cube

Step 2: Go-to the extractor function module SREP_FIAR_30.

SAP COMMUNITY NETWORK


2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


4

Reading Enhanced DataSource fields for the Remote Cube

Step 3: Choose the Enhance Source Code option

Step 4: Identify the positions where implicit enhancement options are present.

SAP COMMUNITY NETWORK


2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


5

Reading Enhanced DataSource fields for the Remote Cube

Step 5: This would highlight the places in the code where the implicit enhancement options are present.

Step 6: Right click on the line displayed at the end of the function module and select Create Implementation.

SAP COMMUNITY NETWORK


2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


6

Reading Enhanced DataSource fields for the Remote Cube

Step 7: Select Code in the pop-up that comes up.

Step 8: Give a name and short text to the enhancement implementation being created.

Step 9: On saving the enhancement implementation in the appropriate package we get new lines as below
with an empty line to insert the code. The code logic to fill the enhanced fields can be written here either by
means of a separate include program or directly inserting the code between ENHANCEMENT 1
ZIMP_FIAR_30 and ENDENHANCEMENT statements.

SAP COMMUNITY NETWORK


2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


7

Reading Enhanced DataSource fields for the Remote Cube

Step 10: Once the code logic is written we have to activate the enhancement implementation.

SAP COMMUNITY NETWORK


2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


8

Reading Enhanced DataSource fields for the Remote Cube

Sample Code
The code logic to fill the enhanced fields depends on the fields appended. This would be the same code that
would have been written in any custom function module (part of the enhancement RSAP0001) for other
SAP Cubes.

SAP COMMUNITY NETWORK


2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


9

Reading Enhanced DataSource fields for the Remote Cube

Output
The Enhanced fields are populated as below:

SAP COMMUNITY NETWORK


2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


10

Reading Enhanced DataSource fields for the Remote Cube

Related Content
1) For more information on BI, visit the Business Intelligence homepage.
2) For more information on Enhancement Points, visit Enhancement Framework page.
3) For more information related to virtual provider, visit Virtual Provider Page.

SAP COMMUNITY NETWORK


2011 SAP AG

SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com


11

Reading Enhanced DataSource fields for the Remote Cube

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 | UAC - uac.sap.com


12

You might also like