Hi,
Now Define Workarea for T_Return Say S_Return and a Variable Say Code (or Internal Table ).
Just Before Ur ENDMODULE Write.
read table T_return into S_return with key fieldname = 'F0002'.
if sy-subrc eq 0.
code = S_return-fIELDVAL.
endif.
Code Variable holds Your Desired Code , Which u can use later,If Ur selection screen allows more than one name as input,then append this code along with name to some internal table .
Regards: