Extract sub-Hierarchy

Hello,
actually I have a problem with hierarchy extraction. I need to publish a sub-hierarchy.
My idea:
Create a transformation between a full hierarchy and a sub hierachy. Within the transformation, I would have filtered out the nodes I do not want to publish in the sub hiearchy. However it is not possible to use transformation between hierachy.
Now i tried to build a generic extractor on the /BIC/H-table and wanted to transform this generic datasource into the sub hierarchy --> not possible because I can not create a generic-hierarchy-datasource (besides flat files).
Any idea how so solve this problem with NW 7.0?
Thank You!
Markus

Hi,
You can download the hierarchy to flat file as follows
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0403a990-0201-0010-38b3-e1fc442848cb?QuickLink=index&overridelayout=true
http://wiki.sdn.sap.com/wiki/display/BI/HierarchyDownloadto+Flatfile
http://forums.sdn.sap.com/thread.jspa?threadID=69187
Thanks and regards
Kiran

Similar Messages

  • How to extract sub string value from a string?

    Hi,
    I need to know how can i extract sub strings from a main
    string, something like this:
    main variable-------->"2087-5E2SE-19-JG7BC"
    i want to split it into like this:
    sub_main_1 variable---------> "2087"
    sub_main_2 variable---------> "5E2SE"
    sub_main_2 variable---------> "19"
    sub_main_2 variable---------> "JG7BC"
    I did the same in flash by using Split and arrays, like this:
    var my_str:String = "2087-5E2SE-19-JG7BC";
    var my_array:Array = my_str.split("-");
    for (var i = 0; i<my_array.length; i++) {
    trace(my_array
    this.aaa1 = my_array[1];
    this.aaa2 = my_array[2];
    this.aaa3 = my_array[3];
    this.aaa4 = my_array[4];
    My question is that how can i do the same in director ?? i
    haven't find any split function in director.
    Thanks in advance,
    Amir

    You do a similar thing in Director using the itemDelimiter,
    which is a
    _player object property in MX2004. By default, it's a comma:
    put _player.itemDelimiter
    It will let you get specific items within a string.
    p = "2087-5E2SE-19-JG7BC"
    _player.itemDelimiter = "-"
    put p.item[1]
    -- "2087"
    You could use it to write yourself a little split function:
    on split(theString, theDelimiter)
    oldDelim = _player.itemDelimiter
    _player.itemDelimiter = theDelimiter
    itemList = []
    repeat with cnt = 1 to theString.item.count
    itemList.add(theString.item[cnt])
    end repeat
    return itemList
    end
    p = "2087-5E2SE-19-JG7BC"
    a = split(p, "-")
    put a
    -- ["2087", "5E2SE", "19", "JG7BC"]
    Dave -
    Adobe Community Expert
    www.blurredistinction.com
    http://www.adobe.com/communities/experts/

  • Extract the hierarchy in Parent child format from HP

    Hello,
    I have a hierarchy within Accounts dimension which I need to move to the other application in the different environment. I donot want to move the whole dimension. I just need to move a hierarchy. Is there a way I can extract a hierarchy in Parent child format with properties and move the same in to the next one.
    Thanks in advance for your help.
    Cheers,
    XXX

    Hi,
    Below code assumes that you have 2 alias tables and assymetric hierarchy (having 4 to 6 levels) in accounts and all level 0 accounts are 6 digits. If you wish to remove the second alias table from the code simply remove references to it (i.e. aliastbl_id=50030). You can customize the extract top level member by modifying this section: (select object_id from hsp_object where object_name='Total Expenditure')
    This outputs the structure in a fixed columnar format having all levels in different columns.
    Code:
    select o1.object_name as LVL1, o1.object_name as LVL1_DESC_EN, al1.object_name as LVL1_DESC_AR,
    o2.object_name as LVL2, o2.object_name as LVL2_DESC_EN, al2.object_name as LVL2_DESC_AR,
    o3.object_name as LVL3, al3.object_name as LVL3_DESC_EN, alar3.object_name as LVL3_DESC_AR,
    o4.object_name as LVL4, al4.object_name as LVL4_DESC_EN, alar4.object_name as LVL4_DESC_AR,
    o5.object_name as LVL5, al5.object_name as LVL5_DESC_EN, alar5.object_name as LVL5_DESC_AR,
    o6.object_name as LVL6, al6.object_name as LVL6_DESC_EN, alar6.object_name as LVL6_DESC_AR
    from hsp_object o1
    left outer join (select * from hsp_alias where aliastbl_id=50030) a1 on o1.object_id=a1.MEMBER_ID left outer join hsp_object al1 on a1.alias_id=al1.object_id
    inner join hsp_object o2 on o1.object_id=o2.Parent_ID
    left outer join (select * from hsp_alias where aliastbl_id=50030) a2 on o2.object_id=a2.MEMBER_ID left outer join hsp_object al2 on a2.alias_id=al2.object_id
    inner join hsp_object o3 on o2.object_id=o3.Parent_ID
    left outer join (select * from hsp_alias where aliastbl_id=14) a3 on o3.object_id=a3.MEMBER_ID left outer join hsp_object al3 on a3.alias_id=al3.object_id
    left outer join (select * from hsp_alias where aliastbl_id=50030) ar3 on o3.object_id=ar3.MEMBER_ID left outer join hsp_object alar3 on ar3.alias_id=alar3.object_id
    inner join hsp_object o4 on o3.object_id=o4.Parent_ID
    left outer join (select * from hsp_alias where aliastbl_id=14) a4 on o4.object_id=a4.MEMBER_ID left outer join hsp_object al4 on a4.alias_id=al4.object_id
    left outer join (select * from hsp_alias where aliastbl_id=50030) ar4 on o4.object_id=ar4.MEMBER_ID left outer join hsp_object alar4 on ar4.alias_id=alar4.object_id
    inner join hsp_object o5 on o4.object_id=o5.Parent_ID
    left outer join (select * from hsp_alias where aliastbl_id=14) a5 on o5.object_id=a5.MEMBER_ID left outer join hsp_object al5 on a5.alias_id=al5.object_id
    left outer join (select * from hsp_alias where aliastbl_id=50030) ar5 on o5.object_id=ar5.MEMBER_ID left outer join hsp_object alar5 on ar5.alias_id=alar5.object_id
    inner join hsp_object o6 on o5.object_id=o6.Parent_ID
    left outer join (select * from hsp_alias where aliastbl_id=14) a6 on o6.object_id=a6.MEMBER_ID left outer join hsp_object al6 on a6.alias_id=al6.object_id
    left outer join (select * from hsp_alias where aliastbl_id=50030) ar6 on o6.object_id=ar6.MEMBER_ID left outer join hsp_object alar6 on ar6.alias_id=alar6.object_id
    where o1.object_id =(select object_id from hsp_object where object_name='Total Expenditure') and
    LENGTH(o6.object_name)=6
    union all
    select o1.object_name as LVL1, o1.object_name as LVL1_DESC_EN, al1.object_name as LVL1_DESC_AR,
    o2.object_name as LVL2, o2.object_name as LVL2_DESC_EN, al2.object_name as LVL2_DESC_AR,
    o3.object_name as LVL3, al3.object_name as LVL3_DESC_EN, alar3.object_name as LVL3_DESC_AR,
    o4.object_name as LVL4, al4.object_name as LVL4_DESC_EN, alar4.object_name as LVL4_DESC_AR,
    o5.object_name as LVL5, al5.object_name as LVL5_DESC_EN, alar5.object_name as LVL5_DESC_AR,
    o5.object_name as LVL6, al5.object_name as LVL6_DESC_EN, alar5.object_name as LVL6_DESC_AR
    from hsp_object o1
    left outer join (select * from hsp_alias where aliastbl_id=50030) a1 on o1.object_id=a1.MEMBER_ID left outer join hsp_object al1 on a1.alias_id=al1.object_id
    inner join hsp_object o2 on o1.object_id=o2.Parent_ID
    left outer join (select * from hsp_alias where aliastbl_id=50030) a2 on o2.object_id=a2.MEMBER_ID left outer join hsp_object al2 on a2.alias_id=al2.object_id
    inner join hsp_object o3 on o2.object_id=o3.Parent_ID
    left outer join (select * from hsp_alias where aliastbl_id=14) a3 on o3.object_id=a3.MEMBER_ID left outer join hsp_object al3 on a3.alias_id=al3.object_id
    left outer join (select * from hsp_alias where aliastbl_id=50030) ar3 on o3.object_id=ar3.MEMBER_ID left outer join hsp_object alar3 on ar3.alias_id=alar3.object_id
    inner join hsp_object o4 on o3.object_id=o4.Parent_ID
    left outer join (select * from hsp_alias where aliastbl_id=14) a4 on o4.object_id=a4.MEMBER_ID left outer join hsp_object al4 on a4.alias_id=al4.object_id
    left outer join (select * from hsp_alias where aliastbl_id=50030) ar4 on o4.object_id=ar4.MEMBER_ID left outer join hsp_object alar4 on ar4.alias_id=alar4.object_id
    inner join hsp_object o5 on o4.object_id=o5.Parent_ID
    left outer join (select * from hsp_alias where aliastbl_id=14) a5 on o5.object_id=a5.MEMBER_ID left outer join hsp_object al5 on a5.alias_id=al5.object_id
    left outer join (select * from hsp_alias where aliastbl_id=50030) ar5 on o5.object_id=ar5.MEMBER_ID left outer join hsp_object alar5 on ar5.alias_id=alar5.object_id
    where o1.object_id =(select object_id from hsp_object where object_name='Total Expenditure') and
    LENGTH(o5.object_name)=6
    union all
    select o1.object_name as LVL1, o1.object_name as LVL1_DESC_EN, al1.object_name as LVL1_DESC_AR,
    o2.object_name as LVL2, o2.object_name as LVL2_DESC_EN, al2.object_name as LVL2_DESC_AR,
    o3.object_name as LVL3, al3.object_name as LVL3_DESC_EN, alar3.object_name as LVL3_DESC_AR,
    o4.object_name as LVL4, al4.object_name as LVL4_DESC_EN, alar4.object_name as LVL4_DESC_AR,
    o4.object_name as LVL5, al4.object_name as LVL5_DESC_EN, alar4.object_name as LVL5_DESC_AR,
    o4.object_name as LVL6, al4.object_name as LVL6_DESC_EN, alar4.object_name as LVL6_DESC_AR
    from hsp_object o1
    left outer join (select * from hsp_alias where aliastbl_id=50030) a1 on o1.object_id=a1.MEMBER_ID left outer join hsp_object al1 on a1.alias_id=al1.object_id
    inner join hsp_object o2 on o1.object_id=o2.Parent_ID
    left outer join (select * from hsp_alias where aliastbl_id=50030) a2 on o2.object_id=a2.MEMBER_ID left outer join hsp_object al2 on a2.alias_id=al2.object_id
    inner join hsp_object o3 on o2.object_id=o3.Parent_ID
    left outer join (select * from hsp_alias where aliastbl_id=14) a3 on o3.object_id=a3.MEMBER_ID left outer join hsp_object al3 on a3.alias_id=al3.object_id
    left outer join (select * from hsp_alias where aliastbl_id=50030) ar3 on o3.object_id=ar3.MEMBER_ID left outer join hsp_object alar3 on ar3.alias_id=alar3.object_id
    inner join hsp_object o4 on o3.object_id=o4.Parent_ID
    left outer join (select * from hsp_alias where aliastbl_id=14) a4 on o4.object_id=a4.MEMBER_ID left outer join hsp_object al4 on a4.alias_id=al4.object_id
    left outer join (select * from hsp_alias where aliastbl_id=50030) ar4 on o4.object_id=ar4.MEMBER_ID left outer join hsp_object alar4 on ar4.alias_id=alar4.object_id
    where o1.object_id =(select object_id from hsp_object where object_name='Total Expenditure') and
    LENGTH(o4.object_name)=6
    Cheers,
    Alp

  • BW Problem Extracting Custom Hierarchy

    Hello Experts,
    I have built a completely new hierarchy of new custom master data in R3. I then have used BW07 to create a datasource to extract the hierarchy data with no problems.
    I have then created a new infoobject in BW and I have successfully loaded the master data. However when I assign the new Hierarchy datasource it shows the transfer structure with my infobject but with length 0 rather than the correct 8. 
    When I then perform a data load I get error the error "Syntax error in generated program, row 33". Looking at the code it has indeed got a data element defined with length 0.
    What am I doing wrong? Everything seems to be generated, replicated and active. Any help will be greatly appreciated. I cant find anything similar on OSS and I would have thought this was basic functionality.

    I have found the answer to this problem.
    If the data element the hierarchy datasource is based on does not have a domain BW07 will not pick up the length of the field.
    I here by award myself 2 Gold stars

  • Error in extracting 0PROFIT_CTR hierarchy data

    Hi,
    I was trying to extract 0PROFIT_CTR Hierarchy. But it is giving following error msg. So guide me how to solve it.
    Error in the hierarchy structure: see error log
    The node name for ID 00001634 contains invalid characters

    Hello,
    The value for Master data has invalid chars, So please correct it and then try again.
    Thanks
    Chandran

  • Extracting Territory Hierarchy into BW

    All - I am hoping someone may be able to help out with this issue.
    Within the 0CRM_TR info object, the hierarchies are set up to be time-dependent.  This means that they are valid for a specific time.
    When we created our infopackage to load data, all hierarchies are set up to be valid for only 1 month. 
    First question:
    1.  Is there a way to load a hierarchy and have the validitiy period valid until 12/31/9999.
    Also, I attempted to create a generic hierarchy that has validity dates from now until 12/31/9999, the only problem with that is that I cannot figure out how to load it.  The hierarchy does not show up in the infopackage for 0CRM_TR.
    Second Question:
    2.  If we cannot load into a hierarchy that has a valid to date of 12/31/9999, how can we get queries to identify which hierarchy is the valid one.  Currently we created a restricted variable for Territory and its pointing to this month's valid hierarchy.  We do not want to have to update queries on a monthly basis.
    Any help would be appreciated.
    Luis

    Hello,
    I know this is a very late reply, but here is the solution
    a. Implement note 887201 on the CRM side. This would make the infopackage extract the hierarchy valid on a certain date ( infopack execution date) and set its validity to only one day.. Dont Panic!
    b. Make the Hierachy structure in BW time-dependent.( currently the hierachy is time dependent)
    This should solve your problem
    Venkata

  • Extracting 0ind_code hierarchy

    Hello everybody,
    we use 0industry in our sales reports. The master data for that object we get out of the R3. In our CRM system we have a industry hierarchy which is based on 0ind_code and deals with the same data. We want to display this hierarch in the BW. So we use the standard extractor in CRM 0IND_SECTOR_HIER and changed the updating rules in BW so that the hierarchy is part of 0industry (and not of 0ind_code). We can extract the hierarchy without any problems but the mapping of the hierarchy objects of CRM (0ind_code) with 0industry we are using in the BW obviously does not. Does anybody know a way to make this work?

    Hi Marco,
    When it comes to hierarchies, life has become easier with the "new" hierarchy framework as introduced in BW release 7.3. You can use 7.0 data staging technology with transformations and DTPs. In the transformation there are some new hierarchy rule types and on top of that, you can even write routines.
    Most of the mapping is done automatically. If you have a look at your PSA data, then you will normally see what you have to do and whether or not to write a tiny routine (e.g. to map to another InfoObject).
    There are basically 2 cases to determine the Hierarchy Characteristics:
    FIELDNAME is available in hierarchy structure (e.g. G/L account number);
    Only IOBJNM is available in hierarchy structure (e.g. Material Hierarchy).
    In the first case, you can use the transformation rule type Derive Hierarchy Characteristic. In the second case, you can use the transformation rule type Hierarchy Split for NODENAME and a simple ABAP coding for the InfoObject. You have to program any replacement of BCT InfoObjects (e.g. 0MATERIAL by RMATERIAL). You can check the PSA data of segment Hierarchy Nodes to determine all BCT InfoObjects to be replaced.
    More information can be found in the following blog The new SAP NetWeaver BW 7.30 hierarchy framework. Also you can refer to SAP Help:
    SAP Help - Creating a transformation for a hierarchy;
    SAP Help - Examples of a hierarchy transformation.
    Best regards,
    Sander

  • BW Extraction Error_Article Hierarchy

    Hi SAP friends,
    While performing the article hierarchy copy function activity, we got an error.
    BW extraction: Incorrect update of node Y-XXXX
    We used the tcode WMATGRP06N to perform the copy function activity.. This error is getting only for specific nodes.
    Can any one help us in solving this issue.
    Thanks
    Kevin Easaw.

    Hi Kevin,
    Please refer the below notes for reference,
    1771842 - WMATGRP06N - Not all Child Nodes are copied
    1933533 - WMATGRP06N : Reassigning of Nodes in a Time Independent hierarchy
    Thanks and Regards,
    Ramesh D

  • How to extract the hierarchy(in the levels) into BW

    Thanks in advance.
    Edited by: S MB on May 6, 2009 11:13 AM
    Edited by: S MB on May 6, 2009 11:14 AM

    hi,
    You can create the mapping between the hierarchy datasource in BW to the masterdata object.And then creation of infopackeage and extract the data.
    While creating the transfer rules, mapping is to be done to Header and Node i.e, on the top of communication structure you get an option 'Segment' which has dropdown Header/Node. You can map the objects and load the data.
    Let me know if you are expecting the same or any further details.
    Regards,
    Geetha.

  • Creating & Extracting R3 Hierarchy with MCK1

    Hello Expert,
    I need some advice & How tos on creating a General hierarchy with MCK1 and extracting those into BW.
    Is there any other better way to create General hierarhy in R3 and extracting into BW
    Thank you
    Arun

    Hi,
    I have the following need on Hierarchy purpose
    In ECC - transactio OVSV - a product hierarchy is available
    Question : How can we extract this product hierarchy into BI ?
    Following Extractors required a Hierarchies: Name of the hierarchy to extractor the hierarchy.
    0MATERIAL_LGEN_HIER               Material number
    0MATERIAL_LKLS_HIER               Material number
    0MATERIAL_LPRH_HIER               Material number
    0PROD_HIER_LPRH_HIER              Material number
    How can I link the OVSV  product hierarchy to a Hierarchies: Name of the hierarchy - in order to be able to extract it into BI ?

  • Extracting Article hierarchy

    Hi team,
    An Article hierarchy is creted in the R/3 side.Can we extract the hieharchy structure into the BW side,so that there is no need of creating the hierarchy structure in the BW again.
    If possible,please let me know the process in detail.
    Thanks & Regards,
    Lalitha
    09884412098

    Refer to Note 1057019

  • Error when trying to extract WBS Hierarchy

    Any help appreciated.
    Using BI7, when trying to extract the WBS Hierarchy from an R3 source system using DataSource 0WBS_ELEMT_WBSH_HIER during the extraction process the load fails with error "The level of the node ID 00041234 does not suit the lev of higher lev node"
    The long text talks about Parent and Child nodes. I believe the numbers being stated, 00041234 etc refer to the Technical IDs shown within the Hierarchy Display within BI. I've checked table PRPS in Project Systems and I assumed the numbers represented WBS Elements - but they do not match when checking the descriptions. (BI to R3)
    Checked on OSS and note 339453 may apply but Im not sure what to check / how to replicate. Based on the errors being reported in BI how can I identify the error in the R3 source system?
    Many Thanks
    Lee

    Closed as no responses.

  • Records missing while extracting 0account hierarchy

    Bi experts,
    Two records have been added  by the business to a node in the 0account hierarchy , which can be seen in transaction /nKAH3.
    While extracting the MAE  0account hierarchy using a full InfoPackage no errors occur, but when checking the hierarchy in BW both records are missing. The activate checkbox has been selected in the InfoPackage.
    Has anyone  experienced something simular in the past?
    Regards,

    Hi,
    If once you loaded the Hierarchy, then do the Change run for it.
    If the loading was done manually then go to
    RSA1 --> Tools --> Apply Hierarchy/Attribute Change Run -- > Click on Hierarchy List Puch Button
    Then select the your hierarchy loading and click on save and then click on Execute Hierarchy/Attribute Change Run.
    Hope this will solve your problem
    With Regards
    ARUN
    Edited by: Arun Aravapalli on Mar 16, 2010 11:59 PM

  • How to Extract the Hierarchy Set from R/3 into BW

    Hi all,
         A Hierarchy Set Z_XX has been created for 0STKEYFIG InfoObject with the  
    following details in R/3 for :
         Table: CCSS
         Field:  STAGR (Statistical Key Figure).
      I have tried to Refresh the Hierarchies with ' Available Hierarchies from OLTP'   button on 'Hierarchy Selection' tab from Hierarchy InfoPackage, but I didn't find this new Hierarchy set.
    How to bring this Set in to BW? Does it require any other process in R/3 side, PLEASE ?
    Thanks.

    Hi Voodi,
       When I clicked 'Where Used' button then 'Display Set : Subordinate Sets' displayed with the following info.
    No.           Set Id
    001     Z_36_STAT_CDVHSMSOLD     TOTAL HSM SOLD-COMBINED
    002     Z_36_STAT_CDVKGSCONS     Kilograms of Rollstock Consumed
    003     Z_36_STAT_CDVLBSCONS     Pounds of Rollstock Consumed
    004     Z_36_STAT_CDVMSFSOLD     MSF SOLD - Combined
    Thanks.

  • Sub Ledger Extraction from R/3

    Hi
    I have to extract Sub Ledger from R/3 into BI.
    in R/3 if u go to transaction f.23 or u go thru menu
    SAP Menu->Accounting->Financial Accounting ->Accounts Recievable->Information System ->Reports for Accounts Receivable Accounting ->Customer Balances ->S_ALR_87012172 - Customer Balances in Local Currency
    when we run this report you will get "Customer " in 3rd column ,
    now I am being told that this is sub ledger.
    I want to know how can i extract it from R/3 and store in BI.
    There is same report in AP also
    SAP menu ->Accounting ->Financial Accounting ->Accounts Payable >Information System ->Reports for Accounts Payable Accounting ->Vendor Balances ->S_ALR_87012082 - Vendor Balances in Local Currency .
    Here third column is vendor (or subledger ???)
    I have not much idea on Sub ledger
    Thanks

    Hi,
    Financial accounting is dual entry system where general ledger (also known as nominal ledger) is the main accounting record book this general ledger is supported by subsidiary ledgers (account receivable and account payable). FI extraction is also known as coupled extraction (as general ledgr is coupled with account receivable and payble). So I suppose you have been asked to work on account receivable 0FI_AR_4) and payable (0FI_PA_4) for more information please see the link.
    http://help.sap.com/saphelp_nw70/helpdata/en/af/16533bbb15b762e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/3f/fbf83a0dfa5102e10000000a114084/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/bc/02f93abb013b0de10000000a114084/content.htm
    Dev

Maybe you are looking for