How to create Hierarchy Tree Node structure?
Hi experts,
I want to know how to create a tree with kind of below Structure:
Root A
NodeA1
ITEMA1_IT1
ITEMA1_IT2
ITEMA1_IT3
NodeA2
ITEMA2_IT1
ITEMA2_IT2
NodeA3
ITEMA3_IT1
ITEMA3_IT2
ITEMA3_IT3
ITEMA3_IT4
So when i click on Root A it shows me, NODEA1, NODEA2 & NODEA3....
when further i click on NODEA1, it shows me items like ITEMA1_IT1,ITEMA1_IT2, ITEMA1_IT3.
when further i click on NODEA2, it shows me items like ITEMA2_IT1,ITEMA2_IT2.
SO item will get loaded when i click on perticular node.
how its possible.
I have gone through SDN so many threads, bt i didn't get exactly for webdynpro ABAP.
Please guide me for the same.
Thanks ,
Saurin Shah
Hi,
you can create the tree you wanted as follows:
1) create a node under your context say "root_node" with cardinality 1..1
2) now create an attribute under it called "text" with type string.
3) now create three nodes under this "root_node" called nodeA1 nodeA2 and nodeA3 with cardinality 0..n
4) now under nodeA1 , nodeA2 and nodeA3 create an attribute called "text" with type string...so each node will have one attribute called "text" of type string...
5) now create a node under nodeA1 called "itemA1" with cardinlity 0..n
6) now create an attribute called "text" of type string under this node "itemA"...
7) repeat step 5 and 6 for the other two nodes...nodeA2 and nodeA3
8) now create six supply functionsthese functions will supply the text values for your nodes-
I created like this:
FILL_ITEM1
FILL_ITEM2
FILL_ITEM3
FILL_NODEA1
FILL_NODEA2
FILL_NODEA3
Note:*******************my view is called MAIN******************
hence the coding is
data
lt_elements type if_main=>elements_nodea1.
if you view is called view1...than the data declaration would be
data
lt_elements type if_view1=>elements_nodea1.
9) go to each node and assign the supply function respectively....you can assign this by going to context tab and selecting the node you want to assign the supply function to and just type in the name of the supply funciton or do the help for that field by clicking on the little square btn...
10) now we go the layout tab and put the tree ui on the layout....bind the datasource property to the context node "root_node"
and bind the rootText property to the attribute "text" of the root_node...
11) now right click on this tree ui element under the ROOTUIELEMENTCONTAINER and select "insert node type" ...a box will appear where you can see it has two types of node for you....one is tree_node_type and other one is tree_item_type...
create three nodes with tree_node_type with names "nodeA1" nodeA2 and nodeA3 and three with tree_item_type with names "itemA1" itemA2 and itemA3...
12) now bind all these node types and item types data sources and texts with corresponding nodes and attributes under your context...
so nodeA1datasource will get bind to context nodeA1 and itemA1 data source will get bind to itemA1 from context..and so on...
13) now in the wddoinit method: I setup the text for the root node.....
DATA lo_nd_root_node TYPE REF TO if_wd_context_node.
DATA lo_el_root_node TYPE REF TO if_wd_context_element.
DATA ls_root_node TYPE wd_this->element_root_node.
DATA lv_root_txt TYPE wd_this->element_root_node-root_txt.
navigate from <CONTEXT> to <ROOT_NODE> via lead selection
lo_nd_root_node = wd_context->get_child_node( name = wd_this->wdctx_root_node ).
get element via lead selection
lo_el_root_node = lo_nd_root_node->get_element( ).
@TODO fill attribute
lv_root_txt = 'Root Node'.
set single attribute
lo_el_root_node->set_attribute(
name = `ROOT_TXT`
value = lv_root_txt ).
hope this will give you the solution you are looking for...
Thanks...
AS...........
Similar Messages
-
Create a Tree Node Structure from XML
Hi
We have a requirement where we have an XML file we want to create the Tree Node structure from the XML can anyone help out on this
We are referring to the following blog but in that it is coming from KM content and we require the tree structure to form from a XML file
http://wiki.sdn.sap.com/wiki/display/Snippets/SmartNavigationTreeforKM+Folders
Can anyone help me
Regards
JMHi,
Could you elaborate a litle more exacly what you need to do?
I found the link http://help.sap.com/saphelp_470/helpdata/en/86/8280db12d511d5991b00508b6b8b11/content.htm that maybe assist you.
Please remember to evaluate the replays, this incentive the SDN to keep growing,
regards,
Fabio -
How to create static tree nodes without query
hi ,
i want to create static tree .
e.g.
Employee
Department
Order
these names are static. i dont have from query. but i have to link that nodes to pages how can i do?Hi Nilesh.
I modified my example to show an extra level for the employees.
But I can't say that I fully understand what you are trying to do. You say you don't want to use links, but you want to use the tree for the navigation of pages. And you say that all the names are static, yet there is a node saying 'show employee' ...
But I hope you now understand how it all works and can continue your work!
Kind regards,
-Peter- -
How to create a tree structure using forms.
Hi,
How do i create a tree structure using oracle forms,i have a table named Functions and a specific column 'Function Name' should be displayed in the tree nodes.Can anyone help me out on how to create a tree structure and populating the nodes??
thanks in advance
Regards
KarthikThe FTree package provides functions to populate the tree - look for the topic "Manipulating a hierarchical tree at runtime
" in the online help this point to all the functions and triggers -
How to create a tree structure using list items(tlist)
HI every one,
As we know how to create a tree structure using Hierarchy item type.
We have a requirement to create The same tree like structure using List Item(Tlist)
I would be so appreciated If you send with an example
Thanks
RangaReddyHi all
Any one help me please
Actually our client requirement is creation of tree structure using list item,similar to what we used in oracle Application(FNDSCSGN) form.We did the tree structure using hierarchy tree using Htree and Ftree.It working excelently.For client requirement, we want to use list item.How PJC(Pluggable Java Components) is useful for using list item(Tlist).I can't understand how it is useful.
Do you have any example please help me.
Thanks
RangaReddy -
How to create a tree structure,like I want to create Bill/Payment Tree
How to create a tree structure , like I want to create a Bill/Payment Tree containing a single node for all A/R related activities for a specific bill period, in reverse chronological order. Basically the tree should look like
+ Bill - Date: 03-17-2010 Complete
+++++ CR Note - Date: 05-04-2010 Complete
++++++++++ Pay - Date: 05-04-2010 Frozen
+ Bill - Date: 03-17-2010 Complete
+++++ Pay - Date: 05-04-2010 Frozen
And finally this should be attached as tab on the control centralThe FTree package provides functions to populate the tree - look for the topic "Manipulating a hierarchical tree at runtime
" in the online help this point to all the functions and triggers -
How to create dynamic tree based on BAPI
Hi
I am able to create dynamic tree based on flat file structure example given in SDN . But how to create the tree from BAPI directly.Also when I will be clicking on any leaf node of the tree some data related to the node will be passed to another view.
Regards
AnandaWhat i'm trying to do is create an organizational structure.
Global>Region>Plant-->Corporation
The output from the RFC is a structure containing every possible combination for orgazational hierarchy. Basically a flat table with record for every possible combinaton of Region-Plant-Corporation. This data needs to be bound to a tree structure so that we can call BW queries based on that level. For example: Give me aged inventory for the SAP corporation within the plant Berlin that is located in the Europe region.
Now that you understand the business reason will the nodes that represent Region and Plant and corporation be non-singleton nodes or recursive? I was thinking a hierarchy of non-singleton nodes.
I can bind these nodes to the Region - Plant - Corporation elements returned from in the flat table structure. I will probably get duplicates as a specific Region will be listed multiple times for every possible combination of the data beneath it. I'm not so concerned about that right now as I want to make sure I understand how in Web Dynpro to bind the data to the tree.
Hopefully this makes some sense. Can you elaborate on how this may be constructed in context of the view?
Would i create a model node for region (0..n), model node for plant (0..n), and a model node for Corporation (0..n)?
Or does this sound totally incorrect?
julian
We have 3 regions over 50 plants and probably around 500 corporations. -
How to create hierarchy on bi7 by using dtp
how to create hierarchy on bi7 by using dtp
Hi Deba,
Procedure to create Hierarchies:
1. In the Data Warehousing Workbench under Modeling, choose the InfoObject tree.
2. If you have assigned the hierarchy basic characteristic to an InfoObject catalog, select the corresponding InfoObject catalog for an InfoArea.
If the hierarchy basic characteristic does not belong to an InfoObject catalog, choose the InfoArea Non-Assigned Nodes and the InfoObject Catalog Non-Assigned Characteristics.
3. Select the characteristic for which you want to create a hierarchy and choose Create Hierarchy from the context menu. The Create Hierarchy dialog box appears. The InfoObject name appears by default.
4. Enter a hierarchy name and description (short, medium, long). Other fields may be displayed, depending on which hierarchy properties were selected for the hierarchy basic characteristics
Fields used to enter the Validity (valid to, valid from) for the hierarchy property Total Hierarchy Time-Dependent
Fields used to specify the Hierarchy Version for the hierarchy property Hierarchies Version-Dependent.
5. Confirm your entries. The Maintain Hierarchy screen appears. You can define the structure of a hierarchy here.
6. To create a hierarchy node, you first need to choose an insertion mode: Insert as First Child or Insert As Next Neighbor (see Hierarchy Editing Functions).
7. Choose the type of node you want to create: Text Node, Characteristic Node, <Hierarchy Basic Characteristic Node> or Interval (see Hierarchy Nodes)
8. Repeat this procedure until the hierarchy structure has been set. For more information, see Modeling Nodes and Leaves.
A hierarchy can contain 50,000-100,000 leaves at most. If your hierarchy is larger, you should insert a level that is used as a navigation attribute or preferably as a separate characteristic in the dimension table.
9. You can use Level Maintenance and Hierarchy Attributes to set how the hierarchy is to be displayed and processed in reporting (see Level Maintenance and Hierarchy Attributes).
10. Save the hierarchy.
11. Activate the hierarchy. See Editing Hierarchies.
For more info
[http://help.sap.com/saphelp_nw70/helpdata/EN/80/1a6736e07211d2acb80000e829fbfe/content.htm]
[http://help.sap.com/saphelp_nw70/helpdata/EN/e6/951d102a6c11d5b2e40050da4c74dc/content.htm]
Regards,
Rajkandula -
How to create a tree in table?
How to create a tree in table?
Hi,
check these links,
Tree Structure:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/de59f7c2-0401-0010-f08d-8659cef543ce
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#31
/people/paolo.romano2/blog/2007/11/09/dynamic-tree-in-abap-webdynpro
Regards,
Muneesh Gitta. -
How to create a tree in tree?
how to create a tree in tree?
Hello Luo Cheng
Did you mean to have multiple tree control within a tree control?
I am not understanding what business purpose will this serve to have a tree control inside other? You can always have a specific node and when expanded list all the related nodes.
To have a tree control inside another tree control is not possible.
Regards,
Dinesh -
Dear Experts!!!!!!!!!!
Can some one explain me in detail, how to create hierarchy.
both internal and external hierarchy,methodology,steps.................
Thanks in advance......
Regards,
Suman.TExplain the steps to load master data hierarchies from R/3 system.
A summary of the steps are as follows:
1) Goto Hierachy tab in infobject on to which your loading Hierachy data.
2) Select With Hierarchies.
3) Select Hierarchy Properties ( Time Dependent or not time depen..etc..)
4) Click on External Chars in Hierarchies, in that select the characterstics on which this Hierarchy is depending.
5) Then Create Infosource, assign Datasource.
6) Create Infopackage, to load Hierarchies.
7) Hierarchy section tab in Infoapackage select load Hierarchy and refersh the Available Hierarchies from OLTP, If it is Time dependent select time interval in update tab.
8) Then start the load.
If you want to load from Flat file, some what different way to do it.
It is normally done by the following:
Transferring the master datasources in RSA5 to RSA6 and then replicating the DS into BW and assignment of DS to Infosource and cretaion of Infopackage and load it into the master tables.
Generally, the control parameters for data transfer from a source system are maintained in extractor customizing. In extractor customizing, you can access the corresponding source system in the source system tree of the SAP BW Administrator Workbench by using the context menu.
To display or change the settings for data transfer at source system level, choose Business Information Warehouse --> General Settings --> Maintaining Control Parameters for Data Transfer.
Note: The values for the data transfer are not hard limitations. It depends on the DataSource if these limits can be followed.
In the SAP BW Scheduler, you can determine the control parameters for data transfer for individual DataSources. You can determine the size of the data packet, the number of parallel processes for data transfer and the frequency with which the status IDocs are sent, for every possible update method for a DataSource.
To do so, choose Scheduler --> DataSource --> Default Settings for Data transfer.
In this way you can, for example, update transaction data in larger data packets in the PSA. If you want to update master data in dialog mode, smaller packets ensure faster processing.
Thanks,
Praveen Yagnamurthy,
SAP BI Consultant,
Blue Marlin Systems-INDIA.
http://bluemarlinsys.com/bi. -
How to create a tree view in adobe configurator
Hi
How to create a tree view in adobe configurator
ThanksPlease, can you explain what you mean exactly?
-
How to get a Tree Node Value when a Tree is Expanded
My reqiurement is when i Expand a Tree i need the Expanded tree Node Value. For Example Consider Parent as a Root Node of a Tree, and Consider its two Children Child1 and Child2.
When + Parent Expanded
I will Get the Output as --Parent
- Child1
- Child2
so As when i expand the Tree i must Get the String Value Parent.duplicate
How to get a Tree Node Value when a Tree is Expanded -
How to create multiple Tree Type Region In Tabular Form ?
Dear Friends,
i have to design tabular form to Distribute User Rioght to emp to access application
eg if i have Three module in application
1.Administration
2.Attendance
3.Accounts
Module
1 Administration have 5 Pages A,B,C,D,E.
Module
2 Attendance HAVE 4 Pages F,G,H,I
Module
3 Accounts HAVE 7 Pages J,K,L,M,N,O,P
I need these three module divided into three section in tabular form as a tree Type like
Module 1 Tree Open in Tabular Form like
- (Tree Mark Open )
=======================================================
PAGE_ID-------------SUBPAGE_ID-------VIEW-------------------MODIFY-------------------CREATE----------------------------TABLE COLUMN NAME
========================================================
Administration-----------A------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Administration-----------B------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Administration-----------C------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Administration-----------D------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Administration-----------E------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
- (Tree Mark Open )
Module 2 Tree Open in Tabular Form like
Attendance-----------F------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Attendance-----------G------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Attendance-----------H------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Attendance-----------I------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
- (Tree Mark Open )
Module 3 Tree Open in Tabular Form like
Accounts-------------J------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------K------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------L------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------M------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------N------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------O------------------CHECK bOX------------CHECK BOX-------------CHECK BOX
Accounts-------------P------------------CHECK bOX------------CHECK BOX-------------CHECK BOXi need divided these three Module in Tabular form in three region as tree.
Table APPLICATION_PAGE_DETAILS
ID NUMBER
PAGE_ID NUMBER
SUB_PAGE_ID NUMBER
========================
TABLE USER_RIGHT
======================
ID NUMBER
EMP_ID NUMBER
PAGE_ID NUMBER
SUB_PAGE_ID NUMBER
VIEW VARCHAR2(1)
MODIFY VARCHAR2(1)
CREATE VARCHAR2(1)How to create multiple Tree Type Region In Tabular Form ?
How can i do this ?
Thanks
Edited by: Vedant on Oct 4, 2011 3:21 AM
Edited by: Vedant on Oct 4, 2011 9:09 PM
Edited by: Vedant on Oct 13, 2011 8:57 PMWell think of it I believe the scenario is too bird viewed hence the solution can't be exact.
But thinking of a possible solution every time a child operation fails have a catch block where you you go back to system if the parent needs to be deleted if yes, call Delete Method on the parent.
Note: Make sure that the decision on whether or not the parent record needs to be deleted will depends on the question "Does Parent Record already has several other children associated to it or not"
Hope this clarifies.
Regards,
Messer -
ABAP MAPPING Querry - How to create Different Target NODE NAME as of Source
Hi,
In abap Mapping
<b>DATA READ FROM SOURCE XML NODE into <u>incode</u></b> ******
data: incode type ref to if_ixml_node_collection.
incode = idocument->get_elements_by_tag_name( 'BUSINESS_DAY' ).
<b>CREATE OUTPUT XML NODE WITH SAME NAME AS <u>'BUSINESS_DAY'</u></b> **
data: outcode type ref to if_ixml_node.
outcode = incode->get_item( index = 0 ).
data irc type i.
irc = msgtype->append_child( outcode ).
*<b>BUT TO CREATE OUTPUT XML NODE WITH <u>DIFFERENT NAME AS 'BUSS_DAY'</u></b>*
data: ws_val type string VALUE 'xyz'.
data: elementsender type ref to if_ixml_element.
elementsender = odocument->create_simple_element(
name = 'BUSS_DAY'
value = ws_val
parent = msgtype ).
<b>Please guide me how I can assign <u>incode</u> value to ws_val.
So that I can generate <u>OUTPUT XML NODE with different name as of SOURCE XML NODE</u></b>
i.e. How to create Different Target NODE NAME as of
Source with same Data
<Note>: I am using "How to... Use ABAP Mapping in XI 3.0 ver.1.00" and to create different NODE name as of source
is not given in it.
Thanks & Regards.Hi ABAPers,
Please Guide Me .....
<u>This is ABAP Mapping problem in XI.</u>
<b>How can I read data from incode into ws_val.</b>
data: <b>ws_val</b> type string
data: <b>incode</b> type ref to if_ixml_node_collection.
<b>incode</b> = idocument->get_elements_by_tag_name( 'BUSINESS_DAY' ).
Best Regards
Maybe you are looking for
-
OfficeIntegration control in Web Dynpro ABAP
Hi, Is anyone aware of a test Web Dynpro component available in ECC6 that demonstrates this functionality? We're trying to add the control to a test component but failing to set the dataSource correctly. Is the dataSource property meant to be a URL,
-
PM 7.0 SP2 Pagemaker Corrupts files when it opens them
I work in the IT department at a hospital and the hard drive failed in our Print Shops computer. After reinstalling all the programs I'm having problems with page maker 7.0 whenever I open a document with it (from a networked drive) it corrupts the f
-
Problem Inserting Euro Symbol and few others
We are using java application with oracle 8.1.6 as the db with the charset as WE8ISO8859P15. ALl the forms are using multipart request. We cannot do away without that. When trying to insert euro symbol and few other western european characters, they
-
Idoc Process code- Inbound S.Order
Hi! Could any one give me the process code for inbound processing sales order update. Looking for your Help. Thanks in Advance Rahul.
-
Hello Everyone, I'm trying in the configure properties of a table change the row colors to alternating, but it has no effect. It always remains the same formating, i.e., every row with the same blue color. I only can set it to alternating if the tabl