How to load 3.x hierarchy data source from a certain level ?

Hi all,
I have an old 3.x hierarchy data souce which has a structure like below :
   Level 0 :  root node
              Level 1:  Product Category
                  Level 2: Product Line
                      Level 3: Product
                          Level 4 : Product Version
each level has independent infoobject for it.
The hierarchy was initially constructed for the infoobject on the level 4 'Product Version'.
Now here comes anther requriement, we also want to have a hierarchy for 'Product' and try to reuse the datasource.
So the question is , is it possible to extract from the same data source, while just update the hierarchy for 'Product ' starting from the level 3 (up to level 0)?
PS: i can't migrate the data souce to 7.X, because the source system doesn't support.
I hope I made my question clearly.
Really apprericated that you can give me a hint.
Thanks,
Amon

Finally I solved this problem myself.
there are many mays if you want to realize the requirement, only if you change your way of thinking, don't be stuck your mind with the thought we have to use the original data source coming from the source system.
  I'd like to introduce 2 ways I am thinking of:
1. use the SAP standard program 'Z_SAP_HIERARCHY_DOWNLOAD' to save the hierarchy as a .csv file, then you can refer to http://scn.sap.com/community/data-warehousing/bw/blog/2012/01/08/bw-730-hierarchy-loading-becomes-easier-with-the-help-of-new-framework
however this didn't work for me, because the program might be outdated in my working environment BW7.4, though I did some bugfix for this program , the output file seems with some errors.
2. since the hierarchy for the 4th level infoobject has been successfully updated in my case, we can use it as the data provider directly . Here is the general dataflow : 4th level infoobject hierarchy -> DSO -> target infoobject hierarchy (3rd level infoobject) .
for this DSO strucure, you should also refer to the link above, the structure is just like the EXCEL file provided. but you should be aware of adding external characteristics in the data fields of your DSO if there is external characteristics in your hierarchy.
in the transformation of 'source infoobject hierarchy' , you should select 'hierarchy (one segment)' as the subtype of hierarchy.
in the transoformation of 'DSO -> target infoobject' , you should map the source and target carefully , especially for the segment 'Structure' , you should make sure the field 0H_HIERNODE and the external chars. have proper value filled.

