Hi,
I think you can make use of function group. Create a FG with 2 FMs. GET_VALUE and SET_VALUE.
In function exit, you can call FM set_value and pass the requried values to a global variable defined in FG. And in the enhancement spot call the FM Get_value and get the global variable .
Regards,
Swarna