Working with hierarchy

Hi,
I am working with hierarchy (using start with and connect by prior ) in order to built a "tree" of application jobs.
For each job , the hirarchy start with LEVEL 1 until level "n" .
In the example bellow i have built the hirarchy for job number 34461 , which have 4 LEVELs.
Of curse i have hundreds of jobs , but in order to keep the example simple i am showing only the values of one job.
I need your advise with the following issue:
In case that one of rows return the value "bz" at column mach_name , i need to retun the ENTIRE job hirarchy (in the example bellow - all the 11 rows)
in case that the value "bz" does not exists at column mach_name - non of the rows related to the specific job should be return.
Please advise.
<code>
SQL> set lines 300
SQL> with all_data as ( SELECT X.JOB_NAME,x.joid,LEVEL,
                                        x.box_joid,
                                        mach_name
                        FROM AEDBADMIN.ujo_job x, AEDBADMIN.ujo_job_tree j
                        WHERE X.JOID = J.JOID
                        START WITH J.PARENT_JOID = 34461
                        CONNECT BY PRIOR X.JOID = J.PARENT_JOID)
  select all_data.*
  from all_data;
JOB_NAME                                   JOID      LEVEL   BOX_JOID MACH_NAME
Ys_Crm_Inv_Push_Load_Ctrl_tr_BOX          31596          1      34461
Ys_Crm_Inv_Push_Load_Ctrl_tr              31605          2      31596
Ys_Crm_Inv_BOX                            31586          3      31605
Ys_Crm_Inv                                31587          4      31586 bz
Ys_Crm_Inv_OK                             31588          4      31586 auto
E_Push_Trx_BOX                            31594          3      31605
E_Push_Trx                                31595          4      31594 cr
E_Push_Trx_OK                             31597          4      31594 auto
Ys_Crm_Load_Cntrl_tr_BOX                  31599          3      31605
Ys_Crm_Load_Cntrl_tr                      31600          4      31599 bz
Ys_Crm_Load_Cntrl_tr_OK                   31602          4      31599 auto
11 rows selected.
</code>
Thanks

Hi Ann,
The suggested solution is not completed bacuse it didnt take in consideration the fact that i have several hirarchy.
In order to make the test case easier to understand , i have created the following test case :
CREATE TABLE mytest
  JOB_NAME   VARCHAR2(64 BYTE)                  NOT NULL,
  JOID       NUMBER(10)                         NOT NULL,
  "LEVEL"    NUMBER,
  BOX_JOID   NUMBER(10),
  MACH_NAME  VARCHAR2(80 BYTE)
