Application Development 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: 

Is there any function module to give absolute value of a number?

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

6 REPLIES 6

matt
Active Contributor
0 Kudos

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.

former_member181995
Active Contributor
0 Kudos

Have you not used CEIL or FLOOR function?

Amit.

Former Member
0 Kudos

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

Former Member
0 Kudos

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-

Former Member
0 Kudos

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

Former Member
0 Kudos

This message was moderated.