Professional Documents
Culture Documents
SAP BW - Enhance SAP CRM Business Activity Transaction and Extract Data To BW
SAP BW - Enhance SAP CRM Business Activity Transaction and Extract Data To BW
Applies to:
SAP BW 3.5 / SAP 7.0 Consultants have knowledge in SAP CRM 5.0 / SAP CRM 7.0. For more information,
visit the EDW Homepage .
Summary
Enhance the SAP CRM Business Activity Transaction using transaction EEWB and extract the enhanced
data (Custom Data) to BW using Generic Extraction (Function Module Extraction).
Author:
Suraj Tigga
Author Bio
Suraj Tigga is a Senior SAP BI / ABAP consultant at Capgemini Consulting, India. Suraj joined
Capgemini Consulting in 2008 and has worked on multiple SAP BI implementation and support
projects.
SAP BW - Enhance SAP CRM Business Activity Transaction and Extract Data to BW
Table of Contents
Scenario .............................................................................................................................................................. 3
Step-by-Step Procedure.................................................................................................................................. 3
Enhancement (EEWB) - Business Activity...................................................................................................... 3
Easy Enhancement Workbench (EEWB) ..................................................................................................................... 7
SAP BW - Enhance SAP CRM Business Activity Transaction and Extract Data to BW
Scenario
In this document, we would be focusing on the special features involved in enhancement of Business Activity
using Easy Enhancement Workbench (EEBW) and extracting the enhanced fields data to SAP BI using
Function Module Generic Extraction. In the following, we will pay particular attention to sub areas that make
up the special features of SAP CRM Business Activity, enhancement of Business Activity and Extraction.
The document does not cover general customizing, for example, the definition of an Infocube or the Creation
of a Datasource for storing SAP CRM data in BI.A basic knowledge of CRM is required.
Step-by-Step Procedure
Above mentioned scenario would consist of primarily two important steps:
a) Enhancement (EEWB) Business Activity: Creation of Project and required Extension for EEWB
for Bus Object (BUSINESS_ACTIVITY) and Extension Type (ACTIVITY_H).
b) Generic Extraction (Business Activity) Function Module: Creation of Generic Datasource and its
concerned Function Module to extract data from the required Database tables relevant to Business
Activity.
Enhancement (EEWB) - Business Activity
Easy Enhancement Workbench is a development tool with which SAP applications can be extended in a
simple manner. This tool provides a wizard, allowing the definition of an extension. The Customizing Include
is generated according to that definition.
Using Easy Enhancement Workbench has the following advantages:
-
No actions in the Data Dictionary are necessary, a wizard guides you through the extension process
Tool contains information on all existing Customizing Includes Currently Easy Enhancement
Workbench only generates the Customizing Include and its data elements and domains. All UI
specific properties are either generated automatically at the application runtime or defined manually.
Object
Customizing Include
Object
Customizing Include
Business Partner
CI_EEW_BUT000
Business Transaction
Pricing
CI_EEW_PRICING
Parameter Set
Business
Transaction
CI_EEW_ORDERADM_H
CI_EEW_PRICING_I
Business
Transaction Item
CI_EEW_ORDERADM_I
Business Transaction
Item -Schedule Line
CI_EEW_SCHEDLIN
Activity Header
CI_EEW_ACTIVITY_H
Activity Item
CI_EEW_ACTIVITY_I
CI_EEW_SERVICE_I
CI_EEW_CUSTOMER_H
Extension
Opportunity
CI_EEW_OPPORT_H
CI_EEW_CUSTOMER_I
SAP BW - Enhance SAP CRM Business Activity Transaction and Extract Data to BW
Extension
Lead
CI_EEW_LEAD_H
SDB - Symptom
CI_EEW_ISMP
CI_EEW_PRODUCT_I
SDB - Solution
CI_EEW_ISOL
CI_EEW_FINPROD_I
CI_EEW_MKTPL_BDINC
CI_EEW_SALES
Marketing element:
Execution
CI_EEW_MKTPL_CHINC
CI_EEW_SHIPPING
CI_EEW_IBIB
CI_EEW_BILLING
Installed Base
Component -
CI_EEW_IBSP
Addition/Specialization
CI_EEW_ORGMAN
CRM Case
CI_EEW_CRMT_CMG
System Landscape must be set up in order to be able to use system-wide generation. The system landscape
must be set up in order to be able to use system-wide generation.
Cross-application components General application functions Easy Enhancement Workbench
Maintain system landscape
SAP BW - Enhance SAP CRM Business Activity Transaction and Extract Data to BW
Subobjects for the business transaction can be enhanced, they offer a customer include structure for new
fields:
EEWB Bus Object
Extension Type
Extension Type
ACCOUNT_PLAN
COMPLAINTS
BILLING(Extend Billing
Set)
ADS
COMPLAINTS
CUSTOMER_H(Extend
Transactional Extn)
BUPA
ADD_NEW_ATTRIBUTES_TAB
LE (Add New Attributes)
COMPLAINTS
CUSTOMER_I(Extend
Item Additional Extn)
BUPA
COMPLAINTS
ORGMAN(Extend
Organizational Unit Set)
BUPR
ADD_NEW_ATTRIBUTES_TAB
LE (Add New Attributes)
COMPLAINTS
PRICING(Extend Pricing
parameter Set)
BUSINESS_ACTIVITY
ACTIVITY_H(Extend Activity)
COMPLAINTS
PRICING_I(Extend Item
Price)
BUSINESS_ACTIVITY
ORGMAN(Extend Organizational
Unit Set)
COMPLAINTS
PRODUCT_I(Extend Item
Product)
BUSINESS_TRANSACTION
ADD_NEW_FIELDS(Add New
Fields)
COMPLAINTS
SALES(Extend Sales
Set)
BUSINESS_TRANSACTION
ADD_NEW_ITEM_COMPONEN
T(New Business Transaction
Comps)
COMPLAINTS
SCHEDLIN(Extend Item
Schedule Line)
BUSINESS_TRANSACTION
CUSTOMER_H(Extend
Transaction Additional
Extension)
COMPLAINTS
SHIPPING(Extend
Shipping Set)
BUSINESS_TRANSACTION
CUSTOMER_I(Extend Item
Additional Extension)
INDIVIDUAL_OBJECT
ADS(Created Analytical
Data Storage)
BUSINESS_TRANSACTION
ORDERADM_H(Extend
Transaction Header)
INSTALLED_BASE
ADDITION(Extend
Supplement)
BUSINESS_TRANSACTION
ORDERADM_I(Extend
Transaction Item)
INSTALLED_BASE
INSTALLED_BASE(Exte
nd Installed Base)
CATEGORY_ENHANCEMENT
ADD_ATTRIBUTES(Add
Category Attributes)
LEAD
CUSTOMER_H(Extend
Transactional Add.
Extension)
CATEGORY_ENHANCEMENT
ADD_OBJECT_LINKS(Category:
Add Object Rel.)
LEAD
LEAD_H(Extend Lead)
SAP BW - Enhance SAP CRM Business Activity Transaction and Extract Data to BW
OPPORTUNITY
CUSTOMER_H(Extend
Transaction Add Extn)
LEAD
ORGMAN(Extend
Organizational Unit Set)
OPPORTUNITY
LEAD
PRODUCT_I(Extend Item
Product)
OPPORTUNITY
OPPORT_H(Extend Opportunity
LEAD
SCHEDLIN(Extend Item
Schedule Line)
OPPORTUNITY
ORGMAN(Extend Organizational
Unit Set
SALES_TRANSACTIO
N
BILLING(Extend Billing
Set)
OPPORTUNITY
PRICING(Extend Pricing
Parameter Set)
SALES_TRANSACTIO
N
CUSTOMER_H(Extend
Transac. Add. Extn)
OPPORTUNITY
SALES_TRANSACTIO
N
CUSTOMER_I(Extend
Item Add. Extn)
OPPORTUNITY
PRODUCT_I(Extend Item
Product)
SALES_TRANSACTIO
N
ORGMAN(Extend
Organizational unit Set)
OPPORTUNITY
SCHEDLIN(Extend Item
Schedule Line)
SALES_TRANSACTIO
N
PRICING(Extend Pricing
parameter set)
SAP BW - Enhance SAP CRM Business Activity Transaction and Extract Data to BW
Step2: Right-Click and create Extension ZIINTFIELDS1 for the above mentioned fields using the Wizard:
Define Title:
SAP BW - Enhance SAP CRM Business Activity Transaction and Extract Data to BW
Define Fields:
SAP BW - Enhance SAP CRM Business Activity Transaction and Extract Data to BW
Assign Fields
Complete the execution after all the above steps are done successfully
SAP BW - Enhance SAP CRM Business Activity Transaction and Extract Data to BW
Step3: Check the Business Activity transaction for the added custom fields:
SAP BW - Enhance SAP CRM Business Activity Transaction and Extract Data to BW
GUID = GUID
CRMD_ACTIVITY_H
CRMD_CUSTOMER_H
(Activity)
SAP BW - Enhance SAP CRM Business Activity Transaction and Extract Data to BW
Pseudo-Code:
-
Fetch all the newly created CRM Business Activity transactions from table CRMD_ORDERADM_H.
For all the entries fetched above, fetch the Contact Method3 and Product Group from table
CRMD_ACTIVITY_H header table.
For the entries fetched from table CRMD_ORDERADM_H, get the Product Group3 from table
CRMD_CUSTOMER_H.
Based on the above values brought in above three steps, combine the data and populate the
extractor output records.
SAP BW - Enhance SAP CRM Business Activity Transaction and Extract Data to BW
Generic Datasource
Step1: Go to transaction RSO2, Create Generic Datasource ZCRM_ACTIVITY_H
0SAL_DS01
(ODS for Activities)
0CRM_SALES_ACT_1
ZCRM_ACTIVITY_H
(Activities Header)
(Generic Extractor)
SAP BW - Enhance SAP CRM Business Activity Transaction and Extract Data to BW
SAP BW - Enhance SAP CRM Business Activity Transaction and Extract Data to BW
RANGES: l_r_objid
l_r_ptype
FOR zcrm_activity_h-object_id
,
FOR zcrm_activity_h-process_type.
************************************************************************
* Data transfer: First Call
OPEN CURSOR + FETCH
*
Following Calls FETCH only
************************************************************************
* First data package -> OPEN CURSOR
IF s_counter_datapakid = 0.
* Fill range tables BW will only pass down simple selection criteria
* of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
LOOP AT s_s_if-t_select INTO l_s_select WHERE fieldnm = 'OBJECT_ID'.
MOVE-CORRESPONDING l_s_select TO l_r_objid.
APPEND l_r_objid.
ENDLOOP.
SAP BW - Enhance SAP CRM Business Activity Transaction and Extract Data to BW
*
*
*
SAP BW - Enhance SAP CRM Business Activity Transaction and Extract Data to BW
IF sy-subrc EQ 0.
wa_e_t_data-zzprogrp4 = wa_crmd_customer_h-zzprogrp4.
ENDIF.
MODIFY e_t_data FROM wa_e_t_data.
CLEAR wa_e_t_data.
ENDLOOP.
ENDIF .
IF sy-subrc <> 0.
CLOSE CURSOR s_cursor.
RAISE no_more_data.
ENDIF.
s_counter_datapakid = s_counter_datapakid + 1.
ENDIF.
ENDFUNCTION.
SAP BW - Enhance SAP CRM Business Activity Transaction and Extract Data to BW
Related Content
For more information visit EDW Homepage.
Help.sap.com
SAP BW - Enhance SAP CRM Business Activity Transaction and Extract Data to BW