2007 Jun 01 10:12 PM
Hi,
The negative sign of a currency field is being displayed at the end of the value ( i.e at thr right side of the value). I want it at the left, i.e at the begining of the value.. how do i get it ???
<b>i dont want to convert it into a character type..</b>
B'coz i have to download data into Excel. So that all numeric fields should appear
with sign(left side).otherwise excel treats as char field.
regards,
leoiz
2007 Jun 02 2:25 PM
Hi leoiz,
an other way for you is the edit mask option of the WRITE command;
data:
lv_price TYPE bseg-dmbtr VALUE '123.45-',
lv_price2 TYPE bseg-dmbtr VALUE '123.45'.
WRITE:
/ lv_price USING EDIT MASK 'RRV__________.__',
/ lv_price2 USING EDIT MASK 'RRV__________.__'.
This will place the sign in front of the value.
Still I think you could use a smarter appoach exporting values to Excel: ALV excel inline grid, ALV calling external excel, OLE intergration with CALL METHOD OF EXCEL and so on.
But just for the purpose of placing the sign, the edit mask should be OK.
Regards,
Clemens
Hi,
The negative sign of a currency field is being displayed at the end of the value ( i.e at thr right side of the value). I want it at the left, i.e at the begining of the value.. how do i get it ???
<b>i dont want to convert it into a character type..</b>
B'coz i have to download data into Excel. So that all numeric fields should appear
with sign(left side).otherwise excel treats as char field.
regards,
leoiz
2007 Jun 01 10:22 PM
2007 Jun 02 12:08 AM
Hi leoiz,
display it as ALV grid and use the built-in ALV-Excel export.
Regards,
Clemens
2007 Jun 02 12:13 AM
I have tried to convert char and again moved to currency format,still it takes right side sign.
I think it is not possible without converting char and do not move it to currency format,try to download with charcter only.
I tried function module but no luck ...
Thanks
Seshu
2007 Jun 02 2:25 PM
Hi leoiz,
an other way for you is the edit mask option of the WRITE command;
data:
lv_price TYPE bseg-dmbtr VALUE '123.45-',
lv_price2 TYPE bseg-dmbtr VALUE '123.45'.
WRITE:
/ lv_price USING EDIT MASK 'RRV__________.__',
/ lv_price2 USING EDIT MASK 'RRV__________.__'.
This will place the sign in front of the value.
Still I think you could use a smarter appoach exporting values to Excel: ALV excel inline grid, ALV calling external excel, OLE intergration with CALL METHOD OF EXCEL and so on.
But just for the purpose of placing the sign, the edit mask should be OK.
Regards,
Clemens
2007 Jun 02 10:00 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |