SlideShare ist ein Scribd-Unternehmen logo
1 von 12
Downloaden Sie, um offline zu lesen
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                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                     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                                      SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                                          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 doesn’t 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                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                     3
Reading Enhanced DataSource fields for the Remote Cube




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




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   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                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                     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                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                     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                   SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                       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                SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                    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                 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                     9
Reading Enhanced DataSource fields for the Remote Cube



Output
The Enhanced fields are populated as below:




SAP COMMUNITY NETWORK               SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                   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              SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                  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                   SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2011 SAP AG                                                                                                       12

Weitere ähnliche Inhalte

Andere mochten auch

20100430 introduction to business objects data services
20100430 introduction to business objects data services20100430 introduction to business objects data services
20100430 introduction to business objects data servicesJunhyun Song
 
Six ways to kill great ideas at birth.
Six ways to kill great ideas at birth.Six ways to kill great ideas at birth.
Six ways to kill great ideas at birth.One Marketing Ltd
 
Top tips for international branding
Top tips for international brandingTop tips for international branding
Top tips for international brandingOne Marketing Ltd
 
Creativity, innovation and culture
Creativity, innovation and cultureCreativity, innovation and culture
Creativity, innovation and cultureOne Marketing Ltd
 

Andere mochten auch (10)

20100430 introduction to business objects data services
20100430 introduction to business objects data services20100430 introduction to business objects data services
20100430 introduction to business objects data services
 
Social Marketing Strategy
Social Marketing StrategySocial Marketing Strategy
Social Marketing Strategy
 
Six ways to kill great ideas at birth.
Six ways to kill great ideas at birth.Six ways to kill great ideas at birth.
Six ways to kill great ideas at birth.
 
What is marketing
What is marketingWhat is marketing
What is marketing
 
Social media measurement
Social media measurementSocial media measurement
Social media measurement
 
Marketing to the power of 3
Marketing to the power of 3Marketing to the power of 3
Marketing to the power of 3
 
The marketing mix
The marketing mixThe marketing mix
The marketing mix
 
Top tips for international branding
Top tips for international brandingTop tips for international branding
Top tips for international branding
 
The key model
The key modelThe key model
The key model
 
Creativity, innovation and culture
Creativity, innovation and cultureCreativity, innovation and culture
Creativity, innovation and culture
 

20110110 Reading Enhanced Data Source Fields For The Remote Cube

  • 1. 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 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 1
  • 2. 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 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 2
  • 3. 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 doesn’t 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 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 3
  • 4. Reading Enhanced DataSource fields for the Remote Cube Step 2: Go-to the extractor function module ‘SREP_FIAR_30’. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 4
  • 5. 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 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 5
  • 6. 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 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 6
  • 7. 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 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 7
  • 8. 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 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 8
  • 9. 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 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 9
  • 10. Reading Enhanced DataSource fields for the Remote Cube Output The Enhanced fields are populated as below: SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 10
  • 11. 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 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 11
  • 12. 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 SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 12