How to get parent Item type recursively

オフライン
I have structure where, I have to find all the parent Item in my BOM tree, so How to find it by aml query, or  any server side method for finding all parent Item in BOM.  
Parents Reply Children
No Data