Tuesday 30 October 2012

How to Implement BADI for Enhancing the Datasource in ECC

Hi all, 

In this post, the document describes about writing datasource enhancements for BI extraction in ECC system using BADI. It contains Customized code which helps you to use for any BI datasource enhancement in ECC with minimal changes.

The SAP enhancement RSAP0001 is used to fill the fields which are added to the extraction structure of the datasource, From Release 6.0, the Business Add-In (BAdi) RSU5_SAPI_BADI is available for datasource enhancements. So you will have several advantages while using BAdi instead of User exits. 

Note: In User exit, only one enhancement will be used for all the datasources,using BAdi, we can use multiple enhancements. Each enhancement will be implemented in a separate method of the class.

Business Scenario 

Data source 0FI_AR_4 is appended with fields ZZSPART– Division, ZZVKORG- Sales organization, ZZVTWEG-Distribution channel. The data for these fields should be filled from VBRK table. 

Step by Step Solution:
 
              Create Implementation with the standard BAdi Definition
                 Implementing the DATA_TRANSFORM method
                 Writing Source code in the DATA_TRANSFORM method
                 Creating a customized method for each datasource enhancement
                 Source code in the method M_0FI_AR_4  

We can write all our enhancements in separate methods in the same class. By this we improve performance and flexibility to work on respective enhancements without disturbing other enhancements.

1 comment:

  1. Thanks for sharing this Information, Got to learn new things from your Blog on SAP SF
    SAP SF

    ReplyDelete