Similar Messages

  • How to get group when the data source from system instead of UME database

    Hig guys,
    How to get group when the data source comes from backend system instead of UME database?
    I tried to use
    IUMPrincipal RefGroup = WPUMFactory.getGroupFactory().getGroup(groupName);
    But I was not able to get the group. But in "UserAdministrator", I can find this groupName.
    Which kind of API can I use?
    Thanks in advance!
    Regards,
    Liying
    Message was edited by:
            Liying Wang

    Ok,
    try this:
    com.sapportals.portal.security.usermanagement.IGroupFactory ep5GroupFactory = userManagementService.getGroupFactory();
    IGroupFactory groupFactory = UMFactory.getGroupFactory();
    com.sap.security.api.IGroup group = groupFactory.getGroupByUniqueName(groupName);
    IUMPrincipal ep5Principal = ep5GroupFactory.getEP5Group(group);
    This should do the trick,
    Romano
    PS: and thanks for the stars!

  • Hierarchy Data Source for CO_PA

    Hi
    Please list me the steps to create Hierarchy Data Source for CO_PA
     Create Hierarchy Data Source Profitability Analysis KEB0  ???????
    Thanks

    Hi Roberto,
    As  you said
    IMG activity Create Hierarchy DataSource (transaction KEB1) in the IMG under Data Transfer into the SAP Business Information Warehouse -> Setting for Application-Specific DataSources (PI) ->Profitability Analysis"
    Created Data Source for Hirerachy....
    When i checked the Data SOurce in RSA£
    Following Error Message is displayed
    Error 6 in function module RSS_PROGRAM_GENERATE
    Could you asist me on how to proceed and what is ‘vdh1n’  transaction is used for.
    How can i check the hirerachy of 0Customer in R/3
    Thanks

  • How to use Sql data source from Essbase 9.3.1

    Hi All,
    How to use Sql data source from Essbase 9.3.1 for ASO cube.Are there any rules and limitations for that.
    Do we need to create any data source connection for this purpose. If there please let me know the dteps to create that connection.
    Regards

    Yes you need to create one DSN connection and you have to use DSN name and login details at the time of building/loading of the outline.
    Create DSN
    Goto Administrative tools -> DataSources (ODBC) and add the DSN name and specify the Server name of SQL and login details and database.
    goto data prep editor and click on File Menu and Click on Open SQL option Next window opens.
    There you have to enter the details of the DSN connection and SQL query to build/load.
    Thanks,
    Prathap

  • Power view couldn't load the model or data source because the data source type is not supported

    Hi,
    I have SQL 2012 standard edition in my local. I have developed SSAS & deployed in local. I have been asked to develop power view report in excel 2013 using this SSAS. But when I tried to do in Excel 2013 professional Plus, I am getting below error:
    Power view couldn't load the model or data source because the data source type is not supported.
    Does power view is supported in standard edition of SQL or it requires Business/Enterprise edition of SQL server?
    Thanks in advance

    What type of SSAS install are you using?
    PowerView in Excel 2013 currently only supports Tabular data sources.
    Only PowerView in Sharepoint 2013 supports both Tabular and Multi-Dim data sources. (provided you have the required Sharepoint and SQL updates installed)
    http://darren.gosbell.com - please mark correct answers

  • For a function module how can I find its assigned data source name?

    Hi BW Gurus,
    If i know the data source name then the  assigned fn. module/Table/Infoset I could find from RSO2. But for function module How do I know its assigned data source name?
    Thanks a lot for the response.
    Regards
    Ven

    Hi Ram,
    In SE16, enter the table name as ROOSOURCE and in contents choose field EXTRACTOR for selection and enter the name of the function module.
    It will return the list of datasources where the function module has been used.
    Best Regards,
    Ankit Agrawal

  • How To change UME Data source from Abap to Java.

    Hi Experts,
    Can any one give me Detailed Steps of how to Migrate from UME Data Source from Abap to Java, as the Ume Data Source is initally configured for Abap.
    Regards,
    Siva

    Siva,
    Please search before you post a question.
    This has been discussed many a times in here. Please refer to this [thread|To change ABAP UME database to Portal database;.
    Good Luck!
    Sandeep Tudumu

  • How to delete XML Dat Source from BW System

    Hello All,
    How can i delete SOAP XML data source(6A *) from BW System.
    Do I need to delte the generated RFC function module for the data source ??
    Cheers
    POPS

    Hi Sumit Kalyan
    Since your are using process order, I would like to know whether you are using process management function or not.
    (Especially your are following GMP scenario ? This guide line is basically used pharmaceutical industry.
    If you work with GMP scenario, before your are archiving your process order, you need to create electronic batch creation and archiving.
    Then you can archive your process order and delete it completely from your system.
    You can check whether your are using GMP scenario or not in your process order type.
    (T-CD COR4).
    If you are not. All you need to do is set deletion flag and deletion indicator to your process order and then archive your process order (you can use program PRARCHP1) by using archiving object PR_ORDER (you can call this object from t-cd sara or COAC).
    I hope this information help you.
    best regards
    Keiji

  • Replication of Data Source from APO to External BI

    Hi Experts,
    I want to create a data source on DP/SNP planning area & replicate it directly to External BI instead of APO BW. Is it possible to replicate data source from APO to directly External BI? If yes then How?
    Regards
    Sujay

    Hi Sujay,
          If you would like to replciate a particular Data source then Go to BW -> TCode RSDS ( Data source Repository)
    Data Source = ( specify which you would like to replciate )
    Source system = Specify source system name.
    Go to Menu option Data Source -> Replicate Data source or you can use CTRL + SHIFT + F2
    These steps will replicate only the data source which you would like to replicate.
    Thanks,
    Siva.

  • Access odbc data sources from PL/SQL

    Dear All,
    I would like to know is there any way where i could access odbc data sources from pl/sql (i.e i would like to insert, update records into MSAccess table from pl/sql procedures, triggers). Would appreciate any help regarding this.

    The only way I know of how is to write and external function library and use that to access ODBC datasource ...if someone else knows something else I would be interesting in hearing about that also.

  • Error in generating data source from planning area

    Hi experts! I have an error while making data source from planning area:
    after the screen when i fill in the data source name (Window name: Generate export data source) i have the SYNTAX_ERROR Message:
    Syntax error in program /sapapo/cl_im_extract_ex======cp
    the main reason: the type /BI0/9A0IVWKNDGD is unknown
    what you can suggest to solve this problem?
    Thanks.

    Dear Andrey Kudriavzev,
    The reason is the program is trying to use the datatype '/BI0/9A0IVWKNDGD' which does not exist in the system.
    Go SE11 to cross check if it exists. Check dataelement radiobutton -> enter /BI0/9A0IVWKNDGD -> Choose display option. You would need to create this datatype in the system. I feel there must some OSS Note related to this.
    Search for an OSS Note. Raise one if you cannot find the relevant notes.
    Regards,
    Naveen.

  • Transporting migrated data sources from BID to BIQ

    All,
           I have a 3.x data source which I have migrated to 7.x. Now I want to transport this from BI-D to BI-Q. when I replicate the data source in BI-Q this is likely to be 3.x data source. Will it be overwritten when I transport the data source from BI-D to BI-Q. Is there any thing that I will have to do before moving the transport. Please advise

    If you transport the DataSource on R3/ECC from development to QA that's connected to your BW QA, and then transport the DataSource from your BW development to QA environment, there is no need to replicate the DataSource. It may, however, come into your BW QA environment in a deactivated state. If that happens, just activate it in the BW QA environment using the SAP delivered ABAP program RSDS_DATASOURCE_ACTIVATE_ALL.

  • How to retrieve start and end date values from sharepoint 2013

    Hi,
    How to retrieve start and end date values from new event form of calendar in SharePoint foundation2013
    Thanks
    Gowri Balaguru

    Hi Srini
    Yes i need to have parallel flow for both and in the cube where my reporting will be on monthly basis i need to read these 2 master data and get the required attributes ( considering last/first day of that month as per the requirement).......but i am just wondering this is common scenario....while there are so many threads written for populating 0employee from 0person......don't they have such requirement.....
    Thanks
    Tripple k

  • TS2755 how do I see which apps are downloaded from a certain device when you have multiple devices

    how do I see which apps are downloaded from a certain device when you have multiple devices

    you can't.

  • Building a custom hierarchy data source extractor

    Hi SDN,
    The ECC side has given us a Z table which contains a hierarchy. I will write a function module to extract the hierarchy and pass on to BI.
    Can someone assist with steps needed to accomplish this? Obviously FM, Z table and view over it, etc are custom. What should the function module generate and fill what to load into BI? How do you generate a data source for such a custom situation?
    Please advise.
    Thanks.

    Hi Shahid,
    Only way you can extract is dumping the data or hierarchy  into flat file and loading into BI. Download the data into flat file and then you have upload the same. You cannot create Generic datasource for Hierarchy.
    If you have your data in Flat structure in the table then this same code may help you.
    report zbiw_glacc_hier line-size 250.
    data :
         begin of itab occurs 0,
          seg(5),
          segname(30),
          spu(5),
          spuname(30),
          bu(5),
          buname(30),
          pu(15),
          puname(30),
         cust(8),
         custname(60),
          end of itab.
    data : itab_all like itab occurs 0 with header line,
             itab_root like itab occurs 0 with header line.
    data : begin of i_hier occurs 0.    " BIW Structure to hold hirearchy
           INCLUDE STRUCTURE E1RSHND.
    data:   nodeid like e1rshnd-nodeid,           "NODE ID
            infoobject like e1rshnd-infoobject,   "infoobjectNAME
            nodename like e1rshnd-nodename,       "nodename year
            link(5), "   LIKE E1RSHND-LINK,              "linkname
            parentid like e1rshnd-parentid.       "parent id
    data:   leafto(32),                           "Interval - to
            leaffrom(32).                         "Interval - from
            include structure e1rsrlt.
            include structure rstxtsml.
    *DATA : PARENT LIKE E1RSHND-NODENAME.
    data : end of i_hier.
    data : sr(8) type n value '00000000'.
    data : begin of itab1 occurs 0, " Node Level1 of Hierarchy
           z_ah_level1 like itab-seg,
           z_ah_level2 like itab-spu,
           z_ah_desc_level2 like itab-spuname,
           end of itab1.
    data : begin of itab2 occurs 0, " Node Level1 of Hierarchy
           z_ah_level2 like itab-spu,
           z_ah_level3 like itab-bu,
           z_ah_desc_level3 like itab-buname,
           end of itab2.
    data : begin of itab3 occurs 0,   " Node Level3 of Hierarchy
           z_ah_level3 like itab-bu,
           z_ah_level4 like itab-pu,
           z_ah_desc_level4 like itab-puname,
           end of itab3.
    data wa like itab.
    data : begin of itab_first occurs 0, " Node Level2 of Hierarchy
           z_ah_level1 like ITAB-SEG,
           end of itab_first.
    data : begin of itab_sec occurs 0, " Node Level2 of Hierarchy
           z_ah_level2 like ITAB-SPU,
           end of itab_sec.
    data : begin of itab_third occurs 0, " Node Level2 of Hierarchy
           z_ah_level3 like ITAB-BU,
           end of itab_third.
    data : begin of i_download occurs 0,
           record(250),
           end of i_download.
    data : v_pid like e1rshnd-nodeid,
           v_line(250).
    start-of-selection.
    CALL FUNCTION 'UPLOAD'
    EXPORTING
      CODEPAGE                      = ' '
       FILENAME                      = 'C:/'
       FILETYPE                      = 'DAT'
      TABLES
        DATA_TAB                      = itab .
    IF SY-SUBRC  0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    itab_all[] = itab[].
      itab_root[] = itab_all[].
      sort itab_all by seg spu bu pu .
      sort itab_root by seg.
      delete adjacent duplicates from itab_root comparing seg.
    Appending Root level of node
    sr = 00000001.
    move : sr to i_hier-nodeid,
           '0HIER_NODE' to i_hier-infoobject,
           'SHA HIERARCHY' to i_hier-nodename,
           '00000000' to i_hier-parentid,
           'EN' to i_hier-langu,
           'SHA HIERARCHY' to i_hier-txtmd.
    append i_hier.
    clear i_hier.
    v_pid  = '00000000'.
    loop at itab_root.
    if itab_root-seg = itab_root-spu.
      delete itab_root.
    endif.
    endloop.
      loop at itab_root.
    Appending first level of the node
        sr = sr + 1.
        move : sr to i_hier-nodeid,
              '0HIER_NODE' to i_hier-infoobject,
               itab_root-seg to i_hier-nodename,
               v_pid to i_hier-parentid,
              'EN' to i_hier-langu,
              itab_root-segname to i_hier-txtsh,
              itab_root-segname to i_hier-txtmd,
              itab_root-segname to i_hier-TXTLG.
        append i_hier.
        clear i_hier.
      endloop.
      loop at itab_all.
        move itab_all to wa.
    Separation of level 3 of the node
        at new spu.
          if not wa-spu is initial.
            move : wa-seg to itab1-z_ah_level1,
                   wa-spu to itab1-z_ah_level2,
                   wa-spuname to itab1-z_ah_desc_level2.
            append itab1.
            clear itab1.
          endif.
        endat.
    Separation of level 3 of the node
        at new bu.
          if not wa-bu is initial.
            move : wa-spu to itab2-z_ah_level2,
                   wa-bu to itab2-z_ah_level3,
                   wa-buname to itab2-z_ah_desc_level3.
            append itab2.
            clear itab2.
          endif.
        endat.
    Separation of level 2 of the node
        at new pu.
          if not wa-pu  is initial.
            move : wa-bu to itab3-z_ah_level3,
                   wa-pu to itab3-z_ah_level4,
                   wa-puname to itab3-z_ah_desc_level4.
            append itab3.
            clear itab3.
          endif.
        endat.
        clear wa.
      endloop.
      sort itab1 by z_ah_level1 z_ah_level2.
      delete adjacent duplicates from itab1 comparing z_ah_level1
                                                  z_ah_level2.
      sort itab2 by z_ah_level2 z_ah_level3.
      delete adjacent duplicates from itab2 comparing z_ah_level2
                                                      z_ah_level3.
      sort itab3 by z_ah_level3 z_ah_level4.
      delete adjacent duplicates from itab3 comparing z_ah_level3
                                                      z_ah_level4.
    loop at itab_root.
    move itab_root-SEG to itab_first-z_ah_level1.
    append itab_first.
    clear itab_first.
    endloop.
    itab_sec[] = itab2[].
    itab_third[] = itab3[].
    sort itab_first by z_ah_level1.
    delete adjacent duplicates from itab_first.
    sort itab_sec by z_ah_level2.
    delete adjacent duplicates from itab_sec.
    sort itab_third by z_ah_level3.
    delete adjacent duplicates from itab_third.
    data : indx like sy-tabix.
    clear indx.
    loop at itab_first.
    indx = sy-tabix.
    read table itab_sec with key z_ah_level2 = itab_first-z_ah_level1
                            binary search.
    if sy-subrc eq 0.
    delete itab_first index indx.
    endif.
    endloop.
    clear indx.
    loop at itab_sec.
    indx = sy-tabix.
    read table itab_third with  key z_ah_level3 = itab_sec-z_ah_level2
                            binary search.
    if sy-subrc eq 0.
    delete itab_sec index indx.
    endif.
    endloop.
    clear indx.
    clear indx.
    loop at itab1.
    If itab1-z_ah_level1 = itab1-z_ah_level2.
      delete itab1.
    endif.
    endloop.
    loop at itab2.
    If itab2-z_ah_level2 = itab2-z_ah_level3.
      delete itab2.
    endif.
    endloop.
    loop at itab3.
    If itab3-z_ah_level3 = itab3-z_ah_level4.
      delete itab3.
    endif.
    endloop.
    Appending First level node to Hierarchy table
      loop at itab_root.
        loop at itab1 where z_ah_level1 = itab_root-SEG.
          read table i_hier with key nodename = itab1-z_ah_level2.
           if sy-subrc ne 0.
          read table i_hier with key nodename = itab1-z_ah_level1.
          if sy-subrc eq 0.
          move i_hier-nodeid to i_hier-parentid.
    Appending First level node to Hierarchy table
          sr = sr + 1.
          move  : sr to i_hier-nodeid,
                  '0HIER_NODE' to i_hier-infoobject,
                  itab1-z_ah_level2 to i_hier-nodename,
                  'EN' to i_hier-langu,
                  itab1-z_ah_desc_level2 to i_hier-txtsh,
                  itab1-z_ah_desc_level2 to i_hier-txtmd,
                  itab1-z_ah_desc_level2 to i_hier-txtlg.
          append i_hier.
          clear i_hier.
          endif.
          endif.
        endloop.
      endloop.
    Appending second level node to Hierarchy table
      loop at itab_sec.
        loop at itab2 where z_ah_level2 = itab_sec-z_ah_level2.
          read table i_hier with key nodename = itab2-z_ah_level3.
           if sy-subrc ne 0.
          read table i_hier with key nodename = itab2-z_ah_level2.
           if sy-subrc eq 0.
          move i_hier-nodeid to i_hier-parentid.
    Appending second level node to Hierarchy table
          sr = sr + 1.
          move : sr to i_hier-nodeid,
                '0HIER_NODE' to i_hier-infoobject,
                itab2-z_ah_level3 to i_hier-nodename,
                'EN' to i_hier-langu,
                itab2-z_ah_desc_level3  to i_hier-txtsh,
                itab2-z_ah_desc_level3 to i_hier-txtmd,
                itab2-z_ah_desc_level3 to i_hier-txtlg.
          append i_hier.
          clear i_hier.
         endif.
         endif.
        endloop.
      endloop.
    Appending third level node to Hierarchy table
      loop at itab_third.
        loop at itab3 where z_ah_level3 = itab_third-z_ah_level3.
          read table i_hier with key nodename = itab3-z_ah_level4.
        if sy-subrc ne 0.
          read table i_hier with key nodename = itab3-z_ah_level3.
           if sy-subrc eq 0.
          move i_hier-nodeid to i_hier-parentid.
    Appending third level node to Hierarchy table
          sr = sr + 1.
          move : sr to i_hier-nodeid,
               'ZGL_AC_CD' to i_hier-infoobject,
                '0GL_ACCOUNT' to i_hier-infoobject,
                itab3-z_ah_level4 to i_hier-nodename,
                'EN' to i_hier-langu,
                itab3-z_ah_desc_level4 to i_hier-txtsh,
                itab3-z_ah_desc_level4 to i_hier-txtmd,
                itab3-z_ah_desc_level4 to i_hier-txtlg.
          append i_hier.
          clear i_hier.
          endif.
            endif.
        endloop.
      endloop.
      loop at i_hier.
        concatenate i_hier-nodeid i_hier-infoobject i_hier-nodename
                    i_hier-link i_hier-parentid i_hier-leafto
                    i_hier-leaffrom i_hier-langu i_hier-txtsh
                    i_hier-txtmd i_hier-txtlg into v_line
                    separated by ','.
        move  v_line to i_download-record.
        append i_download.
        write : / i_hier.
      endloop.
      perform f_download.
    **&      Form  f_download
          text
    -->  p1        text
    <--  p2        text
    form f_download.
      call function 'DOWNLOAD'
       exporting
      BIN_FILESIZE                  = ' '
      CODEPAGE                      = ' '
      FILENAME                      = ' '
          filetype                      = 'DAT'
      ITEM                          = ' '
      MODE                          = ' '
      WK1_N_FORMAT                  = ' '
      WK1_N_SIZE                    = ' '
      WK1_T_FORMAT                  = ' '
      WK1_T_SIZE                    = ' '
      FILEMASK_MASK                 = ' '
      FILEMASK_TEXT                 = ' '
      FILETYPE_NO_CHANGE            = ' '
      FILEMASK_ALL                  = ' '
      FILETYPE_NO_SHOW              = ' '
      SILENT                        = 'S'
      COL_SELECT                    = ' '
      COL_SELECTMASK                = ' '
      NO_AUTH_CHECK                 = ' '
    IMPORTING
      ACT_FILENAME                  =
      ACT_FILETYPE                  =
      FILESIZE                      =
      CANCEL                        =
        tables
          data_tab                      = i_download
      FIELDNAMES                    =
    EXCEPTIONS
      INVALID_FILESIZE              = 1
      INVALID_TABLE_WIDTH           = 2
      INVALID_TYPE                  = 3
      NO_BATCH                      = 4
      UNKNOWN_ERROR                 = 5
      GUI_REFUSE_FILETRANSFER       = 6
      CUSTOMER_ERROR                = 7
      OTHERS                        = 8
      if sy-subrc  0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    " f_download
    this code may need modification as your requirement and this may be the optimized one.
    First you have to read data from you Z-table into internal table then need to separate a each node level.
    hope this helps.
    There is PDF article on this. Good Luck.
    Regards
    Satish Arra
    Edited by: Satish Arra on Feb 11, 2009 1:45 AM

Maybe you are looking for

  • Is there a way to combine the best of slideshow and tooltip widgets?

    I am trying to produce a sliding menu similar to the "Now Playing" movies listed on this website : http://themoviehouse.com/    where you can mouse over and a box pops up and stays up so that you can click links within the box. The catch is that I ne

  • Loop issue

    Ok, i've been trying since like 2 days ago to solve this problem, but i havent been able to do so. this is the error i get: what is your name: neo Hello neo Do you want to go first? (1)Yes, (2)No 1 the number of marbles is: 42 How many marbles you wa

  • Substitution Variable in Security Filter

    Hi, my filter looks like below. Write : @idesc("Accounts"),Oct,"07 10 + 2",@idesc("SiteName") here 07 10 + 2 is the version name which am using. the same version is used in so many security filters. i want to replace this by the substitution variable

  • VENDOR CHANGES RECORD

    Hi Experts, I want to make the zreport of vendor changes record, which table should I refer. Kindly suggest. Regards GR

  • Java Older Version not Working

    I have a web base application that requires an older version of Java to run. Java 6.18. It will not run on a newer version of Java. Cannot get firefox beta to use the older version a Java 6.18.