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

Currency Que

Former Member
0 Likes
356

Hi,

I have amount as 166,863.54- but when writing on the screen(report output) i should write it as -166,863.54. should come at beginning.

Thanks,

Shiva.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
337

Hi,

There must be another smart way to do this.

But this is simple way...



if lv_curr LT 0.
move lv_curr to lv_char.
replace '-' by space.
shift lv_char right deleting trailing space.
concatenate '-' lv_char into lv_char.
endif.

your lv_char should be type char.

and after code ur lv_char will have your desired result.

reward points if this helps,

ags.

Hi,

There must be another smart way to do this.

But this is simple way...



if lv_curr LT 0.
move lv_curr to lv_char.
replace '-' by space.
shift lv_char right deleting trailing space.
concatenate '-' lv_char into lv_char.
endif.

your lv_char should be type char.

and after code ur lv_char will have your desired result.

reward points if this helps,

ags.

1 REPLY 1
Read only

Former Member
0 Likes
338

Hi,

There must be another smart way to do this.

But this is simple way...



if lv_curr LT 0.
move lv_curr to lv_char.
replace '-' by space.
shift lv_char right deleting trailing space.
concatenate '-' lv_char into lv_char.
endif.

your lv_char should be type char.

and after code ur lv_char will have your desired result.

reward points if this helps,

ags.