Insert into mytest (JOB_NAME, JOID, "LEVEL", BOX_JOID)
Values   ('Ys_Inv_Push_Load_Ctrl_tr_BOX', 31596, 1, 34461);
Insert into mytest    (JOB_NAME, JOID, "LEVEL", BOX_JOID)
Values    ('Ys_Inv_Push_Load_Ctrl_tr', 31605, 2, 31596);
Insert into mytest    (JOB_NAME, JOID, "LEVEL", BOX_JOID)
Values    ('Ys_Inv_BOX', 31586, 3, 31605);
Insert into mytest    (JOB_NAME, JOID, "LEVEL", BOX_JOID, MACH_NAME)
Values    ('Ys_Inv', 31587, 4, 31586, 'bz');
Insert into mytest    (JOB_NAME, JOID, "LEVEL", BOX_JOID, MACH_NAME)
Values    ('Ys_Inv_OK', 31588, 4, 31586, 'auto');
Insert into mytest    (JOB_NAME, JOID, "LEVEL", BOX_JOID)
Values    ('E_Push_Trx_BOX', 31594, 3, 31605);
Insert into mytest    (JOB_NAME, JOID, "LEVEL", BOX_JOID, MACH_NAME)
Values    ('E_Push_Trx', 31595, 4, 31594, 'cr');
Insert into mytest    (JOB_NAME, JOID, "LEVEL", BOX_JOID, MACH_NAME)
Values    ('E_Push_Trx_OK', 31597, 4, 31594, 'auto');
Insert into mytest    (JOB_NAME, JOID, "LEVEL", BOX_JOID)
Values    ('Ys_Load_Cntrl_tr_BOX', 31599, 3, 31605);
Insert into mytest    (JOB_NAME, JOID, "LEVEL", BOX_JOID, MACH_NAME)
Values    ('Ys_Load_Cntrl_tr', 31600, 4, 31599, 'bz');
Insert into mytest    (JOB_NAME, JOID, "LEVEL", BOX_JOID, MACH_NAME)
Values    ('Ys_Load_Cntrl_tr_OK', 31602, 4, 31599, 'auto');
Insert into mytest    (JOB_NAME, JOID, "LEVEL", BOX_JOID)
Values    ('GetPRM.bat_BOX', 37583, 1, 37581);
Insert into mytest    (JOB_NAME, JOID, "LEVEL", BOX_JOID, MACH_NAME)
Values    ('GetPRM.bat', 37585, 2, 37583, 'ha');
COMMIT;
select * from mytest;
JOB_NAME                             JOID      LEVEL   BOX_JOID MACH_NAME
Ys_Inv_Push_Load_Ctrl_tr_BOX        31596          1      34461
Ys_Inv_Push_Load_Ctrl_tr            31605          2      31596
Ys_Inv_BOX                          31586          3      31605
Ys_Inv                              31587          4      31586 bz
Ys_Inv_OK                           31588          4      31586 auto
E_Push_Trx_BOX                      31594          3      31605
E_Push_Trx                          31595          4      31594 cr
E_Push_Trx_OK                       31597          4      31594 auto
Ys_Load_Cntrl_tr_BOX                31599          3      31605
Ys_Load_Cntrl_tr                    31600          4      31599 bz
Ys_Load_Cntrl_tr_OK                 31602          4      31599 auto
GetPRM.bat_BOX                      37583          1      37581               
GetPRM.bat                          37585          2      37583 ha           
13 rows selected.
The last TWO rows should NOT be return , beacuse the last hirarachy (identified by the fact that it start again with LEVEL 1) does not contain "bz"
values under column mach_name.
Please advise
Thanks

