2010 Jun 23 2:58 PM
Hello! I'm developing a application that uses SALV class object!
I would like to round one entire column so that the decimals appear like integers, I've tried to use the methods SET_DECIMALS and SET_ROUND, but with no success! The fields in question are from the type QUANT.
Can any one help me? My last resource would be to create a duplicated field as int or char and duplicate the values, but that would be if there is no other way.
Best Regards
2010 Jun 24 2:16 PM
I've had success with this before. Maybe your issue is the type. Is your field a number? My data element for the column was
type p length 16 decimals 3.With this type field,
lo_column->set_decimals( 0 ).worked fine for me.
Hello! I'm developing a application that uses SALV class object!
I would like to round one entire column so that the decimals appear like integers, I've tried to use the methods SET_DECIMALS and SET_ROUND, but with no success! The fields in question are from the type QUANT.
Can any one help me? My last resource would be to create a duplicated field as int or char and duplicate the values, but that would be if there is no other way.
Best Regards
2010 Jun 24 2:16 PM
I've had success with this before. Maybe your issue is the type. Is your field a number? My data element for the column was
type p length 16 decimals 3.With this type field,
lo_column->set_decimals( 0 ).worked fine for me.
2010 Jun 28 9:46 AM