how to load hierarchies from flat files
TRANSCRIPT
![Page 1: How to Load Hierarchies From Flat Files](https://reader030.vdocuments.mx/reader030/viewer/2022020714/54103cb77bef0aae5b8b4981/html5/thumbnails/1.jpg)
How To Load Hierarchies from Flat files
Here for demo purpose I am selecting 0PROD_HIER info object.
Goto RSA1 and from Modeling Tab Select Info sources.
![Page 2: How to Load Hierarchies From Flat Files](https://reader030.vdocuments.mx/reader030/viewer/2022020714/54103cb77bef0aae5b8b4981/html5/thumbnails/2.jpg)
Select any application component and right click on that component, From Context menu select Create Info source.
![Page 3: How to Load Hierarchies From Flat Files](https://reader030.vdocuments.mx/reader030/viewer/2022020714/54103cb77bef0aae5b8b4981/html5/thumbnails/3.jpg)
Select Info object 0PROD_HIER For Direct Update of master data.
![Page 4: How to Load Hierarchies From Flat Files](https://reader030.vdocuments.mx/reader030/viewer/2022020714/54103cb77bef0aae5b8b4981/html5/thumbnails/4.jpg)
Right click on the Info object Product Hierarchy and select Assign Data source from the context menu.
![Page 5: How to Load Hierarchies From Flat Files](https://reader030.vdocuments.mx/reader030/viewer/2022020714/54103cb77bef0aae5b8b4981/html5/thumbnails/5.jpg)
Select the FLAT FILE source system from the drop-down
![Page 6: How to Load Hierarchies From Flat Files](https://reader030.vdocuments.mx/reader030/viewer/2022020714/54103cb77bef0aae5b8b4981/html5/thumbnails/6.jpg)
Select the data source assignment for Hierarchy. If we wish to load Master data attributes and texts then we can select those also by clicking Yes on the appropriate Information dialogue box.[Note: here I am selecting only data source assignment for hierarchies]
![Page 7: How to Load Hierarchies From Flat Files](https://reader030.vdocuments.mx/reader030/viewer/2022020714/54103cb77bef0aae5b8b4981/html5/thumbnails/7.jpg)
From the Info source assignment screen select Transfer method IDOC.
![Page 8: How to Load Hierarchies From Flat Files](https://reader030.vdocuments.mx/reader030/viewer/2022020714/54103cb77bef0aae5b8b4981/html5/thumbnails/8.jpg)
Select Hierarchy structure Push button and give the Hierarchy name and short description and press enter
![Page 9: How to Load Hierarchies From Flat Files](https://reader030.vdocuments.mx/reader030/viewer/2022020714/54103cb77bef0aae5b8b4981/html5/thumbnails/9.jpg)
Select Sorted Hierarchy and press enter [Note: this hierarchy structure will be appear in Info package]
![Page 10: How to Load Hierarchies From Flat Files](https://reader030.vdocuments.mx/reader030/viewer/2022020714/54103cb77bef0aae5b8b4981/html5/thumbnails/10.jpg)
Save the structure and Data source assignment and leave back the screen
![Page 11: How to Load Hierarchies From Flat Files](https://reader030.vdocuments.mx/reader030/viewer/2022020714/54103cb77bef0aae5b8b4981/html5/thumbnails/11.jpg)
Right Click on the File system and from context menu select Create Info package
![Page 12: How to Load Hierarchies From Flat Files](https://reader030.vdocuments.mx/reader030/viewer/2022020714/54103cb77bef0aae5b8b4981/html5/thumbnails/12.jpg)
Select the Data source and Give the Info package description
![Page 13: How to Load Hierarchies From Flat Files](https://reader030.vdocuments.mx/reader030/viewer/2022020714/54103cb77bef0aae5b8b4981/html5/thumbnails/13.jpg)
Select the Hierarchy in the Hierarchy selection tab in the Info package.
![Page 14: How to Load Hierarchies From Flat Files](https://reader030.vdocuments.mx/reader030/viewer/2022020714/54103cb77bef0aae5b8b4981/html5/thumbnails/14.jpg)
Select the name of the flat file from External data tab in the Info package.[Note: Here I am attaching the sample file ]
![Page 15: How to Load Hierarchies From Flat Files](https://reader030.vdocuments.mx/reader030/viewer/2022020714/54103cb77bef0aae5b8b4981/html5/thumbnails/15.jpg)
Click the Preview Button
![Page 16: How to Load Hierarchies From Flat Files](https://reader030.vdocuments.mx/reader030/viewer/2022020714/54103cb77bef0aae5b8b4981/html5/thumbnails/16.jpg)
Select the Simulate button from the above screen to simulate Hierarchy. If the flat file construction is wrong then we can identify it from here.
![Page 17: How to Load Hierarchies From Flat Files](https://reader030.vdocuments.mx/reader030/viewer/2022020714/54103cb77bef0aae5b8b4981/html5/thumbnails/17.jpg)
Leave the screen and select Scheduling by pressing Start from the schedule tab
![Page 18: How to Load Hierarchies From Flat Files](https://reader030.vdocuments.mx/reader030/viewer/2022020714/54103cb77bef0aae5b8b4981/html5/thumbnails/18.jpg)
From the above screen select Monitor to view whether it was loaded properly or not[Note : Refresh up to successful or In correct]
![Page 19: How to Load Hierarchies From Flat Files](https://reader030.vdocuments.mx/reader030/viewer/2022020714/54103cb77bef0aae5b8b4981/html5/thumbnails/19.jpg)
Goto RSH1 transaction to check the final Hierarchy:
![Page 20: How to Load Hierarchies From Flat Files](https://reader030.vdocuments.mx/reader030/viewer/2022020714/54103cb77bef0aae5b8b4981/html5/thumbnails/20.jpg)
This is the final Hierarchy