Chapter - 4 Extractions: Datasource: Defines As Extract Structure and Transfer Structure From
Chapter - 4 Extractions: Datasource: Defines As Extract Structure and Transfer Structure From
GENERIC EXTRACTION
CHAPTER – 4
EXTRACTIONS
It is mainly used for extracting the data form other Source Systems
like R/3 etc.
BW R/3
L ES
E
TS T TS
SAP R/3
SAP BW
1
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
TYPES OF EXTRACTIONS
FI LIS DB VIEW
HR, CO FI-SL INFOSET
SAP CRM CO-PA FUNCTION
LO COCKPIT MODULE
2
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
GENERIC EXTRACTION
1. Why do you go for Generic extraction?
- When the data source is not readily available in the Business content
- Even if the Business content data source is available and it is already
being used up. And if we want to simulate the same kind of extractor,
we can go for generic extraction.
2. The T-code for creating Generic Extraction is RSO2.
3. We can create 3 types of data sources using generic extraction
- Transaction data
- Master data attribute
- Text
4. We can generate generic datasource using the following
- Table
- View
- Function module
- Infoset Query
3
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
-> Select the radio button Master data Attribute, give name and click
on CREATE
4
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
5
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
-> Then go to BW side -> Create all the Infoobjects that we want to
extract to BW system.
-> Go to source system -> select R/3 to BW connection -> select your
application component which we selected while creating the generic
datasource and click on Replicate datasource.
6
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
-> Select your datasource, which we are extracted and select Assign
infosource
7
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
8
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
9
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
10
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
When we are seeing in the monitor it shows error. It shows the error
message like the following.
11
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
When we click on ERROR MESSAGE it shows the following.
First see in the DETAILS tab in monitor then go to PSA and see in
which places the error may occur.
12
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
-> Go and see in the PSA also it shows like this if we select only error
records in PSA.
-> By seeing this error in PSA and error message in DETAILS tab, I
think that the variable YMATKL must start with a letter. So then go to
the Transfer rule for YMATKL and write the ROUTINE.
-> Click on change to infosource -> select transfer rule for YMATKL ->
select ROUTINE ->Click on CREATE -> write the code and click on
SAVE. The code is as follows.
13
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
-> And again SCHEDULE the infopackage. Then see the MONITOR.
14
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
ALE DELTA
Now see loading data using DELTA UPLOAD. For this upload, if we
change any data that changes will be effected in BW while scheduling
the DELTA update. For that also first we can INIT delta. Now see the
procedure of ALE DELTA. First go to MM02 (Change the material
management) and do some changes.
15
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
-> Click on SELECT VIEWS and then select some views like BASIC
DATA1 etc.
16
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
-> Modify the records from the fields, which we extracted already to
BW side like BASIC UNIT OF MEASUREMENT, Material Group etc
17
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
18
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
-> Go to RSO2 and select your data source for master data and click
on CHANGE
19
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
-> Then it asks the TABLE NAME and CHANGE DOC OBJECT.
20
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
21
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
-> Whatever the object shows here that can be taken here as CHANGE
DOC OBJECT.
22
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
23
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
24
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
->Go to BW side and select the DATASOURCE and click on REPLICATE
DATASOURCE again.
-> Go to Infosource and double click on your transfer rules and click
on ACTIVATE transfer rules
25
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
26
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
27
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
-> It shows 1 from 1 record after init delta. That means that one
record is used for simulation means in order to enable delta we can
run the init delta option.
28
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
-> After completion of init delta successfully come back again and see
now DELTA option is enabled. Select the DELTA option and again
SCHEDULE the infopackage.
29
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
30
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
31
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
32
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
GENERIC EXTRATION FOR TRANSATION DATA
33
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
3. Select the fields like master data otherwise click on hide. For
transaction data KEY FIGURES and REFERENCE are compulsory.
So select some key figures along with the reference values. And
then click on SAVE button.
34
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
35
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
36
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
-> Create the infosource as flexible updated
37
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
-> Assign the transfer rules by selecting necessary infoobject related
to the object, which we extracted by clicking F4 for each and every
infoobject. And then click on ACTIVATE
38
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
39
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
40
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
41
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
-> After the creating of infocube, create update rules for that infocube.
42
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
43
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
-> Go to infosource and select your datasource and create
infopackage.
44
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
45
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
46
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
47
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
48
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
49
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
50
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
51
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
-> Go to RSO2 select your datasource and click on CHANGE. Then
select GENERIC DELTA
-> Give the time field in Field Nm and select Time stamp, click on
SAVE.
52
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
-> Click on SAVE and SAVE.
53
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
54
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
55
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
56
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
57
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
-> After SCHEDULING the INIT DELTA, Then select the option DELTA
UPDATE and SCHEDULE again.
58
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
59
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
60
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
GENERIC DATASOURCE USING TEXTS
61
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
GENERIC DATASOURCE
62
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
Overview:
63
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
ANSWERS:
1. Two types
- Application Specific
- Cross Application
2. Extraction is nothing but loading up of the data from one source
system to the other source system.
3. RSO2
4. There are mainly two reasons for going GENERIC EXTRACTION.
- When we don’t have any business content data source
readily available.
- Even if a business content datasource is available, and it is
already being used up and if we want to simulated the
same kind of datasource, we go for generic extraction.
5. Three ways.
- Transaction data
- Master data
- Texts
6. 4 ways
- Table
- View
- Function Module
- Infoset
- Domain (for TEXTS datasources only).
9.
- SELECTION - > What ever the fields we select here those
fields can appear at DATA SELECTION tab of
INFOPACKAGE.
- HIDE -> What ever the fields we select here those fields
can’t be appear in BW side.
- INVERSION -> This option is available for Key figures. It
takes –ve sign to the existing values.
- FIELD ONLY -> This option also available for Key figures. If
there is any Enhancement for a particular field at that time
this is enabled.
64
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
10. 1. FUNCTION MODULE
2. VIEW
In SAP R/3 3.1v there is no business content datasource to extract
FI_AR information so we went about building the generic datasource
using the view built on two tables BSID and BSAD.
BSID – Accounting: Secondary index for customers
BSAD - Accounting: Secondary index for customers (cleared items)
Some common fields in these two tables are COMPANY CODE,
CUSTOMER NUMBE etc).
11. When we are generating MASTER DATA delta we go for ALE delta.
If there is any changes in MASTER DATA those effects can also occurs
in BW side.
12. Go to SE11 – Data Dictionary and see the table TCDOB by
selecting corresponding table.
13. MM01 – creation of Material master data
MM02 – Change
MM03 – Display
65
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
14. When we are generating TRANSACTION DATA for delta we go for
GENERIC delta. If there is any changes in TRANSACTION DATA those
effects can also occurs in BW side.
VA01 – Creation of SALES and DISTRIBUTION
VA02 – change
VA03 – Display
15. There are mainly 3 options available for generic delta. Those are
66
RAJESH BUSINESS INTELLIGENCE
GENERIC EXTRACTION
GENERIC DATASOURCE
67