2008 Jun 04 4:55 PM
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.
2008 Jun 04 4:58 PM
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,
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.
2008 Jun 04 4:58 PM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |