+++> 4.Loading Hierarchies - Flat File 7.3

Loading Hierarchies from Flat File using the new Data-Source and Transformation
Introduction
                       flat file by creating transformations, Info-Packages and DTP’s. This paper explains the step by step procedure to load the plant hierarchy data, which is available in a Flat File, to ‘ZPLANT’ info-object.


Hierarchy Flow     
              

i1.png
You have assigned an InfoArea to the characteristic in the InfoObject maintenance. The hierarchy becomes an InfoProvider.
Scenario
We want to load the plant hierarchy data to ZPLANT infoobject. The flat file, which has the plant hierarchy data, is given below.
i2.png
Steps:
Step 1: Create Flat File Source System
Create a Flat File Source System ‘ZFILE’
i3.png
Step 2: DataSource Creation
Create a 7.X DataSource ‘ZPLANT_HIER’ and select the Data Type Datasource as ‘Hierarchies’
i4.png
Give Short, Medium, Long descriptions in the General Info tab. The screenshot is given below:
i5.png
In Extraction tab, give the path of the file and data separator as ‘,’ as this is a CSV file. Also, give target infoobject as ‘ZPLANT’ as we are loading hierarchies for Plant infoobject.
i6.png
Next, click on create header.
i7.png
Fill in the Hierarchy Name and Description as shown below:
i8.png
Now, save the hierarchy.
In the File Structure tab, we can see the structure of the file to be created. The CSV file, whose screenshot is given above, has been created using this structure.
i9.png
In Segments/Fields, we can see the different segments. Hierarchy Header is the primary segment. The screenshot of ‘Hierarchy Header’ is given below:
i10.png
The screenshot of ‘Hierarchy Description’ segment is given below:
i11.png
The screenshot of ‘Hierarchy Structure’ is given below:
i12.png
The screenshot of ‘Descriptions for Text’ is given below:
i13.png
Now, Preview the data. The screenshot is given below:
i14.png
Step 3: Create Transformation
Select the Object Type as ‘InfoObject’ and subtype as ‘Hierarchies’
i15.png
Mention the target as ‘ZPLANT’ as shown in the below screenshot:
i16.png
The transformation screenshot for ‘Hierarchy Header’ is given below:
i17.png
The transformation screenshot for ‘Hierarchy Description’ is given below:
i18.png
The transformation screenshot for ‘Hierarchy Structure’ is given below:
i19.png
Here, make sure that you map ‘NODENAME’ field to ‘ZPLANT’ infoobject .If you are maintaining data for any other external characteristics in the flat file ,then make sure that you map ‘NODENAME’ to them as well.
The transformation screenshot for ‘Descriptions for Text Nodes’ is given below:
i20.png
Step 4: Create a Data Transfer Process (DTP)
Select the Subtype of Object as ‘Hierarchies’. The Screenshot is given below:
i21.png
Make sure ’Activate Hierarchy’ checkbox is selected.
i22.png
Step 5: Create InfoPackage
Give InfoPackage Description as shown below and click on save.
i23.png
Just recheck the settings in Extraction. The screenshot is given below:
i24.png
Select the Plant Hierarchy in the Hierarchy Selection tab. The screenshot is given below:
i25.png
Results
Execute the InfoPackage by clicking on ‘Start’ button.
i27.png
Data is loaded successfully to PSA.
The PSA maintenance screen for ‘Hierarchy Structure’ segment is given below.
i28.png
i29.png
Now,execute the DTP.
i30.png
Now, click on ‘Maintain Hierarchies’ to see the hierarchy that is loaded.
i31.png
The following screen appears:
i32.png
Click on ‘Plant Hierarchy’. The screenshot is given below:
i33.png
The hierarchy is loaded successfully and stored in BI system.

====================================================================================================================


How to reload a failed hierarchy Info-package

Error: Hierarchy package prompts you to select a hierarchy when attempting to reload it
C:\kbe's\0FI_AR_3 (Delta load) failed_files\image001.png
  1. Select the failed package, go to the header tab, and Copy the hierarchy.
C:\kbe's\dfas\Doc1_files\image002.jpg
2) Go to the Select hierarchy tab and do a search for the hierarchy, which was copied in the step above
C:\kbe's\dfas\Doc1_files\Doc2_files\error.jpg
3) If no entries are found, click the button available hierarchies from OLTP
C:\kbe's\0FI_AR_3 (Delta load) failed_files\image005.png
4) Once found, select the hierarchy and save it
C:\kbe's\0FI_AR_3 (Delta load) failed_files\image008.png
5) Lastly, go to the Schedule tab and start the IP

C:\kbe's\0FI_AR_3 (Delta load) failed_files\image010.png

                                               *********************