Hi Khushbu,
Some facts upfront:
1. If you activate a function, the generated class is deleted (since it is not "correct" anymore
2. Next time when you call this Function the next class is generated,
EXCEPT you are locking this function by being in BRF+ Workbench in edit mode.
Then this function is executed in interpreter mode (is slower). For this reason you have probably seen different effects(after activation it worked, since in interpreter mode).
Following hint from my side, I have just cheked you coe once more. Try to call lo_result->get_value without the value id/name. Only with importing parameter.
Maybe it solves your problem. Please provide feedback ;-)
BR
Rajiv