Tree hierarchy in F4 help

hi all,
I have a requirement like,
in transaction VBG1/2/3. i have to add a 5th tabstrip "MC Hier" and this tab structure is same as the one of 4 structre, But in one field Merchandise Category when we click on F4 for data selection then it should show a tree structure.
The search help should show a tree. The tree should start with one entry u201CRIMOSu201D. If there are children to a branch a + should be shown in the tree. Selecting the hierarchy number should put the hierarchy number in the u201CMC Hieru201D field.
The hierarchy can be read by reading tables:
KLAH
KSSK
SWOR
An example of a tree hierarchy is shown below:
643     RIMOS     RIMOS
     1098     10_SHOP     SHOP_RIMOS
          625     910     FRESH
               626     91010     MILK MILK PRODUCTS EGG SOY
please help me how to do it ...

An example of a tree hierarchy is shown below:
643     RIMOS     RIMOS
                          1098     10_SHOP     SHOP_RIMOS
                                 625     910     FRESH
                                                     626     91010     MILK MILK PRODUCTS EGG SOY

Similar Messages

  • BW Tree Hierarchy-multiple selection for query possible?

    Hello,
    I have a question in regards to BW Tree Hierarchies and its usage in Bex Reporting:
    Is it possible to select multible Tree Hierarchy (based on the same characteristic) when executing a query in Bex Analyzer. If yes, how?
    I tried to configure this by making use of a hierarchy variable on the characteristics, but it does only allow me to select one hierarchy.
    Thanks for your help,
    Elisabeth

    Elisabeth,
    Your query can only assign one hierarchy per characteristic.
    If you need multiple ones - I'd suggest you make a query per hierarchy and you can user Query Views in the WAD to let the user select the View (i.e.. the Hierarchy) they wise.
    Regards
    Gill

  • How can I create a tree hierarchy in Adobe Flash with WD Java?

    Hello!
    I've started to learning RIAs based on WD Java and Adobe Flash. Now I need to create application with tree hierarchy. Nodes of hierarchy must be able to collapse and expand. Hierarchy must looks like in https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0c91fc0-932d-2c10-4ca7-f5774950c8e3 (first section)
    Does anybody know where I can get a tutorial for such hierarhies or which control element I have use?
    regards, Lev

    well, Network UI should be used.

  • Oracle Tree Hierarchy Query

    Hi,
    Hoping someone can assist with this query:
    I am currently using this query to construct a tree hierarchy, i.e.
    SELECT "EMP"."MGR" as "MGR",
            "EMP"."EMPNO" as "EMPNO",
            "EMP"."ENAME" as "ENAME" ,
            (select count(*)  from "EMP" "EMP2" where  "EMP2"."MGR" = "EMP"."EMPNO") BranchCount
    from
    "EMP" "EMP"
    where
    "EMP"."MGR"  =  :BRANCH_IDUsing this query, I also need to retrieve the LEVEL pseudo-column as well for each record retrieved as I need the LEVEL info for trying to determine at what level of the tree I am at.
    I would actually like to incorporate the LEVEL column into the above query - is this possible?
    Thanks.
    Tony.

    SQL> desc test
    Name Null? Type
    COLUMN1 VARCHAR2(10)
    COLUMN2 VARCHAR2(10)
    MGR VARCHAR2(10)
    SQL> select * from test
    2 /
    COLUMN1 COLUMN2 MGR
    1 a 33
    3 i 33
    2 g 33
    4 b 33
    5 c 44
    6 d 44
    22 e
    33 f 22
    44 h 22
    9 rows selected.
    SQL> select column1, column2, mgr, level
    2 from test
    3 start with mgr = '22'
    4 connect by prior column1 = mgr
    5 order by level
    6 /
    COLUMN1 COLUMN2 MGR LEVEL
    33 f 22 1
    44 h 22 1
    6 d 44 2
    4 b 33 2
    5 c 44 2
    3 i 33 2
    1 a 33 2
    2 g 33 2
    8 rows selected.

  • Hierarchy in F4 help

    Hi,
         I have written a program which should accept material hierarchy as input. Please let me know if there is any function module to invoke the hierarchy tree structure in the selection screen of a program just as it appears in a BW query.

    An example of a tree hierarchy is shown below:
    643     RIMOS     RIMOS
                              1098     10_SHOP     SHOP_RIMOS
                                     625     910     FRESH
                                                         626     91010     MILK MILK PRODUCTS EGG SOY

  • Error when moving Exchange Public Folder Tree Hierarchy

    Hello,
    I am during the transition from Exchange 2003 to 2007.
    At the end of migrating Exchange 2003 to Exchange 2007 I have moved all the mailboxes, Public and System Folders have been replicated and moved, Mailbox Store and Public Store had been removed, Routing Connectors removed ...
    I then created new Public Folder Container in Exchange Administrative Group (FYDIBOHF23SPDLT) and I attempted to drag and drop the Public Folder Tree Hierarchy from old Administrative Group to Exchange Administrative Group using ESM 2003.
    During this I got the following error:
    Access Denied.
    Facility: LDAP Provider
    ID no: 8007005
    Exchange System Manager
    Every public and system folders works fine (replicated to Exchange 2007), but the Public Folder Hierarchy is still on Exchange 2003.
    Anyone has any idea how to continue decommission of Exchange 2003?
    Regards,
    Jacek

    As I wrote before, when I tried to drag and drop the Public Folder Tree Hierarchy, I used account which had delegated Exchange Full Administrator role in Exchange 2003 and was also member of Enterprise Admins / Domain Admins in AD and Exchange Organization
    Administrators in Exchange 2007. According to Sembee suggestion, it is more than needed ...
    I think about manual deleting Public Folder Tree Hierarchy object from old Administrative Group (using ADSIEdit) and then recreating the new one in Exchange Administrative Group - using the following steps:
    http://blog.bruteforcetech.com/archives/766
    But I'm not sure if System Folders will be accessible then. There are many Outlook 2003 in organization, so "old" OAB access is necessary ...
    I can take report of permissions for the problematic Public Folder Tree Hierarchy object using dsacls.exe, if needed (there are many ACEs in DACL on them). I can also check Effective Permission for user I used for moving.
    But in both cases, I don't have any reference. I mean correct permission set for such object or necessary permission set for user used for moving.
    Regards,
    Jacek
    MCT, MCITP, MCTS, MCSE+M, MCSA+M

  • ALV Tree Hierarchy using OOPS

    Hi all,
    I have developed a program for ALV Tree Hierarchy using OOPs.I followed the SAP demo program.I am not able to get the values in the output.Please can anyone guide me where to correct my program. I am placing the entire code so that you all can also debug and see what is wrong.
    *& Report  ZZHIERARCHY_TEST1
    REPORT  zzhierarchy_test1.
    DATA : alv_container TYPE REF TO cl_gui_custom_container,
           alv_tree      TYPE REF TO cl_gui_alv_tree,
           gt_fcat          TYPE lvc_t_fcat,
           gt_vbrk TYPE vbrk OCCURS 0.                             "Output Table
    DATA : gs_hirarchy_header TYPE treev_hhdr.
    START-OF-SELECTION.
    END-OF-SELECTION.
      CALL SCREEN 9100.
    *&      Module  STATUS_9100  OUTPUT
    MODULE status_9100 OUTPUT.
      SET PF-STATUS 'ALV_TREE'.
      IF alv_container IS INITIAL.
        PERFORM tree_dev.
      ENDIF.
    ENDMODULE.                 " STATUS_9100  OUTPUT
    *&      Form  tree_dev
          text
    FORM tree_dev .
      DATA lv_container_name(20) TYPE c.
      lv_container_name = 'ALV_TREE'.
      CREATE OBJECT alv_container
        EXPORTING
          container_name              = lv_container_name
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5
          OTHERS                      = 6.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CREATE OBJECT alv_tree
        EXPORTING
          parent                      = alv_container
          node_selection_mode         = cl_gui_column_tree=>node_sel_mode_single
          item_selection              = 'X'
          no_toolbar                  = ''
          no_html_header              = 'X'
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          illegal_node_selection_mode = 5
          failed                      = 6
          illegal_column_name         = 7
          OTHERS                      = 8.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      PERFORM build_hirarchy_header CHANGING gs_hirarchy_header.
      PERFORM buid_fieldcatalog.
      CALL METHOD alv_tree->set_table_for_first_display
        EXPORTING
          is_hierarchy_header = gs_hirarchy_header
        CHANGING
          it_outtab           = gt_vbrk               "Table Must be Empty
          it_fieldcatalog     = gt_fcat.
      PERFORM create_hierarchy.
      CALL METHOD alv_tree->frontend_update.
    ENDFORM.                    " tree_dev
    *&      Form  build_hirarchy_header
         <--P_GS_HIRARCHY_HEADER  text
    FORM build_hirarchy_header  CHANGING p_gs_hirarchy_header TYPE treev_hhdr.
      p_gs_hirarchy_header-heading   =  'Company Code'(001).
      p_gs_hirarchy_header-tooltip   =  'Comapny Code'(002).
      p_gs_hirarchy_header-width     =   35.
      p_gs_hirarchy_header-width_pix =   ''.
    ENDFORM.                    " build_hirarchy_header
    *&      Form  buid_fieldcatalog
    FORM buid_fieldcatalog .
      DATA ls_fcat TYPE lvc_s_fcat.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
       EXPORTING
         i_structure_name             = 'VBRK'
        CHANGING
          ct_fieldcat                  = gt_fcat
       EXCEPTIONS
         inconsistent_interface       = 1
         program_error                = 2
         OTHERS                       = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      LOOP AT gt_fcat INTO ls_fcat.
        CASE ls_fcat-fieldname.
          WHEN 'NETWR'.
            ls_fcat-do_sum = 'X'.
            ls_fcat-h_ftype = 'MAX'.
        ENDCASE.
        MODIFY gt_fcat FROM ls_fcat.
      ENDLOOP.
    ENDFORM.                    " buid_fieldcatalog
    *&      Form  create_hierarchy
    FORM create_hierarchy .
      DATA : lt_vbrk TYPE TABLE OF vbrk,
             ls_vbrk TYPE vbrk.
      DATA : top_key     TYPE lvc_nkey,
             company_key TYPE lvc_nkey,
             bzirk_key   TYPE lvc_nkey.
      DATA : lv_bukrs     TYPE bukrs,
             lv_bukrs_prv TYPE bukrs,
             lv_bzirk     TYPE bzirk,
             lv_bzirk_prv TYPE bzirk.
      SELECT * FROM vbrk INTO TABLE lt_vbrk UP TO 500 ROWS.
      SORT lt_vbrk BY bukrs .
      CALL METHOD alv_tree->add_node
        EXPORTING
          i_relat_node_key     = ''
          i_relationship       = cl_gui_column_tree=>relat_last_child
          i_node_text          = 'Company Code'
        IMPORTING
          e_new_node_key       = top_key
        EXCEPTIONS
          relat_node_not_found = 1
          node_not_found       = 2
          OTHERS               = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      LOOP AT lt_vbrk INTO ls_vbrk.
        lv_bukrs = ls_vbrk-bukrs .
        lv_bzirk = ls_vbrk-bzirk .
        IF lv_bukrs <> lv_bukrs_prv.
          lv_bukrs_prv =  lv_bukrs.
          PERFORM add_node USING lv_bukrs
                                 top_key
                        CHANGING company_key.
        ENDIF.
        IF lv_bzirk <> lv_bzirk_prv.
          lv_bzirk_prv = lv_bzirk.
          PERFORM add_posnr USING lv_bzirk
                                  company_key
                         CHANGING bzirk_key.
        ENDIF.
      ENDLOOP.
    ENDFORM.                    " create_hierarchy
    *&      Form  add_node
         -->P_LV_BUKRS  text
         -->P_TOP_KEY  text
         <--P_COMPANY_KEY  text
    FORM add_node  USING    p_lv_bukrs    TYPE bukrs
                            p_top_key     TYPE lvc_nkey
                   CHANGING p_company_key TYPE lvc_nkey .
      DATA: l_node_text TYPE lvc_value,
            ls_vbrk TYPE vbrk.
      l_node_text = 'Company' .
      CALL METHOD alv_tree->add_node
        EXPORTING
          i_relat_node_key     = p_top_key
          i_relationship       = cl_gui_column_tree=>relat_last_child
          is_outtab_line       = ls_vbrk
          i_node_text          = l_node_text
        IMPORTING
          e_new_node_key       = p_company_key
        EXCEPTIONS
          relat_node_not_found = 1
          node_not_found       = 2
          OTHERS               = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " add_node
    *&      Form  add_posnr
          text
         -->P_LV_POSNR  text
         -->P_COMPANY_KEY  text
         <--P_POSNR_KEY  text
    FORM add_posnr  USING    p_lv_bzirk    TYPE bzirk
                             p_company_key TYPE lvc_nkey
                    CHANGING p_bzirk_key   TYPE lvc_nkey.
      DATA ls_vbrk TYPE vbrk.
      CALL METHOD alv_tree->add_node
        EXPORTING
          i_relat_node_key     = p_company_key
          i_relationship       = cl_gui_column_tree=>relat_last_child
          is_outtab_line       = ls_vbrk
          i_node_text          = 'Sales District'
        IMPORTING
          e_new_node_key       = p_bzirk_key
        EXCEPTIONS
          relat_node_not_found = 1
          node_not_found       = 2
          OTHERS               = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDFORM.                    " add_posnr
    *&      Module  USER_COMMAND_9100  INPUT
    MODULE user_command_9100 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
      CALL METHOD alv_container->free.
      LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9100  INPUT

    Check this forum there are many threads on this.

  • How to save the tree hierarchy into an excel

    Is there any untility avaliable in Application express to save the tree hierarchy into an excel, when shown in a page.

    Using this example, you may export any query:
    http://spendolini.blogspot.com/2006/04/custom-export-to-csv.html
    Denes Kubicek

  • To display Product tree hierarchy

    Hi
    Has anyone used webservices to display theproduct structure in a product tree hierarchy format using webservices.
    Kindly provide your inputs.
    Thanks

    Do you want to display the alt text on image?
    If so you can directly use alt="<your product description>" on the img tag
    eg:
    <dsp:getvalueof var="prodDetail" param="product.description"/>
    <img src="/path/to/your/img" alt="${prodDetail}"/>

  • Hierarchy variable inpu help not displayed correctly in the portal

    Hi ,
    I have a problem when trying to select Hierarchy in the variable selection screen hierarchy  is not being displayed
    correctly in the portal/browser  . When running the same report in BEX Analyser  and in RSRT with HTML option the
    hierarchy displays correctly in the variable selection screen .
    In Portal Var selection screen Hierarchy is displayed side by side ie horizontally not level by level.
    Please help.

    Thanks Venkat, Problem is solved with the note u mentined

  • Display tree hierarchy in adobe print form scenario

    Hi
    Can someone suggest what is the best way to create a tree structure in adobe print scenario ? can we display icon also next to the text in the tree. For example I want to get folder and file icons also along with their names in hierarchial manner.
    Regards
    vishal

    hi,
    to populate the dropdown list you can do it...
    1). manually or 
    2). by code
    1). <b>manually</b> go to interactive form->edit
         go to Object tab->field tab ->
         you must see something like
         List Items :
         Text     + x
         click on the green + sign...
         it promps you to type. type in the value press enter... and so  on...
    2) <b>by Code...</b>
        //set up contents of a drop down list dynamically...
        IWDAttributeInfo countryInfo = wdContext.nodeTravelData().getNodeInfo().
                getAttributeInfo().getAttribute("DestinationCountry");
        ISimpleTypeModifiable countryType =
                countryInfo.getModifiableSimpleType();
        IModifiableSimpleValueSet countryValueSet  =
                countryType.getSVServices().getModifiableSimpleValueSet();
        countryValueSet.put("1","Germany");
        countryValueSet.put("2","UK");
    This will work....
    regards,
    -amol gupta

  • Building Tree hierarchy Using nested loops and class cl_gui_column_tree

    Hello gurus,
    I want to create a tree report using custom container and class cl_gui_column_tree. I have read and understood the standard demo report which SAP has provided i.e. SAPCOLUMN_TREE_CONTROL_DEMO. But in this report all the levels nodes are created as constants and hardcoded. I want to create hierarchy using nested loops. For this i took one example of a hierarchy of VBAK-VBELN->VBAP-POSNR Like One sales order has many line items and each line item can have number of line items in billing plan.
    I have done some coding for it.
    FORM build_tree USING node_table TYPE treev_ntab
                                           item_table TYPE zitem_table.              " i created the zitem_table table type of mtreeitm in SE11.
      DATA: node TYPE treev_node,
                 item TYPE mtreeitm.
      node-node_key = root.
      CLEAR node-relatkey.
      CLEAR node-relatship.
      node-hidden = ' '.
      node-disabled = ' '.
      CLEAR node-n_image.
      CLEAR node-exp_image.
      node-isfolder = 'X'.
      node-expander = 'X'.
      APPEND node TO node_table.
      item-node_key = root.
      item-item_name = colm1.
      item-class = cl_gui_column_tree=>item_class_text.
      item-text = 'Root'.
      APPEND item TO item_table.
      item-node_key = root.
      item-item_name = colm2.
      item-class = cl_gui_column_tree=>item_class_text.
      item-text = 'Amount'.
      APPEND item TO item_table.
      LOOP AT it_vbeln INTO wa_vbeln.
        node-node_key = wa_vbeln-vbeln.
        node-relatkey = root.
        node-relatship = cl_gui_column_tree=>relat_last_child.
        node-hidden = ' '.
        node-disabled = ' '.
        CLEAR node-n_image.
        CLEAR node-exp_image.
        node-isfolder = 'X'.
        node-expander = 'X'.
        APPEND node TO node_table.
        item-node_key = wa_vbeln-vbeln.
        item-item_name = colm1.
        item-class = cl_gui_column_tree=>item_class_text.
        item-text = wa_vbeln-vbeln.
        APPEND item TO item_table.
        item-node_key = wa_vbeln-vbeln.
        item-item_name = colm2.
        item-class = cl_gui_column_tree=>item_class_text.
        item-text = wa_vbeln-netwr.
        APPEND item TO item_table.
        LOOP AT it_posnr INTO wa_posnr.
        node-node_key = wa_posnr-posnr.
        node-relatkey = wa_vbeln-vbeln.
        node-relatship = cl_gui_column_tree=>relat_last_child.
        node-hidden = ' '.
        node-disabled = ' '.
        CLEAR node-n_image.
        CLEAR node-exp_image.
        node-isfolder = ' '.
        node-expander = ' '.
        APPEND node TO node_table.
        item-node_key = wa_posnr-posnr.
        item-item_name = colm1.
        item-class = cl_gui_column_tree=>item_class_text.
        item-text = wa_posnr-posnr.
        APPEND item TO item_table.
        item-node_key = wa_posnr-posnr.
        item-item_name = colm2.
        item-class = cl_gui_column_tree=>item_class_text.
        item-text = wa_posnr-netpr.
        APPEND item TO item_table.
        ENDLOOP.
      ENDLOOP.
    ENDFORM.
    Now this program compiles fine and runs till there is only one level. That is root->vbeln. But when i add one more loop of it_posnr it gives me runtime error of message type 'X'. The problem i found was uniqueness of item-item_name as all the sales order have posnr = 0010. What could be done? I tried giving item_name unique hierarchy level using counters just like stufe field in prps eg. 10.10.10, 10.10.20,10.20.10,10.20.20,20.10.10 etc.. etc.. but still i am getting runtime error when i add one more hierarchy using nested loop. Plz guide.
    Edited by: Yayati6260 on Jul 14, 2011 7:25 AM

    Hello all,
    Thanks the issue is solved. The node key was not getting a unique identification as nodekey. I resolved the issue by generating unique identification for each level. Thanks all,
    Regards
    Yayati Ekbote

  • How to build tree/hierarchy/explorer format in internal table

    Dear Friends,
    I have one internal table with parent and child, again child will be acting as parent and it can have further childs ......
    like that it goes on there is no constant levels it goes on....
    for example.
    parent child
    100 101
    102
    103
    101 201
    202
    102 301
    103 401
    402
    403
    this has to be displayed in hierarchy mode.
    here i to as a column wich has to represent its position/level in the hierarchy like:
    1
    1.1
    1.1.1
    1.2
    1.2.1
    ......n
    1.2.2...n
    1.3
    2
    2.1
    2.2
    3
    etc...
    let me know any ideas to get the maping of the rows to put it in tree format( like windows explorer).
    Thanks,
    Mahesh.Gattu

    REPORT  Z_TREE.
    TYPE-POOLS: ICON.
    TYPE-POOLS : FIBS,STREE.
    INCLUDE <ICON>.
    DATA : T_NODE TYPE SNODETEXT.
    DATA : NODE_TAB LIKE T_NODE OCCURS 0 WITH HEADER LINE.
    DATA : ITAB LIKE VBAP OCCURS 0 WITH HEADER LINE.
    DATA : ITTX LIKE MAKT OCCURS 0 WITH HEADER LINE.
    DATA : LI TYPE I VALUE 1.
    CLEAR : NODE_TAB, NODE_TAB[].
    SELECT * FROM VBAP INTO TABLE ITAB UP TO 50 ROWS.
    SELECT * FROM MAKT INTO TABLE ITTX FOR ALL ENTRIES IN ITAB WHERE MATNR = ITAB-MATNR.
    NODE_TAB-TYPE = 'T'.
    NODE_TAB-NAME = ''.
    NODE_TAB-TLEVEL = '01'.
    NODE_TAB-NLENGTH = ''.
    NODE_TAB-COLOR = '3'.
    NODE_TAB-TEXT = 'ICON_DETAIL'.
    NODE_TAB-TCOLOR = '1'.
    NODE_TAB-KIND = 'I'.
    NODE_TAB-TLENGTH = '2'.
    NODE_TAB-TEXT1 = 'Details'.
    NODE_TAB-TCOLOR1 = '2'.
    NODE_TAB-KIND = 'I'.
    NODE_TAB-TLENGTH1 = '10'.
    APPEND NODE_TAB.
    CLEAR NODE_TAB.
    LOOP AT ITAB.
      AT NEW VBELN.
        NODE_TAB-TYPE = 'P'.
    *   node_tab-name = 'Sale Number'.
        NODE_TAB-TLEVEL = '02'.
    *   node_tab-nlength = '12'.
        NODE_TAB-TCOLOR = '4'.
        NODE_TAB-TEXT = ITAB-VBELN.
        NODE_TAB-TLENGTH ='10'.
        APPEND NODE_TAB.
        CLEAR NODE_TAB.
      ENDAT.
    READ TABLE ITTX WITH KEY MATNR = ITAB-MATNR.
      NODE_TAB-TYPE = 'P'.
    * node_tab-name = 'LI'.
      NODE_TAB-TLEVEL = '03'.
    * node_tab-nlength = '4'.
    NODE_TAB-TEXT = 'ICON_MATERIAL'.
    NODE_TAB-TCOLOR = '1'.
    NODE_TAB-KIND = 'I'.
    NODE_TAB-TLENGTH = '2'.
      NODE_TAB-TCOLOR1 = '5'.
      NODE_TAB-TEXT1 = ITAB-MATNR.
      NODE_TAB-TLENGTH1 = '20'.
      NODE_TAB-TCOLOR2 = '7'.
      NODE_TAB-TEXT2 = ITTX-MAKTX.
      LI = STRLEN( ITTX-MAKTX ).
      NODE_TAB-TLENGTH2 = LI.
      APPEND NODE_TAB.
      CLEAR NODE_TAB.
    *  READ TABLE ITTX WITH KEY MATNR = ITAB-MATNR.
    *  NODE_TAB-TYPE = 'P'.
    ** node_tab-name = 'LI'.
    *  NODE_TAB-TLEVEL = '03'.
    ** node_tab-nlength = '4'.
    *  NODE_TAB-TCOLOR1 = '7'.
    *  NODE_TAB-TEXT1 = ITTX-MAKTX.
    *  LI = STRLEN( ITTX-MAKTX ).
    *  NODE_TAB-TLENGTH = LI.
    *  APPEND NODE_TAB.
    *  CLEAR NODE_TAB.
    ENDLOOP.
    CALL FUNCTION 'RS_TREE_CONSTRUCT'
      TABLES
        NODETAB = NODE_TAB.
    *DATA: type_mapping TYPE stree_ctl_type_mapping_tab.
    *DATA: wa_type TYPE stree_ctl_type_mapping.
    *CLEAR: type_mapping[].
    *wa_type-type = 'A'.
    *wa_type-icon = '@BL@'.
    *APPEND wa_type TO type_mapping.
    CALL FUNCTION 'RS_TREE_LIST_DISPLAY'
      EXPORTING
        STATUS      = 'STANDARD'
        USE_CONTROL = 'L'.

  • Tree component problem plz help me

    Hi all,
    tree component is working perfectly. But according to my requirement i need to sort the date in tree.
    Iam trying that since 2 days but not able to find any solution.
    can any one help me plz.
    Thanks in advance.

    Check this thread:
    ADF Sortable TreeTable
    This would provide the required inputs for sorting the tree.
    Thanks,
    Navaneeth

  • Tree Hierarchy in Web Dynpro

    Hello All,
    I want to create a web dynpro application that implements some functionlity that I saw in the SAP backend system. In the backend, I have a transaction that allows me to drill down into nodes and add and remove them with a right click context menu. This is like a tree structure with the ability to add, remove and modify node elements. I want to present this to the front end user using web dynpro and possible in a nice table format. How can I go about doing this? Any suggestions?
    Thanks
    Marshall.

    Ok, I try to explain with a simple example.
    Say, your context has the following structure:
    WebDynproClass (node, cardinality=0:n)
    - expanded (boolean)
    - name (string)
    - SubClasses (recursive node -> Class)
    Then, you can build the following tree:
    UIElement (root)
    + AbstractCaption (e_1)
       + AbstractButton (e_1_1)
          + Button (e_1_1_1)
    + RadioButton (e_2)
    with code like
    /* helper method, put inside //@@begin others...//@@end section */
    private IWebDynproClassElement addSubClass(String name, IWebDynproClassElement parent)
      IWebDynproClassElement child = (parent == null)
        ? wdContext.nodeWebDynproClass().createAndAddWebDynproClassElement()
        : parent.nodeSubClasses().createAndAddWebDynproClassElement();
      child.setExpanded(true);
      child.setName(name);
      return child;
    /* builds initial tree, call from wdDoInit() */
    private void init()
      IWebDynproClassElement root = addSubClass("UIElement", null);
      IWebDynproClassElement e_1 = addSubClass("AbstractCaption", root);
      IWebDynproClassElement e_1_1 = addSubClass("AbstractButton", e_1);
      IWebDynproClassElement e_1_1_1 = addSubClass("Button", e_1_1);
      IWebDynproClassElement e_2 = addSubClass("RadioButton", root);
    Now if you want to add "Caption" as subclass of "AbstractCaption" later, you have to find the context element that represents the "AbstractCaption" class and add it as above:
    IWebDynproClassElement parent = find("AbstractCaption");
    addSubClass("Caption", parent);
    If you have to implement the find() method at all depends on your application. Maybe you want to
    - provide a context menu (available since 7.1) on the tree nodes to add child nodes, or
    - provide a static menu at the table cell editor (since 7.0)
    - you provide a toolbar button to add a child node to the currently selected tree node (since 6.40)
    Example for a static menu at a TextView cell editor:
    Table (dataSource = WebDynproClass)
    + TreeByNestingTableColumn (expanded = WebDynproClass.expanded)
       + TextView (text = WebDynproClass.name)
          + Menu
             + MenuItem (id = AddChildItem, onAction = AddChild, nodeElement -> AddChild.parent)
    Action "AddChild" has text "Add Child" and a parameter "parent" of type IWebDynproClassElement. Action handler is
      public void onActionAddChild(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, com.sap.demo.rec.treetable.comp.wdp.IPrivateMainView.IWebDynproClassElement parent )
        //@@begin onActionAddChild(ServerEvent)
        addSubClass("Child #" + parent.nodeSubClasses().size() + " of " + parent.getName(), parent);
        //@@end
    Then you will get a menu at each tree node with an entry "Add Child" that adds a new child node with some generic text.
    Armin

