Hierarchial Data Retrieval

Hi,
Following is the DDL and DML im Using.
create table test_connect_by (
  parent     number,
  child      number,
  constraint uq_tcb unique (child)
insert into test_connect_by values ( 5, 2);
insert into test_connect_by values ( 5, 3);
insert into test_connect_by values (18,11);
insert into test_connect_by values (18, 7);
insert into test_connect_by values (17, 9);
insert into test_connect_by values (17, 8);
insert into test_connect_by values (26,13);
insert into test_connect_by values (26, 1);
insert into test_connect_by values (26,12);
insert into test_connect_by values (15,10);
insert into test_connect_by values (15, 5);
insert into test_connect_by values (38,15);
insert into test_connect_by values (38,17);
insert into test_connect_by values (38, 6);
insert into test_connect_by values (null, 38);
insert into test_connect_by values (null, 26);
insert into test_connect_by values (null, 18);
Commit;
select lpad(' ',2*(level)) || to_char(child) s
  from test_connect_by
  start with child =10
  connect by prior parent = child;In the above query i have used connect by clause to retrive data in bottom up order.
I want this query to be rewritten using joins ,since i have netezza database which doesn't support connect by clause.
Thanks for ur help

Hi,
Thanks for posting the CREATE TABLE and INSERT statements; that's very helpful!
It's going to be very difficult (if not impossible) to get the exact same output that CONNECT BY provides without using CONNECT BY.
Here's one way to get the exact same results as your CONNECT BY query:
WITH     horizontal     AS
     SELECT     l1.child     || '/' ||
          l2.child     || '/' ||
          l3.child     || '/' ||
          l4.child          AS path
     FROM          test_connect_by     l1
     LEFT OUTER JOIN     test_connect_by     l2  ON     l1.parent = l2.child
     LEFT OUTER JOIN     test_connect_by     l3  ON     l2.parent = l3.child
     LEFT OUTER JOIN     test_connect_by     l4  ON     l3.parent = l4.child
     WHERE     l1.child     IN (10)     -- Corresponds to START WITH
,     cntr     AS
     SELECT     ROWNUM     AS n
     FROM     test_connect_by
     WHERE     ROWNUM     <= 4
,     vertical     AS
     SELECT       h.path
     ,       LPAD ( ' '
                 , 2 * c.n
           ||  REGEXP_SUBSTR ( h.path
                    , '[^/]+'
                    , 1
                    , c.n
                    )          AS s
     FROM          horizontal     h
     CROSS JOIN     cntr          c
SELECT       s
FROM       vertical
WHERE       LTRIM (s)     IS NOT NULL
ORDER BY  path
,       s          DESC
;This allows you to find the ancestry of multiple nodes in the same query.
As you can see, it assumes we know an upper bound to the number of levels in the hierarchy. In the first sub-query, horizontal, we hard-code that many copies of the original table in a self-join. Your sample data had (at most) four levels, so I self-joined 4 copies of the test_connect_by table. I could have done 5, or 6, or 56, but whatever number is chosen, it has to be hard-coded.
The rest of the query un-pivots the result set of horizontal into a vertical format, exactly like that produced by your original CONNECT BY query. If you could live with a different format, it could be simpler. For example, horizontal alone tells us everything about the ancestry of the given nodes. That data could easily (more easily, in fact) be presented as separate columns showing the parents, grandparents, ... of the given nodes.
I suggest not trying to mimic CONNECT BY exatly, either in the kind of output you expect, or in how the data is stored.
The Adjacency Model that you used, where every row has a pointer to an adjacent node (its parent) is just one way to model a tree in a relational database. This model works well with recursion. Does Netezza have any recursive capabilities, such as recursive WITH clause, or user-defined functions?
Another way to modeal a tree is what I call the Lineage Model , where every row contains its complete ancestry, like this
INSERT INTO lineage (child, lineage) VALUES (38, '38');
INSERT INTO lineage (child, lineage) VALUES (15, '38,15');
INSERT INTO lineage (child, lineage) VALUES (10, '38,15,10');
INSERT INTO lineage (child, lineage) VALUES ( 5, '38,15,5');
INSERT INTO lineage (child, lineage) VALUES ( 2, '38,15,5,2');
...Another way to model a tree is the Nested Sets approach, where every row has a pair of numbers that indicates which rows are its descendants:
INSERT INTO nested_sets (child, from_n, to_n) VALUES (38,  1, 20);
INSERT INTO nested_sets (child, from_n, to_n) VALUES (15,  2, 11);
INSERT INTO nested_sets (child, from_n, to_n) VALUES (10,  3,  4);
INSERT INTO nested_sets (child, from_n, to_n) VALUES ( 5,  5, 10);
INSERT INTO nested_sets (child, from_n, to_n) VALUES ( 2,  6,  7);
...If X is a descendant of Y, then X's from_n and to_n will both be between Y's from_n and to_n.
You might want to think about what kinds of operations you'll need to do on the tree, and what kinds iof output would be satifactory, and then decide on the best data model to achieve those ends.

Similar Messages

  • Data retrieval after EM closed, bug?

    Hello.
    I think TopLink is retrieving data after EM has been closed in the case
    below, and I'm not sure if this behavior is correct.
    CASE: (Steps 1 to 4 and follows)
    STEP 1.- I'm using a recursive table (most probably the same applies for
    non-recursive tables):
    create table "SA"."RECURSIVA" (
    PK int primary key not null,
    DATO varchar(10),
    PADRE int references RECURSIVA
    INSERT INTO "SA"."RECURSIVA" (PK,DATO,PADRE) VALUES (0,'Raiz',null);
    INSERT INTO "SA"."RECURSIVA" (PK,DATO,PADRE) VALUES (1,'n1',0);
    INSERT INTO "SA"."RECURSIVA" (PK,DATO,PADRE) VALUES (2,'n2',1);
    INSERT INTO "SA"."RECURSIVA" (PK,DATO,PADRE) VALUES (3,'n3',2);
    INSERT INTO "SA"."RECURSIVA" (PK,DATO,PADRE) VALUES (4,'n4',3);
    INSERT INTO "SA"."RECURSIVA" (PK,DATO,PADRE) VALUES (5,'n5',4);
    INSERT INTO "SA"."RECURSIVA" (PK,DATO,PADRE) VALUES (6,'n6',5);
    INSERT INTO "SA"."RECURSIVA" (PK,DATO,PADRE) VALUES (7,'n7',6);
    STEP 2.- This is the entity (please note+ the LAZY fetch type):
    @Entity
    @Table(name = "RECURSIVA")
    public class Recursiva implements Serializable {
    @Id
    @Column(name = "PK", nullable = false)
    private Integer pk;
    @Column(name = "DATO")
    private String dato;
    @OneToMany(mappedBy = "padre")
    private Collection<Recursiva> recursivaCollection;
    @JoinColumn(name = "PADRE", referencedColumnName = "PK")
    @ManyToOne(fetch=FetchType.LAZY)
    private Recursiva padre;
    STEP 3.- This is the data retrieval code (please note+ EntityManager is closed
    before accesing data):
    EntityManagerFactory emf =
    Persistence.createEntityManagerFactory("mijpa");;
    EntityManager em = emf.createEntityManager();
    Recursiva rc = null;
    rc = em.find(Recursiva.class, 7);
    em.close();
    while (rc != null) {
    System.out.println(rc.getDato());
    rc = rc.getPadre();
    emf.close();
    STEP 4.- Results:
    n7
    n6
    n5
    n4
    n3
    n2
    n1
    Raiz
    QUESTIONS: If em is closed right after the leaf entity is retrieved:
    A. How is it possible that all of the leaf ancestors up to the root are
    retrieved?
    B. Is toplink accessing the database after em is closed or simply the
    full hierarchy is eagerly loaded at the very beginning?
    C. Is this correct, or is it a bug?
    NOTE: openjpa prints n7 and n6, as I would have expected.
    I would appreciate your comments, specially if you think this is a bug,
    in order to report it.
    Thanks.
    Antonio.
    Tested with:
    * [Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))]
    * [derby 10.4.1.3]
    * [java hotspot 1.6.0_06-b02]
    * [ubuntu 8.04.1 2.6.24-19-generic]

    Issued as
    https://glassfish.dev.java.net/issues/show_bug.cgi?id=5782

  • I have hierarchy data in R/3 side how will i load that data from R/3 to BW

    Hi all,
    i have my hierarchy data in the R/3 side how will i load that data from  R/3 to BW side
    Regard
    Kiran Kumar

    Hi Kiran,
    Here is the procedure:
    1.      In the Data Warehousing Workbench under Modeling, select the InfoSource tree.
    2.      Select the InfoSource (with direct update) for the InfoObject, to which you want to load the hierarchy.
    3.      Choose Additional Functions® Create Transfer Rules from the context menu of the hierarchy table object for the InfoObject. The Assign Source System dialog box appears.
    4.      Select the source system from which the hierarchy is to be loaded. The InfoSource maintenance screen appears.
    ○       If the DataSource only supports the transfer method IDoc, then only the transfer structure is displayed (tab page DataSource/Transfer Structure).
    ○       If the DataSource also supports transfer method PSA, you can maintain the transfer rules (tab page Transfer Rules).
    If it is possible and useful, we recommend that you use the transfer method PSA and set the indicator Expand Leaf Values and Node InfoObjects. You can then also load hierarchies with characteristics whose node name has a length >32.
    5.      Save your entries and go back. The InfoSource tree for the Data Warehousing Workbench is displayed.
    6.      Choose Create InfoPackage from the context menu (see Maintaining InfoPackages). The Create InfoPackage dialog box appears.
    7.      Enter the description for the InfoPackage. Select the DataSource (data element Hierarchies) that you require and confirm your entries.
    8.      On the Tab Page: Hierarchy Selection, select the hierarchy that you want to load into your BI system.
    Specify if the hierarchy should be automatically activated after loading or be marked for activation.
    Select an update method (Full Update, Insert Subtree, Update Subtree).
    If you want to load a hierarchy from an external system with BAPI functionality, make BAPI-specific restrictions, if necessary.
    9.      If you want to load a hierarchy from a flat file, maintain the tab page: external data.
    10.      Maintain the tab page: processing.
    11.      Maintain the tab page: updating.
    12.      To schedule the InfoPackage, you have the following options:
    ○       (Manually) in the scheduler, see Scheduling InfoPackages
    ○       (Automatically) using a process chain (see Loading Hierarchies Using a Process Chain)
    When you upload hierarchies, the system carries out a consistency check, making sure that the hierarchy structure is correct. Error messages are logged in the Monitor. You can get technical details about the error and how to correct it in the long text for the respective message.
    For more info visit this help pages on SAP Help:
    http://help.sap.com/saphelp_nw04s/helpdata/en/80/1a6729e07211d2acb80000e829fbfe/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/3d/320e3d89195c59e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a6729e07211d2acb80000e829fbfe/frameset.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4dae0795-0501-0010-cc96-fe3a9e8959dc
    Cheers,
    Habeeb

  • Maintain hierarchy data in R/3

    Hello experts,
    How to maitain hierarchy data in R/3. Any pointerts will be appreciated.
    Thanks
    Konda Reddy

    Hierarchy maintenance in R/3 is the domain of the functional consultant - be it the cost center hierarchy or the plant hierarchy etc. It depends on the functional consultant to configure the same and the TCode for each is different and depends on the module... please be more specific...
    Arun

  • Query Error Information: Result set is too large; data retrieval ......

    Hi Experts,
    I got one problem with my query information. when Im executing my report and drill my info in my navigation panel, Instead of a table with values the message "Result set is too large; data retrieval restricted by configuration" appears. I already applied "Note 1127156 - Safety belt: Result set is too large". I imported Support Package 13 for SAP NetWeaver 7. 0 BI Java (BIIBC13_0.SCA / BIBASES13_0.SCA / BIWEBAPP13_0.SCA) and executed the program SAP_RSADMIN_MAINTAIN (in transaction SE38), with the object and the value like Note 1127156 says... but the problem still appears....
    what Should I be missing ??????  How can I fix this issue ????
    Thank you very much for helping me out..... (Any help would be rewarded)
    David Corté

    You may ask your basis guy to increase ESM buffer (rsdb/esm/buffersize_kb). Did you check the systems memory?
    Did you try to check the error dump using ST22 - Runtime error analysis?
    Edited by: ashok saha on Feb 27, 2008 10:27 PM

  • WAD : Result set is too large; data retrieval restricted by configuration

    Hi All,
    When trying to execute the web template by giving less restiction we are getting the below error :
    Result set is too large; data retrieval restricted by configuration
    Result set too large (758992 cells); data retrieval restricted by configuration (maximum = 500000 cells)
    But when we try to increase the number of restictions it is giving output. For example if we give fiscal period, company code ann Brand we are able to get output. But if we give fical period alone it it throwing the above error.
    Note : We are in SP18.
    Whether do we need to change some setting in configuration? If we yes where do we need to change or what else we need to do to remove this error
    Regards
    Karthik

    Hi Karthik,
    the standard setting for web templates is to display a maximum amount of 50.000 cells. The less you restrict your query the more data will be displayed in the report. If you want to display more than 50.000 cells the template will not be executed correctly.
    In general it is advisable to restrict the query as much as possible. The more data you display the worse your performance will be. If you have to display more data and you execute the query from query designer or if you use the standard template you can individually set the maximum amount of cells. This is described over  [here|Re: Bex Web 7.0 cells overflow].
    However I do not know if (and how) you can set the maximum amount of cells differently as a default setting for your template. This should be possible somehow I think, if you find a solution for this please let us know.
    Brgds,
    Marcel

  • Result set is too large; data retrieval restricted by configuration

    Hi,
    While executing query for a given period, 'Result set is too large; data retrieval restricted by configuration' message is getting displayed. I had searched in SDN and I had referred the following link:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/d047e1a1-ad5d-2c10-5cb1-f4ff99fc63c4&overridelayout=true
    Steps followed:
    1) Transaction Code SE38
    2) In the program field, entered the report name SAP_RSADMIN_MAINTAIN and Executed.
    3) For OBJECT, entered the following parameters: BICS_DA_RESULT_SET_LIMIT_MAX
    4) For VALUE, entered the value for the size of the result set, and then executed the program:
    After the said steps, the below message is displayed:
    OLD SETTING:
    OBJECT =                                VALUE =
    UPDATE failed because there is no record
    OBJECT = BICS_DA_RESULT_SET_LIMIT_MAX
    Similar message is displayed for Object: BICS_DA_RESULT_SET_LIMIT_DEF.
    Please let me know as to how to proceed on this.
    Thanks in advance.

    Thanks for the reply!
    The objects are not available in the RSADMIN table.

  • Real tough data retrieval - assistance needed

    Late 2011 Macbook Pro with 500GB hard drive
    Lion 10.7
    One morning out of absolutely nowhere I get this grey screen with a flashing question mark folder. I take it to the geniuses at the Apple store and they tell me my hard drive has failed (no explanation). My mac is under warranty so they gave me a new hard drive for free, bagged my old hard drive and told me "good luck" retrieving the data.
    I'm on a mission to retrieve the data without paying for services. I have never retrieved data before but I've been doing a lot of forum reading and I have been getting protips from an IT friend who has saved my PC data before.
    As of now, I have been unable to even access the hard drive and so I am reaching out to the community to help me conquer this project.
    the problem is not the OS (according to Apple store)
    when hooking up with the dongle, neither Finder nor Disk Utility detect the bad drive
    the drive will spin when forced by the dongle (so I've ruled out the freezer method)
    I was advised (by friends and forums alike) to download so powerful data retrieval software:
    Data Rescue [did not detect bad external drive]
    Disk Drill [did not detect bad external drive]
    TestDisk (http://www.cgsecurity.org/wiki/TestDisk) [I can get it up and running but I have no idea how to use this software]
    So that seems to be the big problem, when I hook up my failed drive as an external hard drive, there is no acknowledgement from my MBP that it is connected and as such data recovery programs cannot access it. When I still had it installed in my computer, there was no clicking sound and it doesn't seem like any of the components are jammed up as it still spins.
    Where do I go from here? Please keep in mind that I am new to resolving my own technical problems but I'm willing to learn. Tired of being one of those people who look at computer parts and get anxious.
    NOTE: I haven't tried Target Mode as I do not have a firewire cable or access to another mac (yet). If you think I should try this, please let me know.

    A hard drive that will not divulge BOTH its Make&Model and a reasonable size/capacity to the likes of Disk Utility and data rescue programs has died, and connot be repaired with any software.
    Target Disk mode will not improve anything. The drive is read as a Mac Volume by software. If it won't mount under Mac OS X, it won't mount under Target Disk Mode.

  • How to delete the Hierarchy data from Infoobjects.

    How to delete the Hierarchy data from Infoobjects. In my case I had 300 records in the corresponding table of info object.
    When i was trying to delete the hierarchy data, I am getting error message. "Some master data not deleted". Can any one tell me to delete all these records by using a program.

    Hi
    Go to SE11 and enter the hierarchy table name.
    /BIC/H....(infoobject name)...and execute the table and select table entry and delete all....
    Thanks
    TG

  • Issue in Hierarchy data upload from R/3 for info object Product Hierarchy.

    Hi,
    I am trying to upload the hierarchy data from R/3 system for Info Object Product Hierarchy.
    Insted of business content info objects (0PRODH, 0PRODH1, 0PRODH2, 0PRODH3, 0PRODH4, 0PRODH5, 0PRODH6), we are using customized objects (ZPRODH, ZPRODH1, ZPRODH2, ZPRODH3, ZPRODH4, ZPRODH5, ZPRODH6).
    In transfer rules the mapped is as specified below
    Fields        =>  Info Objects.
    0ZPRODH1 => ZPRODH1
    0ZPRODH2 => ZPRODH2
    0ZPRODH3 => ZPRODH3
    0ZPRODH4 => ZPRODH4
    0ZPRODH5 => ZPRODH5
    0ZPRODH6 => ZPRODH6
    Now, when I schedule the Info Package, it is ending with an errors
    "Node characteristic 0PRODH1 is not entered as hierarchy charactersitic for ZPRODH"
    "Node characteristic 0PRODH2 is not entered as hierarchy charactersitic for ZPRODH"
    "Node characteristic 0PRODH3 is not entered as hierarchy charactersitic for ZPRODH"
    "Node characteristic 0PRODH4 is not entered as hierarchy charactersitic for ZPRODH"
    "Node characteristic 0PRODH5 is not entered as hierarchy charactersitic for ZPRODH"
    "Node characteristic 0PRODH6 is not entered as hierarchy charactersitic for ZPRODH".
    when i tried to load by flat file, there is no issues. But, flat file loading is not allowed for us.
    Please let me know any possible solution to handle this issue.
    Thanks.
    Regards,
    Patil.

    Hi voodi,
    Insted of using the info object 0PRODH1, we should use customized info object ZPRODH1 which I added already in the external characteristic in Hierarchy.
    Regards,
    Patil.

  • Should I use a data retrieval service or software to recover data ?

    Please pardon the length of this post.
    Here's the setup for our office:
    Computer 1:
    10.4.8 OS X
    1 GHZ PowerPC G4: silver grey tower, grey apple
    1MB L3 Cache
    256 MB DDR SDRAM
    Computer 2:
    10.4.8 OS X
    Dual 450 MHZ PowerPC G4: blue grey tower, blue apple
    256 MB SDRAM
    Computer 3:
    10.4.8 OS X
    1 GHZ PowerPC G4 IMac Flat Screen:
    256 MB DDR SDRAM
    I have 2 LaCie Big Disk d2 Extremes daisy chained and connected to the IMac. We use the first to store all of our data to keep our local disks free. The second d2 is the backup to the first. The other 2 computers connect to the d2's via an ethernet hub. The d2's are each partitioned into 4 compartments.
    A couple of days ago I started the system up when I got in in the morning, and the main d2 would not open. I ran disk utility, but it said that the drive was damaged beyond it's ability to repair. I ran DiskWarrior, and it gave me this message:
    "The directory of disk 'G4' cannot be rebuilt. The disk was not modified. The original directory is too severely damaged. It appears another disk utility has erased critical directory information. (3004, 2176)."
    I contacted Disk Warrior tech support and after a series of exchanges that had me send him dated extracted from the terminal function, he said this:
    "It appears that the concatenated RAID inside your LaCie
    drive has failed (your 500GB drive is actually 2 250GB
    hard drives). That is why we only saw 2 partitions
    on "disk3". A possible cause could be a failed bridge
    in the case.
    You may be looking at sending this drive to a data recovery service.
    However, it is possible that we may be able to recover data
    from the partitions that we CAN see. What we would be doing would cause no damage to your data
    unless the hard drives were having a mechanical failure (ie, the
    head crashed and was contacting the platters, similar to scratching
    a record). But from what I've seen, I don't feel that is the case.
    I believe the piece of hardware that 'bridges' the two drives to
    make them act as one has failed. that's why we can only see data
    about 1 of the 2 drives in the case.
    We would only be attempting to gather data off the drive. Since
    data recovery services sometimes charge for amount of data retrieved,
    it's up to you how you want to proceed."
    Most of the data from the past 5 years for our business stands at being lost. Only some of it had been properly backed up on the second drive, due to some back up software issues. I want to do whatever I can to retrieve all of, or at least some of the data. From what the Alsoft technician said, do you think that the data recovery software available to the consumer is going to be robust enough to retrieve at least the data from the one disk in the drive that is recognizable (there are 2 250gig disks in the d2X. Only one is responding at all). If so, do these Softwares further damage the disks? Or should I just send the drive to a data recovery service?
    I'd like to try to extract some of it myself via over the counter retrieval software, but I don't know whether to trust these programs?
    Any advice would be greatly appreciated.
    Thanks in advance.
    Peter McConnell
    1 GHZ PowerPC G4 IMac Flat Screen   Mac OS X (10.4.8)   Posted

    Peter
    My 2 cents:
    I have used FileSalvage
    http://www.subrosasoft.com/OSXSoftware/index.php?mainpage=product_info&productsid=1
    to recover files from damaged disks. It works as advertised, within limits. Some files may be too damaged to recover. More importantly yo get to scan the disk before actually recovering, and it will give you a list of what it thinks it can recover.
    My experience was that it recovered approx 85% of the data.
    YMMV but they do have a trial.
    Regards
    TD

  • Error from loading Hierarchy data from BW

    I am following the BPC NW online help to load the costcenter master data from BW, The members were successfully loaded, but
    when I tried to load the hierarchy, I received the following message"
    Task name HIERARCHY DATA SOURCE:
    Info: Hierarchy node includes text node or external characteristics
    Record count: 50
    Task name CONVERT:
    No 1 Round:
    Record count: 50
    Accept count: 50
    Reject count: 0
    Skip count: 0
    Task name HIERARCHY DATA TARGET:
    Hierarchy nodes include dimension members that do not exist
    Submit count: 0
    Application: CONSOLIDATION Package status: ERROR
    I am pretty sure that all the dimension members were loaded in this herarchy. Since the hierarchy node I am trying to load only include 2 level, I have only 49 base member and 1 node which I can see from the BPC admin after master data,following is the.tranformation and conversion file:
    *OPTIONS
    FORMAT = DELIMITED
    HEADER = YES
    DELIMITER = ,
    AMOUNTDECIMALPOINT = .
    SKIP = 0
    SKIPIF =
    VALIDATERECORDS=YES
    CREDITPOSITIVE=YES
    MAXREJECTCOUNT=
    ROUNDAMOUNT=
    *MAPPING
    NODENAME=NODENAME
    HIER_NAME=HIER_NAME
    PARENT=PARENT
    ORDER=ORDER
    IOBJNM=IOBJNM
    VERSION=VERSION
    *CONVERSION
    HIER_NAME=HIER_NAME.xls
    NODENAME=HIER_NAME.xls!NODE_NAME
    PARENT=HIER_NAME.xls!NODE_NAME
    CONVERION TAB:
    EXTERNAL     INTERNAL     FORMULA     
    CC_Her     PARENTH1             where CC_Her is the name of the gerarchy in BI
    NODENAME TAB:
    EXTERNAL     INTERNAL     FORMULA
    *     js:%external%.toString().replace(/\s+/g,"")     
    Did I miss anything?
    Edited by: Jianbai on Jan 18, 2011 9:57 PM
    Edited by: Jianbai on Jan 19, 2011 12:29 AM

    Hi Jianbai,
    The following link describes the steps to import master data/hierarchies from SAP BW into SAP BPC 7.5 NW..
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c02d0b47-3e54-2d10-0eb7-d722b633b72e?quicklink=index&overridelayout=true
    Hope this helps!
    Thanks
    BSV

  • Report Developed in Webi Rich Client Consuming more time in Data Retrieval

    Dear All,
    I am a BO Consultant, recently in my project I have developed one report in Webi Rich Client., at the time of development and subsequent days the report was working fine (taking Data Retrieval time less than 1 minute), but after some days its taking much time (increasing day by day and now its taking more than 11 minutes).
    Can anybody point out what could be the reason?????
    We are using,
    1. SAP BI 7.0
    2. SAP BO XI 3.1 Edge
    3. Webi Rich Client Version :12.3.0 and Build 601
    This report is made on a Multiprovider (Sales).
    What are the important points that should be considered so that we can improve the performance of Webi Reports????
    Waiting for a suitable solution.....................
    Regards,
    Arun Krishnan.G
    SAP BO Consultant
    Edited by: ArunKG on Oct 11, 2011 3:50 PM

    Hi,
    Please come back here with a copy/paste of the 2 MDX statements from the MDA.log to compare the good/bad runtimes.
    & the 2 equivalent DPCOMMANDS clauses (good and bad) from the WebI trace logs.
    Can u explain what u really mean in the bold text above..................Actually I didn't get you..........
    Pardon, I have only 3 months experience in BO.
    Regards,
    Arun
    Edited by: ArunKG on Oct 11, 2011 4:28 PM

  • How to import Hierarchy Data in MDM 7.1

    Hi All,
        I am trying to import the hierarchy data to SAP MDM 7.1
    I have the data in the Excel sheet in the following structure
    Parent Code   Parent Name   Child Code   Child Name
    A1                  Printer              P1               Inkjet
    A1                  Printer              P2               Canon
    P1                   inkjet                Q1               Model - XXX
    P2                   Canon              Q2              Model - YYY
    In MDM i have 2 fields in the hierarchy table Code and Name as display fields.
    I tried to do partition of fields, combine fields as per the Import documentation. But i was not able to import the hierarchy.
    I have also seen some papers on SDN for Hierarchy import, but none of them talk about 2 display fields in the hierarchy table.
    Can anyone help me to import the data to MDM.
    Thanks,
    Priya.

    Hi Priya.
    You have three level hierarchy in your example
        A1    !     Printer
             P1   !    inkjet
                Q1   !    Model - XXX
    Parent Code ! Parent Name  ! Child Code ! Child Name
    in your import manager
    select "Partition Field/value" Tab
    In source partition window select  your "Parent code" filed
    press add
    select  your "Parent name" filed
    press add
    in window "Partition by:" select "Parent name" and "Parent code"  fields  and press "Combine" button
    for next fields you sould repeat previous steps
    then  select "Map Fields/values"
    find  in Field mapping Source field:  "Parent code [Partition]"
    map it to "Code"
    in "Values conversion mapping" window
    select all walues and press "Add" button then Add as Child
    More about import hierarchy:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b07849c7-3a5b-2b10-7586-c431d300a578
    Regards
    Kanstantsin

  • DELETE  HIERARCHY DATA,CONNECT BY  SQL/PLSQ

    Hi
    Please help with the logic!
    I am trying to delete the data from the hierarchy table data(TABLE1) based on another table(TABLE2),For this i am using 2 cursors (get_ssn and get_max),
    problem is with deleting the hierarchy data, there are several levels (few of them upto 10 levels), i have to delete from top to bottom level of the hierarchy structure
    the first cursor returns the hierarchy structure
    level ssn report_to baid
    1
    2
    3
    1
    2
    1
    2
    3
    4
    my plan is to pull the max of the level and delete it, loop the max value and decrement it by 1 in every iteration and delete the rows, below is the rough logic,
    please help me building up the logic
    declare
    lev eweb.level%TYPE;
    i = number :=0;
    cursor get_ssn is --> this cursor is getting ssn based on simple join between two tables
    select level, ssn, report_to, baid
    from TABLE1
    where ssn not in ( select e.ssn
    from TABLE1 e, TABLE2 s
    where e.ssn = s.ssn)
    start with ssn in (select e.ssn
    from TABLE1 e)
    connect by prior report_to=baid;
    cursor get_max is --> pulling the max of level
    select max(level)
    from eweb
    where ssn not in ( select e.ssn
    from TABLE1 e, TABLE2 s
    where e.ssn = s.ssn)
    start with ssn in (select e.ssn
    from TABLE1 e)
    connect by prior report_to=baid;
    BEGIN
    for i in get_ssn
    loop i := i+1;
    Delete from eweb --> here im trying to delete rows by using max(level)-i, in 1st iteration it takes the max value, in next iteration it will be max -1..........
    where level = get_max-i
    END LOOP;
    end for loop;
    END;
    Edited by: user8884944 on Jun 23, 2010 11:34 AM

    A few remarks
    1 The subject line was shouted by using all caps. This must be considered rude
    2 The introduction discusses 2 tables, yet the code deals with 3, and only from the third table data is deleted
    3 no CREATE TABLE statements were posted, nor sample data
    4 if you can put a constraint on the affected column, using on cascade delete, everything will be deleted automagically.
    With this little information, no help is possible. We can not see what each statement does, the comments don't tell anything, and we can also not see what it is expected to do in terms of logics, as the statements are almost certainly wrong.
    Sybrand Bakker
    Senior Oracle DBA

Maybe you are looking for

  • MP3 on desktop wont open in iTunes or add to library, has done so in past

    I've been trying to add two MP3 files that are on my desktop with no luck. If I double click on them, iTunes opens but does not play the music, and the music is not in my library. I've tried adding them to the music folder or selecting "Add to librar

  • Display 'no photo' in a JSP when photo is not present in DB

    Hi All I have stored an image in database uploded from the JSP. The DB has a BLOB column for the image. I have to display a single record at a time. I am able to display the image at the JSP also using <img> tag and specifying the JSP name fetching t

  • Cannot update 5G iPod setting after 1.2 update...

    Has anyone else run into this problem. I updated to iTunes 7 today along with the 1.2 update for my 5G iPod. I am running Mac OS X. After the update, my video playlists were removed from the iPod. Checking the iPod setting showed that the video playl

  • Programmatically create a relationship between two positions in HR

    Hi, I have a requirement to create relationships in HRP1001 between two given positions with a start and end date. I need to write an upload program to do this but want to avoid Batch Input if possible. Are there any relevant function modules that ca

  • Table in header (new Pages)

    Hi, One year ago I create letterhead paper in Pages. Now, when I open in new Pages I can't see header. So I make new table, texts and when I want copy to header- table is deleted. Any ideas?