2008 Oct 10 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.
HI,
Simply subtract the two fields on the field.
The resulatant variable will have the result.
2008 Oct 11 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
2008 Oct 11 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
2008 Oct 11 6:12 AM
HI,
Simply subtract the two fields on the field.
The resulatant variable will have the result.
2008 Oct 11 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!
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |