‎2006 Mar 30 8:28 AM
Hi Friends,
Can any body let me know the step by step procedure for creating a new Function Module with example?
I am sure of rewarding points.
Thanks in Advance.
‎2006 Mar 30 8:36 AM
hi Jak,
you can create a FM by going to the transaction se37.
steps.
1. write the name of FM
2. click on create
3. provide with function group and description and save
4. now enter import and export parameters and exceptions as required.
5. write the source code.
6. activate it.
hope this helps.
regards,
Kinshuk Saxena
‎2006 Mar 30 8:36 AM
hi Jak,
you can create a FM by going to the transaction se37.
steps.
1. write the name of FM
2. click on create
3. provide with function group and description and save
4. now enter import and export parameters and exceptions as required.
5. write the source code.
6. activate it.
hope this helps.
regards,
Kinshuk Saxena
‎2006 Mar 30 8:37 AM
Hello,
I am quite sure you will have hundreds of replys :-).
1. Create a Function Group /* If you not yet have one already */ Tr. SE37 -> GOTO -> Function Groups -> Create Goup.
2.
Choose the transport request for this /* or choose local object */
3.
In Tr. SE37 enter a choosen name staring with chr: 'z'
choose create.
Now you have to select the the group you just created, or the one you have.
4. Enter the import / export parameters
5. write the code
6. Activate it
>> you can use this now using CALL FUNCTION.
Regards,
Dezso
‎2006 Mar 30 8:43 AM
‎2006 Mar 30 9:31 AM
Hi Jak,
step by step procedure for creating a new Function Module with example
Simple.
You need to know first what typr of FM u want to create means normal or RFC enabled although the steps are almost same with a minor difference that u need to select the radio button as per the need.
Well regarding steps , it already shown above.
First of all u need to have a functin group for ur function module if u don't have then create Function Group first from SE37 -->Function Group --> Create group
Now after that , in SE37 enter ur Function module say Ztest and then press create.
Give description and in attributes select Normal Function module or RFC (Say Normal FM) .
Give importing and exporting Paramaters. This step again depend on ur reqmts. u can have changing as well as Tables paramters also.
Write ur code in the source text .
Save --> Give request number .
Activate it.
U can also test ur FM by pressing F8.
Hope u will be clear with the steps.
Cheers
Sunny
Rewrd points, if found helpful
‎2006 Apr 06 11:26 AM
HI there.
Here what i sthe difference betwwen import and export parameters..suppose for example i am doing addtion..of two numbers
Thanks in Advance
‎2006 Apr 06 11:29 AM
Hi Jak,
import parameters are those which you send to the FM.
export parameters means the result
c = a+ b. a and b should be importing parameters
c should be exporting parameters.
Meanings interchange when you use the FM in a program.
Regards,
ravi
‎2006 Apr 06 11:30 AM
Hi Jak,
if you give inputs two numbers, they are import parameters, and if you get the sum of then then it is export parameter.
Regards
vijay
‎2006 Apr 06 11:54 AM
‎2006 Mar 30 9:47 AM
Hello jak,
correct and quicker answers should be rewarded.
regards,
Kinshuk