BW Hierarchy Upload From Flat File
BW Hierarchy Upload From Flat File
Pgina 1 de 11
Blogs
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
Pgina 2 de 11
c) Include the external characteristics Sales Region and Sales Country in the Hierarchy. And activate the info object Sales Representative.
2.2 Creating Info Source. a) Create Info source with direct update for info object Sales Representative (ZSREP).
http://weblogs.sdn.sap.com/pub/wlg/3113
23/12/2011
Pgina 3 de 11
f) The structure in the screen represents the structure of the flat file . Field sequence of the flat file should be exactly same as that in the screen below.
http://weblogs.sdn.sap.com/pub/wlg/3113
23/12/2011
Pgina 4 de 11
2.3 Creating Flat File for Upload a) Number the nodes in the hierarchy.
b)Create the flat file based on above hierarchy structure and the node numbers.
2.4 Uploading the Hierarchy Data into BW a) Create Info Package for Hierarchy Upload. 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. Full Update : For Uploading the entire hierarchy structure Insert Subtree: For appending the hierarchy with new nodes. Update Subtree : For modifying the nodes of the hierarchy.
http://weblogs.sdn.sap.com/pub/wlg/3113
23/12/2011
Pgina 5 de 11
c) Select the CSV file to be uploaded and schedule the upload. d) Display the loaded Hierarchy .
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.
http://weblogs.sdn.sap.com/pub/wlg/3113
23/12/2011
Pgina 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 .
d) Flat file structure for the above hierarchy is shown below . It contains two extra columns Date-to and Date-from.
e) In the info-package Update tab , 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.
http://weblogs.sdn.sap.com/pub/wlg/3113
23/12/2011
Pgina 7 de 11
Main Topics
Oldest First
2011-12-21 21:12:56 Deepak Machal Business Card [Reply] This is great work man, Clear my many doubt ..;)
http://weblogs.sdn.sap.com/pub/wlg/3113
23/12/2011
Pgina 8 de 11
Deepak Very informative! 2011-10-26 00:04:13 Nash Hander Business Card [Reply] Very informative! Keep up the good work...
rgds, nash Excellent Article! 2011-10-06 23:09:00 KrishnaSrikar Posina Business Card [Reply] Really good Article on Hierarchies. Regards, Srikar Hierarchy upload 2011-01-27 20:10:03 Mahaboob Basha Kolimi Business Card [Reply] Hi ,
This is very useful for me because of am new of SDN and also new of SAP BW. nice document to upload the hierarchy from flat file. Hierarchy Upload from Flat files 2009-07-03 05:28:54 Sunil Mundhe Business Card [Reply] Excellent document. Helpful, but illustrates problem 2009-04-28 18:57:17 Steve Bonn Business Card [Reply] Thanks for this clear illustration, Prakash. Your example, however, shows a problem with the upload, that various people have meantioned on SDN, but which no-one has proposed a solution for. The upload fails to upload the texts for the hierarchy nodes, as can be seen in your hierarchy displays. If you find a solution to this problem, please add it to your blog. Excellent document 2008-11-12 04:16:49 Meera Natarajan Business Card [Reply] Prakash, Excellent document and it is self explanatory for loading the hierarchies.Good.. 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. with little struggle, I was able to load hierarchies. Thanks Cheers!! great blog 2008-04-08 04:47:20 VenkataSubrmanian Ganesan Business Card [Reply] finally made it!! struggled for while but finally made..
cheers GVS Very useful for beginners 2008-02-18 16:37:37 Swetha Chandran Business Card [Reply] This is a very useful blog. I liked the way you presented the blog, very simple and clear. Any one who is starting their career in BW need to check this out.... Hierarchy Upload from Flat files 2007-11-07 12:59:28 Sheo Singh Business Card [Reply]
http://weblogs.sdn.sap.com/pub/wlg/3113
23/12/2011
Pgina 9 de 11
SAP Help suggests that there should be 2 more fields after ParentId. ChildId and NextID. Are those 2 fields now not required? Thanks. Hierarchy Upload from Flat files 2009-12-21 16:03:53 Sandhya Rani Business Card [Reply] Excellent document... Good work Very Helpful 2007-10-18 00:20:04 Madhusudhan Reddy Business Card [Reply] ai, this is Madhu.The material whatever u have sent is very helpful.Once again Thank u very much. 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.
Thanks! Reg:Hierarchy Upload 2007-10-10 00:12:08 mahesh krishnan Business Card [Reply] Who ever creates this Blog;I really appreciate it, it was that clear. Thanks a lot Mahesh I really helpful 2007-07-29 21:09:12 Sathis Kumar Jegannathan Business Card [Reply] Hi, Its really very nice and I appreciate it.
Thanks Sathis Where should Hierarchies be maintained 2007-07-18 23:09:27 Devaraj P. Venkata Business Card [Reply] Hi, The document is very good. I would like to know the pros and cons of maintaining hierarchy in source system and in BI system. how do we decide if the hierarchy should be maintained in R/3 or in Bi system ? Can you please provide your feedback /views. my email is [email protected] Good One 2007-06-05 23:48:31 Manjula Alur Business Card [Reply] Hi, 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..it cleared my doubts... Good one!! 2007-03-31 16:54:32 manohar konda Business Card [Reply] Prakash, It' s really excellent. I appreciate for you time. Very useful information Mano Great job !!! 2006-09-12 23:28:41 Sunitha R Business Card [Reply]
Dear Prakash,
http://weblogs.sdn.sap.com/pub/wlg/3113
23/12/2011
Pgina 10 de 11
Just went through your hierarchy blog. It is quite useful and easy to understand. Incase you have few more blogs kindly mail me to [email protected].
Thanks.
Regards, Sunitha.R Excellent document 2006-08-04 01:36:10 Pushkara Mallikarjunaiah Business Card [Reply] Dear Prakash, This is an excellent documeent. Thx for your time
Regards Pushkara Usefull Weblog 2006-08-03 23:13:18 Varun Kumar C N Business Card [Reply] hi, This WebLog is really useful, it provides basic information . its very helpful for bw beginners. THanks Varun table instead of flat file 2006-07-24 06:25:03 Alexander Kutz Business Card [Reply] Hi, 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, Very nice web log.
Even though it may be considered a basic topic to some, your detailed step by step instructions may save others precious time.
Best regards,
Andr Garcia
Useful Info 2006-04-11 03:14:23 Velayutham Augustheesan Business Card [Reply] Hi, Prakash Nice web log.
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.
I think BW is very vast and what seems to be trivial for some, could be very difficult for others to grasp. Hence I always welcome these type of weblogs.
Standard of a weblog 2006-02-14 23:24:21 Dinesh Lalchand Business Card [Reply] Hi, This topic has often been discussed in many forums and there is nothing new in this weblog. I think there should a minimal standard for any content to be qualified as a blog. 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", etc... I hope the Weblog moderators take some action on this
http://weblogs.sdn.sap.com/pub/wlg/3113
23/12/2011
Pgina 11 de 11
trend.
Let me make it clear I intend no harm to Prakash's contribution. I am just worried at the quality and the trend of such weblogs.
Regards Dinesh
Standard of a weblog 2010-09-14 10:21:09 Harjinder Saini Business Card [Reply] hey Prakash has done gud job, 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 . So what if there are blogs for creating cube or info objects. Fu-Fu 2006-02-07 04:03:03 SAP BI Business Card [Reply] Hey Man, Congrats for first blog.
Hey all, You can use book on SAP BW by Fu-Fu and for more simpler solution.
Cheers!!!!!!!!!
http://weblogs.sdn.sap.com/pub/wlg/3113
23/12/2011