You are on page 1of 10

Data Staging Assignments

Exercise 1 : Flat File Extraction :


Pre-requisite : All the Tasks given in Unit - SAP Data Warehousing should be completed
prior to the following.

Task 1 : Create a new Flat File Source System


Launch the Data warehousing Workbench and create a new source system of type :
File system (Manual MetaData, Data using File interface).Keep the system name as FF_<Emp.
No.>.The new source system would now be visible under the Flat file tree.
Activate this source system via the context menu.

Task 2 : Create a Flat File Data Source and load data into PSA
Create an Application Component corresponding to the above created source system FF_<Emp.
No.>.Name it as APC_<Emp. No.>.Create a transactional Data Source DS_FF_<Emp no.> filling
in the relevant tab for extraction. Select the Adapter Load Text Type File from Local
Workstation and the file name as Test_Load_FF.csv which would be available at your local
machines. Select the data format as CSV file and keep the Data separator as ,.use the preview
tab to get the preview of the data available in this .csv file. Activate this DataSource
Go back to the DataSource (Application component tree) and create an Infopackage
IP_FF_<Emp No.> and Start the data load.
Once the load has started, you can Monitor the request (failure or success) to track the Extraction
of data into the PSA.

Task 3 : Create Transformations and DTP to load data from PSA to DSO
Goto the InfoArea IA_<Emp No.> and identify your DSO created as part of the SAP
DataWarehousing assignment DSO<Emp. No.>.Create Transformations for this target.
Enter the corresponding Source of Transformation and map the relevant fields available on the
left side to the corresponding fields of DSO<Emp. No.> using the new Graphical mapping
interface. Activate the Transformations.
Create DTP(Data Transfer Process).Keep the extraction mode as Full update and execute this
DTP. Once the load request is successful, goto the DSO( DSO<Emp. No.> ) and activate the data
so that the same is now available for reporting.

Task 4 : Create Transformations and DTP to load data from DSO to Cube
Goto the InfoArea IA_<Emp No.> and identify your InfoCube IC_<Emp. No.> created as part of
the SAP DataWarehousing assignment. Create Transformations for this target.
The system may also propose transformations between the DSO and InfoCube automatically. In
case not, enter the corresponding Source of Transformation and map the relevant fields using the
new Graphical mapping interface. Activate the Transformations.
Create DTP(Data Transfer Process).Keep the extraction mode as Full update, Activate the DTP
and execute it. Once the load request is successful, goto your InfoCube( IC_<Emp. No.> ) to

check the relevant request. Goto InfoCube management to see the request status and other
relevant tabs.

Exercise 2 : Generic Data Source Extraction - MasterData


Topic : Extract R/3 based on Custom Infoset
Datasource created in R/3
Source : Q10

Create custom datasource for master data and understand the difference between the
selection in RSA3 and SE11
When you have prompted to save save as local object.