Maybe you are looking for

  • Gnome session start up programmes

    Running Arch on a Fujitsu Siemens Amilo laptop with 512MB RAM. 2GHz. Athlon proc. -getting a bit long in the tooth..and the laptop Which of these can safely be disabled in Gnome session start up programmes? 1. AT SPI Registry Wrapper 2. Disk Notifica

  • RUNTIME EXCEPTION-Cannot cast null to boolean'.

    Hi Friends, I have the below mapping.The if condition is satisfied,even though 'then' value is going to the target field. When i try to check the queue of the 'IF' function it is throwing error RUNTIME EXCEPTION-Cannot cast null to boolean           

  • Selecting files NOT modified today (or yesterday, or over the past week)

    This is so trivial that the answer must be right in front of me where I cannot see it. Where is the 'not' operator for selection criteria? I'm trying to 'find Finder items' modified no less than a day ago. I can get "Date modified today", and what I

  • How to resolve a UTFDataFormatException

    I fail to put an xml file in the container with this line-command : dbxml> putDocument codes ./codes.xml fI have this message error : stdin:9: putDocument failed, Error: Error: XML Indexer: Fatal Parse error in doc ument at line 1, char 39. Parser me

  • Error #1014: Class flash.media::MicrophoneEnhancedOptions could not be found.

    Hi, I'm trying to build a mobile app, that is using a webcam, text/audio chat. The web cam and the text chat is working fine with me, I even tried the whiteboard and it was working. Once I tried to add the Audio part I got this error:           "Erro