Hi Sree
Using SE37 Create the desired function module
On Attributes Tab set the "Remote Enabled Module" Radio Button
On the Import Tab set the values you are passing in
On the Export Tab set the values you are wanting to receive back
In the Source Code Tab apply the code using your Input Parameters to determine your Export Parameters.
If you require any more guidance you'll need to define more explicitly what you need.
Regards
Arden