‎2008 Jan 25 2:21 PM
Hi,
i have created a function module for a simple program with two numbers and operator as parameters and will give result based on the operators '+', '-', '*', '/'.
In the function module builder, i have created a field for the operator as fp_opr and given the default value as '+'. when i called this function from the program by giving operator , -,/ , it is working fine. but if i don't give any parameter, it is returning 0 value. since i have given the operator's default value in function module as '', i am expecting addition. but it is returning 0.
please help. What I am doing wrong?
thanks in advance.
‎2008 Jan 25 3:01 PM
Hello,
You have to enter 'default value' for the operator in the import tab of SE37. It should work.
Thanks,
Venu
‎2008 Jan 25 3:01 PM
Hello,
You have to enter 'default value' for the operator in the import tab of SE37. It should work.
Thanks,
Venu
‎2008 Jan 26 2:45 PM
Hi,
I have given the '' operator as default in function module itself. when i run the program in function module, then the operator is '' by default and working fine. when i call this function from program, i am expecting the samething. but '+' is not popping as default and i need to give the operator everytime.
Is it supposed to work in function module only? Any ideas on this please?
Thank you.
‎2008 Jan 26 8:42 PM
HI Neeraja
The default value works, good when you want to test the FM in se37 only. You cannot have that default value shown when you call that FM in the program. thats not possible.
Regards
JJ.
‎2008 Jan 27 12:06 PM