Greetings to All,
Hope you all are having a wonderful time. In this Blog I would like to explain the step by step procedure on how to load a flat file into Info cube in a BW system. Am in fact thrilled to write my first blog in this space.
Introduction:
Loading a flat file into BI system is one of the basic requirement that all BI consultants should be knowing however due to the long process we at times may skip a step a or two which will result in failure of data load. In this blog I would like to come up with all the steps in detail along with screenshots, hope you find it interesting.
The following steps needs to be carried in completing our task,
- Create an Info Objects Catalog for both Characteristics and Key figures.
- Create Info Objects for both the Info Object Catalogs created in step 2.
- Create a Flat file Source System.
- Create an Application Component for the created Source System.
- Create a data source in the application component.
- Load data into PSA(Persistent Staging Area).
- Create an Info Package.
- Create an Info Cube by proper Assignment of info obects into fact and dimension table.
- Load data into Infocube through transformation and DTP(Data Transfer Process).
One need to follow all the above steps for proper data load into Infocube.Before we get into the steps let me brief you on the requirement. Consider we have a local file with five columns such as,
- Eid(Employee ID)
- Did(Department ID)
- Pid(Project ID)
- NOH(No Of Hours Worked)
- Sal(Salary)
Now we have to load the values in these file in to the BI system. For simplification purpose let us consider only five entries in the file as shown below, Please note that the file should be in excel CSV format.
![SCN.PNG]()
Out of these five columns the first three columns Eid, Did, Pid will be categorized into characteristics since they are not subject to any change.
Whereas columns Noh, Sal will be grouped into key figures since they may change in future.
Now lets us see each step in detail,
Step 1 - Create an Info Area:
After logging into the system, execute the T-Code RSA1. You will end up to the below screen. Go to Info Provider tab and right click on info provider and create an Info Area as shown below.
![SCN.PNG]()
Once the above step is done you will get a pop-up, give the name of the Info Cube and its description as shown below and click continue.
![SCN.PNG]()
Once InfoArea is created you can see the same in the Info provider List of as marked below.
![1.PNG]()
Step 2- Create an Info Objects Catalog for both Characteristics and Key figures.
Now go to Info Objects tab and reach to the Info Area that is just created, if you don’t find the same refresh the objects using the given(Marked in Green Below).
Right Click on the Info Area and Create an Info Object Catalog for Characteristics as shown below.
![2.PNG]()
In the Pop up fill in all the details as shown below, Please do not forget to click on the characteristics radio button for object type since the catalog is created for characteristics. Then click the create icon and then activate(ICON marked in green).
![3.PNG]()
Now you will find the catalog created as shown below,
![4.PNG]()
Now Proceed to create another Catalogs for Key figures with only difference that you have to check Key Figures info object as marked below.
![5.PNG]()
Once created again activate and you can find both the catalogs as shown below.
![6.PNG]()
Now Right click on each catalog and create the respective info objects as shown below,
![7.PNG]()
Now you will be getting a pop up as shown below, now we are creating info object for employee Id. Fill in the required details and click continue.
![8.PNG]()
In the next screen provide the details as shown below, in this case since we are creating for Emp ID we select the character string data type with the length of 3 then click on activate button.
![9.PNG]()
Now you will find the created info object of emp id under the characteristics catalog as shown below.
![10.PNG]()
Similarly for fields department number and project id we select the same data type and length since we have similar data. We have selected such data just for simplification, in real time you may get complex data with complex data type. Once all three are created we will find all the info objects in the Test_IOC catalog as shown below.
![11.PNG]()
Now proceed to right click on the Info Object catalog for key figures and create two info objects for salary and no of hours in the same as created above.
Here since it is a key figure the data types that must be selected will be of different set as shown below. Here we will select as number for our convenience as shown below.
![12.PNG]()
Once both the key figures are created we will get a display as shown below.
![13.PNG]()
So as of now we have created two info objects catalogs one for characteristics and other for key figures and we have also created their respective info objects which is 5 in our case.
Step 3- Create a Flat file Source System.
Go to source systems tab, right click on the source systems and click on create as shown below.
![14.PNG]()
In the Next Pop up select the flat file radio button as shown below and click continue.
![15.PNG]()
Give the name for the flat file as below and continue. Please note that this step will take some time so please be patient.
![16.PNG]()
Once the flat file is created you can see it as shown below.
![17.PNG]()
Step 4- Create an Application Component for the created Source System.
Double click on the flat file that was created in the above step, it will lead you to the data sources tab. Now right click on the top and try creating Application Component as shown below.
![18.PNG]()
Now in the next Pop-Up give the details of the application component and click on continue.
![19.PNG]()
Step 5-Create a data source in the application component.
Once the Application component is created in the above step you have to scroll down to last to see it, right click on it and create data source as shown below.
![20.PNG]()
In the next pop up name the source system details and select the data source type, in our case we are trying to upload transaction data hence we select that and click on continue as shown below.
![21.PNG]()
Step 6- Load data into PSA(Persistent Staging Area).
Now we have entered into loading data into PSA. As soon as you click on continue in the above step you will get the below tab called general details, enter the descriptions and go to the next tab as shown below.
![22.PNG]()
In the next tab is named as Extraction, this is the most important tab. Here fill all the values as shown in the below screen shot. For reference all important fields are briefed below.
Delta Process: Since we are doing a full load we have selected the option accordingly.
Adapter: Since the files are load from the local system, the option is selected accordingly.
File name: Browse the file from the local system and place it In the field.
Header rows to be ignored: Since the file has one row for header we provide as 1.
Data Format: Since it is a CSV file we select the option accordingly.
Data Separator: We provide “ , “ as the separator.
All the above mentioned details can be seen in the below screen shot.
![23.PNG]()
In the next tab click on the load sample data button (marked in red below), you will able to see the sample data with comma separator as shown below.
![24.PNG]()
In the next tab, you need not perform any operation just check the fields and data types are loaded correctly as shown below.
![25.PNG]()
In the next tab click on Read preview data button as marked below, you will get a activate pop up button proceed to activate.
![26.PNG]()
On loading data successfully you will get the below screen with the data.
![27.PNG]()
Till now we have created and activated a data source and we have loaded data into data source via PSA.
Step 7 : Creation Of Info Package.
Now right click on the data source and create an Info Package as shown below.
![28.PNG]()
In the next screen name the info package and continue as shown below and then save.
![29.PNG]()
Now you will get the below screen, proceed to carry a check with option give below (Marked in Red)
![30.PNG]()
Once the check is carried out, have a look at all the tabs whether all the values filled in earlier is similar. Reach to the final tab for scheduling, select the start immediately radio button and click on start as shown below.
On successful execution you will get a confirmation as data was requested below.
![31.PNG]()
If you want to ensure that the data has been loaded into the system properly you can do the below steps:
- Double click on the data source.
- Select GOTO from menu bar, and select technical attributes.
- You will get a pop up as below, click on the table as marked below and check for the entries in the table. You should find the same data in the file here in this table
![32.PNG]()
If all are fine till this step then proceed.
Step 8-Create an Info Cube:
Go to info Provider tab and right click on the info area that was created and create an info cube as shown below.
![33.PNG]()
In the next screen name the Info cube and create as shown below.
![34.PNG]()
In the next screen select the Info Object catalog icon as marked below.
![35.PNG]()
Now you will be getting a pop with both Info Object catalog created in step 2. Double click the first catalog created for Characteristics. The pop up screen will be as below.
![36.PNG]()
In the next screen you will get all the info object that are created under that catalog, just drag all those three info objects and drop it to Dimensions folder in the right(Marked in Red Below)
Remember you have to just a drag and drop each info objects from characteristics folder (In Green below) to Dimension node (In Red Below).
![37.PNG]()
Now similarly click on the info objects icon again as did before, now select the catalog created for key figures and similarly drag and drop the key figures from key figures folder(Marked in Green) to the Key figures folder in the right (Marked in Red) as shown below. Then Click on activate icon.
![38.PNG]()
Step 9-Creating Transformation:
On activation you will get an info cube icon as shown below. Right click on the icon and select transformation as shown below.
![39.PNG]()
In the next screen select the object type as data source and give the correct details of the data sources that we have created as shown below. Then click on continue.
![40.PNG]()
In the next screen map the fields from the file to the fields in the data source that we have created. For mapping you have start from the field on the table and drag to the same field on the right table. After proper mapping activate (Ignore warnings if any) the same and you will get a screen as below.
![41.PNG]()
Step 10-Create DTP (Data Transfer Process):
On Successful completion of above steps you will get an icon for DTP as below, right click on it and select create data transfer process as shown below.
![41.1.PNG]()
In the next screen you will get a pop up as shown below, just proceed to continue without making any changes.
![42.PNG]()
Now you will get a screen as below, under extraction tab select the extraction mode as full as shown below.
![43.PNG]()
In the next tab called update, select the error handling method as shown below and proceed to next tab.
![44.PNG]()
As soon as you reach the final execute tab first activate (Ignore warnings if any) the process, post which you can see the Execute button available (Before Activation it will greyed out).
![45.PNG]()
Upon clicking on the execute button you will get a below pop up, select Yes and continue.
![46.PNG]()
In the Next screen you will get a report page with all in green status (If the process is successful) as shown below. If the status is in yellow it means the process is still running in that case keep on refreshing until you get a green (Successful) or Red (failed).
![47.PNG]()
The whole process till completes the successful load of flat file data into the info cubes. To check the data in info cube, right click on the info cube and select display data as shown below.
![48.PNG]()
In the next screen select ‘fields for selection button’ near execute button as shown below,
![49.PNG]()
Select the ‘select all’ button near execute button as shown below.
![50.PNG]()
Now click on execute buttons to see the value in the Info cube as shown below,
![51.PNG]()
Thus we have successfully loaded a data from the flat file into Info cube. Hope this blog will help you understand the concept clearly.
Conclusion:
I would like to thank you all for patiently reading such a long Blog, hope this serves you better. Please do share your reviews and feedbacks which will serve as a encouragement for my future blogs.
Thanks and Regards,
Satish Kumar Balasubramanian