R 3 Extraction
R 3 Extraction
R 3 Extraction
Business Content
For example after installing IC’s, how does the data get into it?
Answer: We need to move data from R/3 to the IC specified in business
content.
Business content does not contain datasources .So activate this datasource in
R/3, replicate datasource in BW,create transformations on IC of BI and then
create dtp.
Assume that we dealing with SD data and we want to load Customers Infocube
i.e OSD_C01
Now observe Install and Match Columns checkboxes while installing the business
content.
Install
Install In Background
Match & Copy : If checked then the system takes care that our object(in
system) is not being overwritten by our enhancement.
3
Collection mode = Collect Automatically (Default)
Start Manually
List
So the system takes care that the object is not being overwritten so that our
enhancement is not lost.
i.e the delivery version is entirely copied into the active version.
Deliveries: OSD_C02
Billing: OSD_006
Customers: OSD_C01:
Info Area: Sales and distribution analyses – sap R/3 SD(technical name = OSD)
Datasources: 2LIS_11_VA0HDR
5
5) material management in business content
(INTRVW)
InfoObjects:
Characteristic IO:
Business partner (technical name = 0VENDOR__0BPARTNER). It is a
navigational attrb
Country (technical name = 0VENDOR__0COUNTRY). It is a
navigational attrb.
Material Group (0MATL_GROUP)
Keyfigure IO’s.
Actual goods receipt quantity (technical name =
0VENDOR__0BPARTNER).
e) Update rules:
0PUR_C01 2LIS_02_ITM
0PUR_C01 2LIS_02_S012
b) InfoObjects:
Characteristic IO:
Business partner (technical name = 0VENDOR__0BPARTNER). It is a
navigational attrb
Indicator data to be can celled(technical name = 0REVERSEDOC).
6
Material (0MATERIAL)
Keyfigure IO’s.
Point score 2 for compliance with shipping instructions (technical
name = 0SHP_INS_2).
It allows us to distribute data from BI systems to non sap data marts, analytical
applns & other applns.
We can extract the data from DB to non-sap systems using API’s & third party
tools.
Note: water board , electricity board can be considered as marts which supply
data to GHMC.
8) R/3 Extraction
8-1 R/3 extraction is a process of extracting data from tables or applications like
SD/MM/RM or from third party tools into the BW system.
Each application will have its own setup tables to store day to day business
transaction data of your enterprise.
b)Generic extraction
c)FI extraction
d)COPA extraction
e)HR extraction.
Logical unit of work (LUW) means a transaction must fully perform its database
operations or not at all.
For a database system, this constitutes a UNIT.
V1 Update(synchronous update)
For example when we create a sales order (VA01) and click save the underlying
tables are immediately updated.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/804165a5-
c081-2d10-39b4-af09a680f591?QuickLink=index&overridelayout=true
Extract structures
Extractor Method
Extractor
Here Extract structure means a structure containing all the fields that are
available for Extraction.
Extraction method signifies the type of extraction whether Full or Delta. Extractor
will have the required logic for extraction purpose.
Ans :
Extract structures are basically sap structures that contain fields from R/3 tables.
The extract structures are basically present in R/3 system. Extract structures are
same as data sources.
se11 database table = MC11VA0HDR. This structure will contains list of fields
from underlying tables.
11
8-6) Naming conventions asked in interview
LIS = Logistics
MA (order)
MD (delivery schedule)
ME (contact)
MF (request)
12
Setup Table = Restructuring table (= setup table) <Extraction Structure>SETUP
It is a cluster table.
In the LO extraction process the setup table is filled with application specific data
(lbwe 11. SD sales) after the data source is activated and extract structures
are maintained.
For ex.
Structure = MCVBAK
If we want to load our application specific data then we need to delete the setup
tables.
In the data source we can add/edit fields. If the data source is in LO Cockpit, we
can enhance the data source by adding custom fields using the tcode = RS02.
DS = 2LIS_02_HDR
Tables : MCEKKO
14
Purchasing data item level
DS = 2LIS_02_ITM
DS = 2LIS_11_VAHDR
DS = 2LIS_02_VAITM
Tables : MCVBAP
DS = 2LIS_13_VDOTM
Tables : MCVBRK
15
8-11) LO Extraction process or LOCockpit process.
(VVIMP)
rsa3 data source extract checker(used to test the data source i.e
standard / generic)
OLI7BW
Note: when this step is performed the data sources will be activated
from D version to A version.
11 = SD sales BW
12 = Shipping/Delivery BW
13 = Billing BW.
Datasource = 2LIS_11_VAHDR
2) Short Text
3)selection
4)Hide field – unhide the fields we transferred from communication structure into
extract structure.
e) now activate the extract structure which was deactivated in the step c).
Specify the name of the run , termination date and time(i.e when we want to
complete the process)
NOTE: while filling up the set up table, we must block our transaction so
that it is no affected.
here we just check whether our datasource has the right fields with data.
specify the datasource name ( one for header and other for sales)
Data record / calls = 1000 <we can specify any value > i.e 100 * 10
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00c1f726-
1dc2-2c10-f891-ddfbffdb1a46?
QuickLink=index&overridelayout=true&46059229327085
19
a) Direct delta
b) SQueued delta
c) Unserialized V3
In R/3 system:
In BW system:
5) The data source is replicated from R/3 into BW system. Now transformations
are created on the replicated datasource.
6) Now data transfer processes is created between the IC and the data source.
In R/3 System
7) Now for delta initialization(or delta load) we select any one of the
update method. In BW we set extraction mode= DELTA for the
infopackage.
8) Now the delta records are pushed into the delta queue based on the
update method we select in lbwe.
In this mode each document posted is transferred directly to the delta queue. i.e
extracted data(data extracted through communication structures) is posted
directly to delta queue using an V1 update.
Queued Delta: ( V1 + V3 )
Unlike direct delta, in queued delta , 10,000 records are considered as 1
LUW.
Using V1 update mode, records are transferred from transaction to the extraction
queue.
Now the delta records are transferred from extraction queue to delta
queue using V3 update( job run).
So this is clearly and advantage as compared to direct delta.
New data can be posted during delta initialization so the downtime for
the init request is considerable reduced.
Now the extracted data is written to the update queue with an V3 update
module.
Now it is kept there until a collective job run transfers the data to the delta queue
This mode does not guarantee serialization of records posted to the delta queue
i.e order of records coming into delta queue is not the same in which they were
posted.
So when this mode is used one should not load data into ODS.
When the order of data is not important one can use this option.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/5039632a-
c398-2d10-0aaf-97167a3de753?QuickLink=index&overridelayout=true
Ans: a) Make sure the setup table is deleted by running tcode lbwg.
b) Fill the setup tables.
c) Check the type of update mode being used.
After completing the above still the extractor is showing 0 records the
a) check if the timestamp is initialized properly.
Note: Extract structures and data source both mean the same.
The data source(restructure table) gets activated and is filled with data.
23
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d07aa007-
84ab-2d10-46ba-a5a2679f0d7b?QuickLink=index&overridelayout=true
Note: The delta process (how the data is transferred) for the DataSource is
determined in the following tables
a) ROOSOURCE .
b) RSDS
c) RSOLTPSOURCE
When we activate the data sources from business content (tcode RSA5), the data
sources are activated from D(delivery version) to A(active version).
To check relevant details of the activated datasource, we check the entry in table
ROOSOURCE.
c) Delta = ABR (after activation – complete delta with deletion flag via
delta queue)
24
We will get DELTA = ABR once the data source has been successfully
activated. i.e this datasource is capable of handling delta’s.
If DELTA = ABR,
Ans : YES
If DELTA = AIE/AIM
Ans : Overwrite.
If the sales order is deleted then we will get the below records as delta
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1094e790-
1d93-2d10-17ba-8b559bf0f75b?QuickLink=index&overridelayout=true
26
The interaction of communication structures and extract structures is controlled
by the table TMCEXCFS.
Table TMCEXUPD
A [direct delta ]
B [ Queued Delta ]
C [ Unserialized V3 update ]
After creating a generic ds, it will go and sit in rsa6. Then from there we can
enhance it.
Under structure column, click Maintenance icon, check if the field exists.
function-exit = exit_saplrsap_001
Export parameters
Not available
Source Code:
Tables : MARA
Case : i_datasource
When ‘2LIS_11_VAITM’.
L_tabix = sy-tabix.
If sy-subrc eq 0.
wa_2LIS_VAITM-MTART = MARA-MTART.
Endif.
Endloop.
In column Field known only in customer exit , check the box with
custom field
In BW system
10) replicate ds
b) Full Update.
c) Delta Update.
d) Full Repair.
a) In regular initialization , while loading the setup tables we need to stop the
posting on R/3 side.
30
But in case of early initialization we need not stop the postings on the R/3 side.
i.e using early initialization users can post records while filling data into the
setup tables.
i.e data is written to the delta tables / delta queue using early initialization.
Fieldname = ZADD_ABLE
If this field has value ‘X’ only then the datasource supports early
initialization.
a) 2LIS_11_VAHDR
31
8-21) FULL Update
When u run the infopackage with FULL update mode all the data from source
system will be pulled from ECC to BI.
Timestamp is nothing but telling the system to start delta from here on.
Use this option when u want to load data historical data or don’t want to load
historical data.
Also we cannot run init with data transfer after executing init without data
transfer. The system won’t allow us to do it.
Create another infopackage , choose delta radio button in the update tab.
32
Now execute the infopackage to pull the data which is changed after initialization.
To pull historical data after initialization without data transfer this option is
selected.
Where to see this option:?
This update method is only available when you want to load data into a data
target that contains a noncumulative key figure.
generic extraction
8-29) why do we go for generic extraction?
Ans : we go for generic extraction when standard extractors are not available to
support our functionality.
So when we have custom tables and want to join data from several custom tables
then we go for generic Extraction.
generic datasource
There is no concept of setup table.
8.30) We can create generic datasource on the following data
Master data
Transaction data
Text Data.
8-31) what are the delta specific fields for generic extractor?
(INTRVW)
Timestamp
Calendar day
Numeric Pointer
a. View/Table
b. SAP Query
c. InfoSet
d. Function Module
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/5080c337-
81e5-2c10-97af-8929424f3a4b?QuickLink=index&overridelayout=true
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a080ea68-
fba2-2e10-8cb7-d42d5bfba09c?QuickLink=index&overridelayout=true
36
8.34) How to create a generic extractor(data source)? (FULL LOAD)
(VVIMP)
Assume we are creating a generic ds for customer i.e KNA1 table. We create a
view on KNA1(zbi_kna1) and then use generic ds to extract from view.
Provide descp
c) Click SAVE by specifying the package name and TR. So now the extract
structure is created.
1) Field Name
2) Short Text
3)selection
g) Check if generic ds is available for replication . tcode RSA6 expand SAP R/3
IO <find ur ds>
Steps in BW side:
8-35) when using generic extractor it is updating the table but not displaying the
records?
(INTRVW)
Suppose R/3 table contains a timestamp field based on which we are retrieving
delta specific records.
38
Now if is record updated at 11:30:00 but not saved until 12:35:00. In such a
case if the field ‘safety upper limit” is not set then this record is lost.
So in order to capture such records we set the field “safety upper limit” to large
value in order to accommodate delta records.
For example set the “Safety Upper Limit” field = 40 mins. So the next extraction
will began at 12:40:00.
Tablename = ROOSOURCE
There is a column called EXSTRUCT which will show the extract structure name.
8-39) Where I can see the field ROCANCEL for a particular datasource.?
(IMP)
OR