Skip to Content

Introduction

Generally SAP user exit RSAP001 is used to add any additional fields to the Standard BW Extractors which includes both Master Data and Transaction Data extractors.

But as per SAP’s recommendation BADI’s are more efficient way to enhance the standard extractors than using the exit RSAP001

Enhancing a Standard DataSource using BADI has the following advantage over using the exit RSAP001:

    1. BADI can have multiple implementations (only if Multiple use flag is set for the Badi) so several developers can work simultaneously on different implementations and different logics.

RSU5_SAPI_BADI is used to enhance the standard BI DataSources

Below are the steps to be followed:

  •   Enhance the Extract Structure
  •           Create the Append Structure

          Append_struc_create.jpg

  •     Once Appended, activate the structure,

           Append_struc_save.jpg

                The fields would be available in the extract structure now.

  • Activate the DS. Make sure these fields are available in the DS now

Extractor.jpg

  • Filling the data to enhanced fields
  • In SE24, create the class

CLS_create.jpg

CLS_create2.jpg

  • In the interfaces tab, use the following BADI : IF_EX_RSU5_SAPI_BADI


CLS_Interface.jpg

  • In the Methods tab, double click on the Data Transformation

CLS_method.jpg

  • The ABAP editor will open up & here write the code as per your requirement. Sample code snippet as below


CODE.jpg

  • Goto SE 18 & for the BADI definition RSU5_SAPI_BADI create the implementation of the BADI

BADI1.jpg

  •            In the Interface tab, ensure to put the name of the class that you had created earlier.

BADI2.jpg

  • Testing through RSA3
  • Go to t/x RSA3 & execute the datasource 0ASSET_ATTR & check for the data on the enhanced fields.

/wp-content/uploads/2015/03/extractor_checker_671054.jpg

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply