06-27-2008 2:23 PM
Hi,
Is there any function module to give absolute value of a number?
That has similar functionality to the Built in Function ABS.
Please let me know.
Thanks,
cs
06-27-2008 2:37 PM
hi,
why are you looking for any function module.
You can easily get it by mathematical function ABS .
Syntax : <Turget Variable> = ABS <Source Variable>
\[removed by moderator\]
Anirban Bhattacharjee
Edited by: Jan Stallkamp on Jun 27, 2008 4:19 PM
06-27-2008 2:24 PM
Given that these is a built in function why on earth do you want a function module?!
If you really really need one - then write it. I doubt very much whether SAP have bothered.
06-27-2008 2:28 PM
06-27-2008 2:28 PM
HI
BAPI_CASHJOURNALDOC_CREATE ( BAPI function module .Functions for all number types ABS Amount (absolute value) |x| of x SIGN Sign (preceding sign) of x.
and also to the site mentioned below.
[www.abapcode.sapbrainsonline.com/2008/03/compute-abap-keyword.html]
Regards
Lakshman
06-27-2008 2:29 PM
There is no such FM available neither BAPI's, so to resolve your issue it would be better to write your function module which will use the ABS.
That would be easier and quick.
let me know if you need further help.
Thanks-
06-27-2008 2:37 PM
hi,
why are you looking for any function module.
You can easily get it by mathematical function ABS .
Syntax : <Turget Variable> = ABS <Source Variable>
\[removed by moderator\]
Anirban Bhattacharjee
Edited by: Jan Stallkamp on Jun 27, 2008 4:19 PM
01-06-2011 4:53 PM