SAP Network Blog: Hierarchy Upload from Flat files

Página 1 de 11

Blogs

Hierarchy Upload from Flat files
Prakash B Business Card Company: Wipro Technologies Posted on Feb. 07, 2006 03:12 AM in Enterprise Data Warehousing/Business Warehouse
1 Introduction Definition: A hierarchy is a method of displaying a characteristic structured and grouped according to individual evaluation criteria. Structure: a) Nodes A hierarchy is created from nodes. The uppermost node is the root. b) Roots A hierarchy can have several roots. They do not have superior nodes.

Subscribe Print Permalink Share

c) Hierarchy Levels All nodes on the same level of the hierarchy (nodes that are the same distance away from the root) form a hierarchy level. The roots of a hierarchy form level 1. The level of a node denotes the distance from the node to the root. d) Leaves The leaves of a hierarchy consist of characteristic values for the basic characteristic and therefore can also have entries in the fact table. A leaf cannot have any sub nodes. e) Basic Characteristic Hierarchies can be created only for those characteristics that do not reference other characteristics. Properties : A BW hierarchy has the following properties: • Hierarchies are created for basic characteristics • Hierarchies are stored in special master data tables. They behave in a similar way to master data, • and can therefore be used and modified in all Info Cubes. • You can define several hierarchies for a single characteristic. • A hierarchy can have a maximum of 98 levels.

2 Uploading Hierarchy From Flat File In the following example , Hierarchy is based on info object ‘Sales Representative’. In addition characteristics ‘Region’ and ‘Country’ are included in the hierarchy. Basic characteristic in this hierarchy is ‘Sales Representative’ and External characteristics are ‘Region’ and ‘Country’.

2.1 Create Info-objects a) Create 3 info objects ‘Sales Region’ (ZSREGION), ‘Sales Country’ (ZSCONTRY)and ‘Sales Representative’ (ZSREP). b) For ‘Sales Representative’ characteristic Tick the check box With Hierarchies and select Hierarchy not time-dependent radio button.

http://weblogs.sdn.sap.com/pub/wlg/3113

23/12/2011

c) Activate the transfer Rules . 2. a) Create Info source with direct update for info object ‘Sales Representative’ (ZSREP). http://weblogs.sdn.com/pub/wlg/3113 23/12/2011 .2 Creating Info Source. And activate the info object ‘Sales Representative’.sap. b) Assign flat file source system to the info source ZSREP.SAP Network Blog: Hierarchy Upload from Flat files Página 2 de 11 c) Include the external characteristics ‘Sales Region’ and ‘Sales Country ‘ in the Hierarchy.

Field sequence of the flat file should be exactly same as that in the screen below. Structure Push button e) Give a Name and description to the Hierarchy and press continue . f) The structure in the screen represents the structure of the flat file .com/pub/wlg/3113 23/12/2011 . http://weblogs.sdn.sap.SAP Network Blog: Hierarchy Upload from Flat files Página 3 de 11 d) Click on Hier.

Update Subtree : For modifying the nodes of the hierarchy. http://weblogs.3 Creating Flat File for Upload a) Number the nodes in the hierarchy.sdn. Select the Hierarchy to be uploaded and also the Full Update button as we are uploading the entire Hierarchy. b) There are three update methods for uploading the hierarchy. b)Create the flat file based on above hierarchy structure and the node numbers.sap.com/pub/wlg/3113 23/12/2011 .4 Uploading the Hierarchy Data into BW a) Create Info Package for Hierarchy Upload. Full Update : For Uploading the entire hierarchy structure Insert Subtree: For appending the hierarchy with new nodes.SAP Network Blog: Hierarchy Upload from Flat files Página 4 de 11 2. 2.

sdn. http://weblogs.SAP Network Blog: Hierarchy Upload from Flat files Página 5 de 11 c) Select the CSV file to be uploaded and schedule the upload. 2.5 Uploading Time Dependent Hierarchy a) For making the hierarchy time dependent select the ‘Time-Dependent Hierarchy structure’ radio button and activate the info object ZSREP b) In the transfer structure there will be 2 more additional fields date from and date to for the time dependent nodes. d) Display the loaded Hierarchy .sap.com/pub/wlg/3113 23/12/2011 .

