2008 May 20 6:42 AM
Hi gurus,
Actually I retive the data from table MBEW - VERPR field,I want display the price Like 1000.000 .(After decimal we need three zeros)
It shows that two decemal like 1000.00,
How can set as three decemal ..
2008 May 20 6:48 AM
while populating fieldcatalog
Data: wa_fcatalog type slis_filter_alv0
wa_fcatalog-decimals = '3'.
this will set the decimal points to 3.
Regards
Bikas
Hi gurus,
Actually I retive the data from table MBEW - VERPR field,I want display the price Like 1000.000 .(After decimal we need three zeros)
It shows that two decemal like 1000.00,
How can set as three decemal ..
2008 May 20 6:48 AM
while populating fieldcatalog
Data: wa_fcatalog type slis_filter_alv0
wa_fcatalog-decimals = '3'.
this will set the decimal points to 3.
Regards
Bikas
2008 May 20 6:59 AM
Thanks for u r reply,
But I need three decemal place for that perticular field only.
How can set wa_ficatlog-decemal = 3 for that field only..
2008 May 20 7:05 AM
Hi,
That field only means is it fo one column or one row field. If it is one column then it is possible.
After getting field catelog do like this.
READ i_fcatlog INTO wa_fcatlog WITH KEY fieldname = ur field name.
wa_fcatalog-decimals = '3'.
MODIFY i_fcatlog FROM wa_fcatlog TRANSPORTING decimals.
Thanks,
Vinod.
2008 May 20 6:50 AM
data : var(15) type p deimals 3.
var = MBEW - VERPR .
It will work.
Implement in your code.
Regards,
madan.
2008 May 20 6:50 AM
hi,
The number of decimals depends on the currency you are displaying or unit of quantity you are displaying.It will automatically display with corresponding decimals.If you want to display the number with three decimals you can use the write to statement for it.
Regards,
Veeresh
2008 May 20 6:57 AM
Hi,
If u r using clasical report then do like this.
WRITE: MBEW - VERPR DECIMALS 3.
If u r using ALV report then u can pass the number of decimals in fieldcat for this field.
Thanks,
Vinod.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |