04-26-2006 6:42 PM
Does anyone know if there is FM or BAPI that can take the cost center group hierarchy (I used the <b>G_SET_TREE_IMPORT</b> to get the cost center hierarchy) and display in an ALV tree display? Need to customize a report painter report which displays a nice ALV tree list of cost center hierarchy at the left and posting details in each cost elements at the right when each node is doubled clicked.
I think I need to create two containers, one display the hierarchy tree, and one displays the posting. However, I cannot get the whole cost center hierarchy displayed with the parent-child node look. I have tried the logic in <b>BCALV_TREE_DEMO</b>. Does not quite fit the requirements.
Anyone has any advice or sample, please share with me.
Thank you,
04-26-2006 6:45 PM
There are three TREE controls that ALV provides - SIMPLE, ALV and COLUMN tree. You can take a look at a example of each of them in DWDM transaction.
Regards,
Ravi
Note :Please mark the helpful answers
04-26-2006 7:05 PM
Hi,
Check this demo program .. <b>SAPTLIST_TREE_CONTROL_DEMO</b>
Regards
vijay
04-26-2006 8:27 PM
you dont need two containers, you can use splitter container for this case.
bapi for getting CCG details BAPI_COSTCENTERGROUP_GET_DETAIL
Regards
Raja
05-04-2006 9:07 PM
Thanks for all the advices. I was able to accomplish the report display I need using the demo program.
Thanks a lot!
02-28-2007 7:27 AM
Hi,
I have similar requirement, I need to show WBS Element Group hierarchy in ALV tree display and also need to change the data on another screen after double click on tree.
Can u refer any sample program, which helped you to get this done.
Thanks
Abinash