on 04-16-2014 12:26 PM
Hi Frds,
Please suggest. How can we achieve the assignment block which is in TREE form ,Might b its not fully TREE form there will be some easy way to achive my tesk. I have a custom table with contain User id and name of each Role(ROLE_NAME). Below is the tast example.
Assignment block display different lavel of approver list.
ROLE_NAME1 | |
1 | User_name1 |
2 | User_name2 |
ROLE_NAME2 | |
100 | USER_NAME01 |
200 | USER_NAME02 |
ROLE_NAME3 | |
101 | USER_NAME10 |
102 | USER_NAME20 |
103 | USER_NAME30 |
ROLE_Name is a fixed text.
Please help how can we achive this task.
Thanks
Imran
Hi Robert,
Actually i want to know that is there any way in proxy class that we can handle every attribute of child node at one place. Like Do_prapare_output where we can handle attribute before display.
Thanks
Imran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Robert,
It working now.
Robert do we have any method in the proxy class where i can set value to each attribute. Actually in the proxy class i have lots of attribute , so putting logic in each attribute is really painful and not good for performance.
Please advice.
Thanks
Imran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Robert,
I am using http://wiki.scn.sap.com/wiki/display/ABAP/Development+of+a+transaction+history+in+form+of+a+tree+vie... to create TREE table.
Issue is that when i click on the arrow button (to check sccuessor) the data get copied to predecessor.
I am populating the data in GET_CHILDREN method.
Please Advice.
Thanks
Imran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In get_children method is performed recursive call of the class method. So you must do the check in method, which level was clicked. Also in the code sample of the blog, that you mentioned, is done the check. So you have to do the check and eliminate the processing of same entity again.
It is all up to the coding, so you have all the freedom.
Best regards, Robert
Hi Robert,
One Query, In my object i dont have Header data and Item data. Moto of my this dev is to differenciate User into 3 catagories. so i have maintain 3 Heading Text into 3 line of table(done in Do_inti_context).
Now i am trying to create entires under these Heading text. But problem is that whenever i am maintaining entries in the successor it reflecting in the maintain Heading text also.
Note: Using same structure of both Heading Line and Successor . At Header, only maintaining Colomn text.
Please suggest.
Thanks
Imran
It might be the problem with the logic that you wrote in do_init_context method. I usually use inbound plug to set some initial values. Maybe it would be better to put logic to set 3 categories in do_prepare_output method and within condition...
IF iv_first_time = abap_true.
(set initial values for headings)
ENDIF
Hi Krishnan,
I already search. there every thing was with parants object and its dependent object. Here my Role Text are Hard coded and corresponding User ID and and is in custom table.
Thats a tricky part, how can i built tree view with these data.
Please suggest.
Thanks
Imran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Please search in SDN already a blog available for TREE view creation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.