10-10-2008 10:45 PM
Hi,
I have got two amount fields and I need to find the difference between those two.
They are in below formats
1.800,00
18,00
Is there any FM to find the difference.
Thanks,
ABAPer.
10-11-2008 12:40 AM
Why do you need a FM for this simple mathematical function, when you can subtract one from another and store it in the resulting variable. Calling a FM will be more lines of Code.
-Aman
10-11-2008 2:32 AM
hey,
Just subtract the first number from the second and then store its value in a variable.For this why do you need a FM.
Regards,
Midhun Abraham
10-11-2008 6:12 AM
HI,
Simply subtract the two fields on the field.
The resulatant variable will have the result.
10-11-2008 6:52 AM
What if the two values are type c? So the commas etc. are really in the value. He'll have to convert to type P first, then subtract.
Again - it's programming that solves this - not "function module". How do you think function modules get written in the first place - by programming!