Hi Gopa,
You can also have a look at class CL_FDT_FUNCTION method CHECK_ASSIGNED_RULESETS to have a look at how the list of rulesets can be found out to which your current function is linked. Initial lines of code using IF_FDT_ADMIN_DATA->GET_WHERE_USED will be helpful.
-Nabhish