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

please

Former Member
0 Likes
863

Hi,

My program amount is disply 2000- but i want display the amount like this -2000.

please tell me.

8 REPLIES 8
Read only

Former Member
0 Likes
832

Hello,

Use the FM.

CLOI_PUT_SIGN_IN_FRONT

Regards,

Vasanth

Read only

Former Member
0 Likes
832

Hi,

Use this Func mod

CLOI_PUT_SIGN_IN_FRONT

Cheers,

jose.

Read only

Former Member
0 Likes
832

HI,

CLOI_PUT_SIGN_IN_FRONT

Read only

Former Member
0 Likes
832

Move minus sign from end to begining of number value

i.e. from 100.00- to -100.00

  • check if negative amount

IF p_amount LT 0.

SHIFT p_amount RIGHT DELETING TRAILING '-'.

SHIFT p_amount LEFT DELETING LEADING ' '.

CONCATENATE '-' p_amount INTO p_amount.

ELSE.

SHIFT p_amount LEFT DELETING LEADING ' '.

ENDIF.

Read only

Former Member
0 Likes
832

Follow these steps:

1. Multiply this value by -1.

2. Declare a variable type string.

3. And then write :

Concatenate '-' <variable> into <variable>.

You shall surely get the output.

reward pts if u find it useful.

Read only

Former Member
0 Likes
832

Hello Karunasri Vinnakota,

If it is character field you can do that. Other than character fields negative values will be displayed like that only. There is no other alternative to do that.

If it is character field You can use the FM CLOI_PUT_SIGN_IN_FRONT

Reward If Helpful.

Regards

--

Sasidhar Reddy Matli.

Edited by: Sasidhar Reddy Matli on Feb 6, 2008 2:35 PM

Read only

Former Member
0 Likes
832

Hi,

You can use FM CLOI_PUT_SIGN_IN_FRONT.

Thanks,

Sriram Ponna.

Read only

Former Member
0 Likes
832

Hi,

How we move string data type to currency data type.

It is possible or not.