cancel
Showing results for 
Search instead for 
Did you mean: 

Minus sign in smartforms

Former Member
0 Kudos

I want minus '-' sign in front of amount

currntly it is showing 99999.45-

but i want -99999.45.

please help....

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

i am getting the dump when using this FM.

Former Member
0 Kudos

for this you can pass the minus symobl like

value = 0 - values

its getting the minus value then use the FM

Answers (2)

Answers (2)

Former Member
0 Kudos

thanks

Former Member
0 Kudos

use Fm CLOI_PUT_SIGN_IN_FRONT

DATA: WA_VALUE(6) TYPE C VALUE '20.00-'.

CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'

CHANGING

value = WA_VALUE.

.

WRITE: / WA_VALUE.

or

gv_netwr2 = gv_netwr .

concatenate '-' gv_netwr2 into gv_netwr2.

condense gv_netwr2 no-gaps.

Former Member
0 Kudos

i am getting the dump when using this FM.