SlideShare a Scribd company logo
1 of 9
Download to read offline
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 
© 2011 SAP AG 1 
Step By Step Procedure to Enhance Standard BI/BW Extractor Using BADI 
Applies to: 
SAP BW 3.x and SAP BI 7.x Source Systems (e.g.: ECC). For more information, visit the EDW homepage 
Summary 
This document gives the Step by step procedure to enhance Standard Business content extractors (both master data and transactional data) using “RSU5_SAPI_BADI”. 
Author: Venkata Nagarjuna Reddy 
Company: Infosys Limited 
Created on: 3 September 2011 
Author Bio 
Venkata Nagarjuna Reddy is a Technology Lead working in Infosys Limited, Nagarjuna Joined Infosys Limited in Sep 2008 and worked on various SAP BI Projects.
Step By Step Procedure to Enhance Standard BI/BW Extractor Using BADI 
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 
© 2011 SAP AG 2 
Table of Contents 
Introduction ......................................................................................................................................................... 3 
Scenario .............................................................................................................................................................. 3 
Procedure ........................................................................................................................................................... 3 
Enhancing Extract Structure ........................................................................................................................... 3 
Filling Data to the Enhanced field ................................................................................................................... 5 
Implementation of created BADI ..................................................................................................................... 7 
Testing through RSA3 ..................................................................................................................................... 7 
Related Content .................................................................................................................................................. 8 
Disclaimer and Liability Notice ............................................................................................................................ 9
Step By Step Procedure to Enhance Standard BI/BW Extractor Using BADI 
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 
© 2011 SAP AG 3 
Introduction 
Generally SAP user exit RSAP001 is used to add any additional fields to the Standard BW Extractors whcih includes both Master Data and Transcation Data extractors. 
But as per SAP’s recommendation BADI’s are more effecient way to enhance the standard extractors than using the exit RSAP001 
Enhacing a Standard DataSource using BADI has the following advantage over using the exit RSAP001: 
 BADI can have mulitple implementations (only if Multiple use flag is set for the Badi) so several developers can work simultaneously on different implementions and different logics. 
RSU5_SAPI_BADI is used to enhance the standard BI DataSources 
Scenario 
In this document the Standard Master Data Source 0PROFIT_CTR_ATTR is appended with the field BUKRS – Company Code. The data for this field is filled from CEPC - BUKRS 
Procedure 
Enhancing Extract Structure 
1. Go to T-Code RSA6 (Post Process DataSource and Hierarchy) and slect the DataSource 0PROFIT_CTR_ATTR
Step By Step Procedure to Enhance Standard BI/BW Extractor Using BADI 
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 
© 2011 SAP AG 4 
2. Go to the Extract Structure “BWEC_MD_PROFIT_CTR” of the DataSource 
3. Now click on “Append Structure” and create append structure and then add the required field BUKRS (if there is an append structure already available, you can use the same append structure or can create a new append structure. Here I have added the field to the already available append structure) to the append structure and activate the Extract Structure “BWEC_MD_PROFIT_CTR”. 
4. Now actiavte the DataSource and make sure the newly added filed is available in the DataSource.
Step By Step Procedure to Enhance Standard BI/BW Extractor Using BADI 
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 
© 2011 SAP AG 5 
Filling Data to the Enhanced field 
1. Go to SE24 and create a class “ZCL_IM_ZBW_0PROFIT_ATTR” and in the Interfaces tab of the class enter “IF_EX_RSU5_SAPI_BADI”. 
2. Now 2 methods “DATA_TRANSFORM” and “HIER_TRANSFORM” will be available in the Method tab. 
3. Write the code in the method “IF_EX_RSU5_SAPI_BADI~DATA_TRANSFORM” as below to fill the data to the Enhanced field and actiavte the class. 
Code: method IF_EX_RSU5_SAPI_BADI~DATA_TRANSFORM. CHECK i_datasource = '0PROFIT_CTR_ATTR'. DATA: lt_data TYPE TABLE OF BWEC_MD_PROFIT_CTR. FIELD-SYMBOLS: <ls_data> TYPE BWEC_MD_PROFIT_CTR. *----------------------------------------------------------------* * Internal table for CEPC_BUKRS *----------------------------------------------------------------* TYPES: BEGIN OF ty_profitctr, PRCTR TYPE BWEC_MD_PROFIT_CTR-PRCTR, BUKRS TYPE BWEC_MD_PROFIT_CTR-BUKRS, END OF ty_profitctr.
Step By Step Procedure to Enhance Standard BI/BW Extractor Using BADI 
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 
© 2011 SAP AG 6 
DATA: lt_profitctr type standard table of ty_profitctr, ls_profitctr type ty_profitctr. lt_data[] = c_t_data[]. *----------------------------------------------------------------* * Read data into internal memory *----------------------------------------------------------------* select prctr bukrs from cepc_bukrs into table lt_profitctr for all entries in lt_data where prctr eq lt_data-prctr. LOOP AT lt_data ASSIGNING <ls_data>. read table lt_profitctr into ls_profitctr with key prctr = <ls_data>-PRCTR . if sy-subrc eq 0. <ls_data>-BUKRS = ls_profitctr-BUKRS. MODIFY lt_data FROM <ls_data>. endif. ENDLOOP. REFRESH c_t_data. c_t_data[] = lt_data[]. endmethod.
Step By Step Procedure to Enhance Standard BI/BW Extractor Using BADI 
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 
© 2011 SAP AG 7 
Implementation of created BADI 
1. Go to BADI Definition “RSU5_SAPI_BADI” using Tcode SE18 and create implementation “ZBW_0PROF_ATTR”. 
2. Go to the Interface tab and enter the created class “ZCL_IM_ZBW_0PROFIT_ATTR” in the Implementing class name field and activate 
Testing through RSA3 
 Go to RSA3 and execute the DataSource “0PROFIT_CTR_ATTR” and check the extracted data to see the data to the enhanced field is filled.
