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: 

How to print "- ve" sign infront of a number during calculation

Former Member
0 Kudos
71

Hi all

right now i am getting the values in the output like this 1.95 - but i have to get that as - 1.95 instead, how do we get that.

my calculation is *wa_menge * - 1* in the code

3 REPLIES 3

Former Member
0 Kudos
37

Hi,

use this FM

CLOI_PUT_SIGN_IN_FRONT

Cheers,

jose.

Former Member
0 Kudos
37

hi,

Make the final value as below :

variable = ABS( variable ).

then use CONCATENATE as below :

CONCATENATE '-' variable into variable.

Reward points if its works.

Regards,

Raghu

Former Member
0 Kudos
37

Hi,

CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'

CHANGING

value = field.

pls. reward if useful....