on ‎2015 Mar 27 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
Request clarification before answering.
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.
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.