on 03-27-2015 9:53 AM
Hi
The ABS Function is not working for the formulae created in the report. The values is getting subtracted, but '-' value is not getting removed from the final output.
Can anyone suggest how to proceed further.
Regards
Nitin
Hi.
We can solve this way:
DATA: valor TYPE i,
zval TYPE i.
zval = '-111.1'.
PERFORM abs USING zval CHANGING valor.
WRITE valor.
FORM abs USING p_zval
CHANGING p_valor.
IF p_zval LE 0.
p_valor = p_zval * -1.
ELSE.
p_valor = p_zval.
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi All,
While checking the error i noticed that the formula doesnot get saved in the backend instantaneously, it takes some time to save the formulae after which it will start giving the output.
sometimes even after changing the formulae, old formulae values were appearing in the output.
Can you please suggest how can i check it ...
Regards
NitRam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Vengal,
I tried regenerating the report and creating the formulae, but still the values are not working fine ..
Whenever i try using mathematical function the foumulae doesnot create/save.
Without using simple calculations using +,-,*,/ the report works fine and output is displayed properly ...
But the problem occurs when using mathematical function, data function.....
Kindly suggest...
Hi loed,
i need to analyze why this function is allowing the formulae to work at report level..
On further analyzing the issue i found that, using NODIM function in the formulae the values are coming right.
so ..
Formulae : ABS('a'-'b') - is not working fine.
Formuale : ABS(NODIM('A')-NODIM('B')) is working fine....
Can this be because the Base unit of keyfigures are different and which would lead to this error while calculating values on the fly from the infoprovider .
Regards
Nitin
Hi Nitin,
If ABS formula is not working, let's just do your own ABS formula..Let's call the keyfigure you are using as ZKF_TEST:
Create a formula, let's call it ZFORMULA_KF and enter this:
( ZKF_TEST < 0 ) * ( ZKF_TEST * (-1) ) + ZKF_TEST
Regards,
Loed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if you use the ABS funciton it will remove the -ve vlaues
I have one sales keyfigure and which is having +ve -ve values, but I need all values in +ve only so I use Absolute Value, ABS ( 'Sale').
-Phani.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Phani,
On further analyzing the issue i found that, using NODIM function in the formulae the values are coming right.
so ..
Formulae : ABS('a'-'b') - is not working fine.
Formuale : ABS(NODIM('A')-NODIM('B')) is working fine....
Can this be because the Base unit of keyfigures are different and which would lead to this error while calculating values on the fly from the infoprovider .
Regards
Nitin
can you share the formula you have written ?
Regards,
AL
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.