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

A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersNicole Novielli
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPathCommunity
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfNeo4j
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Farhan Tariq
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxLoriGlavin3
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfpanagenda
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditSkynet Technologies
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Mark Goldstein
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 

Recently uploaded (20)

A Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software DevelopersA Journey Into the Emotions of Software Developers
A Journey Into the Emotions of Software Developers
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
UiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to HeroUiPath Community: Communication Mining from Zero to Hero
UiPath Community: Communication Mining from Zero to Hero
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Connecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdfConnecting the Dots for Information Discovery.pdf
Connecting the Dots for Information Discovery.pdf
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...Genislab builds better products and faster go-to-market with Lean project man...
Genislab builds better products and faster go-to-market with Lean project man...
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptxDigital Identity is Under Attack: FIDO Paris Seminar.pptx
Digital Identity is Under Attack: FIDO Paris Seminar.pptx
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdfSo einfach geht modernes Roaming fuer Notes und Nomad.pdf
So einfach geht modernes Roaming fuer Notes und Nomad.pdf
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance Audit
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
Arizona Broadband Policy Past, Present, and Future Presentation 3/25/24
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 

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.