Hi Sujana,
You can check the LS-API for getting any details on navigation nodes (parent, child, properties, etc):
Using the L-Shape API - Portal - SAP Library
This invovles javascript code where you can use in any way you please, without Java.
Br,
Tal