check below threads
HOW to create a function module ..... in abap
http://****************/Tutorials/ABAP/FunctionModule/page1.htm
in attributes tab tick "remote enabled " as you want to create remote enabled function module
check below threads
HOW to create a function module ..... in abap
http://****************/Tutorials/ABAP/FunctionModule/page1.htm
in attributes tab tick "remote enabled " as you want to create remote enabled function module