Step-by-Step tutorial to upload Master Data from Flat File (SourceSystem) to InfoObjects (Master data table

By Lakshmi MP, Perot Systems

Basic Steps of Data Flow (ETL process): 1. Determine the Source System (Flat File/SAP R3/WebServices etc) 2. Establish an interface w.r.t the Source system used 3. Create a Data Source – which has a structure similar to the Source structure. Consider two factors : Name of file and Structure same as Source. 4. Create Info Provider to transfer data from Data Source to PSA (Persistent staging Area) 5. Create a Target (Info Provider : InfoObjects/Info Cubes/DSO etc) 6. Create a Transformation rule to map Source & Target fields. 7. Create DTP (Data Transfer Process) to transport data stored within PSA , to the final Data Target. Transaction Code – RSA1 : Data Warehouse Workbench

Source/Input: Create a Flat File of type CSV, with the following structure: Custome r 260 261 262 Language EN DE DE Land US DE DE City SEATTLE HAMBURG WALDORF Name JOHN SAM MICHEAL

Right click on the InfoProvider column header. Select “Create InfoArea”

Enter the details – InfoArea name and Description

Right click on the created InfoArea and create InfoObject Catalog .The InfoArea – IA for Customer appears on the InfoProvider list.

Select ‘Char. Select ‘Char.’ Click on Create. Hence. we need to create Characteristics InfoObject.’ or ‘Key Figure’ based on the type of data (Master data/ Trans. In this case. we are creating Master data.Enter a suitable Name and Description for InfoObject Catalog. . right click on the InfoObject Catalog and create Info Object. Now. Data) needs to be created. The InfoObject Catalog appears right under the InfoArea created earlier.

the properties of the Characteristic ‘CUSTNO’ are visible. enter the Data Type and Length. This means that this Characteristic is a primary key field in the Master Data table. The first Characteristic InfoObject created can be treated as a key value in the Master table to be created. . • In the General Tab. Note: the ‘Attribute Only’ field is not checked. then it becomes an attribute of this Characteristic Key field or just another normal field in the Master data Table. If the box is checked. no changes to be done. On the right window.In the pop-up for InfoObject enter Characteristic name and description. • In the Business Explorer tab.

. Enter the InfoArea in the box below. to create a Master Data table. Check “With Master data”. • In the Attribute tab. enter the fields (non-key fields) that need to be maintained within the Master Data table. to create a corresponding Text table for this Master Data table with two default fields – Language & Description. also ‘texts language dependent’. having naming convention /BIC/P<characteristic name> Check “With Texts”.Save + Activate => P tables gets created • In the Master data/texts tab. Select ‘short/medium/long texts’. Select “Char is InfoProvider” (as our InfoObject is our target in this scenario).

select the 1st option – “Create Attribute as Characteristic”. hit [Enter] and in the pop-up box.Ex: Customer Id – primary key field Land City On entry of each field. .

[Enter] Repeat the same for other fields too.Activate all dependent InfoObjects. [Activate ] .Enter the Data type and the Length. Create File Interface: Source Systems à File à Createà <New File System> Or Use the existing file source system .

Data Source creation/selection: On the Navigator tab. Choose the Source System à File à <Flat File source system name> . Click on the ‘[X]’ button to Choose the Source System. select Data Source.

Ex: Name: APC_CUSTOMER Click ok. Enter the name and description for Application Component. The technical name of Application component APC_CUSTOMER now gets saved as => ZAPC_CUSTOMER Right click on the Application component and create DataSource .Right click on the header and Create Application Component.

while you are uploading Text Descriptions for the Master Data records (DS2) . Note: Select Master Data Attributes.Enter a suitable DataSource name : DS_Cust Source System : Flatfile Select Data Type of DataSource : Master Data attributes à as we are creating master data table. while you are uploading Master Data from file (DS1) Select Master Data Text.

mentioning the fields. search for the file on you local desktop .Header rows to be ignored = ‘1’ (if file has a header row as column titles) = ‘0’ (if file has no header row) . Enter the Data Separator as ‘ . In a Data source.Select name of file using F4. ‘. make the following changes: . .In the right Window. we need to mention 2 details: Name of Flat File (ASCII or CSV) to be uploaded Structure (Layout) of the input file.Select Data Format as – “Separated with Separator (for ex CSV)”. Therefore. • • General Info tab – provides information on the Data Source created Extraction tab – provides details of file to be extracted. you can view the Data Source properties.

• Fields tab – provides details of all fields used to create a data structure.• Proposal tab – provides a quick view of the data in the flat file to be uploaded Click on the ‘Load Example’ tab. In the Template Info field. to map with the fields from Source file. [Save] [Activate] . enter the field names (characteristics/attributes). [Enter] or [Save] [Copy] : all properties of the characteristics ( ex: data types. Note: the fields 0LANGU and 0TXTSH are the standard SAP defined characteristics InfoObjects. The details can be viewed in the below pane. length etc) are copied here.

(This is similar to transfer of data from Work areas to Internal Tables in R/3 ABAP).• Preview tab – gives a preview of data on flat file loaded onto a structure. Rt. Click on “Read Preview Data” Info Package: An InfoPackage helps to transport data from the Data Source structures into the PSA tables. Click on the Data Source and Create InfoPackage. .

Enter the InfoPackage name : IP_Cust Enter a suitable Description Select the corresponding DataSource from the list below and [Save]. we have the InfoPackage properties: • Data Selection tab – to initiate loading of data into the infopackage Select “Start Data Load Immediately” Click on [Start]. Then click on the [Monitor]button – next to “Process Chain Mgmt” Or [ F6]. we can view the status of the data loading to PSA. Click on the [PSA Maintenance] or [Ctrl + F8] to maintain the PSA table with the flat file values. . In the next screen. On the right window.

Here. Right click on DataSource à Create Transformation . which has been already created. Click on [Back] and come back to the DataSource screen. Note: Normally. This leads to the PSA display screen. for mapping the source fields in the DataSource to the final Target (basically. the Transformation can be created on the Data Source or the Target.In the pop-up. with the table and the respective data in them. click OK. defining the number of records per request. our target is the InfoObject (Master data table). the Info Providers from where BI extracts the reports). we are creating a Transformation on the DataSource. Transformation: This is a rule that is defined. In this case.

Enter the Source System used.Enter subtype of Object: Attributes (as we’re considering Master data only. • For the Source of Transformation. . select Subtype of Object : ‘Texts’ (IP2 for DS2) . For this Master Data. Not transactional data) .Enter name of Data Source used . • For the Target of Transformation. select Sub-type of Object : ‘Attributes’ (IP1 for DS1) While uploading Text desc.Enter the name of the InfoObject we created. .Enter Object Type: DataSource (this is our source structure) . Click on OK Note: While uploading Master Data.In the pop-up.Enter Object Type: InfoObject (this is our target in this scenario) .

Data Transfer Process (DTP): The DTP is a process used to transfer data from the PSA tables. On the next window we can see a graphical representation of the mapping of Source fields to Target fields. we get the no. Save and Activate. if the mapping if done correctly. Click on Ok. DataSource à right click à Create Data Transfer Process. . of proposals (rules) generated to map source fields with target fields.In the next screen pop-up. into the data Targets. based on the Transformation (mapping) rules.

In the DTP properties window.In the pop-up. . The DTP name is described as : < DataSrc/SourceSys -> InfoObject > DTP type : standard Target of DTP : Object Type : InfoObject (in this case) Subtype of Object : Attribute Name : < name of InfoObject > Source of DTP: Object Type : Data Source DataSource : <name> Source System: Flat file Click on OK.

Select Extraction Mode as ‘Full’.• Extraction tab. . [Save] [Activate] • • Update tab – no changes to be made Execute tab. .Click on [Execute] button .

To view the contents of the Target (Info Object). turn Green. there are 2 ways: 1. Incase a Red icon appears. Go Back.Click on [Refresh] until the icons in Yellow. Go to the InfoObject – CUSTNO à MasterData/Texts tab à Dbl click on the Master data table created : /BIC/P<Char name> à Table display à Execute . we need to track the error and rectify it.

For Lang = ‘DE’.click à Manage à rt windw Contents tab à [Contents] à F8. display corresponding Short Desc. . Text table Data Display is Language Dependent: For Lang = ‘EN’.On Transformation/DTP à Attribute à rt. display corresponding Short Desc.

Observations: In the above Master data table display. The fields – Customer Name. Description : have been created and loaded with data as per the file. Customer City : have been created and loaded with data as per the file. The contents of the Text data are stored in the newly created transparent table /BIC/T<char. The contents of the Master data are stored in the newly created transparent table /BIC/P<char. Customer Land. Name> Ex: The fields – Language . These 2 fields have been created by default. Name> Ex: . as a result of checking the “With Text data” for the Characteristic. These 3 fields have been created as a result of checking the “With Master data” for the Characteristic.

Sign up to vote on this title
UsefulNot useful