Skip to Content
author's profile photo
Former Member

SALV Decimals Round

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    author's profile photo
    Former Member
    Jun 24, 2010 at 01: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.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Jun 28, 2010 at 08:46 AM

    Solved! 😊

    Tks

    Add comment
    10|10000 characters needed characters exceeded