You are on page 1of 15

Step by Step Procedures to Load

Master Data (Attribute and Text)


from FlatFile in BI 7.0

Applies to:
SAP Business Intelligence (BI 7.0). For more information, visit the EDW homepage

Summary
This article will give detailed step by step procedures to load master data from flatfile. This article explains
loading procedure for both attribute and text using BI 7.0

Author: Indrashis Bose


Company: Accenture Services Pvt Ltd (Mumbai/India)
th
Created on: 30 August, 2011

Author Bio
Indrashis Bose is a SAP BI consultant currently working with Accenture Services Pvt Ltd in
Mumbai, India. He is working in SAP BI for the last one year and he has experiences in
development/support activities. He is presently working in a support project and enriching his
experiences in variouis support related issues.

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 Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

Table of Contents
Introduction: ........................................................................................................................................................ 3
Loading data upto PSA by datasource and infopackage: .................................................................................. 3
Loading Master Data Attribute: ....................................................................................................................... 3
Loading Master Data Text: .............................................................................................................................. 8
Creating Transformations and DTPs: ................................................................................................................. 8
Loading Data to Infoobject and Activating Data: .............................................................................................. 12
Related Contents .............................................................................................................................................. 14
Disclaimer and Liability Notice .......................................................................................................................... 15

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
2011 SAP AG 2
Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

Introduction:
Let us first describe the scenario. Here we have one infoobject Employee (Z_EMPLOY) for which we have to
load the master data. This infoobject contains Employee information. The master data is Employee ID and
the attributes are currency key, Employee Annual Salary, Employee Category, Employee Date of Birth,
Employee Country, Employee Designation and Employee Date of Joining.

And this infoobject contains text where we will load employee names. Now for loading we have two CSV
files. One contains master data attributes and other contains master data texts.
Let us now see the detailed procedure for loading master data.

Loading data upto PSA by datasource and infopackage:


For loading data upto PSA, we first have to create a datasource. As we are have to load two types of data
Master data attribute and Master data text, so we need to create two separate datasources. Let us first load
data for Master data Attribute.

Loading Master Data Attribute:


First go to RSA1. From left side panel go to Datasource. Then from source system selection button, select
FlatFile.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
2011 SAP AG 3
Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

Then right click on any application component and select Create Datasource. You can create your own
application component and create datasource under that.

You will get a screen like this. Put your datasource technical name. Choose source system as FLATFILE and
Data Type as Master Data Attributes. Then click on continue.

Then your datasource will be created. Give datasource description in the General tab.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
2011 SAP AG 4
Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

Then go to Extraction tab. Here you need to specify some fields. Give Delta process = Full upload and Direct
Access = Allowed. Adapter is Load Text-Type File from local workstation. Then give the path to your CSV file
for master data attributes. As in my file there are header row, so I have put header rows to be ignored = 1. If
you do not have header row in your CSV file no need to put it as 1. Then put Data Format = Separated with
Separator and Data Separator = , as the file is CSV file.

Then go to proposal tab and click on Load Example Data. You can check from here that whether data are
being loaded or not.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
2011 SAP AG 5
Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

Then go to Fields Tab. There you can see those fields which are present in your flatfile. Then in the
infoobject section enter the corresponding infoobjects that you have.

Then activate your datasource first and then go to Preview tab. There click on Read Preview Data and check
whether your data are coming properly or not.

Now your datasource is created. You have to now load data actually upto PSA. You can now see your
datasource under your application component. Right click on the datasource and click on Create
Infopackage.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
2011 SAP AG 6
Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

You will get a pop up. There put your infopackage description and click on save.

Then your infopackage will be created. You need to execute this infopackage to load data from flatfile to
PSA. To run that infopackage, go to schedule tab and click on Start.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
2011 SAP AG 7
Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

After completion of loading, go to infopackage monitor and check all data are loaded or not.

Now the data loading upto PSA is complete for master data attribute.

Loading Master Data Text:


Repeat the whole procedure for master data text. Only when creating the datasource, select Data Type as
Master Data Text. Repeat everything and load data upto PSA.

Creating Transformations and DTPs:


Now data are loaded upto PSA for both attribute and text. Our next job is to create transformation and DTP
for loading to infoobject. You can now see two datasources (attribute and text) under your application
component. First right click on the datasource for attribute and click on Create Transformation.

You will get a pop up. Put Target Object Type as InfoObject, subtype as Attribute and give the infoobject
name. Then click on continue.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
2011 SAP AG 8
Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

Your transformation will be created. You need to map the fields between source and target. Then activate
the transformation.

Upon activation, you can see the transformation under your datasource.

Then again right click on the datasource and click on Create Data Transfer Process.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
2011 SAP AG 9
Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

You will get a pop up. Check target and source of the DTP and click on continue.

Your DTP will be created. Change the Extraction Mode = Full and activate the DTP.

Now, we have to create transformation and DTP for loading master data text. For that same procedures
should be followed. Right click on the data source for text and click on Create Transformation. Then give
subtype as Text and click on continue.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
2011 SAP AG 10
Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

Check the mapping and activate the transformation.

Follow the same procedure and create the DTP. Change extraction mode to Full and activate it.

Now all transformations and DTPs are created and ready to load the data. You can see all transformations
and DTPs if you drilldown your datasources.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
2011 SAP AG 11
Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

Loading Data to Infoobject and Activating Data:


Now when everything is ready, you just need to run DTPs to load data (attribute and text). First run the DTP
for loading master data attribute. Open the DTP and go to execute tab and click on Execute button.

Now from DTP monitor screen check whether the load is successful and every data is loaded.

Now the loading is done for master data attribute. Follow the same procedure for master data text and
execute that DTP and check whether it is successful.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
2011 SAP AG 12
Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

Now our Master Data loading is done totally. For activating master data right click on the infoobject and click
on Activate Master Data.

When everything is completed, check the master data in the nfoobject. For that right click on the infoobject
and click on Maintain master data.

Execute it and you can see the master data.

Here you can see the master data attributes and as well as texts. That means our master data loading is
totally successful.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
2011 SAP AG 13
Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

Related Contents
Updating Master Data from a Flat File
Master Data Types in SAP BW
Master Data in SAP BW
For more information, visit the EDW homepage

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
2011 SAP AG 14
Step by Step Procedures to Load Master Data (Attribute and Text) from FlatFile in BI 7.0

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.

SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BA - boc.sap.com | UAC - uac.sap.com
2011 SAP AG 15

You might also like