1. Create a custom datasource (ZMATERIAL_##) for Master Data Attributes using SAP R3
transaction RSO2.
a. Specify Application component as CO-PA.
b. Enter the descriptions as Material ##
c. In the Extraction from DB View View/Table enter the Material Master Table
Name MARA
d. Save the DataSource
e. In the Extraction field you can identify the new extraction structure created

f. Select Selection for the fields Material (MATNR) and Material type (MTART)
g. Save the datasource
2. Goto SAP Transaction RSA3 and enter the datasource name as ZMATERIAL_##

a. Enter the range for Material in the MATNR field 000000000000000800 to


000000000000000900 total 18 char and click on the Extraction
3. Goto SE16 and enter the table name as MARA and press F7
a. Enter the range for the Material in the MATNR field 800 to 900 and click on the
Number of Entries
4. Validate that both step2 and step3 returns the same no of records. Also check the data
for different Material Number or Material type combination

Exercise 3 : Generic Data Source Extraction


Topic : Extract R/3 based on Custom Infoset
Datasource created in R/3
Source : Q10
Extraction of data from R/3 based on the Generic DataSource
Create transformation and DTP to upload the data to the InfoCube
Pre-requisite : A custom infoset ZTRAINING is created to gather the Purchase Order Header
and Item level details. ( As shown in pic below SAP R3 txn SQ02)

Create a custom datasource (Infosetname_##) for Transaction data using SAP R3


transaction RSO2.
a. Specify Application component as MM.
b. Specify the Infoset name in the Extraction from SAP Query.
c. While saving the datasource, Select Selection for the fields required used for
filtering and select Hide Field for the additional text fields offered by SAP

Replicate the Datasource in BW, by navigating to the corresponding source system


and application component (Please not do not replicate at the source system
level !!! )

Create InfoPackage IP_GD_## to load data from the source system, Filter the data in
the DataSelection in order to reduce the no of records loaded in to BW. Execute the
InfoPackage. , Monitor the request (failure or success) to track the Extraction of data
into the PSA.

Create an InfoCube IC_## in the InfoArea IA_## with the InfoObjects as listed in the
Infoset/Datasource.

Create Transformation and Data Transformation Process to load data into the
Infocube.

Execute the Data Transformation Process and Monitor the data extraction process.

View the cube content and verify the data with the datasource.

Exercise 4 : Business Content Data Source Extraction


Topic : Extract R/3 based on Business Content Datasource created in R/3
Source : Q10

Extraction of data from R/3 based on the Business Content Datasource


Create transformation and DTP to upload the data to the InfoCube

Pre-requisite :
a. You can select data based on the Business Content Datasource for Purchasing
(2LIS_02_HDR, 2LIS_02_ITM ) or Sales & Distribution ( 2LIS_11_VAHDR,
2LIS_11_VAITM).
b. Goto R3 transaction RSA3 and make sure there is data available for the above
datasources.
1. In the BW System, locate the business content datasources. Create InfoPackage
IP_BC_## to load data from the source system, Filter the data in the DataSelection in
order to reduce the no of records loaded in to BW. Execute the InfoPackage. ,
Monitor the request (failure or success) to track the Extraction of data into the PSA.
2. Create an InfoCube IC_## in the InfoArea IA_## with only selected InfoObjects both
( characteristics and keyfigures )
3. Create Transformation and Data Transformation Process to load data into the
Infocube.
4. Execute the Data Transformation Process and Monitor the data extraction process.
5. View the cube content and verify the data with the datasource.

Exercise 5 : Data Source Enhancement for any Standard


Data Source.
Enhance the DataSource for General Ledger 0FI_GL_4 by adding the field Document
Header Text BKTXT.
1. Go to T Code RSA6 in SAP R/3 Source system. Find the dataSource 0FI_GL_4.
Select it and display the dataSource. Double click on Extract Structure DTFIGL_4 and click on
Append Structure.
2. Add the field Document Header Text ZZBKTXT in the Append Structure with Component Type:
BKTXT. Activate the structure.
3. Hide field will most likely be selected, to make this field available to the BW, this field needs to
be unchecked. Deselect the indicator and press the save button.
5. Populate the Extract Structure with Data
For Transaction data EXIT_SAPLRSAP_001
(Master data attributes EXIT_SAPLRSAP_002 ,Master data texts EXIT_SAPLRSAP_003, Master
data hierarchies EXIT_SAPLRSAP_004)
DataSource - 0FI_GL_4
Extract Structure - DTFIGL_4
Name of the field that was added to the structure ZZBKTXT
Name of the BW InfoSource 0FI_GL_4
Name of the R/3 table and field that contains the data you need - BKPF-BKTXT.
ABAP Code would look similar to
DATA : l_s_dtfigl_4 LIKE dtfigl_4.
CASE i_datasource.
When 0FI_GL_4.
LOOP AT c_g_data INTO l_s_dtfigl_4.
l_tabix = sy-tabix.
SELECT SINGLE bktxt FROM bkpf INTO l_s_dtfigl_4-zzbktxt
WHERE bukrs = l_s_dtfigl_4-bukrs
AND
belnr = l_s_dtfigl_4-belnr
AND
gjahr = l_s_dtfigl_4-fiscper+0(4).
MODIFY c_t_data FROM l_s_dtfigl_4 INDEX l_tabix.
ENDLOOP.
WHEN OTHERS.
EXIT.
ENDCASE.
6. Check the DataSource in Extract Checker- RSA3
7. Replicate DataSource in BW System.
8. Create and assign InfoObject.ZBKTXT
9. Map this Object in Transformation.
10. Load the source data from R/3 System to BW system via InfoPackage.

Exercise 6 : Generic Data Source on Table/View with


Generic Delta
Topic : Extract R/3 based on Custom Infoset
Datasource created in R/3
Source : Q10
Create a table in R3 and test the generic delta based on the date or number fields
For reference view the settings of table ZTRAINING_1
Create table ZTRAINING_## using R3 transaction SE16
Enter the description as Training for BI ##
Enter the Delivery Class as A Application table (master and transaction data) and
DataBrowser/Table View Maint. as Display/Maintenance Allowed
Enter the fields MANDT, AEDAT and EBELN as displayed in the below image

You can check and save the contents


Click on the Technical Settings Enter the value for Data Class as APPL1 and Size Category as
0. ( Refer the image below)

Activate the table, when prompted save as local object.


Goto Technical Settings.Enter the appropriate data
Activate the table
Then go to Utilities-->Table Maintenance Generator
Enter the Authorization Group (Varies from project to project...when no authorization required give
&NC& )
Function Group as "Table Name"
Maintenance Type as "Two Step"
Select Find Scr.Number(s)
Select radio Button Propose screen number(s)

16.Then click on the white color create button on menu bar(Create)


** Refer the below image

17.Create custom datasource for this table goto R3 transaction RSO2, In the transaction data
enter the name as ZTRAINING_##
18. Enter the Application Component as CO-PA and Enter the descriptions as DeltaTrng ##
19. In the View/Table field enter the Table name ZTRAINING_## and save
20. Click on the Generic Delta Button
In the Delta-Specific Field Select the radio button Time Stamp and the Field Num AEDAT and
Save.
In BW, replicate your DataSource

23. Activate your DataSource.


24. Create/select your InfoArea (Task 1) and create your DS0 (Task 5)
25. Select your Application Component, create your InfoSource ZTRAINING_##
26. Create Transformation between your InfoSource and DSO

27. Create InfoPackage on your DataSource.


28. Schedule your InfoPackage.
29. Create DTP with init between DataSource and DSO.
30. Schedule init DTP
31. Create DTP with Delta between DataSource and DSO.
32. Schedule Delta DTP
33. Delta queue is now available in RSA7.

You might also like