Skip to Content
0
Jan 18, 2011 at 09:26 PM

How to update hierarchy tree

783 Views

I have a requirement to

1) Create customer hierarchy tree report and display on screen.

2) When user select the tree nodes or tree items and click button to block or unblock customer sales area.

It should first pop up screen to ask for the type of sales block then it takes that info to update some Z tables behind the scene and then block or unblock the customes all children of the selected node(s) (this is multi selection).

Then it should show updated data on hierarchy tree display on screen with icon indicated successful or error process.

I was able to finish the first part using CL_SALV_TREE and struggle in the second part.

There is sample salv_demo_data_update but it does not have the popup screen to get some info. Also how do I know the nodes and get all related children under the nodes. Does anyone have a similar situation?

Thanks,