Application Development and Automation 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: 
Read only

hi

Former Member
0 Likes
589

hi all,

i want to remove sign after the value for eg : 12233.45- . if u any syntax plz mail me.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
570

hi,

try with this.

data : w_var(16) type p decimals 2,

v_var(16) type c.

write : w_var NO-SIGN to v_var.

reward if helpful.

regards.

Praveen.

6 REPLIES 6
Read only

Former Member
0 Likes
570

Hi,

do like this.


if value < 0.
  value = value * -1.
endif.

rgds,

bharat.

Read only

Former Member
0 Likes
570

hi,

Its simple nothing to any extra coding....

write var1 to var2 no-sign.

Dont forgot to reward me points ....

Regards,

Sreenivasa sarma K.

Read only

Former Member
0 Likes
570

hi..

may be it is useful..

syntax...

Write:/ <field> no-sign.

thanks,

Siva...

Read only

Former Member
0 Likes
570

Hi,

if var lt 0.

shift var right deleting trailing '-'.

endif.

Reward points

Regards

Shibin

Read only

Former Member
0 Likes
570

Hi,

DATA v_num TYPE P DECIMALS 2 VALUE '12233.45-'.

CALL FUNCTION 'CLOI_PUT_SIGN_IN_FRONT'

CHANGING

VALUE = v_num.

N = ABS( v_num ). WRITE: 'ABS: ', N.

Pls. reward if useful...

Read only

Former Member
0 Likes
571

hi,

try with this.

data : w_var(16) type p decimals 2,

v_var(16) type c.

write : w_var NO-SIGN to v_var.

reward if helpful.

regards.

Praveen.