WD Abap - Tree
hi folks,
i'm working with the Element TREE and now i'm wondering if it is possible to build a tree like that (similar to the tree in sapgui abap):
node
-subnode
-subnode Item1 Item2 Item3
Because all my Item-Fields are always in the next row after the subnode?
kind regards oliver
Hi Oliver,
>I guess the Nesting Tree in a Table could work, am i right?
Yes. Another option would be to use the *ByKey version of the hierarchy column. Using it, you don't need to have a recursive nodes in the context, but a only a single non-recursive one. The parent relationship needs to be expressed via two attributes of this node, one containing the id of the current item and the other one the id of the parent under which it will appear once rendered (there are corresponding attributes in the ui elements, which have to be bound). Btw. There is no need to order the elements concerning their parent relationship. The renderer does that automatically.
Kind regards,
Thomas
Similar Messages
-
Get description for node and items in WD ABAP - Tree
Hi all,
I want to dislay the description for all nodes & Items when creating a Tree. In normal ABAP we assign the relevative text and fill the node table & Item table.
But in the case of WD ABAP how it works.
Please suggest.
Thanks
Sanket sethiHi,
Refere WD application WDT_TREE. In this application, 2 attributes are taken as mt_folder_struc and mt_file_struc. These are of type TIHTTPNVP. While filling these tables, make sure to pass proper parent child node.
See methods, FILL_FILETABLE and FILL_FOLDERTABLE. field NAME corresponds to child key
and field VALUE corresponds to parent key. as these are of type STRING, you need to concatenate text description to code and accordingly fill the tables mt_folder_struc and mt_file_struc.
Regards,
Chandra -
Hello all,
Can anyone tell me where can I find the information on tree report programs..
Thanks in advance
oliverHi Oliver,
And there is an ABAP class, BC412 - ABAP Dialogs Programming using EnjoySAP Controls , which covers the Tree Control plus everything else you might need to know about the SAP Controls, such as:
Functionality and usage of the Control Framework
Container Controls
Linking in and calling up Controls
Data transfer between data objects and Controls
Changing Control characteristics
Reacting on actions of controls
Context Menus
Drag&Drop
Functionality and usage of selected EnjoySAP Controls:
HTML Viewer
Picture
Text Editor
SAP Grid Control
Tree Control -
WebDynpro ABAP tree node collapse trigger event of row selection
Hello expert,
I have a table in my WD abap view, I use MasterColumn to display the tree structure, everything works just fine.
However I encounter one problem:
If I open the tree structure and select one node (table row selection), the event onLeadSelectis triggered, this is correct. However if I collapse any parent nodes (along the tree path) of the selected node, WD puts the selection on the clicked parent and thus the event onLeadSelect is triggered for the parent. This is a strange behavior, because when I collapse a node, I certainly don't want to trigger the onLeadSelect event for the node, becaseu this would invoke the function linked to the event which is only supposed to be triggered when you explicitly select the table row. (BTW, if you don't select any child nodes, then collapse the parent, it does NOT trigger the event).
I've looked into the wdevent data to see if I can differentiate between the event of node collapsing and row selecting, event data is exact same for both cases, thus I have no way to stop the event handler in case of node collapsing.
Anyone had this issue and a solution for this?
Thanks
JaysonHi Jayson,
Its the behavior of the tree element, the lead selection of child is carried over to the parent.
Whenever there is lead selection set and on toggling of tree node, first OnToggle event triggers and then OnLeadSelect triggers. So you can control the execution of onLeadSelect by using EXPANDED parameter of event OnToggle.
Please refer the below steps:
Create an action ON_TOGGLE for the vent OnToggle of tree element and it will be having parameter EXPANDED
Create an attribute in view-->attributes tab GV_EXPANDED
Collect the parameter EXPANDED into gv_expanded
wd_this->gv_expanded = expanded.
Now, you can use wd_this->gv_expanded to control the execution of LEADSELECT logic
Hope this helps you.
Regards,
Rama -
ABAP TREE REPRT with check boxes
Hi,
I am doing tree report where i need check box for each and every node and if user clicks on the check box the details of the nodes should be seen for the boxes that are checked
this program is written in normal abap not in oops
correct inputs are rewarded
Thanks
Rasheed
Edited by: Rasheed salman on Oct 10, 2008 7:02 AMcheck this thread alv tree checbox problem when attempt to get the selected checjboxes
-
hi,
my requirement is related to HR ABAP,
theres a feature called PINCH,
which has following tree/node present...
PINCH
|___TCLAS
|____A Master Date and time
|___________Position
now currently the client doesnt have the Position which i have shown in the fig above, they want that to be added into the node,
my question is if we can add the Position node on the tree, what effect will it have on business.
and if it handles the HR requirement properly, how do i add such a node in that tree.
cheers,
Aditya.Hi aditya,
1. Its not directly possible.
2. The reason is that the Structure behind this PINCH
does not have this field.
3. Even if we try to add the field,
it would amount to change in sap standard.
4. Further, there is no guarantee, that there will be any value in this field.
regards,
amit m. -
Help required to attach CO-PA reports to Report Tree.
HI experts,
Me and my functional are in urgent need of important information. My functional has generate CO-PA reports and now they have asked us to attach those reports to a report tree. My problem is that I have got the transaction SERP which seems useful in attaching the reports the tree. Kindly suggest what is to be done.
Points will be rewarded.
Thanks and Regards,
Saurabh ChhatreHi,
Check the following links:
http://www.sap-img.com/abap/tree-type-report-in-abap.htm
http://www.sap-img.com/ge002.htm
Regards,
Bhaskar -
Hello,
I have a header and an item table which contains customer records in the header table and line items in the item table . A Customer has many billing document and hence there are a lot line items with the same material.
I want to use the collect statement to group all the materials and have one line item for one type of material and want to sum all the quantities of those materials and the price of the material.
suggest the best solution for the particular scenario.
thank you.Hi Rahul,
You can consider using ABAP Tree Control feature if you are planning to use ABAP Dialog Programing. It will be very elegant and will provide you with a nice UI. Have a look at the demo codes for the functionality.
Use the Transaction DWDM to get all the control examples. You can get more examples in SLIS Package.
If you try using ABAP Web Dynpro , then also you can design it in the way you want.
Hope this will help.
Thanks,
Samantak. -
Hi ,
I want to display report output in the form of ALV tree.
Since I have data in 3 internal table for each hierarchial level, I can't use ALV hierarchial sequential list .
Please guide me how to implement the same.
Please share sample code other than SAP code if any.Hi Navdeep,
You have to use class CL_GUI_CUSTOM_CONTAINER to create three different containers.
A reference code on below link :-
[http://wiki.sdn.sap.com/wiki/display/ABAP/TREE+ALV]
Regards
Abhii -
Need some func specs for practice...
Hi guys,
If its possible, I would like to get some func specs/requirements so I can practice. Anyway, here is my e-mail: [email protected]
Again, thank you guys and have a nice day!check these links
http://www.sapgenie.com/abap/ireports.htm
http://www.sapgenie.com/abap/reports.htm
http://www.guidancetech.com/people/holland/sap/abap/
http://cbbrowne.com/info/abap4.html
http://www.sap-img.com/abap/tree-type-report-in-abap.htm
http://www.sapgenie.com/abap/example_code.htm
http://www.sap-basis-abap.com/sapabap.htm -
Need to develop workbench like functionality
hello guys,
have searched the forum but in vain,
although i am able to created docking control with tree control and attach it to a screen by placing one control and one sub screen area on the scree. This is not acceptable.
When i am coding withot any control on screen using splitter, i get nice docking and tree on left side but empty right hand side where i dont understand how to place any screen of my choice.
Have been through workbech transactions and other transaction it calls like se11 orr se38 and i see them using At PBO a special interface IF_WB_MANAGER..which is not very clear to me.
I have three object object1, object2 and object3 which for three different transactions.
I have to get a tree on right side with nodes and object1, object2, object3 and thier childs.
when i click on a child that screen must open on right side.
I know that this docking control has to be attached to each and every transaction or screeen being called but how?
RegardsHI Trivka,
The following link may help you :
https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/tree+alv.
Thanks and regards
-Sudipta -
Problem in Hierarchical sequential ALV
Hi all,
I am using REUSE_ALV_HIERSEQ_LIST_DISPLAY to display my ALV.. in this FM i have check box at header level and item level both. Now functionality i want is if user check the check box at header level all its items (i mean item-level check-boxes) should get selected(checked) automatically.. and from these item level user can un-check any entry he wants ...
what is the way to do it??...as in ALV upon checking header level check-box it should go to USER-COMMAND Subroutine but it is not in my case...so is ther any setting required for this...???Hi
Please Check this
ABAP TREE REPRT with check boxes
Regards
Rasheed -
Hi
How to create own some tooltip text on node (or some extension) for control TreeView?Check this wiki in SDN:
http://wiki.sdn.sap.com/wiki/display/ABAP/TREE+ALV
Search for the form "FORM build_hierarchy_header "
For normal ALV you can do it by populating seltext-l in the fieldcat of those column headers in the ALV .. There are 3 options, seltext-s,m,l.. -
HI Experts,
I am working on WD for ABAP.
I am using a tree to display some data. Node1 points to Root and subnode1 point to node1.
node1-->root
subnode1--> node1
When we expand node1, it shows ">" (arrow) for child nodes.
and if we further expand chld node(sunbnode1) we can see "." (Dot)
As per my requirement IF the node1 does not have any value for subnode1 than node1 should not show ">" , istead of that it should how "." for that child node.
could anyone plz tell me ....
1)how can I solve this.
2)How to use recursive node. I have never used recursive nodes.
PLease reply ASAP. Its very urgent.
for helpfull answers full points would be rewarded.
Regards,
Vishal.Hi,
When you work on Tree, you should remember 4 important attributes.
expanded, parent row key, row_key and is_leaf.
To add children to parent we will have to maintain the relationship between row_key of PARENT and parent_row_key of CHILD.
if row_key = 1, then parent_row_key shoud be eqaul to row_key of parent, so that the corresponding childs will get added to parent.
if u put is_leaf = 'X'., then it means that they bcome childs(no longer exapndable ".")
and when u expand a parent, then expand = 'X'.
Provide Reward points.
Rewards, -
Error in Webdynpro ABAP Table Tree
Hi,
I am using Table UI element in Webdynpro ABAP. I am showing data in tree format using element Treebykeytablecolumn.
I have full tree structure loaded in begining of the code so don't need to load child on expansion of key. Since I have data already loaded, am setting attribute CHILDREN_LOADED as true.
First row comes in table perfectly, but on expansion its giving error "The Entered Value Is Not on the List of Valid Values." Please let me know your valuable input on this.
Thanks and Regards,
Praveen.Hi Shaira,
I have removed all values from table and left only row key and Parent key then also I am getting the same issue. Could you please let me know what kind of data mismatch can be. Please let me know some example, if you have faced this issue.
Thanks and Regards,
Praveen.
Edited by: Praveen Kumar on May 19, 2011 7:17 AM
Maybe you are looking for
-
Explain Plan from TKPROF trace file.
Hello, My procedure is taking time for that i have trace on in procedure fo find explain plan of particular query. Using below statement Trace is on. EXECUTE IMMEDIATE 'ALTER SESSION SET SQL_TRACE = TRUE'; EXECUTE IMMEDIATE 'ALTER SESSION SET T
-
Hi there, I have a proble to draw a XY plot. How is it possible to set the X-axis with the recorder timestamp ? pls see the attachmend! Thank you! Attachments: Test.vi 22 KB
-
After viewing this page from Sun http://docs.sun.com/source/816-6128-10/confmbrs.htm#750819 i tried adding a new field called iwtAuthMembership-age, in all the 3 files needed to be changed. The Membership.properties, iwtAuthMembership.xml, and regist
-
How to Install/Configure Webutil
We have downloaded webutil related files and installation manual also but it is very difficult to install all those steps in forms 9i we have authorsied oracle products pls help
-
Why does Itunes encounter a problem and stops every time I try to sync my home videos - help please
Why does Itunes encounter a problem every time I try to sync my home videos - it just won't sync them - help please !!!!