Showing posts with label BADI Implementation. Show all posts
Showing posts with label BADI Implementation. Show all posts

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.

Saturday, 27 October 2012

Creating Users in Active Directory from Employee Data Stored in SAP HR

Hi All,

In this post, the document describes how to create and modify users in an LDAP directory server, such as Microsoft Active Directory using an SAP interface.

Step 1: Data extraction in SAP HR 
Step 2: Configuration of the LDAP interface
Step 3: BADI Implementation
View the document