Creating a Hirarchial tree dynamically

HI..
How to create a Hirarchial tree structure in forms dynamically
Regards
Yashavanth

Hi ,
Tree can be build on at least 3 method :
- Hierarchical select statement .
- Build your Tree based on a Record Group.
- using the FTREE package (ADD and DELETE tree Data) .
Best Regards,

Similar Messages

  • HOW TO CREATE NODES IN A TREE DYNAMICALLY

    Hi Experts,
    How to create node in a tree dynamically......
    my requirement is in tree there should be nodes which should contain some applications....
    plz explain clearly na......
    help me in this ......
    waiting for u r response .....
    Regars,
    Shilpa

    Hi shilpa,
    These may help you...
    Re: dynamic generation of Tree UI element
    dynamic programming part in below link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/21/ad884118aa1709e10000000a155106/content.htm
    try to search on Tree node creation in below link
    http://www.sap-press.de/download/dateien/1103/sappress_maximizing_web_dynpro_for_java.pdf
    regards,
    Pradeep
    Edited by: pradeep bondla on Jun 26, 2008 3:39 PM

  • Creating a directory tree

    Hello
    I am a newbe in java/jsp and i want to create a session java bean which can contain the structure of a directory tree. Like the one of windows explorer. I am having a java been containig the cuurent state of the tree. Should thid bean be a vector of vectors of vectors or is there a better way to store the trees current structure. And if i make it like vector of vectors will i be able to iterate the multidimansional vectors with jsp tags??
    Any ideas on how to make the file tree?
    Thnx for any tip!

    You can use the JSP Tree Tag I have developed. This helps you both structuring the tree model itself + it takes care of displaying the tree in a nice way. You can change all HTML code used to display the tree. Also you can build trees dynamically instead of just displaying static trees. Take a look at it here:
    http://www.jenkov.dk/projects/treetag/treetag.jsp
    Kind Regards,
    Jakob Jenkov

  • Creation of Tree dynamically

    HI Friends,
    I faced one problem on To create tree dynamically in Webdynpro ABAP. The output like
    ">A1"
    "      >B1"
    "      >B2"
    ">A2"
    "     >B3"
    "        >C1"
    How to create dynamically?
    Regards,
    Sathya

    Hi Satya,
    go throught
    http://help.sap.com/saphelp_nw04s/helpdata/en/21/ad884118aa1709e10000000a155106/frameset.htm
    http://s a p t e c h n i c a l.com/T u t o r i a l s /WebDynproABAP/Tree/Page1.htm
    Though its not dynamic method, you can use below for dynamic manipulation
    Dynamic programing  in WD4ABAP ?
    Thanks,
    Prashant

  • How to create the selection screen dynamically

    Hi,
    I have a requirement to create the selection screen Dynamically. All the fields that should appear on the selection screen will be available in a custom table. So, based on the entries available in the Z tables, the selection screen should be built. Eg. If there are 10 records available in the Z table, the selection screen should consist of 10 fields. If there are 100 entries, the Selection screen should contain 100 fields. and the logic to build this selection screen should be carried out dynamically in the program.
    Could anyone of you please share the valuable inputs on this. If anyone has the sample code to do this, please share.
    Thanks in advance.
    Regards,
    Paddu.

    Hi,
    Kindly go through this sample program below:
    DEMO_LIST_FORMAT_INPUT *and
    check this function module:
    FREE_SELECTIONS_DIALOG *.
    Hope it helps
    Regards
    Mansi

  • How to Create a Table Component Dynamically based on the Need

    Hello all,
    I have a problem i need to create dynamically tables based on the no of records in the database. How can i create the table object using java code.
    Please help.

    Winston's blog will probably be helpful:
    How to create a table component dynamically:
    http://blogs.sun.com/roller/page/winston?entry=creating_dynamic_table
    Adding components to a dynamically created table
    http://blogs.sun.com/roller/page/winston?entry=dynamic_button_table
    Lark
    Creator Team

  • How to create a webdynpro view dynamically and embed into view container?

    Hi all,
    Anyone knows how to create a view dynamically and embed the view into an existing view container?
    My layout looks like this:
    I have an existing view named main_view.
    Inside main_view, I create a view ui container named vcu_view.
    I embed the main_view into my window.
    I need the codes to create a view dynamically and embed the view into the view container. Anyone have any idea?
    Thanks in advance.
    Rgds,
    Siong Chao

    hi Siong Chao   ,,
    empty view insence ..( create a view without any UI element in it  ) in design time ..
    >
    Siong Chao wrote:
    > Hi Chinnaiya,
    >
    > How do you create an empty view dynamically then? Thanks in advance.
    i think we cannot create a new view dynamically because it is a webdynpro restriction ..
    NOTE: experts correct me if i am wrong in this answer
    Regards
    Chinnaiya P

  • Create a New Tree in Query Access Manager

    Folks,
    Hello. In PeopleTools Query Access Manager, click on button "Create a New Tree" to create a new Query Access Tree, the system always comes up this message:
    "You are not authorized to update definition QUERY_TREE_OLAP. You are not authorized to update the specific definition. Contact your security administrator for access to the specified definition."
    Do any folks understand how to solve this problem ?
    Thanks.

    I figured it was that simple.
    I haven't seen you on here in awhile.

  • How to create a Folder Tree in Exchange Server from a Java progarm.

    hi all,
    I am using Microsoft Exchange Server 2000. I have a requirement of creating the following things from a Java program.
    1) Creating a Folder Tree
    2) Creating a Mailbox Store
    3) Creating a Public Store
    4) Creating a Recipient Policy
    5) Creating a Storage Group
    6) Creating a Mail-Enabled Recipient
    7) Adding a new UPN suffixes
    If any of you have worked on such requirement can you please provide me with some information regarding the same.
    Thanks & Regards
    Anil

    Any luck with this Anil?
    I would like to query exchange for the list or recipients on a given mailing list.
    Please inform if there is any documentation that may be helpful.

  • Problem creating an internal table dynamically

    Hi,
    I'm trying to create an internal table dynamically as i would be able to determine the structure of the table based on the user input.
    I've used the sample code from this forum ...
    REPORT  ZRICH_0003       .
    type-pools: slis.
    field-symbols: <dyn_table> type standard table,
                   <dyn_wa>,
                   <dyn_field>.
    data: alv_fldcat type slis_t_fieldcat_alv,
                   it_fldcat type lvc_t_fcat.
                   type-pools : abap.
    data : it_details type abap_compdescr_tab,
           wa_details type abap_compdescr.
    data : ref_descr type ref to cl_abap_structdescr.
    data: new_table type ref to data,
          new_line  type ref to data,
          wa_it_fldcat type lvc_s_fcat.
          selection-screen begin of block b1 with frame title text.
    parameters: p_table(30) type c.
    selection-screen end of block b1.
    Get the structure of the table.
    ref_descr ?= cl_abap_typedescr=>describe_by_name( p_table ).
    it_details[] = ref_descr->components[].
    loop at it_details into wa_details.
      clear wa_it_fldcat.
      wa_it_fldcat-fieldname = wa_details-name .
      wa_it_fldcat-datatype = wa_details-type_kind.
      wa_it_fldcat-inttype = wa_details-type_kind.
      wa_it_fldcat-intlen = wa_details-length.
      wa_it_fldcat-decimals = wa_details-decimals.
      append wa_it_fldcat to it_fldcat .
      endloop.
    Create dynamic internal table and assign to FS
    call method cl_alv_table_create=>create_dynamic_table
                exporting
                it_fieldcatalog = it_fldcat
                importing
                ep_table        = new_table.
    assign new_table->* to <dyn_table>.
    Create dynamic work area and assign to FS
    create data new_line like line of <dyn_table>.
    assign new_line->* to <dyn_wa>.
    <b>* Select Data from table.
    select * into table <dyn_table>           from
    (p_table).</b>
    Write out data from table.
    loop at <dyn_table> into <dyn_wa>.
    do.
    assign component  sy-index  of structure <dyn_wa> to <dyn_field>.
    if sy-subrc <> 0.
    exit.
    endif.
    if sy-index = 1.
    write:/ <dyn_field>.
    else.
    write: <dyn_field>.
    endif.
    enddo.
    endloop.
    I'm able to get the structure of the table that i want, but when i'm trying to select data from the table into this internal table..as highlighted in the sample code above..i'm getting a short dump...saying that ' the database table is 600 bytes wide but the internal table is only 576 bytes wide.
    The internal table is declared as
    field-symbols: <dyn_table> type standard table..
    Could anyone please tell me how to rectify this.
    Thanks in advance,
    Harsha.

    Hi Smitha,
    I'm building the internal table by getting the structure using the method
    cl_abap_typedescr=>describe_by_name( p_table ).
    where p_table is the table name determined dynamically..
    Now using this structure, i'm building an internal table by calling the method
    call method cl_alv_table_create=>create_dynamic_table
    I've checked all the fields after the internal table has been created .. and it contains all the fields of the table that i'm supplying initially..
    But when i read data into that internal table, it gives me that dump..I've described it in this post earlier.
    Any more suggestions would be very helpful.
    Thanks,
    Harsha

  • Can I create a custom-scripted dynamic stamp in Acrobat Standard or do I have to buy Acrobat Pro?

    I am researching options for the company I work for to take it's invoicing system paperless and I need to know if I can create a custom-scripted dynamic stamp in Acrobat Standard or is that possible only in Acrobat Pro?

    You can create a custom dynamic stamp in Std. and Pro. and you can use the dynamic stamp in Reader as well. Here is an infographic on Creating a Custom Dynamic Stamp in Acrobat XI.

  • Creating a KD Tree and only sorting the points once for each axis

    So right now I have some code for creating a KD Tree (2-Dimensions) but I am sorting the x and y values for the node each time I create a new node. Then I am taking the median, setting that as the nodes point, and passing on the left half and right halves of the remaining array to their respective children. I am using Arrays.Sort which I believe takes O(n log(n)) time per sort (once per node), but I have been reading a lot of stuff that states you can get the median in linear time so that the total build time is O(n log(n)). Unfortunately I am having difficulty understanding how. Here is a snippet of an explanation I found.
    Each node has both x-list (ordered in x-coord.) and y-list (ordered in y-coord.)
    Each pi in x-list and y-list is linked to each other.
    Both x-list and y-list can be built in linear time using the two lists of its parent.
    Thus total time to build all x-lists and y-lists is:
    T1 (n) = O(n) + 2T1 (n/2) = O(n log n).
    Since each splitting line can be found in O(1) time (via sorted lists), and there are n &#8722; 1 splitting lines in a kd-tree,
    Thus total time to find all splitting lines is
    T2 (n) = (n &#8722; 1) · O(1) = O(n).
    Hence, total prepossessing time
    = T1 (n) + T2 (n) = O(n log n).My question is, how can I build the arrays in linear time at each node? I have tried working it out on paper for the past few hours but lets say I sort the array using X first and I know that indices 0 - median will be on the left, however even if I had sorted the array by Y also, there is zero guarantee that all the points I need from x[0-median] will be in y[0-median]. They will obviously be included in x[0-median] but they will be sorted by x and not y, forcing me to resort at every single node.
    Any idea?

    swinte1 wrote:
    My question is, how can I build the arrays in linear time at each node? I have tried working it out on paper for the past few hours but lets say I sort the array using X first and I know that indices 0 - median will be on the left, however even if I had sorted the array by Y also, there is zero guarantee that all the points I need from x[0-median] will be in y[0-median]. They will obviously be included in x[0-median] but they will be sorted by x and not y, forcing me to resort at every single node.
    Any idea?So for example, you have 5 points and you sort them by x and y coordinates in two separate arrays:
    x-list: 6 1 4 3 2 5
    y-list: 6 5 1 2 3 4
    Now you want just the points to the right of 4:
    x-list: 3 2 5
    y-list: 5 2 3
    Create the x-list by iterating from the midpoint to the end.
    Add each element in the x-list to a set..
    Iterate through the y-list from left to right:
    If the point in the y-list is contained in the set, add it to the new y-list.
    This creates the arrays in linear time while keeping the points sorted. It does iterate over twice as many points in the y-list as needed though.

  • How to create a decision tree in ABAP (in SAP or not, and how????)

    Hello,
    I have to create a decision tree which has to be called within a BAPI.
    This tree finally has to return 1 single value.
    Can you tell me what's the best solution for this ?
    Should I do this with abap, or should I call a webapplication which provides this tree for me ?
    It would be great if you could provide some example-code for me.
    Kind regards,
    Gert-Jan

    I am not sure I understood what you meant by decision tree. If you are simply talking about arriving at an answer based on one or more inputs, then it is a simple IF ELSEIF ELSE statements or CASE statements.
    Can you please elaborate/give example of what you mean by decision tree?

  • How to create a hirarchy for this characteristic having lengh 50?

    Hi guru's
    I have a scenario like characteristic is having lengh 50.Now I want to create a hierarchy for this characteristic.
    But Hirarchy allows maximum lengh 32chrs only.
    So could you please let me know how to create a hirarchy for this characteristic having lengh 50?
    Thanks in advance
    Sivanand

    Isn't this the same question as here:
    Hi all, Have a problem, Please let me know urgently.
    Why the duplicate postings with different names??

  • How to create a hierarchy Tree

    Oracle Forms 6i
    Hai All
    Could Any Tell me the steps to create a hierarchy tree in oracle forms
    My table is employee_master and fields are
    Empcode number ,
    Empname varchar,
    deptcode number,
    gradecode number and etc
    Here i need to create a tree with Deptcode in that every employees are seperated by grade code
    Thanks In Advance
    Srikkanth.M

    Dear,
    If you get any problem while creating tree, will help you step by step.....
    Thank you,

Maybe you are looking for

  • I can no longer download apps on my iPod. (More info in message)

    I can no longer download apps on my iPod. I recently had a card number on my iTunes account that i had to cancel and now it wants me to enter another card number so i can purchase apps. I only plan on getting free apps on my iPod and i do not want to

  • Have Airport Base: Want to share external HDD with Mac and PC

    I have an Airport Base station with an external HDD connected via USB that has 2 partitions (1 in FAT32 & the other in NTFS). I can access the eHDD via my Mac and listen to my music, photos, etc... I want my XP machine to be able to do access the sam

  • Rendering out 16:9 native clips from Color

    Hi, This may be a silly question...but I sent my project from Final Cut Pro 6 to Color -- footage was shot on an XL-2 at 16:9 with an advanced pull down (removed). So my timeline is DV-NTSC anamorphic 23.98 fps. Color recognizes the frame rate, but n

  • When do i have to use BADI ?

    Hi Gurus Please explain me whre the user of BADI come in Picture in ABAP.

  • General Ledger extraction Entry date wise (FBL3N & FBL1N)

    Hi All, How can we extract the GL entry date wise. We are trying through FBL3N & FAGLL03 but entry date option is not showing in dynamic selection. Please advice. Thanks & Regards. Pankaj