Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Newbie. Function module. default value not working.

Former Member
0 Likes
1,012

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
749

Hello,

You have to enter 'default value' for the operator in the import tab of SE37. It should work.

Thanks,

Venu

4 REPLIES 4
Read only

Former Member
0 Likes
750

Hello,

You have to enter 'default value' for the operator in the import tab of SE37. It should work.

Thanks,

Venu

Read only

0 Likes
749

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.

Read only

0 Likes
749

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.

Read only

0 Likes
749

Thank you.