Problem with Hierarchical trees (get_tree_node_property)

Hi All,
Hope someone can solve this. I am working with developer 6.0 .
When I try to use get_tree_node_property I get a compile error 201 get_tree_node_property must be declared
trigger text :
declare
test_node Ftree.Node;
label varchar2(30);
begin
test_node:=:SYSTEM.TRIGGER_NODE;
label := get_tree_node_property('nav_display', test_node,ftree.NODE_icon);
end;
it's same with ftree.node_label property
thanks
null

try qualifying the get_tree_node_property with ftree.get_tree_node_property.
Here is a example
DECLARE
htree ITEM;
node_value VARCHAR2(100);
BEGIN
-- Find the tree itself.
htree := Find_Item('tree_block.htree3');
-- Find the value of the node clicked on.
node_value := Ftree.Get_Tree_Node_Property(htree, :SYSTEM.TRIGGER_NODE, Ftree.NODE_VALUE);
END;

Similar Messages

  • Problem with Hierarchical query

    Gurus,
    I have a problem with hierarchical query, which I am pasting below.
    select sys_connect_by_path (Fname,'/')"PATH",Fname,id,level
    ,(SELECT COUNT(ID)-1 FROM (SELECT CONNECT_BY_ROOT LNAME LNAME,ID FROM CMT_PERSON
    START WITH ID = 'emplo000000000126009'
    CONNECT BY PRIOR ID=MANAGER_ID)
    GROUP BY FNAME)"COUNT"
    from CMT_PERSON
    WHERE
    LEVEL <= 4
    ----And ID='emplo000000000001877'
    CONNECT BY PRIOR id=manager_id
    ----AND NOT LEVEL > 3
    START WITH ID='emplo000000000126009'
    As per the result, count is getting repeated for all the levels. That is, count is coming 16100 for every level, Can you please help where exactly I am going wrong
    Regards

    You do not say anything about what count you want to get?
    A wild guess could be:
    select
       sys_connect_by_path (p1.fname, '/') "PATH",
       p1.fname,
       p1.id,
       level,
       (select count (id) - 1
        from
           (select connect_by_root p2.lname lname, p2.id
            from cmt_person p2
            start with p2.id = p1.id
            connect by prior p2.id = p2.manager_id)
        ) "COUNT"
    from cmt_person p1
    where level <= 4
    connect by prior p1.id = p1.manager_id
    start with p1.id = 'emplo000000000126009';Since your inner query simply starts with the hardcoded employee id, naturally it will give you the same count.
    My guess is your inner query should start with the person id from the outer query?
    If that is not the case - please state in plain english what you are trying to accomplish ;-)
    (Oh, and please paste code within tags so we can read it more easily...)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • CONNECT BY, Performance problems with hierarchical SQL

    Hello,
    I have a performance problem with the following SQL:
    table name: testtable
    columns: colA, colB, colC, colD, colE, colF
    Following hierarchical SQL:
    SELECT colA||colB||colC AS A1, colD||colE||colF AS B1, colA, colB, colC, level
    FROM testable
    CONNECT BY PRIOR A1 = B1
    START WITH A1 = 'aaa||bbbb||cccc'
    With big tables the performance of this construct is very bad. I can't use functional based indexes to create an Index on "colA||colB||colC" and "colD||colE||colF"
    Has anyone an idea how I can get a real better performance for this hierarchical construct, if I have to combine multiple colums? Or is there any better way (with an PL/SQL or view trigger) solve something like this ??
    Thanks in advance for your investigation :)
    Carmen

    Why not
    CONNECT BY PRIOR colA = colD
    and PRIOR colB = colE
    and ...
    ? It is not the same thing, but I suspect my version is correct:-)

  • PROBLEM WITH HIERARCHICAL QUERY - PLEASE HELP

    I have got three tables :
    CREATE TABLE FIRM
    (FID INTEGER NOT NULL PRIMARY KEY,
    FNAME VARCHAR(40),
    FTYPE VARCHAR(3),
    MASTERID INTEGER );
    CREATE TABLE FACULTY
    (FAID INTEGER NOT NULL PRIMARY KEY,
    FANAME VARCHAR(40),
    FATYPE VARCHAR(3),
    MASTERID INTEGER );
    CREATE TABLE EMPLOYEE
         (EID INTEGER NOT NULL PRIMARY KEY,
    ENAME VARCHAR(20),
    ESURNAME VARCHAR(20),
         EJOB VARCHAR(3),
         MASTERID INTEGER );
    This is a hierarchical tree(or is ment to be, I,m complete rookie ) . Firm can be the root or can be slave to another firm. Faculty can be slave to firm, or to another faculty. Employee can be slave to faculty or to another employee(e.g. boss). This connections are specified by MASTERIDs.
    I need to write a procedure, which parameter would be node ID. It is meant to create a VIEW from this node as if it was a root (view of a subtree).
    I tried CONNECT BY clause but it works only on one table at a time and I have here three tables.
    I completely don,t know how to write it. Please help.

    create view hierarchy as
    select id, master_id, name from table1
    union all
    select id, master_id, name from table2
    union all
    select id, master_id, name from table3
    Then do your connect by query against hierarchy.
    It will not work in 8i (connect by on views not allowed), so you will need to materialize the view.
    Kirill

  • Form with Hierarchical tree in Windows gives error in Linux

    We have a Windows Forms 10g Release 1 form with a H. Tree item. We want to port it to Linux. We open the Form in Forms 10g Release 2 and compile and save it. Then we move the .fmb to the Linux machine, open it in Linux Forms 10g Release 2 and deploy.
    When we run the form we get an error and form is existed. There is no error message. Form is just existed.
    The versions of Forms 10 Release 2 in Windows and Linux are the same.
    What could be the problem?

    CraigB wrote:
    Then we move the .fmb to the Linux machine, open it in Linux Forms 10g Release 2 and deploy. Why do you need to open the form on Linux in order to deploy it? Why not just use the Form Compiler (frmcmp userid=user/pw@db module=<form_name> module_type=form). If you try to just compile the form do you get any errors?
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.
    Yeah we did that way as well. but same problem comes.

  • Authorization Problem with Hierarchical Filter

    Hi Gurus!
    In our BW system I created a query that includes hierarchy-enabled characteristic
    (0costcenter). 0costcenter has a hierarchy node variable to restrict
    user's  data by using authorization.
    Then I created an authorization object from t-code RSECADMIN, in this auth.
    object,  restricted 0costcenter from hierarchy authorization tab , and
    selected 6 nodes (the nodes have no sub-nodes).
    In our web template ( WAD 7.0 ) I used hierarchical filter to see the 6 nodes in our report. It works fine when I first open the template in our Enterprise Portal that we see in the variable screen,0costcenter's variable captures the nodes that I restricted in our authorization object.
    In the portal the hierarchical filter displays only selected nodes but this filter shows the hierarchy's root (name of the hierarchy) and when we choose the root the analysis displays all the values, the authorization do not work here.
    From RSECADMIN, In the hierarchy authorization tab, I tried all the type of hierarchies but all of them gave the same result.
    When i execute the report in BEx Analyzer, the authorization works fine, I think the problem is about hierarchical filter but i cannot find any solution...
    Can you give me an idea plz..
    Thank you!

    Hi,
    I think this is caused by program error.
    Take a look:
    [1075125|https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1075125] - Unauthorized data displayed when structure element expanded
    [917565|https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=917565] - Query displays unauthorized data
    [981828|https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=981828] - No authorization for assigned inactive hierarchy
    [654947|https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=654947] - Hierarchy authorizations with compound characteristics
    Only available in German:
    [1158432|https://websmp230.sap-ag.de/sap(bD1kZSZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1158432] - Zu viele Werte berechtigt bei Hierachie mit Intervallen
    Hope this helps.
    Regards
    Andreas

  • Problems with hierarchies.

    Hi everybody:
    I've made, from OWB, the store table with several dimensions: State, County, City... Each dimension has its own numeric ID and a string with its name. I've also made the geographic hierarchy with the identificators State.ID -> County.ID -> City.ID... The problems comes when I'm working with Discoverer, since I can only see the numeric identificators. I would also like to see the strings with the name.
    Can I suggest that I want to see an attribute of the dimension and not the numeric ID when I make a drill-down or a roll-up in the Discoverer Desktop? Do I have to modify the hierarchies in the Discoverer Administrator and make them with the strings instead of make them with the numeric ID?
    Thanks in advance.

    Normally this problem is caused is by two things:
    1. The authorizations for the BW update User or the Source system extraction User is not correct.
    Please make sure that your OLTP and BW system Have the following profiles in transaction SU01:
    in your OLTP client the user ALEREMOTE should have following profiles: SAP_ALL and S_BI_WX_RFC AND it should be a dialog user.
    In the BW client the user should have the profiles: SAP_ALL, S_BI_WHM_RFC and S_RS_ALL.
    2. The connections between the BW client and the R/3 client are not configured correctly. Please check SM59

  • Problem with large tree in 10g

    We have a large tree within a form using 10g.
    This tree is refreshed quite often and we have found a problem when the user clicks in the tree area before the tree has fully displayed it causes a Java error in our JRE and this causes the whole form to stop working.
    When we took this up on metalink, they agreed it was an error but asked us to upgrade our patchset to 10.1.2.2.0. I did this on a Virtual PC and can still (less frequently) get the error. Unfortunately unlike before the patchset, i can not replicate every time on the latest patchset, and oracle require a test scenario in order to create a fix.
    I found that if I disable the tree the error does not occur. So Im thinking that a workaround would be to disable the tree during refresh then enable once it is built. I am using a button When Button Pressed trigger to call a procedure which in turn calls one other procedure. Unfortunately I cant find an easy way of finding a spot where the tree is fully built. If I put a alert in AFTER the procedure call in the button trigger the tree has only built the first layer and is not complete.
    I put in alert messages and sync commands at the end of the code but it is not refreshing the screen on the first alert. Depending on the size of the tree it can be the 4th or the 5th alert. It appears to only sync the first level then the 2nd and so on.
    Is there any way of working out when the tree is fully built. Then I can enable the tree at this point?
    Any comments or ideas for a work around would be much appreciated

    Hi,
    From Oracle Docs:
    ORA-12013: updatable materialized views must be simple enough to do fast refresh
    Cause: The updatable materialized view query contained a join, subquery, union, connect by, order by, or group by caluse.
    Action: Make the materialized view simpler. If a join is really needed, make multiple simple materialized views then put a view on top of them.
    Regards
    K.Rajkumar

  • Problem with hierarchical queries

    Hi,
    I implemented (thx to jarola) sucessfully a report using a hierarchical view.
    It is nearly the same as in Tyler Muths blog: -http://tylermuth.wordpress.com/2009/02/26/hierarchical-query-to-unordered-list/-
    -select (level*20)-20 the_level ,(level*10)-10 the_level2, machine_no
    - parent_id, item_id,description
    -from machine_list
    -where machine_no = 101
    -and project_id = 122
    - connect by prior item_id = parent_id
    - start with parent_id is null
    This works good, as long as there is just one project/machine in the table.
    If I have 2 machines in the table, it does not work in the report anymore, all entries are shown, although I check for the right machine_number and project_number in the query :-(
    Any suggestions?
    BR
    Lena

    Hi Joel
    Just for reference, to write the code tags in posts without a space, you can use noformat tags on either side like this (let's see if I can manage this!)...
    <pre>{noformat }{noformat }</pre>
    Edited by: Munky on Apr 27, 2011 10:03 AM
    Edited by: Munky on Apr 27, 2011 10:03 AM
    Edited by: Munky on Apr 27, 2011 10:03 AM
    Edited by: Munky on Apr 27, 2011 10:04 AM
    Edited by: Munky on Apr 27, 2011 10:04 AM
    Edited by: Munky on Apr 27, 2011 10:05 AM - sod it! had to add spaces to the noformat tags!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Problem with APEX tree in 4.1.1.00.23-while adding context menu

    Hi,
    Version : Apex 4.1.1.00.23 and Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    i wanted to add context menu to my tree region.i followed Jason's blog
    http://jastraub.blogspot.com/2010/09/adding-context-menu-to-tree-region.html
    But after i add the javascript code he mentioned,nothing seems to have changed.The context menu appears the same way it was before.
    Is there anyone facing similar problem?
    Appreciate your comments,

    Also using Apex 4.1 and I successfully adapted the steps to my application and it worked well ... the context menu and the tool tips come up well and are functional. The only issue I am still having is that the drop-down arrows no longer work ... I had to use a dynamic action to keep the trees all expanded when the page loads. However, I cannot collapse them as I used to (if needed). I am looking forward to a fix to this issue too.
    Gerald

  • Problem with binary tree please help

    i am trying to make a binary tree but the problem is that when i print the data only the last value is printed i think i am moving my root. but dont know how to solve it please help me.
    public void insert(String n)
    //          (void)
              if (root == null)
                   System.out.println("Root is null");
                   TreeNode temp = new TreeNode(n);
                   System.out.println("\n\n\n\n"+temp.name+"\n\n\n\n\n");
                   root = rootTemp = temp;
              else
                   System.out.println("Root is not null" +rootTemp.name);
                   insert(rootTemp, n);
         private TreeNode insert(TreeNode v, String n) {
              if (v == null)
                   return new TreeNode(n);
              else
                   if (n.compareTo(v.name) < 0)
                        v.left = insert(v.left, n);
                   else
                        v.right = insert(v.right, n);
                   return v;
         }

    Are you sure the problem is not in the printing code?
    I can't see any obvious mistakes after a quick look... But if "root" is a reference to the root node, what is "rootTemp"?

  • Problems with ALV-TREE

    Hi,
    i have copied SALV_DEMO_TREE_SIMPLE into an own report.
    i use an simple itab and try to get an output, but i have an endless-loop.
    Has anyone an idea which error i do?
    Here my Report:
    REPORT  ZGRO_ABAP_OBJ_TREE.
    CONSTANTS: GC_TRUE  TYPE SAP_BOOL VALUE 'X'.
    TYPE-POOLS: ICON.
    TYPES: BEGIN OF TREE_ITAB,
            MATNR  LIKE MARA-MATNR,
            WERKS  LIKE MARC-WERKS,
            MENGE  LIKE MSEG-MENGE,
          END   OF TREE_ITAB.
    DATA: ITAB    TYPE TABLE OF TREE_ITAB.
    DATA: WA_ITAB TYPE          TREE_ITAB.
    DATA: GR_TREE   TYPE REF TO CL_SALV_TREE.
    DATA: REPID type syrepid.
    DATA: GR_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER.
    DATA: OK_CODE TYPE SYUCOMM.
    START-OF-SELECTION.
      REPID = SY-REPID.
    END-OF-SELECTION.
      PERFORM DISPLAY_TREE.
    FORM EINLESEN_DATEN.
      WA_ITAB-MATNR = '16186'. WA_ITAB-WERKS = '1000'.  WA_ITAB-MENGE = 10. APPEND WA_ITAB TO ITAB.
      WA_ITAB-MATNR = '16186'. WA_ITAB-WERKS = '2000'.  WA_ITAB-MENGE = 11. APPEND WA_ITAB TO ITAB.
      WA_ITAB-MATNR = '16185'. WA_ITAB-WERKS = '2000'.  WA_ITAB-MENGE = 12. APPEND WA_ITAB TO ITAB.
      WA_ITAB-MATNR = '16184'. WA_ITAB-WERKS = '3000'.  WA_ITAB-MENGE = 13. APPEND WA_ITAB TO ITAB.
      PERFORM HIERARCHIE_AUFBAUEN.
    ENDFORM.
    FORM DISPLAY_FULLSCREEN .
        TRY.
          CL_SALV_TREE=>FACTORY(
            IMPORTING
              R_SALV_TREE = GR_TREE
            CHANGING
              T_TABLE     = ITAB ).
        CATCH CX_SALV_NO_NEW_DATA_ALLOWED CX_SALV_ERROR.
          EXIT.
      ENDTRY.
      PERFORM CREATE_TREE.
      GR_TREE->SET_SCREEN_STATUS(
        PFSTATUS      =  'SALV_STANDARD'
        REPORT        =  REPID
        SET_FUNCTIONS =  GR_TREE->C_FUNCTIONS_ALL ).
      DATA: LR_COLUMNS TYPE REF TO CL_SALV_COLUMNS_TREE.
      LR_COLUMNS = GR_TREE->GET_COLUMNS( ).
      LR_COLUMNS->SET_OPTIMIZE( GC_TRUE ).
      PERFORM SET_COLUMNS_TECHNICAL.
      GR_TREE->DISPLAY( ).
    ENDFORM.
    FORM DISPLAY_TREE.
      CALL SCREEN 100.
    ENDFORM.
    MODULE PBO OUTPUT.
      PERFORM PBO.
    ENDMODULE.
    MODULE PAI INPUT.
      PERFORM PAI.
    ENDMODULE.
    FORM PBO .
      SET PF-STATUS 'MAIN100'.
      IF GR_CONTAINER IS NOT BOUND.
        IF CL_SALV_TREE=>IS_OFFLINE( ) EQ IF_SALV_C_BOOL_SAP=>FALSE.
          CREATE OBJECT GR_CONTAINER
            EXPORTING
              CONTAINER_NAME = 'BOX'.
        ENDIF.
          TRY.
            CL_SALV_TREE=>FACTORY(
              EXPORTING
                R_CONTAINER  = GR_CONTAINER
              IMPORTING
                R_SALV_TREE = GR_TREE
              CHANGING
                T_TABLE      = ITAB ).
          CATCH CX_SALV_NO_NEW_DATA_ALLOWED CX_SALV_ERROR.
            EXIT.
        ENDTRY.
        PERFORM CREATE_TREE.
        DATA: LR_FUNCTIONS TYPE REF TO CL_SALV_FUNCTIONS_TREE.
        LR_FUNCTIONS = GR_TREE->GET_FUNCTIONS( ).
        LR_FUNCTIONS->SET_ALL( GC_TRUE ).
        DATA: LR_COLUMNS TYPE REF TO CL_SALV_COLUMNS_TREE.
        LR_COLUMNS = GR_TREE->GET_COLUMNS( ).
        LR_COLUMNS->SET_OPTIMIZE( GC_TRUE ).
        PERFORM SET_COLUMNS_TECHNICAL.
         GR_TREE->DISPLAY( ).
       ENDIF.
    ENDFORM.
    FORM PAI .
      CASE OK_CODE.
        WHEN 'BACK' OR 'EXIT' OR 'QUIT'.
          CLEAR OK_CODE.
          SET SCREEN 0.
          LEAVE SCREEN.
      ENDCASE.
    ENDFORM.
    FORM SET_COLUMNS_TECHNICAL.
      DATA: LR_COLUMNS TYPE REF TO CL_SALV_COLUMNS,
            LR_COLUMN  TYPE REF TO CL_SALV_COLUMN.
      LR_COLUMNS = GR_TREE->GET_COLUMNS( ).
      LR_COLUMNS->SET_OPTIMIZE( ABAP_TRUE ).
      TRY.
          LR_COLUMN ?= LR_COLUMNS->GET_COLUMN( 'MATNR' ).
          LR_COLUMN->SET_VISIBLE( ABAP_FALSE ).
          LR_COLUMN ?= LR_COLUMNS->GET_COLUMN( 'WERKS' ).
          LR_COLUMN->SET_VISIBLE( ABAP_FALSE ).
          LR_COLUMN ?= LR_COLUMNS->GET_COLUMN( 'MENGE' ).
          LR_COLUMN->SET_TOOLTIP( 'Einsatzmenge' ).
        CATCH CX_SALV_NOT_FOUND.
      ENDTRY.
    ENDFORM.
    FORM CREATE_TREE .
      PERFORM TREE_HEADER.
      PERFORM EINLESEN_DATEN.
    ENDFORM.
    FORM TREE_HEADER.
      DATA: SETTINGS TYPE REF TO CL_SALV_TREE_SETTINGS.
      SETTINGS = GR_TREE->GET_TREE_SETTINGS( ).
      SETTINGS->SET_HIERARCHY_HEADER( 'MaterialNr' ).
      SETTINGS->SET_HIERARCHY_TOOLTIP( 'Materialnummer' ).
      SETTINGS->SET_HIERARCHY_SIZE( 30 ).
      DATA: TITLE TYPE SALV_DE_TREE_TEXT.
      TITLE = SY-TITLE.
      SETTINGS->SET_HEADER( TITLE ).
    ENDFORM.
    FORM HIERARCHIE_AUFBAUEN.
      DATA: MATNR_KEY TYPE LVC_NKEY,
            WERKS_KEY TYPE LVC_NKEY,
            LAST_KEY  TYPE LVC_NKEY.
      LOOP AT ITAB INTO WA_ITAB.
        ON CHANGE OF WA_ITAB-MATNR.
          PERFORM ADD_MATNR_LINE  USING     WA_ITAB
                                  CHANGING MATNR_KEY.
        ENDON.
        ON CHANGE OF WA_ITAB-WERKS.
          PERFORM ADD_WERKS_LINE  USING     WA_ITAB
                                           MATNR_KEY
                                  CHANGING WERKS_KEY.
        ENDON.
        PERFORM ADD_LINE          USING    WA_ITAB
                                           WERKS_KEY
                                  CHANGING LAST_KEY.
      ENDLOOP.
    ENDFORM.
    FORM ADD_MATNR_LINE   USING    P_LS_DATA TYPE TREE_ITAB
                                   P_KEY
                          CHANGING P_L_CARRID_KEY.
      DATA: NODES TYPE REF TO CL_SALV_NODES,
            NODE  TYPE REF TO CL_SALV_NODE,
            ITEM  TYPE REF TO CL_SALV_ITEM,
            TEXT  TYPE        LVC_VALUE.
      NODES = GR_TREE->GET_NODES( ).
      TEXT = P_LS_DATA-MATNR.
      TRY.
          NODE = NODES->ADD_NODE( RELATED_NODE   = P_KEY
                                  DATA_ROW       = P_LS_DATA
                                  TEXT           = TEXT
                                  RELATIONSHIP   = CL_GUI_COLUMN_TREE=>RELAT_LAST_CHILD ).
          P_L_CARRID_KEY = NODE->GET_KEY( ).
        CATCH CX_SALV_MSG.
      ENDTRY.
    ENDFORM.
    FORM ADD_WERKS_LINE   USING    P_LS_DATA TYPE TREE_ITAB
                                   P_L_CARRID_KEY
                          CHANGING P_L_CONNID_KEY.
      DATA: NODES TYPE REF TO CL_SALV_NODES,
            NODE  TYPE REF TO CL_SALV_NODE,
            TEXT  TYPE        LVC_VALUE.
      NODES = GR_TREE->GET_NODES( ).
      TEXT = P_LS_DATA-WERKS.
      TRY.
          NODE = NODES->ADD_NODE( RELATED_NODE   = P_L_CARRID_KEY
                                  DATA_ROW       = P_LS_DATA
                                  RELATIONSHIP   = CL_GUI_COLUMN_TREE=>RELAT_LAST_CHILD
                                  TEXT           = TEXT ).
          P_L_CONNID_KEY = NODE->GET_KEY( ).
        CATCH CX_SALV_MSG.
      ENDTRY.
    ENDFORM.
    FORM ADD_LINE  USING    P_LS_DATA TYPE TREE_ITAB
                                     P_L_CONNID_KEY
                            CHANGING P_L_LAST_KEY.
      DATA: NODES TYPE REF TO CL_SALV_NODES,
            NODE TYPE REF TO CL_SALV_NODE.
      NODES = GR_TREE->GET_NODES( ).
      TRY.
          NODE = NODES->ADD_NODE( RELATED_NODE = P_L_CONNID_KEY
                          DATA_ROW       = P_LS_DATA
                          RELATIONSHIP   = CL_GUI_COLUMN_TREE=>RELAT_LAST_CHILD ).
          P_L_LAST_KEY = NODE->GET_KEY( ).
        CATCH CX_SALV_MSG.
      ENDTRY.
    ENDFORM.
    In the routines ADD_MATNR_LINE, ADD_WERKS_LINE and ADD_LINE
    are new records inserted in my itab, therefore i get an endless-lopp.
    I don't know, why these insertations are made.
    Has anyone an idea????
    Thanks for help.
    Regards, Dieter

    Hi Tamas,
    i fill the itab very simple, but not in a loop (see apove).
    The problem is that in the routine with i call in a loop, there must be an append
    but i don't know why and i cannot see tzhe append.
    FORM HIERARCHIE_AUFBAUEN.
    DATA: MATNR_KEY TYPE LVC_NKEY,
    WERKS_KEY TYPE LVC_NKEY,
    LAST_KEY TYPE LVC_NKEY.
    LOOP AT ITAB INTO WA_ITAB.
    <b>ON CHANGE OF WA_ITAB-MATNR.
    PERFORM ADD_MATNR_LINE USING WA_ITAB
    CHANGING MATNR_KEY.
    ENDON.</b>
    ON CHANGE OF WA_ITAB-WERKS.
    PERFORM ADD_WERKS_LINE USING WA_ITAB
    MATNR_KEY
    CHANGING WERKS_KEY.
    ENDON.
    PERFORM ADD_LINE USING WA_ITAB
    WERKS_KEY
    CHANGING LAST_KEY.
    ENDLOOP.
    ENDFORM.
    FORM ADD_MATNR_LINE USING P_LS_DATA TYPE TREE_ITAB
    P_KEY
    CHANGING P_L_CARRID_KEY.
    DATA: NODES TYPE REF TO CL_SALV_NODES,
    NODE TYPE REF TO CL_SALV_NODE,
    ITEM TYPE REF TO CL_SALV_ITEM,
    TEXT TYPE LVC_VALUE.
    NODES = GR_TREE->GET_NODES( ).
    TEXT = P_LS_DATA-MATNR.
    TRY.
    <b>NODE = NODES->ADD_NODE( RELATED_NODE = P_KEY
    DATA_ROW = P_LS_DATA
    TEXT = TEXT
    RELATIONSHIP = CL_GUI_COLUMN_TREE=>RELAT_LAST_CHILD ).</b>
    P_L_CARRID_KEY = NODE->GET_KEY( ).
    CATCH CX_SALV_MSG.
    ENDTRY.
    ENDFORM.
    i the bold marked statements there is an appen, but i don't know why and where.
    Regards, Dieter

  • Problem with Hierarchies in BPS- Web-Based Planning Applications

    Im trying to use a Web-Based Planning Application in BPS. The Datacolumns consist of a charecterisitc with a hierarchy. this hierarchy is time dependend. The timeframe is set correctly but i still receive an the following error message in my web browser:
    "Hierarchy 'Hierarchy_name' is not valid for date 26.06.2004"
    Does this error message look familiar to anybody? In the moment I have no clue what went wrong

    Hello Tobias,
    I assume you are talking about error message UPC 413 (it always helps to mention the message class and number). Please check table RSHIEDIR. The hierarchy you are using is not valid for the key date you specified (RSHIEDIR-DATEFROM > KEYDATE or RSHIEDIR-DATETO < KEYDATE). If you do not enter a key date in the planning area, the system will always use the system date. So either use a different hierarchy or maintain it differently to be valid on keydate (26.6.2004).
    Regards,
    Marc
    SAP NetWeaver RIG, US BI

  • Hierarchical Tree error - fighting for over a year

    For over a year now, our Oracle forms have presented an elusive problem with Hierarchical Trees. First some core information:
    We are running Developer 6i, patchset 8, on a Sun host and an Oracle 8i database. Our forms are deployed over the web on the
    Oracle Application Server using J-Initiator 1.1.7.27.
    Now, only on our Production platform, and only during busy times of the day, we randomly get the error "Invalid Query for Hierarchical
    Tree" when one of our tree-based forms populates the tree. This error is sometimes followed by the infamous
    FRM-92100 "connection has been terminated" error. This happens whether building the tree with a single Selec and Populate Treet,
    or via a systematic series of Add Tree Node calls.
    We have tried rebuilding the form logic to eliminate form corruption, (form corruption - happens if you open a large FMB in the
    forms developer without first being connected to the database, manifests itself as random and odd form behaviour,
    or FRM-92100 errors, Oracle product support denies it really happens), we have added debug code, we've even tried generating
    the FMX on the Production platform as part of our deployment (normally we generate FMX files on our Integration platform
    which mirrors Production).
    We are not scheduled to upgrade for Forms 9i and the 9IAS for several more months, so upgrading isn't an immediate option for us.
    Any and all ideas welcome.
    Jeff Cline

    Hi Nigel,
    Two questions:
    1. When the publisher sends the access permission to the subcriber by:
    netStream.send("|RtmpSampleAccess", true, true)
    , on the subscriber side, what event or function can handle the guaranteed receipt of the access permission? Currently it is possible to draw the incoming stream video upon receiving NetStream.Play.Star and waiting for 5 seconds or so:
    public class MyWebcamSubscriber extends WebcamSubscriber {
    override protected function layoutCameraStreams():void
    // trying the event listener seems to work here.
    _streamManager.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
    override protected function onNetStatus(e:NetStatusEvent):void
    super.onNetStatus(e);
    case "NetStream.Play.Start":
    setTimeout(function():void {
    // draw the video from the incoming stream here.
    }, 5000);
    The questions is, which event can let the subscriber know that it has the access permission to the video stream?
    2. In WebcamPublisher, why is that the access permission is sent 3 times?
    a. Once on receiving NetStream.Connect.Success with 0.5 second delay, as in below.
    b. Once immediately upon receiving NetStream.Connect.Success, as in below.
    protected function onNetStatus(p_evt:NetStatusEvent):void
    if (p_evt.info.code=="NetStream.Connect.Success") {
    setTimeout(sendSnapShotPermission, 500);
    _stream.send("|RtmpSampleAccess", true, true);
    protected function sendSnapShotPermission():void
    _stream.send("|RtmpSampleAccess", true, true);
    c. Once in onConnectionTypeChange() with 2 seconds delay:
    protected function onConnectionTypeChange(p_evt:StreamEvent):void
    if ( _streamManager.isP2P) {
    _stream= new NetStream(_connectSession.sessionInternals.session_internal::connection as NetConnection,NetStream.DIRECT_CONNECTIONS);
    setTimeout(sendSnapShotPermission, 2000);

  • Problem with tree view

    Hello and good morning,
    i´ve got a problem with a tree view in one of our web dynpro applications.
    The tree view act´s as a menu. For example:
    the highest element is: personal
    If you open personal you see:
    recruiting
    payment
    and so on...
    Our Problem is...
    You can open the tree element by clicking on the little box left from the tree-element text.But we want that the tree-element is also "line-sensitieve". This means, the next elements should not only appear by clicking the box, also by clicking simply the line.
    Is this possible.
    PS: Sorry for this bad application, but i don´t know how to explain it better

    method ONACTIONTOGGLE .
      data:
        Elem_Context                        type ref to If_Wd_Context_Element,
        Stru_Context                        type If_Menu_Tree=>Element_Context ,
        Item_IS_OPEN                        like Stru_Context-IS_OPEN.
    data parent_key type string.
        data children_loaded type wdy_boolean.
    data x_node type ref to IF_WD_CONTEXT_NODE.
    * get context via lead selection
      Elem_Context = wd_Context->get_Element(  ).
    * get single attribute
      Elem_Context->get_Attribute(
        exporting
          Name =  `IS_OPEN`
        importing
          Value = Item_Is_Open ).
      if Item_Is_Open = abap_true.
        Item_Is_Open = abap_false.
      else.
        Item_Is_Open = abap_true.
      endif.
      Elem_Context->set_Attribute(
      exporting
        Name =  `IS_OPEN`
        Value = Item_Is_Open ).
    endmethod.

Maybe you are looking for

  • Changing the length of BSEG-SGTXT (Accounting document line item text)

    Hi ,          I came across a requirement where my business user wants to add more information (greater than 50 char) to  BSEG-SGTXT field.  It is uncommon and not recommended to change SAP provided data definitions (BSEG-SGTXT) but my business user

  • Billed 2X per Month for 16 Months - No Reply After Submitting 3 Contact Forms

    Like the title of my tread states, I am being charged twice a month, sometimes on the same day sometimes on different days, for my spotify service and its been happening for the past 16, yes 16, months! I am very annoyed because of one; the difficult

  • Recording in Apple Lossless

    Can anyone please tell me how many songs (approx 4 mins per song) can fit onto an 80gb and 120gb iPod Classic when recorded in Apple Lossless? Thanks, Rob

  • Yet another transfer/sync question...

    I've authorized my new laptop. I know how to transfer "purchased" songs to it. I CAN NOT access original hard drive which also holds songs burned from CD (but most of my library is on the iPod as well). Q: Will connecting iPod to the new laptop, sync

  • IMac won't restart after latest security update

    I have a late 2007 20" iMac with OS 10.10.2. While we were away last week I asked my son-ln-law to send me a photo off my iMac. He started the iMac and sent the file no problem. While he was on there he asked if he should run the security update whil