Hi
How should it update automatically? Based on what?
Have a look at this solution we did to create a hierarchy automatically based on an attribute
http://scn.sap.com/docs/DOC-44865
Otherwise you need to manually assign the projects or have it maintained in ECC and load it directly
hope it helps
Martin