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: 

Need a functional module

Former Member
0 Kudos

Hi

Is there any function module apart from ( CLOI_PUT_SIGN_IN_FRONT ) to move the negative sign from the left hand side of a number, to the right hand side of the number.

Regards

Sathya

2 REPLIES 2

Former Member
0 Kudos

Hi

I think by default it comes on right, to move to left we use the funciton module CLOI_PUT_SIGN_IN_FRONT

Regards

MD

Edited by: Madhan Doraikannan on Oct 1, 2008 11:43 AM

Former Member
0 Kudos

hi

by default negative sign will come on right side.

if you want negative sign on left side of a number use this piece of code.

IF fc_wk_field LT 0.

SHIFT fc_wk_field RIGHT DELETING TRAILING '-'.

SHIFT fc_wk_field LEFT DELETING LEADING ' '.

CONCATENATE '-' fc_wk_field INTO fc_wk_field.

endif.