Hi Dhanapal,
Unfortunately, it is not entirely clear for me what your scenario is, however the following suggestions can be useful for you:
1. The way test log tree is built cannot be controlled from scripts. If you need to create a custom folders hierarchy in your test log, you should probably consider using the approach described in the "Using Folders" (
http://www.automatedqa.com/support/viewarticle/12264/) help topic.
2. If you need to pass some data to an event handler, you should consider using a global variable or a project variable for this (see the "Project And Project Suite Variables - Overview" help topic (
http://www.automatedqa.com/support/viewarticle/11862/) for more information).