Nabheet... sorry I wasn't here and couldn't reply to you.
I am developing and testing in the same Client. Now I tested the Form if it works, I gave manually the data to the in_par Table and it returned me the result that I want.
But the only problem is, why doesn't &LGTXT0014& in SAP script take the value given from the subroutine ?