Step By Step Procedure to Enhance Standard BI/BW Extractor Using BADI 
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 
© 2011 SAP AG 8 
Related Content 
Note 691154 - SAPI with BADI: User exits in SAPI with BADI interfaces 
Enhancing DataSources 
For more information, visit the EDW homepage
Step By Step Procedure to Enhance Standard BI/BW Extractor Using BADI 
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com 
© 2011 SAP AG 9 
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.

More Related Content

Recently uploaded

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 

Recently uploaded (20)

08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 

Featured

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 

Featured (20)

PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 

Step by step procedure to enhance standard bi bw extractor using badi

  • 1. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 1 Step By Step Procedure to Enhance Standard BI/BW Extractor Using BADI Applies to: SAP BW 3.x and SAP BI 7.x Source Systems (e.g.: ECC). For more information, visit the EDW homepage Summary This document gives the Step by step procedure to enhance Standard Business content extractors (both master data and transactional data) using “RSU5_SAPI_BADI”. Author: Venkata Nagarjuna Reddy Company: Infosys Limited Created on: 3 September 2011 Author Bio Venkata Nagarjuna Reddy is a Technology Lead working in Infosys Limited, Nagarjuna Joined Infosys Limited in Sep 2008 and worked on various SAP BI Projects.
  • 2. Step By Step Procedure to Enhance Standard BI/BW Extractor Using BADI SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 2 Table of Contents Introduction ......................................................................................................................................................... 3 Scenario .............................................................................................................................................................. 3 Procedure ........................................................................................................................................................... 3 Enhancing Extract Structure ........................................................................................................................... 3 Filling Data to the Enhanced field ................................................................................................................... 5 Implementation of created BADI ..................................................................................................................... 7 Testing through RSA3 ..................................................................................................................................... 7 Related Content .................................................................................................................................................. 8 Disclaimer and Liability Notice ............................................................................................................................ 9
  • 3. Step By Step Procedure to Enhance Standard BI/BW Extractor Using BADI SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 3 Introduction Generally SAP user exit RSAP001 is used to add any additional fields to the Standard BW Extractors whcih includes both Master Data and Transcation Data extractors. But as per SAP’s recommendation BADI’s are more effecient way to enhance the standard extractors than using the exit RSAP001 Enhacing a Standard DataSource using BADI has the following advantage over using the exit RSAP001:  BADI can have mulitple implementations (only if Multiple use flag is set for the Badi) so several developers can work simultaneously on different implementions and different logics. RSU5_SAPI_BADI is used to enhance the standard BI DataSources Scenario In this document the Standard Master Data Source 0PROFIT_CTR_ATTR is appended with the field BUKRS – Company Code. The data for this field is filled from CEPC - BUKRS Procedure Enhancing Extract Structure 1. Go to T-Code RSA6 (Post Process DataSource and Hierarchy) and slect the DataSource 0PROFIT_CTR_ATTR
  • 4. Step By Step Procedure to Enhance Standard BI/BW Extractor Using BADI SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 4 2. Go to the Extract Structure “BWEC_MD_PROFIT_CTR” of the DataSource 3. Now click on “Append Structure” and create append structure and then add the required field BUKRS (if there is an append structure already available, you can use the same append structure or can create a new append structure. Here I have added the field to the already available append structure) to the append structure and activate the Extract Structure “BWEC_MD_PROFIT_CTR”. 4. Now actiavte the DataSource and make sure the newly added filed is available in the DataSource.
  • 5. Step By Step Procedure to Enhance Standard BI/BW Extractor Using BADI SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 5 Filling Data to the Enhanced field 1. Go to SE24 and create a class “ZCL_IM_ZBW_0PROFIT_ATTR” and in the Interfaces tab of the class enter “IF_EX_RSU5_SAPI_BADI”. 2. Now 2 methods “DATA_TRANSFORM” and “HIER_TRANSFORM” will be available in the Method tab. 3. Write the code in the method “IF_EX_RSU5_SAPI_BADI~DATA_TRANSFORM” as below to fill the data to the Enhanced field and actiavte the class. Code: method IF_EX_RSU5_SAPI_BADI~DATA_TRANSFORM. CHECK i_datasource = '0PROFIT_CTR_ATTR'. DATA: lt_data TYPE TABLE OF BWEC_MD_PROFIT_CTR. FIELD-SYMBOLS: <ls_data> TYPE BWEC_MD_PROFIT_CTR. *----------------------------------------------------------------* * Internal table for CEPC_BUKRS *----------------------------------------------------------------* TYPES: BEGIN OF ty_profitctr, PRCTR TYPE BWEC_MD_PROFIT_CTR-PRCTR, BUKRS TYPE BWEC_MD_PROFIT_CTR-BUKRS, END OF ty_profitctr.
  • 6. Step By Step Procedure to Enhance Standard BI/BW Extractor Using BADI SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 6 DATA: lt_profitctr type standard table of ty_profitctr, ls_profitctr type ty_profitctr. lt_data[] = c_t_data[]. *----------------------------------------------------------------* * Read data into internal memory *----------------------------------------------------------------* select prctr bukrs from cepc_bukrs into table lt_profitctr for all entries in lt_data where prctr eq lt_data-prctr. LOOP AT lt_data ASSIGNING <ls_data>. read table lt_profitctr into ls_profitctr with key prctr = <ls_data>-PRCTR . if sy-subrc eq 0. <ls_data>-BUKRS = ls_profitctr-BUKRS. MODIFY lt_data FROM <ls_data>. endif. ENDLOOP. REFRESH c_t_data. c_t_data[] = lt_data[]. endmethod.
  • 7. Step By Step Procedure to Enhance Standard BI/BW Extractor Using BADI SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 7 Implementation of created BADI 1. Go to BADI Definition “RSU5_SAPI_BADI” using Tcode SE18 and create implementation “ZBW_0PROF_ATTR”. 2. Go to the Interface tab and enter the created class “ZCL_IM_ZBW_0PROFIT_ATTR” in the Implementing class name field and activate Testing through RSA3  Go to RSA3 and execute the DataSource “0PROFIT_CTR_ATTR” and check the extracted data to see the data to the enhanced field is filled.
  • 8. Step By Step Procedure to Enhance Standard BI/BW Extractor Using BADI SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 8 Related Content Note 691154 - SAPI with BADI: User exits in SAPI with BADI interfaces Enhancing DataSources For more information, visit the EDW homepage
  • 9. Step By Step Procedure to Enhance Standard BI/BW Extractor Using BADI SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com © 2011 SAP AG 9 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.