d) Flat file structure for the above hierarchy is shown below .sdn. e) In the info-package Update tab . http://weblogs.sap.com/pub/wlg/3113 23/12/2011 . select Fixed Time interval radio button and give start date as 01/01/1000 and End date as 31/12/9999 so that all nodes are uploaded.SAP Network Blog: Hierarchy Upload from Flat files Página 6 de 11 c) Consider that Sales Representative ‘SREP2’ was in England up to 31/12/1995 and moved to USA from 01/01/1996 . It contains two extra columns Date-to and Date-from.

.sdn. g) Display the loaded hierarchy. Clear my many doubt ..) http://weblogs.com/pub/wlg/3113 23/12/2011 . Comment on this weblog Showing messages 1 through 30 of 30. Titles Only Hierarchy Upload from Flat files Main Topics Oldest First 2011-12-21 21:12:56 Deepak Machal Business Card [Reply] This is great work man.SAP Network Blog: Hierarchy Upload from Flat files Página 7 de 11 f) Upload the hierarchy data from flat-file to BW.sap. Prakash B is a SAP BW Technical Consultant with Wipro Technologies.

sdn.com/pub/wlg/3113 23/12/2011 .. but which no-one has proposed a solution for... however. This is very useful for me because of am new of SDN and also new of SAP BW. rgds. The upload fails to upload the texts for the hierarchy nodes. shows a problem with the upload.. Your example. but illustrates problem 2009-04-28 18:57:17 Steve Bonn Business Card [Reply] Thanks for this clear illustration. Excellent document 2008-11-12 04:16:49 Meera Natarajan Business Card [Reply] Prakash. that various people have meantioned on SDN.. thanks for ur help. Hierarchy Upload from Flat files 2009-07-03 05:28:54 Sunil Mundhe Business Card [Reply] Excellent document. Regards. Excellent document and it is self explanatory for loading the hierarchies.. very simple and clear. Prakash. If you find a solution to this problem. Meera Great 2008-04-22 23:57:13 Dau Jain Business Card [Reply] Too good !! I appreciate this blog Good job 2008-04-10 19:48:56 Vivek Singh Business Card [Reply] Nice blog Prakash. Thanks Cheers!! great blog 2008-04-08 04:47:20 VenkataSubrmanian Ganesan Business Card [Reply] finally made it!! struggled for while but finally made.. Any one who is starting their career in BW need to check this out. with little struggle. I liked the way you presented the blog. please add it to your blog.SAP Network Blog: Hierarchy Upload from Flat files Página 8 de 11 Thanks a lot keep up the good work Deepak Very informative! 2011-10-26 00:04:13 Nash Hander Business Card [Reply] Very informative! Keep up the good work. nice document to upload the hierarchy from flat file. nash Excellent Article! 2011-10-06 23:09:00 KrishnaSrikar Posina Business Card [Reply] Really good Article on Hierarchies.. Hierarchy Upload from Flat files 2007-11-07 12:59:28 Sheo Singh Business Card [Reply] http://weblogs. I was able to load hierarchies..Good. Helpful. cheers GVS Very useful for beginners 2008-02-18 16:37:37 Swetha Chandran Business Card [Reply] This is a very useful blog. as can be seen in your hierarchy displays.sap. Srikar Hierarchy upload 2011-01-27 20:10:03 Mahaboob Basha Kolimi Business Card [Reply] Hi .

