Hi Saras
I would agree with Karri ... what is wrong with your current approach?
If you just want the flexibility/maintainability of the rule, you can still create one and call the same rule via coding in the background step (FM RH_STRUCT_GET)
This will not involve changing your existing design too much!
Regards,
Modak