Similar Messages

  • Error While working with 2 hierarchy

    Hi Experts - While working with 2 hierarchy variable and 2 node variables my webi report not returing any data.
    But in RSRT i got data... Where could be a problem.
    Any Inputs.

    Sure - Ingo. One more behaviour i checked.Sequence of fetching the obj. in Webi.
    for example - i  have  node variables on gl account and cost center both.
    if in webi first i fetch gl accnt  and then cost center then node variable is working on the object which i fetch later , here its means it works on cost center. But As i select any node from GL all  data go vanish...
    Actually selection of one node at a time from either hierarchy is working but If i select two nodes from two diffrent hierarchy it always fails.
    so if i select one node from cost center and one from GL not working.
    Here is MDX when i select both the nodes from two hierarchy -  which fails.
    SELECT  { [Measures].[4GW5A7EF38T3R9YP5WSPWMT0Z] }  ON COLUMNS , NON EMPTY CROSSJOIN( { Descendants( [0GL_ACCOUNT                   ZPLA].[LEVEL00].MEMBERS, [0GL_ACCOUNT                   ZPLA].[LEVEL07], LEAVES) } , { Descendants( [0COSTCENTER                   1000CC_LOBLAW].[LEVEL00].MEMBERS, [0COSTCENTER                   1000CC_LOBLAW].[LEVEL06], LEAVES) }  ) DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM [0CCA_M20/ZCCA_M20_Q0007] SAP VARIABLES [!V000001] INCLUDING [0GL_ACCOUNT                   ZPLA] [!V000002] INCLUDING [0GL_ACCOUNT                   ZPLA].[ZPLA                            0HIER_NODE] [!V000003] INCLUDING [0COSTCENTER                   1000CC_LOBLAW] [!V000004] INCLUDING [0COSTCENTER                   1000CC_LOBLAW].[1000CC_LOBLAW                   0HIER_NODE]
    Here is a MDX which run sucessfully when i select one node from one hierarchy -
    SELECT  { [Measures].[4GW5A7EF38T3R9YP5WSPWMT0Z] }  ON COLUMNS , NON EMPTY CROSSJOIN( { Descendants( [0GL_ACCOUNT                   ZPLA].[LEVEL00].MEMBERS, [0GL_ACCOUNT                   ZPLA].[LEVEL07], LEAVES) } , { Descendants( [0COSTCENTER                   1000CC_LOBLAW].[LEVEL00].MEMBERS, [0COSTCENTER                   1000CC_LOBLAW].[LEVEL06], LEAVES) }  ) DIMENSION PROPERTIES MEMBER_CAPTION ON ROWS FROM [0CCA_M20/ZCCA_M20_Q0007] SAP VARIABLES [!V000001] INCLUDING [0GL_ACCOUNT                   ZPLA] [!V000003] INCLUDING [0COSTCENTER                   1000CC_LOBLAW] [!V000004] INCLUDING [0COSTCENTER                   1000CC_LOBLAW].[1000CC_LOBLAW                   0HIER_NODE]

  • Navigation no longer working with

    I have been working with facelets now for a bit. I am on MyFaces 1.1 with the facelet libraries from the Exadel project wizard added.
    Any time I have an action with from-outcome but no from-action specified, everything works as expected. I can route to whichever view. When I add the from-action tag to my configuration, it calls my action and action listeners fine, but the requesting page is always reloaded (I never go to a new view).
    I have verified my "h:commandLink" components are within my "h:form" tag. Hierarchy:
    jsp:root/jsp:text/ui:composition/ui:define/h:form/table/tr/td/h:commandLinkCommand link code:
    <h:commandLink value="mylink" action="#{userBean.saveCurrentUser}"/>
    <t:saveState id="adminUserBean" value="#{userBean}"/>
    </h:form>
    ...(t = tomahawk namespace)
    My template is nothing more than a bunch of div tags & HTML table elements, no JSF logic really.
    Relevant tags in my faces-config.xml:
    <managed-bean>
    <managed-bean-name>userBean</managed-bean-name>
    <managed-bean-class>mypackage.UserBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <from-view-id>/administration/*</from-view-id>
    <navigation-case>
    <from-outcome>edit-user</from-outcome>
    <to-view-id>/administration/users/edit.jsp</to-view-id>
    </navigation-case>
    <navigation-case>
    <from-action>#{userBean.saveCurrentUser}</from-action>
    <from-outcome>success</from-outcome>
    <to-view-id>/administration/users/list.jsp</to-view-id>
    </navigation-case>
    ...Code of saveCurrentUser:
    public String saveCurrentUser()
    try
    return "success";
    catch (Exception ex)
      ...(logging)...
      return "failed";
    ...The action to edit the user that contains an action listener works. (navigate from /administration/users/list.jsp to /administration/users/edit.jsp).
    The action to save the user successfully saves the user from what I can see (log is clear), but the page stays at /administration/users/edit.jsp instead of going back to the list.jsp.
    I am using *.jsp instead of something like *.xhtml since Excadel doesn't support anything but *.jsp at this point in time.
    I cannot figure out why the "from-action" is causing the navigation to fail.
    No matter what I try, I get the same results. I attempted to update my facelets libraries, but I messed up along the way and was getting incompatible classes across the jar files, so I just rolled back.
    Any assistance is appreciated. Even if you don't have a solution, if you know of a way to have the view or myfaces print out the navigation rule processing to the logs, that would be good as well. I am using log4j right now as my logger.
    Thanks,
    Andrew

    Okay, got logging turned way up on all "org.apache.*" and "com.sun.*".
    Here is the problem (don't know how to fix it yet:
    113121 DEBUG [http-8080-Processor4] org.apache.myfaces.application.NavigationHandlerImpl      - handleNavigation fromAction=null outcome=success no matching navigation-case found, staying on current ViewRootWhy the action is being executed, but afterwards it says fromAction is null, I do not know yet.
    I am hoping it is possible with the facelets + myfaces integration, as it would be a lot of work for me to go away from myfaces, and I need the facelet functionality.

  • Problem with hierarchy variable while displaying query in Portal

    Hi,
    I came up with an problem with a query in the portal.  The problem is :
    I have one query which is displayed in the portal. The Query has hierarchial selection criteria. I am executing the same query using analyzer. Its taking the variable from the selection and displaying it on the analyzer. I have used the option to " display the query on web " from the BEX query designer. From there its opening and displaying the results with the given selection criteria.
    Where as when i open the query seperately in portal, its not displaying the results.
    I came to know from one of my colleague that the porblem is with the Web item and the hierarchial variable declared in WAD  was different from the variable declared in the BEX Query designer.
    I never Worked with WAD. I tried finding out the variable definition. But i was unable to find out where the Hierarchial variable was defined.
    Please help me out regarding the same.

    The problem is sovled.
    Poornima.

  • Working with XWindows

    Hi all,
    I'm working on an application where I need to spin off new processes using Runtime.exec, BUT I need to be able to hijack those processes to control the window attributes for them (i.e. the window geometry, window events like minimization, maximization, closing, etc). I can guarantee, for the moment, that I'm going to be working on linux, so there's definitely going to be X11 under the hood.
    The solution I've come up with for the moment is to use JNI to work with the XLib libraries already found on the linux machines. The problem I'm having is this: What a user would normally consider to be a single window for a single application is actually several X11 windows that occupy parts of the same real estate. I think (although I'm not sure) that its typically one directing window, and then it gets subdivided into other visible and non-visible windows for menus and view ports and stuff.
    So I've been able to retrieve a list of all open windows BUT an application like firefox has nearly a dozen windows associated with it, which have different window id's but identical names and classes, so they're basically indistinguishable, as far as I can tell. I can't figure out which one I should consider to be the directing window, and which ones are secondary ones that will follow the lead of the other.
    I've tried inspecting all the properties I can think of. I tried a google search. And I tried looking for XLib forums. Nothing panned out. Has anybody here had any experience working with the X11 windowing system or windowing managers? Does anybody know how to distinguish between the several windows that are associated with a single application or process id?
    Also, I couldn't find any java libraries for interfacing with X11, but I'm not wild about using JNI. Does anybody know of any ports of XLib to Java?
    Thanks!
    - Adam

    kdgregory wrote:
    It's been a long long time since I did anything with X11 (although I did write a book on Motif), so take everything I say with a very large grain of salt.
    I'm working on an application where I need to spin off new processes using Runtime.exec, BUT I need to be able to hijack those processes to control the window attributes for them (i.e. the window geometry, window events like minimization, maximization, closing, etc). I can guarantee, for the moment, that I'm going to be working on linux, so there's definitely going to be X11 under the hood.Do you need to control the attributes while the process is running? In other words, is your Java program going to say "YOU! WINDOW! you have no business being that big!"?Yeah, more or less. Or being in that position. Or shutting down without telling me. Etc. Etc. Etc.
    >
    If yes, then you're basically acting as a window manager, and would probably find it very useful to look at the source code for an existing window manager. I'd suggest TWM (Tom's Window Manager), because it's small and therefore should be easy to find what you're looking for. My one caveat is that I'd expect a window manager to simply maintain a list of the topmost application windows, and I'm not sure how you're going to get that when you launch the program from Java.I'm not too worried about interfacing with it in Java. I've got some ideas for that. I've already looked into a couple of Window Managers in order to get as far as I have. The problem is that Window Managers don't discriminate between the applications / processes that launch the windows, but I have to.
    The problem I'm running into is that the x-server doesn't care what application, or process launched the window, and in fact, the application doesn't even have to live on the same machine as the x-server. In my case, it so happens that it does (at least, for now, anyway). So while X11 allows clients to specify the pid when they create a new window, it doesn't require it. So I can't rely on that.
    >
    As an alternate, you could look at the source of XWD, which takes a screenshot. It has to identify the application from an arbitrary cursor position, which seems close to what you have to do.Perhaps. I was looking into xwininfo which seems to be the same sort of idea. I doubt it actually takes a screen shot, but it does seem to identify windows by the co-ordinates of the mouse click. I suspect that it's doing that by spinning up an x-client and listening for the next mouse-click event, and examining the window associated with it (but I haven't found the source code for it yet). Obviously, that requires generation of the mouse-click event that gets set by the x-server, and also requires the knowledge of some point where the mouse click event can be generated that the window in question occupies, and is top in the z-ordering at that position. Since other applications can arbitrarily open dialog boxes and what-not over those locations, this is intrinsically unstable.
    I have thought about trying to get the windows to open the first time at some extremely ridiculous co-ordinates that no other application will ever open at, and then manually force it to move onto the desktop real estate. If I can pull that off, and always queue up the starting of the applications in that location to happen serially, then I only run into problems if my application is running more than one instance on the same desktop. Making the starting geometry random, but still ridiculous might solve the problem, mostly. But this all sounds kind of convoluted. I was hoping there was a better way to do this stuff.
    >
    >
    The solution I've come up with for the moment is to use JNI to work with the XLib libraries already found on the linux machines. The problem I'm having is this: What a user would normally consider to be a single window for a single application is actually several X11 windows that occupy parts of the same real estate. I think (although I'm not sure) that its typically one directing window, and then it gets subdivided into other visible and non-visible windows for menus and view ports and stuff. Pretty much. There's a containment hierarchy, just like in Java. Each window has a handle to its parent (can't tell you what the method is to get that), and at the top is the root window (controlled by the window manager), without a handle. So you can work your way up the hierarchy until you hit the root, then go back down one level. Actually, once you find the root window, you should be able to get a list of all children from it, so that may be your best approach.
    Yeah, I've discovered that. The trick, then, is to find the window with the correct geometry to match the window I'm looking for. Which pretty much requires my application to know the geometry of the window I'm looking for. I don't really have a good solution for that.
    >
    Also, I couldn't find any java libraries for interfacing with X11, but I'm not wild about using JNI. Does anybody know of any ports of XLib to Java?It's called AWT :-)Yeah, no kidding. A lot of the stuff I want to do I could do with AWT, if everything was running all in the same jvm, but its not, and in fact, some of these windows aren't java processes at all.
    >
    And actually, most native X programs don't use XLib directly either. They go through a widget toolkit, like Motif or Qt.hmm... I really don't know much about either the Motif or Qt toolkits, but I doubt that they've got the power I need for the stuff I want to do. Have you had any experience with them?
    - Adam

  • Data Modelng with hierarchy??

    Hi Gurus,
    I am working with Infosets and many of these infosets have the following joins below. EngMDlNbr to Product Code to Summary product Code and Product main group
    All these Master Data are loaded from flat files.
    Product Hierarchy:
    Char 1: EngMdlNbr:
           1. EngMdlNbr
              2. Product Code
           3. Many othe characteristics
    Char 2: Product Code
           1. Key-Product Code
              2. Summary product Code
    Char 3: Summary Prod Code
           1. Key-Summary product Code
              2. Prod Hierarchy level
           3. Product Main Group
    Char 4: Product main Group
           1. Key-Product Main Group
              2. Prod Hierarchy level
    Please clarify whether the performance of the queries will improve if I reduce these Joins by building
    1) Hierarchy at Product Code and include (Summary Prod Code and prod main grp) or
    2) By including Summary Prod Code and prod main grp as Attributes in Product Code Characteristics.
    If I use Hierarchy, how will I load the data with hierarchy information.
    Please advice.
    Thanks and Regards
    Andy

    Hi
    Just check how the component hierarchy is maintained because if hierarchy maintained properly then your report will come out properly.
    When transaction data coming from ECC hierarchy key filed contains your parent and child relationships.
    Regards
    Jagadeesh

  • Creating a list in Pages with hierarchy

    How do you create a list in Pages with hierarchy?

    Hierarchy is just a matter of indent levels.
    Pages works by example so having set up the initial one level list, hit a return after one of the points and tab to move to the next level.
    Then apply settings in:
    Format > Text > Bullets & Lists > to each level if it isn't already an indented List
    You can save the final set of hierarchical list as a List Style for reuse.
    Peter

  • Customer Broadcasting - EMail Bursting Broadcast with hierarchy

    Hi,
    At the moment I broadcast with the broadcast function email bursting to our customer. (single customer)
    I maintained a mail adress for each customer.
    Now we have a special demand.
    I should broadcast to customer groups.
    Customer Group is a special hierarchy level in our customer structure.
    For example one customer group have 10 single customer.
    So for example the customer from hierarchy level 2 should get a report with all customers in hierarchy level 3
    Is it possible to work with hierarchies in the email bursting function ?
    Thanks
    thomas

    Hi Thomas,
    Im not sure by hierachy group but you could so it by role.  So all customers who you assign a certain role will get a certain report.
    Nick.

  • BI Query with Hierarchy in VC does not get correct values

    Hello Gurus,
    I am building a model in VC for Performance Score card using Query as data service.
    I have  the following problem.
    When I execute query in BEx with Hierachy_node variable , it is getting correct values, but the same is getting incorrect values in VC.
    The Hierarcynode variable I am using is a TOP node, then the values including child nodes are also should be displayed, which is working fine with BEx query but not in VC.
    When I execute the query with hierarchy node value as child node I am getting correct values both in VC and in BEx.
    The correct values are not shown only when I use top nodes.
    Please help me in this regard.
    Thanks in advance
    Ganesh

    Hi
    We are facing the same issue. Is this issue resolved? Pls let us know the solution
    Regards
    Aruna

  • Getting the labview 8.6 pid toolkit to work with labview 8.5 student edition

    Hi I am working on a project for college,I just bought the labview pid toolkit 8.6 but it wont load as i use labview 8.5 student edition,am i stuffed or can i get a version to work with my edition and send this one back??hat is the best thing to do?
    I am badly stuck please help.I cant afford to pay for an upgrade to 8.6?
    Thanks

    You could try to do a File->Save for Previous Version on the PID VIs that you want to use.  However,
    if one of the PID subVIs was saved without a block diagram then this
    won't work. Also, I'm not sure if the toolkit is backwards compatible
    in this way. Also, when you do this you will effectively be saving the
    VI hierarchy into a new location.
    However, your best bet (and my recommendation) is to contact your local NI sales rep to see if they can get you a CD with the 8.5 version. Since you have a license for the toolkit it's probably not going to be an issue.

  • QTP doesn't work with custom SparkList ItemRenderer

    I am trying to support our QA department which uses QTP for automation testing. QTP is failing miserably at recognizing custom item renderers for Spark List (and DataGroup too). There is nothing special going on in the custom item renderer. There is a basic Group layout with some labels and buttons. I would like to be able to click on a button inside the item renderer; but, QTP sees the whole item renderer as a SparkListLabel. QTP is not able to recognize anything inside the item renderer.
    I know there are custom automation delegates that need to be created for some components; but this is basic layout inside an ItemRenderer. I would expect that to work with out creating custom automation classes to support it.

    Well the Hierarchy for 0GLACCEXT is designed in such a way ,am not sure how you have defined the custom hierarchy.
    For Insights you may wish to refer below-
    http://help.sap.com/saphelp_nw04/helpdata/en/04/7b95fb42b0f94aba334c0890dbbda4/content.htm
    The hierarchy for characteristic 0GLACCEXT is used as the financial statement version in BW queries. To technically enable the particular exception aggregation for contra items, the hierarchy table of characteristic 0GLACCEXT contains the attribute Balance-Dependency of a Hierarchy Node (technical name 0BAL_DEPEND).
    The attribute 0BAL_DEPEND can take three different values:
    ·         Normal aggregation on the hierarchy node of 0GLACCEXT(“ “, default value):
    The financial statement item is always either on the assets side or the liabilities side of the financial statement. This is the case for almost all financial statement items.
    ·         Aggregation on the hierarchy node for 0GLACCEXT is only performed if the balance is positive (“1”):
    First, the system determines the total for those financial statement items that are subordinate to the hierarchy node of 0GLACCEXT. If this total is positive, the subordinate financial statement items are aggregated on the hierarchy node of 0GLACEXT. If this total is negative, no aggregation occurs, and the values on the subordinate financial statement items are set to zero.
    ·         Aggregation on the hierarchy node of 0GLACCEXT is only performed if the balance is negative (“2”):
    The exception aggregation is performed in the same way as for case “1”, except that the +/- signs of the balance are reversed.
    Hope it Helps
    Chetan
    @CP..

  • Work Center Hierarchy and Routing

    Hi,
    I would like to know what exactly Work Center hierarchy mean?. Where is it used. In Routing, we maintain Sequence of operation along with workcenter where this operations are performed . Would like to know does work center hierarchy is linked to sequence maintained in Routing?. Thanks

    Hi,
    Any one can explain me the use of Workcenter Hierarchy?. In Routing, we maintain the sequence of operations. Does Routing and Workcenter Hierarchy has relation?. If Yes, what is the relation between these 2.
    Thanks in advance

  • Problems with hierarchy display when using SAPBEXonRefresh

    Dear all,
    I would like to create dynamic logos in BEx Analyzer. It means I need to change the logo image depending on value of certain free characteristic ("LOGO_ID").
    At the moment, I have achieved that logo pictures (6 in total) are swapped by adding VBA code to SAPBEXonRefresh.
    Unfortunately hierarchy symbols become to act very strange. Basically there are two problems:
    1. They are not refreshed after hierarchy compression; those hierarchy symbols which are outside of result area are not removed
    2. Pressing symbols in order to expand/collapse hierarchy sometimes does not produce any effect.
    Code is show bellow and here is brief explanation of it. First, we are searching for "LOGO_ID" string in document. One cell to the right is value which tells us what logo to make visible. There are six logo pictures  in worksheet with names: "L1", "L2", "L3", "L4", "L5", "L6" and only one should be visible.
    Problem seems to be in working with Shapes (logo pictures are Shapes) since hierarchy expand/collapse symbols are also of the same type.
    Any ideas would be appreciated.
    Sub SAPBEXonRefresh(queryID As String, resultArea As Range)
    Call ShowLogo
    End Sub
    Sub ShowLogo1()
       Dim UniLogo As String
       Dim UniRange As Range
       Dim vaUnis As Variant
        If WorksheetFunction.CountIf(Cells, "LOGO_ID") = 0 Then
           Exit Sub
        End If
        Set UniRange = Cells.Find(What:="ID izvornog sustava", After:=[A1], LookIn:=xlFormulas, _
            LookAt:=xlPart, SearchOrder:=xlByColumns, _
            SearchDirection:=xlNext, MatchCase:=False)
        UniLogo = UniRange.Offset(0, 1).Value
        If UniLogo <> "" Then
           If ActiveSheet.Shapes(UniLogo).Visible = msoTrue Then
             Exit Sub
           End If
        End If
        vaUnis = VBA.Array("L1", "L2", "L3", "L4", "L5", "L6", )
        For i = 0 To 5
            ActiveSheet.Shapes(vaUnis(i)).Visible = msoFalse
        Next i
        If UniLogo <> "" Then
          ActiveSheet.Shapes(UniLogo).Visible = msoTrue
        End If
    Kind regards, Josko.

    Hi Josko,
    Where do you have this problem 3.5 or 7.0 BexAnalyzer.
    When ever heirarchy icons are created in BEx, respective hyperlink is assigned to each of them, Make sure that you dont manipulate with them,,
    If you still have problem then create OSS message.
    Regards,
    Vinay

  • Urgent! PSJ. WORKING with Logistic Data Base.

    I use PSJ. and need to get out some spp elemnts from there.
    so on the selection screen I set down spp elements "11" AND "12".  So i need to work with <b>only these</b> spp elements.
    But the command <b>GET PRPS_R</b> gives out other spp elements as well (<b>the ones that are situated upper in them hierarchy</b> ) . why is that and what can i do with it?

    >>pls any one help regarding this we need the urgent solutions .
    Then you are wasting precious time... This is an Oracle forum.

  • Work centre hierarchy

    HI to all,
    I have created work centre hierarchy with three work centre having 24 hrs capacity each. from this hrchy i have used the superior work centre in the routing.so when i create the production order how i can use the  cumulative capacity (72 hrs) of subordinate work centres to reduce the scheduling time.
    u r answers will be rewarded,
    Regards ,
    Daniel.

    Hi,
    Extract from help.sap.com
    ===========================================================================
    Use of Work Center Hierarchies
    Work center hierarchies are used in capacity planning to cumulate available capacity and capacity requirements.
    You can cumulate available capacities from subordinate work centers to a superior work center level in order to determine the total available capacity for the superior work center.
    In your factory you have several lathes. You create a higher-level work center, called "Machine center 3", which you use to cumulate the available capacity of several lathes.
    ===========================================================================
    The below may be useful..
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/b1/c037a1439a11d189410000e829fbbd/content.htm
    Regards,
    Siva

Maybe you are looking for