http://weblogs. it was that clear. Bye Madhu Hierarchy upload for 'duplicate' nodes 2007-10-11 12:14:01 Sukeshi Patel Business Card [Reply] Hi! Would you by any chance have instructions on uploading hierarchies where a node can have multiple parent nodes? The idea is to 'Link' the duplicate nodes to the parent node.. Very useful information Mano Great job !!! 2006-09-12 23:28:41 Sunitha R Business Card [Reply] Dear Prakash. Thanks Sathis Where should Hierarchies be maintained 2007-07-18 23:09:27 Devaraj P.Once again Thank u very much.it cleared my doubts. It’s really very nice and I appreciate it.. Good one!! 2007-03-31 16:54:32 manohar konda Business Card [Reply] Prakash. It' s really excellent. this is Madhu.The material whatever u have sent is very helpful.. The document is very good. Good work Very Helpful 2007-10-18 00:20:04 Madhusudhan Reddy Business Card [Reply] ai.I really appreciate it. I appreciate ur time & concern veryy good blog keep it up Manjula Good one!! 2007-02-02 01:55:44 Anil Bavaraju Business Card [Reply] Thanks brother. Hierarchy Upload from Flat files 2009-12-21 16:03:53 Sandhya Rani Business Card [Reply] Excellent document.sdn.SAP Network Blog: Hierarchy Upload from Flat files Página 9 de 11 SAP Help suggests that there should be 2 more fields after ParentId. how do we decide if the hierarchy should be maintained in R/3 or in Bi system ? Can you please provide your feedback /views. Thanks a lot Mahesh I really helpful 2007-07-29 21:09:12 Sathis Kumar Jegannathan Business Card [Reply] Hi.com/pub/wlg/3113 23/12/2011 .com Good One 2007-06-05 23:48:31 Manjula Alur Business Card [Reply] Hi..sap. I appreciate for you time. my email is pvdevaraj257@yahoo. I would like to know the pros and cons of maintaining hierarchy in source system and in BI system. Venkata Business Card [Reply] Hi. Are those 2 fields now not required? Thanks. ChildId and NextID. Thanks! Reg:Hierarchy Upload 2007-10-10 00:12:08 mahesh krishnan Business Card [Reply] Who ever creates this Blog..

THanks Varun table instead of flat file 2006-07-24 06:25:03 Alexander Kutz Business Card [Reply] Hi. Regards Velayutham Augustheesan Standard of a weblog 2006-02-14 23:24:21 Dinesh Lalchand Business Card [Reply] Hi. could be very difficult for others to grasp.R Excellent document 2006-08-04 01:36:10 Pushkara Mallikarjunaiah Business Card [Reply] Dear Prakash. I found this web log very useful as you have explained nicely (with step step by instructions)about how to create a Hierarchy and load it.SAP Network Blog: Hierarchy Upload from Flat files Página 10 de 11 Just went through your hierarchy blog. it provides basic information . I think there should a minimal standard for any content to be qualified as a blog.com/pub/wlg/3113 23/12/2011 .. It is quite useful and easy to understand. I hope the Weblog moderators take some action on this http://weblogs. Even though it may be considered a basic topic to some.. Incase you have few more blogs kindly mail me to sunitha. This is an excellent documeent. Very nice web log. Hence I always welcome these type of weblogs. etc. Sunitha.sap.sap@gmail. If such "basic" things were to be qualified as blog then we would see many more blogs ranging from "creating info-objects" to "creating cubes". your detailed step by step instructions may save others precious time. its very helpful for bw beginners. Thanks. It was very useful to me! Best regards. Thx for your time Regards Pushkara Usefull Weblog 2006-08-03 23:13:18 Varun Kumar C N Business Card [Reply] hi. I think BW is very vast and what seems to be trivial for some. Regards. Prakash Nice web log :) What do i have to modify to load the data instead of the flat file from a r/3 table? Regards Alexander Useful Info 2006-04-19 11:52:01 André Garcia Business Card [Reply] Hi. Prakash. André Garcia Useful Info 2006-04-11 03:14:23 Velayutham Augustheesan Business Card [Reply] Hi. Prakash Nice web log. This topic has often been discussed in many forums and there is nothing new in this weblog.sdn.com. This WebLog is really useful.

http://weblogs.com/pub/wlg/3113 23/12/2011 . Hey all. Fu-Fu 2006-02-07 04:03:03 SAP BI Business Card [Reply] Hey Man. Regards Dinesh Standard of a weblog 2010-09-14 10:21:09 Harjinder Saini Business Card [Reply] hey Prakash has done gud job. I am just worried at the quality and the trend of such weblogs. Let me make it clear I intend no harm to Prakash's contribution.sdn. You can use book on SAP BW by Fu-Fu and for more simpler solution. Cheers!!!!!!!!! Showing messages 1 through 30 of 30. Congrats for first blog.SAP Network Blog: Hierarchy Upload from Flat files Página 11 de 11 trend. There are beginners also who need such blogs so you should not comment like this every small thing is new to them so it was harsh that you said and yes it was informative .sap. So what if there are blogs for creating cube or info objects.